@kohanajs/mod-cms
Advanced tools
Comparing version 5.4.3 to 6.0.0
@@ -5,2 +5,11 @@ # Changelog | ||
## [6.0.0](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v5.4.3...v6.0.0) (2022-03-09) | ||
### ⚠ BREAKING CHANGES | ||
* add require sequence in index.js and routes.js | ||
* add require sequence in index.js and routes.js ([1641984](https://gitlab.com/kohana-js/proposals/level0/mod-cms/commit/16419845c46e8a86b6dd5df698952a59ea7b2600)) | ||
### [5.4.3](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v5.4.2...v5.4.3) (2022-03-03) | ||
@@ -7,0 +16,0 @@ |
@@ -102,3 +102,2 @@ const {SQL} = require("@kohanajs/constants"); | ||
its.forEach(it => { | ||
console.log(it.weight); | ||
obj.items[it.name] = obj.items[it.name] || []; | ||
@@ -105,0 +104,0 @@ const item = JSON.parse(i18nValueJSON); |
31
index.js
@@ -0,4 +1,4 @@ | ||
require("@kohanajs/mod-admin"); | ||
require("@kohanajs/mod-language"); | ||
require('kohanajs').addNodeModule(__dirname); | ||
const { RouteList } = require('@kohanajs/mod-route'); | ||
const { HelperCRUD: RouteCRUD } = require('@kohanajs/mod-admin'); | ||
@@ -17,29 +17,2 @@ const ControllerAdminPage = require('./classes/controller/admin/Page'); | ||
HelperPage, | ||
routes : { | ||
apply: ()=>{ | ||
RouteList.add('/admin/pages/add-block/:page_id/:block_name', 'controller/admin/Page', 'add_block'); | ||
RouteList.add('/admin/pages/delete-block/:block_id', 'controller/admin/Page', 'delete_block'); | ||
RouteList.add('/admin/pages/add-block-item/:block_id/:item_name', 'controller/admin/Page', 'add_block_item'); | ||
RouteList.add('/admin/pages/delete-block-item/:item_id', 'controller/admin/Page', 'delete_block_item'); | ||
RouteList.add('/admin/pages/add-item/:page_id/:item_name', 'controller/admin/Page', 'add_item'); | ||
RouteList.add('/admin/pages/delete-item/:item_id', 'controller/admin/Page', 'delete_item'); | ||
RouteList.add('/admin/pages/un-publish/:id', 'controller/admin/Page', 'unpublish'); | ||
RouteList.add('/admin/contents/list/:page_type', 'controller/admin/Content'); | ||
RouteList.add('/admin/contents/create/:page_type', 'controller/admin/Content', 'create_by_type'); | ||
RouteCRUD.add('pages', 'controller/admin/Page'); | ||
RouteCRUD.add('tag_types', 'controller/admin/TagType'); | ||
RouteCRUD.add('tags', 'controller/admin/Tag'); | ||
RouteList.add('/admin/api', 'controller/admin/API'); | ||
RouteList.add('/admin/api/page-items/:page_type/:item', 'controller/admin/API', 'page_items'); | ||
RouteList.add('/admin/api/pages/:type', 'controller/admin/API', 'pages'); | ||
RouteList.add('/admin/api/tags/:type', 'controller/admin/API', 'tags'); | ||
RouteList.add('/admin/api/page/:page_id/tag/:tag_id', 'controller/admin/API', 'add_page_tag', 'POST'); | ||
RouteList.add('/admin/api/page_tag/:id', 'controller/admin/API', 'delete_page_tag', 'DELETE'); | ||
} | ||
} | ||
}; |
{ | ||
"name": "@kohanajs/mod-cms", | ||
"version": "5.4.3", | ||
"version": "6.0.0", | ||
"description": "The CMS module for KohanaJS", | ||
@@ -26,3 +26,7 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://gitlab.com/kohana-js/proposals/level0/mod-cms#readme" | ||
"homepage": "https://gitlab.com/kohana-js/proposals/level0/mod-cms#readme", | ||
"dependencies": { | ||
"@kohanajs/mod-admin": "5.0.0", | ||
"@kohanajs/mod-language": "^1.0.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64730
34
2
1403
+ Added@kohanajs/mod-admin@5.0.0
+ Added@kohanajs/constants@1.1.0(transitive)
+ Added@kohanajs/mixin-orm@3.3.3(transitive)
+ Added@kohanajs/mod-admin@5.0.0(transitive)
+ Added@kohanajs/mod-auth@3.3.0(transitive)
+ Added@kohanajs/mod-language@1.0.1(transitive)
+ Addedcamelize@1.0.1(transitive)
+ Addeddecamelize@5.0.1(transitive)