Giter Club home page Giter Club logo

inkster's People

Contributors

dominik-zeglen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

winiceo koinotice

inkster's Issues

Improve component importing

App components should be imported into one file index.ts, so long imports like

import ActionDialog from "../../components/ActionDialog";
import Container from "../../components/Container";
import Form from "../../components/Form";
import FormSave from "../../components/FormSave";
import { FormViewProps } from "../../";
import i18n from "../../i18n";
import IconButton from "../../components/IconButton";
import PageHeader from "../../components/PageHeader";
import Toggle from "../../components/Toggle";

could be shortened to this

import {
  ActionDialog,
  Container,
  Form,
  FormSave,
  IconButton,
  PageHeader,
  Toggle
} from '../../components'
import { FormViewProps } from "../../";
import i18n from "../../i18n";

Refactor API code

At this moment files in /api/ directory are big, monolytic and ureadable. This needs to be refactored by moving type definitions to one file, and queries (and mutations) to their own files.

Embed GraphiQL in panel

Since GraphiQL is React component and Inkster is going to have JWT authentication, it is reasonable to embed it in panel, maybe under "options" section.

Refactor models

All models should inherit from BaseModel struct, which would define basic fields in each model. It would be good to also change ID from bson.ObjectId to ordinary string, which would make Inkster database agnostic and allow in future to write adapters to other databases, like PostgreSQL.

type Basemodel struct {
    ID   string
    Name string
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.