Skip to content

Commit

Permalink
Swap over analysis entrypoint to createApp for vue3
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Oct 24, 2023
1 parent 4114ac7 commit edc486c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 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 } 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,13 @@ 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.provide("store", store);
app.use(pinia);
app.mount("#app");
});

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

0 comments on commit edc486c

Please sign in to comment.