Upgrade to 4.0.0
This commit is contained in:
1
kirby/panel/dist/js/Docs.min.js
vendored
Normal file
1
kirby/panel/dist/js/Docs.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
kirby/panel/dist/js/DocsView.min.js
vendored
Normal file
1
kirby/panel/dist/js/DocsView.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import{D as t}from"./Docs.min.js";import{n as s}from"./index.min.js";import"./vendor.min.js";const o=s({components:{"k-lab-docs":t},props:{component:String,docs:Object,lab:String},mounted(){},methods:{reloadDocs(){this.$panel.view.refresh()}}},(function(){var t=this,s=t._self._c;return s("k-panel-inside",{staticClass:"k-lab-docs-view"},[s("k-header",[t._v(" "+t._s(t.component)+" "),t.docs.github||t.lab?s("k-button-group",{attrs:{slot:"buttons"},slot:"buttons"},[t.lab?s("k-button",{attrs:{icon:"lab",text:"Lab examples",size:"sm",variant:"filled",link:"/lab/"+t.lab}}):t._e(),t.docs.github?s("k-button",{attrs:{icon:"github",size:"sm",variant:"filled",link:t.docs.github,target:"_blank"}}):t._e()],1):t._e()],1),s("k-lab-docs",t._b({},"k-lab-docs",t.docs,!1))],1)}),[],!1,null,null,null,null).exports;export{o as default};
|
1
kirby/panel/dist/js/Highlight.min.js
vendored
Normal file
1
kirby/panel/dist/js/Highlight.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
kirby/panel/dist/js/IndexView.min.js
vendored
Normal file
1
kirby/panel/dist/js/IndexView.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import{n as e}from"./index.min.js";import"./vendor.min.js";const t=e({props:{categories:Array,info:String,tab:String}},(function(){var e=this,t=e._self._c;return t("k-panel-inside",{staticClass:"k-lab-index-view"},[t("k-header",[e._v("Lab")]),t("k-tabs",{attrs:{tab:e.tab,tabs:[{name:"examples",label:"Examples",link:"/lab"},{name:"docs",label:"Docs",link:"/lab/docs"}]}}),e.info?t("k-box",{attrs:{icon:"question",theme:"info",text:e.info,html:!0}}):e._e(),e._l(e.categories,(function(e){return t("k-section",{key:e.name,attrs:{headline:e.name}},[t("k-collection",{attrs:{items:e.examples,empty:{icon:e.icon,text:"Add examples to "+e.path}}})],1)}))],2)}),[],!1,null,null,null,null).exports;export{t as default};
|
1
kirby/panel/dist/js/PlaygroundView.min.js
vendored
Normal file
1
kirby/panel/dist/js/PlaygroundView.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
kirby/panel/dist/js/container-query-polyfill.modern.min.js
vendored
Normal file
1
kirby/panel/dist/js/container-query-polyfill.modern.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
kirby/panel/dist/js/index.js
vendored
1
kirby/panel/dist/js/index.js
vendored
File diff suppressed because one or more lines are too long
1
kirby/panel/dist/js/index.min.js
vendored
Normal file
1
kirby/panel/dist/js/index.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
138
kirby/panel/dist/js/plugins.js
vendored
138
kirby/panel/dist/js/plugins.js
vendored
@@ -1,75 +1,91 @@
|
||||
window.panel = window.panel || {};
|
||||
window.panel = window.panel ?? {};
|
||||
window.panel.plugins = {
|
||||
components: {},
|
||||
created: [],
|
||||
icons: {},
|
||||
routes: [],
|
||||
use: [],
|
||||
views: {},
|
||||
thirdParty: {}
|
||||
components: {},
|
||||
created: [],
|
||||
icons: {},
|
||||
routes: [],
|
||||
textareaButtons: {},
|
||||
thirdParty: {},
|
||||
use: [],
|
||||
views: {},
|
||||
writerMarks: {},
|
||||
writerNodes: {}
|
||||
};
|
||||
|
||||
window.panel.plugin = function (plugin, parts) {
|
||||
// Blocks
|
||||
resolve(parts, "blocks", function (name, options) {
|
||||
if (typeof options === "string") {
|
||||
options = { template: options };
|
||||
}
|
||||
window.panel.plugin = function (plugin, extensions) {
|
||||
// Blocks
|
||||
resolve(extensions, "blocks", (name, options) => {
|
||||
if (typeof options === "string") {
|
||||
options = { template: options };
|
||||
}
|
||||
|
||||
window.panel.plugins.components[`k-block-type-${name}`] = {
|
||||
extends: "k-block-type",
|
||||
...options
|
||||
};
|
||||
});
|
||||
window.panel.plugins.components[`k-block-type-${name}`] = {
|
||||
extends: "k-block-type",
|
||||
...options
|
||||
};
|
||||
});
|
||||
|
||||
// Components
|
||||
resolve(parts, "components", function (name, options) {
|
||||
window.panel.plugins.components[name] = options;
|
||||
});
|
||||
// Components
|
||||
resolve(extensions, "components", (name, options) => {
|
||||
window.panel.plugins.components[name] = options;
|
||||
});
|
||||
|
||||
// Fields
|
||||
resolve(parts, "fields", function (name, options) {
|
||||
window.panel.plugins.components[`k-${name}-field`] = options;
|
||||
});
|
||||
// Fields
|
||||
resolve(extensions, "fields", (name, options) => {
|
||||
window.panel.plugins.components[`k-${name}-field`] = options;
|
||||
});
|
||||
|
||||
// Icons
|
||||
resolve(parts, "icons", function (name, options) {
|
||||
window.panel.plugins.icons[name] = options;
|
||||
});
|
||||
// Icons
|
||||
resolve(extensions, "icons", (name, options) => {
|
||||
window.panel.plugins.icons[name] = options;
|
||||
});
|
||||
|
||||
// Sections
|
||||
resolve(parts, "sections", function (name, options) {
|
||||
window.panel.plugins.components[`k-${name}-section`] = {
|
||||
...options,
|
||||
mixins: ["section", ...(options.mixins || [])]
|
||||
};
|
||||
});
|
||||
// Sections
|
||||
resolve(extensions, "sections", (name, options) => {
|
||||
window.panel.plugins.components[`k-${name}-section`] = {
|
||||
...options,
|
||||
mixins: ["section", ...(options.mixins ?? [])]
|
||||
};
|
||||
});
|
||||
|
||||
// `Vue.use`
|
||||
resolve(parts, "use", function (name, options) {
|
||||
window.panel.plugins.use.push(options);
|
||||
});
|
||||
// `Vue.use`
|
||||
resolve(extensions, "use", (name, options) => {
|
||||
window.panel.plugins.use.push(options);
|
||||
});
|
||||
|
||||
// Vue `created` callback
|
||||
if (parts["created"]) {
|
||||
window.panel.plugins.created.push(parts["created"]);
|
||||
}
|
||||
// Vue `created` callback
|
||||
if (extensions["created"]) {
|
||||
window.panel.plugins.created.push(extensions["created"]);
|
||||
}
|
||||
|
||||
// Login
|
||||
if (parts.login) {
|
||||
window.panel.plugins.login = parts.login;
|
||||
}
|
||||
// Login
|
||||
if (extensions.login) {
|
||||
window.panel.plugins.login = extensions.login;
|
||||
}
|
||||
|
||||
// Third-party plugins
|
||||
resolve(parts, "thirdParty", function (name, options) {
|
||||
window.panel.plugins.thirdParty[name] = options;
|
||||
});
|
||||
// Textarea custom toolbar buttons
|
||||
resolve(extensions, "textareaButtons", (name, options) => {
|
||||
window.panel.plugins.textareaButtons[name] = options;
|
||||
});
|
||||
|
||||
// Third-party plugins
|
||||
resolve(extensions, "thirdParty", (name, options) => {
|
||||
window.panel.plugins.thirdParty[name] = options;
|
||||
});
|
||||
|
||||
// Writer custom marks
|
||||
resolve(extensions, "writerMarks", (name, options) => {
|
||||
window.panel.plugins.writerMarks[name] = options;
|
||||
});
|
||||
|
||||
// Writer custom nodes
|
||||
resolve(extensions, "writerNodes", function (name, options) {
|
||||
window.panel.plugins.writerNodes[name] = options;
|
||||
});
|
||||
};
|
||||
|
||||
function resolve(object, type, callback) {
|
||||
if (object[type]) {
|
||||
for (const [name, options] of Object.entries(object[type])) {
|
||||
callback(name, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
const resolve = (extensions, type, callback) => {
|
||||
for (const [name, options] of Object.entries(extensions[type] ?? {})) {
|
||||
callback(name, options);
|
||||
}
|
||||
};
|
||||
|
6
kirby/panel/dist/js/vendor.js
vendored
6
kirby/panel/dist/js/vendor.js
vendored
File diff suppressed because one or more lines are too long
16
kirby/panel/dist/js/vendor.min.js
vendored
Normal file
16
kirby/panel/dist/js/vendor.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
11
kirby/panel/dist/js/vue.js
vendored
11
kirby/panel/dist/js/vue.js
vendored
File diff suppressed because one or more lines are too long
11
kirby/panel/dist/js/vue.min.js
vendored
Normal file
11
kirby/panel/dist/js/vue.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user