Initial commit
This commit is contained in:
commit
affe27b3e8
49 changed files with 33325 additions and 0 deletions
39
backend/strapi/src/admin/app.example.js
Normal file
39
backend/strapi/src/admin/app.example.js
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
const config = {
|
||||
locales: [
|
||||
// 'ar',
|
||||
// 'fr',
|
||||
// 'cs',
|
||||
// 'de',
|
||||
// 'dk',
|
||||
// 'es',
|
||||
// 'he',
|
||||
// 'id',
|
||||
// 'it',
|
||||
// 'ja',
|
||||
// 'ko',
|
||||
// 'ms',
|
||||
// 'nl',
|
||||
// 'no',
|
||||
// 'pl',
|
||||
// 'pt-BR',
|
||||
// 'pt',
|
||||
// 'ru',
|
||||
// 'sk',
|
||||
// 'sv',
|
||||
// 'th',
|
||||
// 'tr',
|
||||
// 'uk',
|
||||
// 'vi',
|
||||
// 'zh-Hans',
|
||||
// 'zh',
|
||||
],
|
||||
};
|
||||
|
||||
const bootstrap = (app) => {
|
||||
console.log(app);
|
||||
};
|
||||
|
||||
export default {
|
||||
config,
|
||||
bootstrap,
|
||||
};
|
||||
9
backend/strapi/src/admin/webpack.config.example.js
Normal file
9
backend/strapi/src/admin/webpack.config.example.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
module.exports = (config, webpack) => {
|
||||
// Note: we provide webpack above so you should not `require` it
|
||||
// Perform customizations to webpack config
|
||||
// Important: return the modified config
|
||||
return config;
|
||||
};
|
||||
0
backend/strapi/src/api/.gitkeep
Normal file
0
backend/strapi/src/api/.gitkeep
Normal file
31
backend/strapi/src/api/note/content-types/note/schema.json
Normal file
31
backend/strapi/src/api/note/content-types/note/schema.json
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "notes",
|
||||
"info": {
|
||||
"singularName": "note",
|
||||
"pluralName": "notes",
|
||||
"displayName": "note"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"content": {
|
||||
"type": "text"
|
||||
},
|
||||
"owners": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "admin::user"
|
||||
},
|
||||
"lastViewed": {
|
||||
"type": "datetime",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
9
backend/strapi/src/api/note/controllers/note.js
Normal file
9
backend/strapi/src/api/note/controllers/note.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* note controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::note.note');
|
||||
9
backend/strapi/src/api/note/routes/note.js
Normal file
9
backend/strapi/src/api/note/routes/note.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* note router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::note.note');
|
||||
9
backend/strapi/src/api/note/services/note.js
Normal file
9
backend/strapi/src/api/note/services/note.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* note service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::note.note');
|
||||
0
backend/strapi/src/extensions/.gitkeep
Normal file
0
backend/strapi/src/extensions/.gitkeep
Normal file
20
backend/strapi/src/index.js
Normal file
20
backend/strapi/src/index.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* An asynchronous register function that runs before
|
||||
* your application is initialized.
|
||||
*
|
||||
* This gives you an opportunity to extend code.
|
||||
*/
|
||||
register(/*{ strapi }*/) {},
|
||||
|
||||
/**
|
||||
* An asynchronous bootstrap function that runs before
|
||||
* your application gets started.
|
||||
*
|
||||
* This gives you an opportunity to set up your data model,
|
||||
* run jobs, or perform some special logic.
|
||||
*/
|
||||
bootstrap(/*{ strapi }*/) {},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue