3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

Initial port to vue 3

This commit is contained in:
TheKodeToad 2025-03-12 15:56:04 +00:00
parent e1966534d5
commit 454981fa1f
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
14 changed files with 1906 additions and 1804 deletions

View file

@ -1,14 +1,11 @@
import Vue from "vue";
import Vuex, { Store } from "vuex";
Vue.use(Vuex);
import { createStore, Store } from "vuex";
import { AuthStore } from "./auth";
import { DocsStore } from "./docs";
import { GuildStore } from "./guilds";
import { RootState } from "./types";
export const RootStore = new Vuex.Store<RootState>({
export const RootStore = createStore({
modules: {
auth: AuthStore,
guilds: GuildStore,
@ -17,16 +14,8 @@ export const RootStore = new Vuex.Store<RootState>({
});
// Set up typings so Vue/our components know about the state's types
declare module "vue/types/options" {
interface ComponentOptions<V extends Vue> {
// @ts-ignore
store?: Store<RootState>;
}
}
declare module "vue/types/vue" {
interface Vue {
// @ts-ignore
declare module "vue" {
interface ComponentCustomProperties {
$store: Store<RootState>;
}
}