From 83f1a32e96e567243543a40041a5224e83d0e431 Mon Sep 17 00:00:00 2001 From: Dahyun Yu Date: Wed, 23 Oct 2024 14:42:46 +0900 Subject: [PATCH] feat: use PScopedNotification in pages (#4895) * feat: use PScopedNotification in pages Signed-off-by: yuda * feat: delete ScopedNotification console component Signed-off-by: yuda --------- Signed-off-by: yuda --- .../ScopedNotification.vue | 177 ------------------ .../modules/TopBarSearchWorkspaceFilter.vue | 30 +-- .../WorkspaceGroupAddUsersModal.vue | 14 +- .../pages/CollectorDetailPage.vue | 14 +- .../components/CostAnalysisQuerySection.vue | 19 +- .../cost-explorer/pages/BudgetDetailPage.vue | 14 +- ...nAdvancedSettingsCurrencyConverterPage.vue | 17 +- .../LandingWorkspaceGroupAddUsersModal.vue | 16 +- packages/mirinae/src/components.ts | 1 + 9 files changed, 45 insertions(+), 257 deletions(-) delete mode 100644 apps/web/src/common/components/scoped-notification/ScopedNotification.vue diff --git a/apps/web/src/common/components/scoped-notification/ScopedNotification.vue b/apps/web/src/common/components/scoped-notification/ScopedNotification.vue deleted file mode 100644 index 7c4b058710..0000000000 --- a/apps/web/src/common/components/scoped-notification/ScopedNotification.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - - - diff --git a/apps/web/src/common/modules/navigations/top-bar/modules/top-bar-search/modules/top-bar-search-dropdown/modules/TopBarSearchWorkspaceFilter.vue b/apps/web/src/common/modules/navigations/top-bar/modules/top-bar-search/modules/top-bar-search-dropdown/modules/TopBarSearchWorkspaceFilter.vue index 8519597a7e..4c0c850ea5 100644 --- a/apps/web/src/common/modules/navigations/top-bar/modules/top-bar-search/modules/top-bar-search-dropdown/modules/TopBarSearchWorkspaceFilter.vue +++ b/apps/web/src/common/modules/navigations/top-bar/modules/top-bar-search/modules/top-bar-search-dropdown/modules/TopBarSearchWorkspaceFilter.vue @@ -8,7 +8,7 @@ import { import { SpaceConnector } from '@cloudforet/core-lib/space-connector'; import { - PCheckboxGroup, PCheckbox, PTooltip, PToggleButton, PTextButton, PContextMenu, PIconButton, + PCheckboxGroup, PCheckbox, PTooltip, PToggleButton, PTextButton, PContextMenu, PIconButton, PScopedNotification, } from '@cloudforet/mirinae'; import type { MenuItem } from '@cloudforet/mirinae/src/inputs/context-menu/type'; @@ -18,7 +18,6 @@ import type { ResourceModel } from '@/schema/search/resource/model'; import { useAllReferenceStore } from '@/store/reference/all-reference-store'; -import ScopedNotification from '@/common/components/scoped-notification/ScopedNotification.vue'; import ErrorHandler from '@/common/composables/error/errorHandler'; import WorkspaceLogoIcon from '@/common/modules/navigations/top-bar/modules/top-bar-header/WorkspaceLogoIcon.vue'; import { @@ -218,19 +217,14 @@ watch(() => state.searchText, (val) => { -
- - {{ $t('COMMON.NAVIGATIONS.TOP_BAR.WORKSPACE_FILTER_WARNING_DESC') }} - -
+ {{ $t('COMMON.NAVIGATIONS.TOP_BAR.WORKSPACE_FILTER_WARNING_DESC') }} + @@ -309,14 +303,6 @@ watch(() => state.searchText, (val) => { } } } - - .limit-description-card { - width: 100%; - - .text { - @apply text-paragraph-md; - } - } } } diff --git a/apps/web/src/services/advanced/components/WorkspaceGroupAddUsersModal.vue b/apps/web/src/services/advanced/components/WorkspaceGroupAddUsersModal.vue index c574598bf1..016eaf8ec6 100644 --- a/apps/web/src/services/advanced/components/WorkspaceGroupAddUsersModal.vue +++ b/apps/web/src/services/advanced/components/WorkspaceGroupAddUsersModal.vue @@ -4,7 +4,7 @@ import { computed, reactive, watch } from 'vue'; import { SpaceConnector } from '@cloudforet/core-lib/space-connector'; import { - PButtonModal, PFieldGroup, PSelectDropdown, PIconButton, PAvatar, PTextInput, + PButtonModal, PFieldGroup, PSelectDropdown, PIconButton, PAvatar, PTextInput, PScopedNotification, } from '@cloudforet/mirinae'; import type { MenuItem } from '@cloudforet/mirinae/types/inputs/context-menu/type'; @@ -20,7 +20,6 @@ import { i18n } from '@/translations'; import { showSuccessMessage } from '@/lib/helper/notice-alert-helper'; -import ScopedNotification from '@/common/components/scoped-notification/ScopedNotification.vue'; import ErrorHandler from '@/common/composables/error/errorHandler'; import { useSelectDropDownList } from '@/services/advanced/composables/use-select-drop-down-list'; @@ -167,15 +166,12 @@ watch(() => workspaceGroupPageState.modal.visible, async (visible) => { >