Upgrade to 3.6.1
This commit is contained in:
@@ -2,29 +2,21 @@ module.exports = {
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:cypress/recommended",
|
||||
"plugin:vue/recommended"
|
||||
"plugin:vue/recommended",
|
||||
"prettier"
|
||||
],
|
||||
rules: {
|
||||
"vue/component-definition-name-casing": "off",
|
||||
"vue/require-default-prop": "off",
|
||||
"vue/attributes-order": "error",
|
||||
"vue/require-prop-types": "error",
|
||||
"vue/max-attributes-per-line": [
|
||||
"error",
|
||||
{
|
||||
"singleline": 3,
|
||||
"multiline": {
|
||||
"max": 1,
|
||||
"allowFirstLine": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"vue/component-definition-name-casing": "off",
|
||||
"vue/html-closing-bracket-newline": [
|
||||
"error",
|
||||
{
|
||||
"singleline": "never",
|
||||
"multiline": "always"
|
||||
singleline: "never",
|
||||
multiline: "always"
|
||||
}
|
||||
]
|
||||
],
|
||||
"vue/multi-word-component-names": "off",
|
||||
"vue/require-default-prop": "off",
|
||||
"vue/require-prop-types": "error"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
3
kirby/panel/.prettierrc.json
Executable file
3
kirby/panel/.prettierrc.json
Executable file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"trailingComma": "none"
|
||||
}
|
2
kirby/panel/dist/css/style.css
vendored
2
kirby/panel/dist/css/style.css
vendored
File diff suppressed because one or more lines are too long
2
kirby/panel/dist/js/index.js
vendored
2
kirby/panel/dist/js/index.js
vendored
File diff suppressed because one or more lines are too long
34
kirby/panel/dist/js/plugins.js
vendored
34
kirby/panel/dist/js/plugins.js
vendored
@@ -1,4 +1,3 @@
|
||||
|
||||
window.panel = window.panel || {};
|
||||
window.panel.plugins = {
|
||||
components: {},
|
||||
@@ -17,7 +16,7 @@ window.panel.plugin = function (plugin, parts) {
|
||||
options = { template: options };
|
||||
}
|
||||
|
||||
window.panel.plugins["components"][`k-block-type-${name}`] = {
|
||||
window.panel.plugins.components[`k-block-type-${name}`] = {
|
||||
extends: "k-block-type",
|
||||
...options
|
||||
};
|
||||
@@ -25,35 +24,35 @@ window.panel.plugin = function (plugin, parts) {
|
||||
|
||||
// Components
|
||||
resolve(parts, "components", function (name, options) {
|
||||
window.panel.plugins["components"][name] = options;
|
||||
window.panel.plugins.components[name] = options;
|
||||
});
|
||||
|
||||
// Fields
|
||||
resolve(parts, "fields", function (name, options) {
|
||||
window.panel.plugins["components"][`k-${name}-field`] = options;
|
||||
window.panel.plugins.components[`k-${name}-field`] = options;
|
||||
});
|
||||
|
||||
// Icons
|
||||
resolve(parts, "icons", function (name, options) {
|
||||
window.panel.plugins["icons"][name] = options;
|
||||
window.panel.plugins.icons[name] = options;
|
||||
});
|
||||
|
||||
// Sections
|
||||
resolve(parts, "sections", function (name, options) {
|
||||
window.panel.plugins["components"][`k-${name}-section`] = {
|
||||
window.panel.plugins.components[`k-${name}-section`] = {
|
||||
...options,
|
||||
mixins: ["section"].concat(options.mixins || [])
|
||||
mixins: ["section", ...(options.mixins || [])]
|
||||
};
|
||||
});
|
||||
|
||||
// Vue.use
|
||||
// `Vue.use`
|
||||
resolve(parts, "use", function (name, options) {
|
||||
window.panel.plugins["use"].push(options);
|
||||
window.panel.plugins.use.push(options);
|
||||
});
|
||||
|
||||
// created callback
|
||||
// Vue `created` callback
|
||||
if (parts["created"]) {
|
||||
window.panel.plugins["created"].push(parts["created"]);
|
||||
window.panel.plugins.created.push(parts["created"]);
|
||||
}
|
||||
|
||||
// Login
|
||||
@@ -62,20 +61,15 @@ window.panel.plugin = function (plugin, parts) {
|
||||
}
|
||||
|
||||
// Third-party plugins
|
||||
resolve(parts, "thirdParty", function(name, options) {
|
||||
window.panel.plugins["thirdParty"][name] = options;
|
||||
resolve(parts, "thirdParty", function (name, options) {
|
||||
window.panel.plugins.thirdParty[name] = options;
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
function resolve(object, type, callback) {
|
||||
if (object[type]) {
|
||||
|
||||
if (Object.entries) {
|
||||
Object.entries(object[type]).forEach(function ([name, options]) {
|
||||
callback(name, options);
|
||||
});
|
||||
for (const [name, options] of Object.entries(object[type])) {
|
||||
callback(name, options);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -1,3 +1,4 @@
|
||||
/* eslint-env node */
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { defineConfig } from "vite";
|
||||
@@ -24,7 +25,7 @@ export default defineConfig(({ command }) => {
|
||||
|
||||
// Delete the flag file on any kind of exit
|
||||
for (const eventType of ["exit", "SIGINT", "uncaughtException"]) {
|
||||
process.on(eventType, function(err) {
|
||||
process.on(eventType, function (err) {
|
||||
if (fs.existsSync(runningPath) === true) {
|
||||
fs.unlinkSync(runningPath);
|
||||
}
|
||||
|
Reference in New Issue
Block a user