Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kohanajs/mod-cms

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kohanajs/mod-cms - npm Package Compare versions

Comparing version 5.4.3 to 6.0.0

routes.js

9

CHANGELOG.md

@@ -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 @@

1

classes/controller/admin/Page.js

@@ -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);

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc