remove VueApp from router
Nothing actually depends on the vue app being monkey patched onto the router, so let's get rid of it.
This commit is contained in:
parent
f8eb0ebafd
commit
dfb4217167
8
client/js/types.d.ts
vendored
8
client/js/types.d.ts
vendored
@ -67,14 +67,6 @@ type ClientLinkPreview = LinkPreview & {
|
||||
sourceLoaded?: boolean;
|
||||
};
|
||||
|
||||
declare module "vue-router" {
|
||||
import Vue from "./vue";
|
||||
|
||||
interface Router {
|
||||
app: Vue.VueApp;
|
||||
}
|
||||
}
|
||||
|
||||
interface BeforeInstallPromptEvent extends Event {
|
||||
/**
|
||||
* Returns an array of DOMString items containing the platforms on which the event was dispatched.
|
||||
|
@ -5,7 +5,7 @@ import {createApp} from "vue";
|
||||
import {store, CallableGetters, key} from "./store";
|
||||
import App from "../components/App.vue";
|
||||
import storage from "./localStorage";
|
||||
import {router, navigate} from "./router";
|
||||
import {router} from "./router";
|
||||
import socket from "./socket";
|
||||
import eventbus from "./eventbus";
|
||||
|
||||
@ -20,7 +20,6 @@ const faviconAlerted = favicon?.dataset.other || "";
|
||||
|
||||
export const VueApp = createApp(App);
|
||||
|
||||
router.app = VueApp;
|
||||
VueApp.use(router);
|
||||
VueApp.use(store, key);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user