Skip to content

Commit

Permalink
Swap entrypoint to createApp
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Nov 13, 2023
1 parent 306aab4 commit 2a2659b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions client/src/entry/analysis/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createPinia, PiniaVuePlugin } from "pinia";
import Vue, { provide } from "vue";
import { createPinia } from "pinia";
import { createApp, provide } from "vue";

import { addInitialization, standardInit } from "@/onload";
import store from "@/store";
Expand All @@ -8,7 +8,6 @@ import { getRouter } from "./router";

import App from "./App.vue";

Vue.use(PiniaVuePlugin);
const pinia = createPinia();

addInitialization((Galaxy: any) => {
Expand All @@ -18,16 +17,15 @@ addInitialization((Galaxy: any) => {
// external use (e.g. gtn webhook) -- longer term we discussed plans to
// parameterize webhooks and initialize them explicitly with state.
Galaxy.router = router;
new Vue({
el: "#app",
setup() {
provide("store", store);
},
render: (h) => h(App),
router: router,
store: store,
pinia: pinia,
const app = createApp({
router,
store,
...App,
});

app.provide("store", store);
app.use(pinia);
app.mount("#app");
});

window.addEventListener("load", () => standardInit("app"));

0 comments on commit 2a2659b

Please sign in to comment.