first commit
This commit is contained in:
35
src/admin/app.example.tsx
Executable file
35
src/admin/app.example.tsx
Executable file
@ -0,0 +1,35 @@
|
||||
export default {
|
||||
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',
|
||||
],
|
||||
},
|
||||
bootstrap(app) {
|
||||
console.log(app);
|
||||
},
|
||||
};
|
||||
13
src/admin/tsconfig.json
Executable file
13
src/admin/tsconfig.json
Executable file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"extends": "@strapi/typescript-utils/tsconfigs/admin",
|
||||
"include": [
|
||||
"../plugins/**/admin/src/**/*",
|
||||
"./"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules/",
|
||||
"build/",
|
||||
"dist/",
|
||||
"**/*.test.ts"
|
||||
]
|
||||
}
|
||||
9
src/admin/webpack.config.example.js
Executable file
9
src/admin/webpack.config.example.js
Executable 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
src/api/.gitkeep
Executable file
0
src/api/.gitkeep
Executable file
27
src/api/news-post/content-types/news-post/schema.json
Executable file
27
src/api/news-post/content-types/news-post/schema.json
Executable file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "news_posts",
|
||||
"info": {
|
||||
"singularName": "news-post",
|
||||
"pluralName": "news-posts",
|
||||
"displayName": "NewsPost"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"pageUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"imageUrl": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/api/news-post/controllers/news-post.ts
Executable file
7
src/api/news-post/controllers/news-post.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* news-post controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::news-post.news-post');
|
||||
7
src/api/news-post/routes/news-post.ts
Executable file
7
src/api/news-post/routes/news-post.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* news-post router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::news-post.news-post');
|
||||
7
src/api/news-post/services/news-post.ts
Executable file
7
src/api/news-post/services/news-post.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* news-post service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::news-post.news-post');
|
||||
24
src/api/point-balance/content-types/point-balance/schema.json
Executable file
24
src/api/point-balance/content-types/point-balance/schema.json
Executable file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "point_balances",
|
||||
"info": {
|
||||
"singularName": "point-balance",
|
||||
"pluralName": "point-balances",
|
||||
"displayName": "PointBalance",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"total_points": {
|
||||
"type": "integer"
|
||||
},
|
||||
"users_permissions_user": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/api/point-balance/controllers/point-balance.ts
Executable file
7
src/api/point-balance/controllers/point-balance.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-balance controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::point-balance.point-balance');
|
||||
7
src/api/point-balance/routes/point-balance.ts
Executable file
7
src/api/point-balance/routes/point-balance.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-balance router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::point-balance.point-balance');
|
||||
7
src/api/point-balance/services/point-balance.ts
Executable file
7
src/api/point-balance/services/point-balance.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-balance service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::point-balance.point-balance');
|
||||
@ -0,0 +1,45 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "point_exchange_requests",
|
||||
"info": {
|
||||
"singularName": "point-exchange-request",
|
||||
"pluralName": "point-exchange-requests",
|
||||
"displayName": "PointExchangeRequest",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"type": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"add",
|
||||
"subtract"
|
||||
]
|
||||
},
|
||||
"amount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"pending",
|
||||
"approved",
|
||||
"rejected"
|
||||
]
|
||||
},
|
||||
"admin_note": {
|
||||
"type": "string"
|
||||
},
|
||||
"users_permissions_users": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "plugin::users-permissions.user"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/api/point-exchange-request/controllers/point-exchange-request.ts
Executable file
7
src/api/point-exchange-request/controllers/point-exchange-request.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-exchange-request controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::point-exchange-request.point-exchange-request');
|
||||
7
src/api/point-exchange-request/routes/point-exchange-request.ts
Executable file
7
src/api/point-exchange-request/routes/point-exchange-request.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-exchange-request router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::point-exchange-request.point-exchange-request');
|
||||
7
src/api/point-exchange-request/services/point-exchange-request.ts
Executable file
7
src/api/point-exchange-request/services/point-exchange-request.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-exchange-request service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::point-exchange-request.point-exchange-request');
|
||||
35
src/api/point-transaction/content-types/point-transaction/schema.json
Executable file
35
src/api/point-transaction/content-types/point-transaction/schema.json
Executable file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "point_transactions",
|
||||
"info": {
|
||||
"singularName": "point-transaction",
|
||||
"pluralName": "point-transactions",
|
||||
"displayName": "PointTransaction",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"Enumeration": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"add",
|
||||
"subtract",
|
||||
"adjust"
|
||||
]
|
||||
},
|
||||
"amount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"users_permissions_users": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "plugin::users-permissions.user"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/api/point-transaction/controllers/point-transaction.ts
Executable file
7
src/api/point-transaction/controllers/point-transaction.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-transaction controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::point-transaction.point-transaction');
|
||||
7
src/api/point-transaction/routes/point-transaction.ts
Executable file
7
src/api/point-transaction/routes/point-transaction.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-transaction router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::point-transaction.point-transaction');
|
||||
7
src/api/point-transaction/services/point-transaction.ts
Executable file
7
src/api/point-transaction/services/point-transaction.ts
Executable file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* point-transaction service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::point-transaction.point-transaction');
|
||||
0
src/extensions/.gitkeep
Executable file
0
src/extensions/.gitkeep
Executable file
18
src/index.ts
Executable file
18
src/index.ts
Executable file
@ -0,0 +1,18 @@
|
||||
export default {
|
||||
/**
|
||||
* 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 }*/) {},
|
||||
};
|
||||
Reference in New Issue
Block a user