Skip to content

Commit

Permalink
feat: add some features
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneJiang committed Jan 18, 2023
1 parent 11c247b commit 424f861
Show file tree
Hide file tree
Showing 22 changed files with 18,191 additions and 165 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,4 @@ dist
# TernJS port file
.tern-port
.vercel
frontend/.env
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
-`Vue3.2`
- 💨 `Turbo` - Manage Monorepo
- 💎 `Strapi` - Headless CMS
- 🤷‍♂️ `@nuxtjs/apollo + graphql-tag` - Perfect BFF support with graphql
- 😎 `@Nuxt/Image` - Optimised images
- 😁 `Umami` - Better Analytics
- 🃏 `Commit Lint` - Make sure you & your teammates follow the conventional commit
Expand Down
Binary file modified backend/.tmp/data.db
Binary file not shown.
26 changes: 26 additions & 0 deletions backend/config/plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// // file: config/plugins.js
// "use strict";

// module.exports = () => ({
// // ...
// "entity-relationship-chart": {
// enabled: true,
// config: {
// // By default all contentTypes and components are included.
// // To exlclude strapi's internal models, use:
// exclude: [
// "strapi::core-store",
// "webhook",
// "admin::permission",
// "admin::user",
// "admin::role",
// "admin::api-token",
// "plugin::upload.file",
// "plugin::i18n.locale",
// "plugin::users-permissions.permission",
// "plugin::users-permissions.role",
// ],
// },
// },
// // ...
// });
9 changes: 4 additions & 5 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "backend",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"description": "JueJin CMS",
"scripts": {
"dev": "strapi develop",
"start": "strapi start",
Expand All @@ -16,11 +16,10 @@
"@strapi/plugin-i18n": "4.5.6",
"@strapi/plugin-users-permissions": "4.5.6",
"@strapi/strapi": "4.5.6",
"better-sqlite3": "^8.0.1",
"strapi-plugin-menus": "^1.2.1"
"better-sqlite3": "^8.0.1"
},
"author": {
"name": "A Strapi developer"
"name": "ByteDream"
},
"strapi": {
"uuid": "87a16a2a-c1c7-4264-9346-84fcba39ab34"
Expand All @@ -30,4 +29,4 @@
"npm": ">=6.0.0"
},
"license": "MIT"
}
}
18 changes: 0 additions & 18 deletions backend/src/api/base/content-types/base/schema.json

This file was deleted.

25 changes: 25 additions & 0 deletions backend/src/api/nav/content-types/nav/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"kind": "collectionType",
"collectionName": "navs",
"info": {
"singularName": "nav",
"pluralName": "navs",
"displayName": "nav",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"tag": {
"type": "string"
},
"url": {
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

/**
* base controller
* nav controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::base.base');
module.exports = createCoreController('api::nav.nav');
Loading

0 comments on commit 424f861

Please sign in to comment.