From cbbed6346a437e6b9f05f646f1df0c77d2fb36eb Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sat, 4 Jun 2022 22:40:48 +0200 Subject: Migrate to VueJS 3 --- src/main.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/main.js') diff --git a/src/main.js b/src/main.js index e5995a4..164d290 100644 --- a/src/main.js +++ b/src/main.js @@ -1,19 +1,13 @@ -import Vue from "vue"; +import { createApp, h } from "vue"; import App from "./App.vue"; -import "./registerServiceWorker"; import "@fortawesome/fontawesome-free/css/all.css"; - import "./assets/app.scss"; -Vue.config.productionTip = false; +const app = createApp(App); -Vue.component("DynamicStyle", { - render: function (createElement) { - return createElement("style", this.$slots.default); - }, +app.component("DynamicStyle", (_props, context) => { + return h("style", {}, context.slots); }); -new Vue({ - render: (h) => h(App), -}).$mount("#app"); +app.mount("#app"); -- cgit v1.2.3 From eb030922866f1e753162d99ea6b25a4f4e941b05 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Tue, 12 Jul 2022 14:07:10 +0200 Subject: Fix theming issue & subfolder hosting --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.js') diff --git a/src/main.js b/src/main.js index 164d290..a1d7b47 100644 --- a/src/main.js +++ b/src/main.js @@ -10,4 +10,4 @@ app.component("DynamicStyle", (_props, context) => { return h("style", {}, context.slots); }); -app.mount("#app"); +app.mount("#app-mount"); -- cgit v1.2.3