From 4c5a27a85632b2cabce424e441ca96c8ef166feb Mon Sep 17 00:00:00 2001 From: sulmo Date: Fri, 29 Nov 2024 16:14:18 +0900 Subject: [PATCH] refactor: replace p-text-editor with p-code-editor for code display - Replaced `p-text-editor` with `p-code-editor` across multiple components. - Ensured consistent use of `p-code-editor` for displaying and editing code snippets. Signed-off-by: sulmo --- apps/web/src/common/components/modals/UserAPIKeyModal.vue | 6 +++--- .../alert-manager/components/AlertDetailTabsPushedEvent.vue | 4 ++-- .../components/MetricExplorerQueryFormSidebar.vue | 4 ++-- .../components/ServiceAccountAddClusterScriptField.vue | 4 ++-- .../components/ServiceAccountAttachedGeneralAccounts.vue | 4 ++-- .../components/ServiceAccountCredentialsForm.vue | 4 ++-- .../DataSourceManagementTabDataCollectionHistoryModal.vue | 4 ++-- .../dashboard-detail/DashboardShareWithCodeModal.vue | 4 ++-- .../src/services/iam/components/RoleManagementTabDetail.vue | 4 ++-- .../src/services/iam/components/RoleUpdateFormPolicy.vue | 4 ++-- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/apps/web/src/common/components/modals/UserAPIKeyModal.vue b/apps/web/src/common/components/modals/UserAPIKeyModal.vue index 49f9ec2364..1d9d2af6ad 100644 --- a/apps/web/src/common/components/modals/UserAPIKeyModal.vue +++ b/apps/web/src/common/components/modals/UserAPIKeyModal.vue @@ -5,7 +5,7 @@ import { reactive, watch } from 'vue'; import yaml from 'js-yaml'; import { - PIconModal, PI, PPaneLayout, PDivider, PCollapsibleToggle, PButton, PLink, PTextEditor, + PIconModal, PI, PPaneLayout, PDivider, PCollapsibleToggle, PButton, PLink, PCodeEditor, } from '@cloudforet/mirinae'; import { ACTION_ICON } from '@cloudforet/mirinae/src/navigation/link/type'; @@ -124,7 +124,7 @@ watch(() => props.visible, async (visible) => { > {{ state.isAPICollapsed ? $t('IDENTITY.USER.API_KEY.SHOW') : $t('IDENTITY.USER.API_KEY.HIDE') }} - props.visible, async (visible) => { > {{ state.isSpacectlCollapsed ? $t('IDENTITY.USER.API_KEY.SHOW') : $t('IDENTITY.USER.API_KEY.HIDE') }} - { >