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

q42-cms-components

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

q42-cms-components - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

25

cms.js

@@ -26,3 +26,2 @@ require('./resources/icomoon/style.css');

import { statusStore } from './tools/status-store.js';
import { editorComponents } from './tools/editor-components.js';

@@ -39,9 +38,6 @@ export const routeComponent = doc((path, component) => {

export const runCms = doc((extraEditorComponents, withRouter = () => {}) => {
for (var name in extraEditorComponents)
editorComponents[name] = extraEditorComponents[name];
export const runCms = doc(() => {
routeComponent('/assets', require('./assets/assets.vue'));
routeComponent('/pages', require('./pages/pages.vue'));
routeComponent('/cms-docs', require('./docs/docs.vue'))
routeComponent('/cms-docs', require('./docs/docs.vue'));

@@ -52,4 +48,2 @@ router.redirect({

withRouter(router);
// Inject alerter

@@ -65,17 +59,10 @@ var routerViewEl = document.querySelector("router-view");

window.setInterval(() => {
statusStore.ping()
statusStore.ping();
}, 5 * 60 * 1000);
}, `Start het CMS. <code>extraEditorComponents</code> is een map van <code>$type</code> waardes naar componenten.
Het component moet de formuliervelden van een pagina of cms-item met dat <code>$type</code> genereren.
<code>$type</code> waardes bevatten de namespace en de assembly, bijv:
<code>'Q42.Example.Cms.Domain.Shop, Q42.Cms.Domain'</code>. By default worden de formuliervelden
automatisch gegenereerd.`);
export const runCmsOnLoad = doc((extraEditorComponents, withRouter = () => {}) => {
for (var name in extraEditorComponents)
editorComponents[name] = extraEditorComponents[name];
}, `Start het CMS.`);
document.addEventListener("DOMContentLoaded", () => runCms({}, withRouter));
export const runCmsOnLoad = doc(() => {
document.addEventListener("DOMContentLoaded", runCms);
}, `Start <code>runCms</code> op het <code>DOMContentLoaded</code> event. Hiermee kan je <code>q42-cms-components</code>
requiren in een script die in de <code>&lt;head></code> staat.`)
{
"name": "q42-cms-components",
"version": "0.1.1",
"version": "0.2.0",
"devDependencies": {

@@ -5,0 +5,0 @@ "autoprefixer": "^6.3.6",

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