Socket
Socket
Sign inDemoInstall

@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 9.4.2 to 9.4.3

install/public_source/ts/package.json

8

CHANGELOG.md

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

### [9.4.3](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v9.4.2...v9.4.3) (2022-08-25)
### Bug Fixes
* create page with proper weight ([306bfd4](https://gitlab.com/kohana-js/proposals/level0/mod-cms/commit/306bfd4ff0d46cc06f16d9c770df204e4966f5c7))
* missing file extension after upload file ([d31f7ab](https://gitlab.com/kohana-js/proposals/level0/mod-cms/commit/d31f7ab9232bfc8d8028d6bbcf00fb2c25cd249f))
### [9.4.2](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v9.4.1...v9.4.2) (2022-08-05)

@@ -7,0 +15,0 @@

0

classes/controller/admin/API.js

@@ -0,0 +0,0 @@ const {SQL} = require('@kohanajs/constants');

16

classes/controller/admin/Content.js

@@ -1,3 +0,3 @@

const path = require('path');
const {readFile} = require('fs').promises;
const path = require('node:path');
const {readFile} = require('node:fs').promises;
const pluralize = require('pluralize');

@@ -45,4 +45,4 @@ const {ControllerMixinMultipartForm, HelperForm} = require("@kohanajs/mod-form");

Object.assign(
this.state.get(ControllerMixinView.TEMPLATE).data,
{ items, page_type }
this.state.get(ControllerMixinView.TEMPLATE).data,
{ items, page_type }
);

@@ -54,2 +54,3 @@ }

const page_type = this.request.params['page_type'];
const weight = await ORM.countBy(Page, 'page_type', [page_type], {database});

@@ -61,2 +62,3 @@ const insertID = ORMAdapter.defaultID();

page.slug = String(insertID);
page.weight = weight + 1;
await page.write();

@@ -76,5 +78,5 @@

const data = text
.replace(/^\uFEFF/, '')
.replaceAll('\r\n', '\n')
.split('\n');
.replace(/^\uFEFF/, '')
.replaceAll('\r\n', '\n')
.split('\n');
const headers = data.shift().split('\t').map(it => it.toLowerCase());

@@ -81,0 +83,0 @@

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

@@ -0,0 +0,0 @@ const {ControllerMixinDatabase, ControllerMixinView, KohanaJS, ORM} = require("kohanajs");

@@ -0,0 +0,0 @@ const {KohanaJS, ORM} = require("kohanajs");

@@ -61,3 +61,3 @@ const path = require('path');

const uploadPath = `${dateFolder}/${fileField.tmpName}-${fileField.filename.replace(/[^a-z0-9-_]/gi, "")}`;
const uploadPath = `${dateFolder}/${fileField.tmpName}-${fileField.filename.replace(/[^a-z0-9-_.]/gi, "")}`;
await copyFile(fileField.tmp, path.normalize(uploadFolder + '/' + uploadPath));

@@ -64,0 +64,0 @@ await unlink(fileField.tmp);

@@ -0,0 +0,0 @@ class HelperPageText{

@@ -0,0 +0,0 @@ const { KohanaJS } = require('kohanajs');

@@ -0,0 +0,0 @@ require("@kohanajs/mod-admin");

@@ -0,0 +0,0 @@ const {KohanaJS} = require('kohanajs')

@@ -0,0 +0,0 @@ (fn => (document.readyState !== 'loading') ? fn() : document.addEventListener('DOMContentLoaded', fn))(()=>{

@@ -0,0 +0,0 @@ export default class MediaPort{

@@ -1,17 +0,21 @@

import ScrollBack from '../../../classes/Scrollback.mjs';
import HelperPage from "../../../classes/helper/Page.mjs";
import MediaPort from "../../../classes/MediaPort";
ScrollBack.restoreScroll();
ScrollBack.saveOnSubmit(document.getElementById('main-form'));
HelperPage.enableAutoSave();
HelperPage.enablePointers();
//HelperPage.enablePointers();
HelperPage.enableBlock();
HelperPage.enablePageTag();
MediaPort.enableUpload('https://mediaport.dappod.com/upload', {
apiKey : 'occadmin',
const apiKey = {
'admin.example.com' : 'api-name',
}
const uploadURL = {
'admin.example.com' : 'https://mediaport.dappod.com/upload',
}
MediaPort.enableUpload(uploadURL[window.location.hostname] || '/admin/upload', {
apiKey : apiKey[window.location.hostname] || 'default',
dir : 'cms',
previewUrl : 'https://www-admin.occasionspr.com/'
previewUrl : window.location.origin + '/'
});

@@ -25,3 +29,4 @@

plugins: 'code',
toolbar: 'undo redo bold italic code',
toolbar: 'undo redo bold italic removeformat code',
paste_as_text: true
}).then();

@@ -0,0 +0,0 @@ import HelperPage from "../../../classes/helper/Page.mjs";

@@ -0,0 +0,0 @@ const path = require('path');

{
"name": "@kohanajs/mod-cms",
"version": "9.4.2",
"version": "9.4.3",
"description": "The CMS module for KohanaJS",

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

# mod-cms
CMS module support multi-language content

@@ -0,0 +0,0 @@ const { RouteList } = require('@kohanajs/mod-route');

@@ -0,0 +0,0 @@ const path = require('path');

@@ -0,0 +0,0 @@ {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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