Upgrade to 4.1.0
This commit is contained in:
2
kirby/panel/dist/css/style.min.css
vendored
2
kirby/panel/dist/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
2
kirby/panel/dist/img/icons.svg
vendored
2
kirby/panel/dist/img/icons.svg
vendored
@@ -77,7 +77,7 @@
|
||||
<path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z"/>
|
||||
</symbol>
|
||||
<symbol id="icon-cancel-small" viewBox="0 0 24 24">
|
||||
<path d="M 12 10.5858 L 14.8284 7.75736 L 16.242599 9.17157 L 13.4142 12 L 16.242599 14.8284 L 14.8284 16.242599 L 12 13.4142 L 9.17157 16.242599 L 7.75736 14.8284 L 10.5858 12 L 7.75736 9.17157 L 9.17157 7.75736 Z"/>
|
||||
<path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-car" viewBox="0 0 24 24">
|
||||
<path d="M19 20H5V21C5 21.5523 4.55228 22 4 22H3C2.44772 22 2 21.5523 2 21V11L4.4805 5.21216C4.79566 4.47679 5.51874 4 6.31879 4H17.6812C18.4813 4 19.2043 4.47679 19.5195 5.21216L22 11V21C22 21.5523 21.5523 22 21 22H20C19.4477 22 19 21.5523 19 21V20ZM20 13H4V18H20V13ZM4.17594 11H19.8241L17.6812 6H6.31879L4.17594 11ZM6.5 17C5.67157 17 5 16.3284 5 15.5C5 14.6716 5.67157 14 6.5 14C7.32843 14 8 14.6716 8 15.5C8 16.3284 7.32843 17 6.5 17ZM17.5 17C16.6716 17 16 16.3284 16 15.5C16 14.6716 16.6716 14 17.5 14C18.3284 14 19 14.6716 19 15.5C19 16.3284 18.3284 17 17.5 17Z"/>
|
||||
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
2
kirby/panel/dist/js/Highlight.min.js
vendored
2
kirby/panel/dist/js/Highlight.min.js
vendored
File diff suppressed because one or more lines are too long
8
kirby/panel/dist/js/PlaygroundView.min.js
vendored
8
kirby/panel/dist/js/PlaygroundView.min.js
vendored
File diff suppressed because one or more lines are too long
8
kirby/panel/dist/js/index.min.js
vendored
8
kirby/panel/dist/js/index.min.js
vendored
File diff suppressed because one or more lines are too long
2
kirby/panel/dist/js/plugins.js
vendored
2
kirby/panel/dist/js/plugins.js
vendored
@@ -20,7 +20,7 @@ window.panel.plugin = function (plugin, extensions) {
|
||||
}
|
||||
|
||||
window.panel.plugins.components[`k-block-type-${name}`] = {
|
||||
extends: "k-block-type",
|
||||
extends: "k-block-type-default",
|
||||
...options
|
||||
};
|
||||
});
|
||||
|
6
kirby/panel/dist/js/vendor.min.js
vendored
6
kirby/panel/dist/js/vendor.min.js
vendored
File diff suppressed because one or more lines are too long
6
kirby/panel/dist/js/vue.min.js
vendored
6
kirby/panel/dist/js/vue.min.js
vendored
File diff suppressed because one or more lines are too long
95
kirby/panel/vite.config.mjs
Normal file
95
kirby/panel/vite.config.mjs
Normal file
@@ -0,0 +1,95 @@
|
||||
/* eslint-env node */
|
||||
import path from "path";
|
||||
|
||||
import { defineConfig, splitVendorChunkPlugin } from "vite";
|
||||
import vue from "@vitejs/plugin-vue2";
|
||||
import { viteStaticCopy } from "vite-plugin-static-copy";
|
||||
import externalGlobals from "rollup-plugin-external-globals";
|
||||
import kirby from "./scripts/vite-kirby.mjs";
|
||||
|
||||
let customServer;
|
||||
try {
|
||||
customServer = require("./vite.config.custom.js");
|
||||
} catch (err) {
|
||||
customServer = {};
|
||||
}
|
||||
|
||||
export default defineConfig(({ command }) => {
|
||||
// gather plugins depending on environment
|
||||
const plugins = [vue(), splitVendorChunkPlugin(), kirby()];
|
||||
|
||||
if (command === "build") {
|
||||
plugins.push(
|
||||
viteStaticCopy({
|
||||
targets: [
|
||||
{
|
||||
src: "node_modules/vue/dist/vue.min.js",
|
||||
dest: "js"
|
||||
}
|
||||
]
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
if (!process.env.VITEST) {
|
||||
plugins.push(
|
||||
// Externalize Vue so it's not loaded from node_modules
|
||||
// but accessed via window.Vue
|
||||
{
|
||||
...externalGlobals({ vue: "Vue" }),
|
||||
enforce: "post"
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const proxy = {
|
||||
target: process.env.VUE_APP_DEV_SERVER ?? "http://sandbox.test",
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
};
|
||||
|
||||
return {
|
||||
plugins,
|
||||
define: {
|
||||
// Fix vuelidate error
|
||||
"process.env.BUILD": JSON.stringify("production")
|
||||
},
|
||||
base: "./",
|
||||
build: {
|
||||
minify: "terser",
|
||||
cssCodeSplit: false,
|
||||
rollupOptions: {
|
||||
input: "./src/index.js",
|
||||
output: {
|
||||
entryFileNames: "js/[name].min.js",
|
||||
chunkFileNames: "js/[name].min.js",
|
||||
assetFileNames: "[ext]/[name].min.[ext]"
|
||||
}
|
||||
}
|
||||
},
|
||||
optimizeDeps: {
|
||||
entries: "src/**/*.{js,vue}",
|
||||
exclude: ["vitest", "vue"]
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "src")
|
||||
}
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
"/api": proxy,
|
||||
"/env": proxy,
|
||||
"/media": proxy
|
||||
},
|
||||
open: proxy.target + "/panel",
|
||||
port: 3000,
|
||||
...customServer
|
||||
},
|
||||
test: {
|
||||
environment: "node",
|
||||
include: ["**/*.test.js"],
|
||||
setupFiles: ["vitest.setup.js"]
|
||||
}
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user