From 971ef8466613579b7f523edbd25b692df62d0f86 Mon Sep 17 00:00:00 2001 From: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com> Date: Wed, 10 May 2023 18:03:25 -0400 Subject: [PATCH] Revert "Merge branch 'master' into loading" This reverts commit 3014e765fb6fb343f3030fd8a822edd97fb2af41, reversing changes made to b780e859d2b53a203eb3561ba3be88af083d9c15. --- theseus_gui/src/App.vue | 35 ++--- .../components/modrinth-loading-indicator.js | 134 ------------------ theseus_gui/src/pages/AddInstance.vue | 7 + theseus_gui/src/pages/Index.vue | 2 +- theseus_gui/src/store/loading.js | 13 -- theseus_gui/src/store/state.js | 3 +- 6 files changed, 21 insertions(+), 173 deletions(-) delete mode 100644 theseus_gui/src/components/modrinth-loading-indicator.js create mode 100644 theseus_gui/src/pages/AddInstance.vue delete mode 100644 theseus_gui/src/store/loading.js diff --git a/theseus_gui/src/App.vue b/theseus_gui/src/App.vue index f374636b4..278368012 100644 --- a/theseus_gui/src/App.vue +++ b/theseus_gui/src/App.vue @@ -2,18 +2,17 @@ import { onMounted, ref } from 'vue' import { RouterView, RouterLink } from 'vue-router' import { HomeIcon, SearchIcon, LibraryIcon, PlusIcon, SettingsIcon, Button } from 'omorphia' -import { useLoading, useTheming } from '@/store/state' +import { useTheming } from '@/store/state' import AccountsCard from '@/components/ui/AccountsCard.vue' import InstanceCreationModal from '@/components/ui/InstanceCreationModal.vue' import { get } from '@/helpers/settings' import Breadcrumbs from '@/components/ui/Breadcrumbs.vue' import RunningAppBar from '@/components/ui/RunningAppBar.vue' import SplashScreen from '@/components/ui/SplashScreen.vue' -import ModrinthLoadingIndicator from '@/components/modrinth-loading-indicator' const themeStore = useTheming() -const isLoading = ref(true) +const loading = ref(true) onMounted(async () => { const { settings, collapsed_navigation } = await get() themeStore.setThemeState(settings) @@ -22,16 +21,15 @@ onMounted(async () => { defineExpose({ initialize: async () => { - isLoading.value = false + loading.value = false const { theme } = await get() themeStore.setThemeState(theme) }, }) -const loading = useLoading()