diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2024-12-23 21:01:35 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2024-12-23 21:01:35 +0100 |
commit | 9d308d5efa51b8ecad8c7687b066df016f8298df (patch) | |
tree | d2c6c3441df0951c8352c817b75d19824a3eebbd /src-vue | |
parent | ff2304522067c783406fbcfce12532105ca3b377 (diff) | |
download | FlightCore-9d308d5efa51b8ecad8c7687b066df016f8298df.tar.gz FlightCore-9d308d5efa51b8ecad8c7687b066df016f8298df.zip |
Restore more logic from main branch
Diffstat (limited to 'src-vue')
-rw-r--r-- | src-vue/src/App.vue | 6 | ||||
-rw-r--r-- | src-vue/src/main.ts | 2 | ||||
-rw-r--r-- | src-vue/src/plugins/store.ts | 9 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue index f00eee96..411dd10e 100644 --- a/src-vue/src/App.vue +++ b/src-vue/src/App.vue @@ -1,5 +1,11 @@ <script lang="ts"> +import ChangelogView from './views/ChangelogView.vue'; +import DeveloperView from './views/DeveloperView.vue'; +import PlayView from './views/PlayView.vue'; +import ModsView from './views/ModsView.vue'; +import SettingsView from './views/SettingsView.vue'; import { ref } from "vue"; +import { store } from './plugins/store'; import { invoke } from "@tauri-apps/api/core"; const greetMsg = ref(""); diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts index e50189a9..9d8fee83 100644 --- a/src-vue/src/main.ts +++ b/src-vue/src/main.ts @@ -3,6 +3,7 @@ import { createI18n } from "vue-i18n"; import App from './App.vue' import ElementPlus from "element-plus"; import * as ElementPlusIconsVue from '@element-plus/icons-vue' +import { store } from './plugins/store'; import PlayView from "./views/PlayView.vue"; import ChangelogView from "./views/ChangelogView.vue"; import ModsView from "./views/ModsView.vue"; @@ -46,6 +47,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) { // style + // routes const routes = [ { path: '/', name: 'Main', component: async () => PlayView}, diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts new file mode 100644 index 00000000..d77fbc42 --- /dev/null +++ b/src-vue/src/plugins/store.ts @@ -0,0 +1,9 @@ +import { createStore } from 'vuex'; + + +/** + * This is called when application root component has been mounted. + * It invokes all Rust methods that are needed to initialize UI. + */ +async function _initializeApp(state: any) { +} |