split charts into separate routes (#1605)

This commit is contained in:
pa
2026-02-03 00:07:09 +09:00
parent 1cbafbeaeb
commit bbbb79eaca
9 changed files with 290 additions and 265 deletions
+1 -3
View File
@@ -1,4 +1,4 @@
import { computed, reactive, ref, watch } from 'vue';
import { computed, reactive, watch } from 'vue';
import { defineStore } from 'pinia';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
@@ -16,7 +16,6 @@ export const useChartsStore = defineStore('Charts', () => {
const { t } = useI18n();
const activeTab = ref('instance');
const mutualGraphFetchState = reactive(createDefaultFetchState());
const mutualGraphStatus = reactive({
isFetching: false,
@@ -94,7 +93,6 @@ export const useChartsStore = defineStore('Charts', () => {
}
return {
activeTab,
mutualGraphFetchState,
mutualGraphStatus,
resetMutualGraphState
+7 -5
View File
@@ -97,11 +97,13 @@ export const useAppearanceSettingsStore = defineStore(
const isNavCollapsed = ref(true);
const isSideBarTabShow = computed(() => {
const currentRouteName = router.currentRoute.value?.name;
return !(
currentRouteName === 'friends-locations' ||
currentRouteName === 'friend-list' ||
currentRouteName === 'charts'
);
return ![
'friends-locations',
'friend-list',
'charts',
'charts-instance',
'charts-mutual'
].includes(currentRouteName);
});
const isDataTableStriped = ref(false);