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 7.1.0 to 7.1.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [7.1.1](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v7.1.0...v7.1.1) (2022-04-07)
### Bug Fixes
* sorting blocks and items ([9a4389a](https://gitlab.com/kohana-js/proposals/level0/mod-cms/commit/9a4389ac9568c3a8b01575210375319877c79877))
## [7.1.0](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v7.0.2...v7.1.0) (2022-03-24)

@@ -7,0 +14,0 @@

20

classes/controller/admin/Page.js

@@ -106,2 +106,20 @@ const { ControllerAdmin } = require('@kohanajs/mod-admin');

//assign item index as item key
Object.keys(page.print.tokens).forEach(token =>{
if(Array.isArray(page.print.tokens[token])){
page.print.tokens[token].forEach((it, i) => it._key = i);
}
})
//assign block index as block key, block item index as block item key
page.print.blocks.forEach((block, i) =>{
block._weight = block.tokens._weight;
block._key ||= i;
Object.keys(block.tokens).forEach(token => {
if(Array.isArray(block.tokens[token])){
block.tokens[token].forEach((it, i) => it._key = i);
}
})
})
templateData.tokens = page.print.tokens;

@@ -207,3 +225,3 @@ templateData.blocks = page.print.blocks;

defaultItem.attributes._weight = original.items[itemName].length || 1;
defaultItem.attributes._weight = original.items[itemName].length;
original.items[itemName].push(defaultItem);

@@ -210,0 +228,0 @@

2

package.json
{
"name": "@kohanajs/mod-cms",
"version": "7.1.0",
"version": "7.1.1",
"description": "The CMS module for KohanaJS",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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