diff --git a/apps/web/package.json b/apps/web/package.json index 8b3c297869..96bc4b2e2c 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -46,6 +46,7 @@ "@vueuse/core": "^10.7.2", "@vueuse/integrations": "^11.1.0", "@vvo/tzdb": "^6.4.1", + "console-vue-query-devtools-sdk": "^0.0.16", "animated-number-vue": "^1.0.0", "axios": "^1.8.2", "axios-auth-refresh": "^3.2.2", @@ -112,7 +113,7 @@ "postcss-config-custom": "*", "rollup-plugin-visualizer": "^5.9.0", "tsconfig": "*", - "vite": "^4.5.13", + "vite": "^4.5.14", "vite-plugin-stylelint": "^3.3.3", "vite-plugin-vue-type-imports": "^0.2.4", "vitest": "^3.0.8", diff --git a/apps/web/src/App.vue b/apps/web/src/App.vue index 95d5dde6b7..37a8ac669e 100755 --- a/apps/web/src/App.vue +++ b/apps/web/src/App.vue @@ -6,6 +6,9 @@ import { import type { Location } from 'vue-router'; import { useRoute, useRouter } from 'vue-router/composables'; +import { useQueryClient } from '@tanstack/vue-query'; +import { ConsoleVueQueryDevtools } from 'console-vue-query-devtools-sdk'; + import { LocalStorageAccessor } from '@cloudforet/core-lib/local-storage-accessor'; import { PNoticeAlert, PToastAlert, PIconModal, PSidebar, PDataLoader, @@ -15,6 +18,7 @@ import { EXTERNAL_PAGE_ROUTE } from '@/router/constant'; import { getRouteScope } from '@/router/helpers/route-helper'; import { useAppContextStore } from '@/store/app-context/app-context-store'; +import { useAuthorizationStore } from '@/store/authorization/authorization-store'; import { SIDEBAR_TYPE } from '@/store/display/constant'; import { useDisplayStore } from '@/store/display/display-store'; import { useErrorStore } from '@/store/error/error-store'; @@ -37,6 +41,15 @@ import MobileGuideModal from '@/services/auth/components/MobileGuideModal.vue'; import { AUTH_ROUTE } from '@/services/auth/routes/route-constant'; import { LANDING_ROUTE } from '@/services/landing/routes/route-constant'; +if (import.meta.env.DEV) { + const queryClient = useQueryClient(); + import('@/_dev-tools/vue-query-console-debug').then((mod) => mod.initVueQueryConsoleDebug(queryClient)) + .catch((error) => { + console.error('Failed to load vue-query-console-debug module:', error); + console.error('Ensure the module exists and the path is correct.'); + }); +} + const router = useRouter(); const route = useRoute(); @@ -56,6 +69,7 @@ const state = reactive({ }); const userStore = useUserStore(); +const authorizationStore = useAuthorizationStore(); const appContextStore = useAppContextStore(); const errorStore = useErrorStore(); const globalUIStore = useGlobalUIStore(); @@ -74,7 +88,7 @@ const goToSignIn = async () => { name: AUTH_ROUTE.SIGN_OUT._NAME, query: { previousPath: route.fullPath }, }; - userStore.setCurrentGrantInfo(undefined); + authorizationStore.setCurrentGrantInfo(undefined); errorStore.setVisibleSessionExpiredError(false); await router.push(to); @@ -104,6 +118,7 @@ watch(() => state.userId, (userId) => {
-
+
+
-
-
- {{ item.type === MEMBERS_TYPE.USER ? formatRoleType(item?.roleType) : $t('ALERT_MANAGER.SERVICE.USER_GROUP') }}
-
-
+ {{ $t('ALERT_MANAGER.SERVICE.INVITE_MEMBER_DESC') }}
+
+
+
- {{ $t('ALERT_MANAGER.SERVICE.INVITE_MEMBER_DESC') }} -
-+ {{ $t('ALERT_MANAGER.SERVICE.MODAL.DELETE_MEMBER_DESC', { name: state.selectedDeleteMember.label }) }} + {{ $t('ALERT_MANAGER.SERVICE.MODAL.DELETE_MEMBER_DESC_BOLD', { name: state.selectedDeleteMember.label }) }} +
+
+
+
+ + {{ state.selectedDeleteMember.type === MEMBERS_TYPE.USER ? formatRoleType(state.selectedDeleteMember.roleType) : $t('ALERT_MANAGER.SERVICE.USER_GROUP') }} + +
++ {{ $t('ALERT_MANAGER.SERVICE.MODAL.DELETE_NOTIFICATION_DESC', { name: props.selectedItem?.name }) }} + {{ $t('ALERT_MANAGER.SERVICE.MODAL.DELETE_NOTIFICATION_DESC_BOLD', { name: props.selectedItem?.name }) }} +
+{{ $t('ALERT_MANAGER.NOTIFICATIONS.DAY') }} - {{ getScheduleInfo(value).days }}
-{{ $t('ALERT_MANAGER.NOTIFICATIONS.TIME') }} - {{ getScheduleInfo(value).time }}
+{{ $t('ALERT_MANAGER.NOTIFICATIONS.DAY') }}:
+{{ getScheduleInfo(value).days }}
{{ $t('ALERT_MANAGER.NOTIFICATIONS.TIME') }}: {{ getScheduleInfo(value).time }}
++ {{ $t('ALERT_MANAGER.TIMEZONE') }}: {{ getScheduleInfo(value).timezone }} +
-
-
+
+
+
- {{ $t('ALERT_MANAGER.SERVICE.NO_DATA') }}
-