aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue')
-rw-r--r--src-vue/src/App.vue6
-rw-r--r--src-vue/src/main.ts2
-rw-r--r--src-vue/src/plugins/store.ts9
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) {
+}