diff --git a/web/src/views/environments/Environments.vue b/web/src/views/environments/Environments.vue index c8af7d6..a45b65b 100644 --- a/web/src/views/environments/Environments.vue +++ b/web/src/views/environments/Environments.vue @@ -16,6 +16,7 @@ import { Switch } from '@/components/ui/switch' import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs' import { ENV_TYPE } from '@/constants' import { format } from 'date-fns' +import { Badge } from '@/components/ui/badge' function formatDate(dateStr?: string) { if (!dateStr) return '-' @@ -243,6 +244,11 @@ function maskValue(value: string) { return '•'.repeat(Math.min(value.length, 20)) } +const NOTIFY_ENV_KEYS = ['BHPKG_NOTIFY_TOKEN', 'BHPKG_NOTIFY_CHANNEL', 'BHPKG_NOTIFY_URL'] +function isNotifyEnv(name: string) { + return NOTIFY_ENV_KEYS.includes(name) +} + onMounted(() => { if (activeTab.value === ENV_TYPE.SECRET) { checkSecretStatus() @@ -319,8 +325,9 @@ onBeforeUnmount(() => { class="sm:hidden p-3 hover:bg-muted/50 transition-colors">
- #{{ total - (currentPage - 1) * pageSize - index }} - {{ env.name }} + #{{ total - (currentPage - 1) * pageSize - index }} + {{ env.name }} + Built-in
@@ -374,8 +381,10 @@ onBeforeUnmount(() => {
#{{ total - (currentPage - 1) * pageSize - index }}
- {{ env.name }} +
+ {{ env.name }} + Built-in +