refactor store

This commit is contained in:
pa
2026-03-10 15:25:23 +09:00
parent d7220baaf6
commit 95c4a1d3e6
82 changed files with 3243 additions and 3066 deletions
@@ -28,9 +28,10 @@
import { timeToText } from '../../../shared/utils';
import * as echarts from 'echarts';
import { showUserDialog } from '../../../coordinators/userCoordinator';
const { isDarkMode, dtHour12 } = storeToRefs(useAppearanceSettingsStore());
const { showUserDialog } = useUserStore();
const { currentUser } = storeToRefs(useUserStore());
const props = defineProps({
@@ -275,6 +275,7 @@
useUserStore
} from '../../../stores';
import { userImage, userStatusClass } from '../../../shared/utils';
import { showUserDialog } from '../../../coordinators/userCoordinator';
import { database } from '../../../service/database';
import { watchState } from '../../../service/watchState';
@@ -290,7 +291,7 @@
const { currentUser } = storeToRefs(userStore);
const { isDarkMode } = storeToRefs(appearanceStore);
const cachedUsers = userStore.cachedUsers;
const showUserDialog = (userId) => userStore.showUserDialog(userId);
const fetchState = chartsStore.mutualGraphFetchState;
const status = chartsStore.mutualGraphStatus;