Skip to content

Commit

Permalink
fix: fix several launch bugs (cms, core, media)
Browse files Browse the repository at this point in the history
- 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
Show file tree
Hide file tree
Showing 45 changed files with 200 additions and 1,071 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ coverage/
**/.cache
.DS_Store
carbon/
ideas.txt
2 changes: 2 additions & 0 deletions examples/blog/.gitignore
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ connect-session-knex.sqlite
blog.sqlite
storage/
mikrotensei
.next
tensei
5 changes: 0 additions & 5 deletions examples/blog/.prettierrc

This file was deleted.

257 changes: 0 additions & 257 deletions examples/blog/CHANGELOG.md

This file was deleted.

46 changes: 0 additions & 46 deletions examples/blog/app.js

This file was deleted.

2 changes: 0 additions & 2 deletions examples/blog/app.ts

This file was deleted.

3 changes: 0 additions & 3 deletions examples/blog/emails/users/register.edge

This file was deleted.

37 changes: 36 additions & 1 deletion examples/blog/index.js
100755 → 100644
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)
3 changes: 0 additions & 3 deletions examples/blog/nodemon.json

This file was deleted.

Loading

0 comments on commit aacc2f8

Please sign in to comment.