-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix several launch bugs (cms, core, media)
- Fix file uploads in new apps - Fix graphQl permissions for public role - Fix fix margin on create form when no sidebar is present
- Loading branch information
Frantz Kati
committed
Feb 9, 2021
1 parent
143b543
commit aacc2f8
Showing
45 changed files
with
200 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ coverage/ | |
**/.cache | ||
.DS_Store | ||
carbon/ | ||
ideas.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ connect-session-knex.sqlite | |
blog.sqlite | ||
storage/ | ||
mikrotensei | ||
.next | ||
tensei |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
require('./app').start().catch(console.error) | ||
const { cms } = require('@tensei/cms') | ||
const { auth } = require('@tensei/auth') | ||
const { media } = require('@tensei/media') | ||
const { graphql } = require('@tensei/graphql') | ||
const { tensei, welcome, resource, text, textarea, dateTime, slug, hasMany, belongsTo } = require('@tensei/core') | ||
|
||
tensei() | ||
.root(__dirname) | ||
.resources([ | ||
resource('Post') | ||
.fields([ | ||
text('Title'), | ||
slug('Slug').from('Title'), | ||
textarea('Description'), | ||
textarea('Content'), | ||
dateTime('Published At'), | ||
belongsTo('Category') | ||
]) | ||
.displayField('Title'), | ||
resource('Category') | ||
.fields([ | ||
text('Name'), | ||
textarea('Description'), | ||
hasMany('Post') | ||
]) | ||
.displayField('Name') | ||
]) | ||
.plugins([ | ||
welcome(), | ||
cms().plugin(), | ||
auth().rolesAndPermissions().plugin(), | ||
media().plugin(), | ||
graphql().plugin(), | ||
]) | ||
.start() | ||
.catch(console.error) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.