dominik-zeglen / inkster Goto Github PK
View Code? Open in Web Editor NEWGraphQL powered headless CMS
GraphQL powered headless CMS
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";
All models should be able to access their creation date.
Related to #6
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.
Something based on this maybe?
https://github.com/stvp/go-toml-config
For now it would only contain creation date and last modification date, but it would allow inkster to hold additional information in future.
Blocked by #67
The current implementation of directories in front-end is flat anyway, so I think it would be better if tree-based directories would be replaced with flat taxonomies with many to many relations to pages.
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.
Every call to i18n.t()
should have context argument.
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
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.