-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d1085d
commit 127fcb9
Showing
27 changed files
with
22,339 additions
and
12,020 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "colums", | ||
"info": { | ||
"singularName": "colum", | ||
"pluralName": "colums", | ||
"displayName": "colum" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"column": { | ||
"type": "string", | ||
"required": true, | ||
"unique": true | ||
}, | ||
"articles": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::article.article", | ||
"mappedBy": "columId" | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
backend/src/api/post/controllers/post.js → backend/src/api/colum/controllers/colum.js
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,9 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* post controller | ||
* colum controller | ||
*/ | ||
|
||
const { createCoreController } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreController('api::post.post'); | ||
module.exports = createCoreController('api::colum.colum'); |
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
4 changes: 2 additions & 2 deletions
4
backend/src/api/nav/routes/nav.js → backend/src/api/colum/routes/colum.js
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,9 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* nav router | ||
* colum router | ||
*/ | ||
|
||
const { createCoreRouter } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreRouter('api::nav.nav'); | ||
module.exports = createCoreRouter('api::colum.colum'); |
4 changes: 2 additions & 2 deletions
4
backend/src/api/post/services/post.js → backend/src/api/colum/services/colum.js
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,9 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* post service | ||
* colum service | ||
*/ | ||
|
||
const { createCoreService } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreService('api::post.post'); | ||
module.exports = createCoreService('api::colum.colum'); |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"kind": "singleType", | ||
"collectionName": "globals", | ||
"info": { | ||
"singularName": "global", | ||
"pluralName": "globals", | ||
"displayName": "global", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"gadgets": { | ||
"type": "component", | ||
"repeatable": false, | ||
"component": "layouts.gadgets", | ||
"required": true | ||
}, | ||
"favicon": { | ||
"type": "text", | ||
"unique": true, | ||
"required": true | ||
}, | ||
"siteName": { | ||
"type": "string", | ||
"required": true, | ||
"unique": true | ||
}, | ||
"navs": { | ||
"type": "component", | ||
"repeatable": true, | ||
"component": "layouts.navs", | ||
"required": true | ||
}, | ||
"links": { | ||
"type": "component", | ||
"repeatable": true, | ||
"component": "layouts.links", | ||
"required": true | ||
}, | ||
"ads": { | ||
"type": "component", | ||
"repeatable": true, | ||
"component": "layouts.ads", | ||
"required": true | ||
}, | ||
"footers": { | ||
"type": "component", | ||
"repeatable": true, | ||
"component": "layouts.footers" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
/** | ||
* global controller | ||
*/ | ||
|
||
const { createCoreController } = require('@strapi/strapi').factories; | ||
|
||
module.exports = createCoreController('api::global.global'); |
Oops, something went wrong.