Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: re-enable demo banner for demo.bytebase.com (#8705)
Tianzhou (天舟)62defb4adf52
diff --git a/frontend/src/components/BannersWrapper.vue b/frontend/src/components/BannersWrapper.vueindex 906e70b17e..b9180f2994 100644--- a/frontend/src/components/BannersWrapper.vue+++ b/frontend/src/components/BannersWrapper.vue@@ -49,8 +49,7 @@ const { isExpired, isTrialing, currentPlan, existTrialLicense } =storeToRefs(subscriptionStore);const shouldShowDemoBanner = computed(() => {- // Only show demo banner if it's the default demo (as opposed to the feature demo).- return actuatorStore.serverInfo?.demoName == "default";+ return actuatorStore.serverInfo?.demoName != "";});// For now, debug mode is a global setting and will affect all users.diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 5a6033dd6d..e86bea72a9 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -383,7 +383,7 @@"trial-expired": "Your free trial for {plan} has expired.","extend-trial": "Extend trialing time","deploy": "Self Host",- "cloud": "Sign Up for Cloud",+ "cloud": "Cloud","request-demo": "Book a 30 min product walkthrough with our product expert","debug": "Debug mode is active, you can disable Debug mode via the top-right profile dropdown.","readonly": "Bytebase is in readonly mode. You can still view the console, but any change attempt will fail.",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 41169961ac..d575ffea03 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -383,7 +383,7 @@"trial-expired": "Su prueba gratuita de {plan} ha caducado.","extend-trial": "Extender el tiempo de prueba","deploy": "Auto Hospedaje",- "cloud": "Registrarse para Cloud",+ "cloud": "Cloud","request-demo": "Reserve una presentación de producto de 30 minutos con nuestro experto en productos","debug": "El modo de depuración está activo, puede desactivar el modo de depuración a través del menú desplegable del perfil en la parte superior derecha.","readonly": "Bytebase está en modo de solo lectura. Todavía puede ver la consola, pero cualquier intento de cambio fallará.",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex c87d676585..604abbbeac 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -380,8 +380,8 @@"trial-expires": "您的{plan}试用将在 {days} 天后过期","trial-expired": "您的{plan}试用将在已过期","extend-trial": "申请延长试用",- "deploy": "部署到本地",- "cloud": "注册云服务",+ "deploy": "本地部署",+ "cloud": "云服务","request-demo": "和我们的产品专家预约 30 分钟产品演示","debug": "Debug 模式已开启,您可以通过右上角头像下拉框关闭 Debug。","readonly": "Bytebase 处于只读模式。您仍然可以查看控制台,但任何尝试更改的请求都会失败。",diff --git a/frontend/src/views/BannerDemo.vue b/frontend/src/views/BannerDemo.vueindex 3c98f933ca..99d848986d 100644--- a/frontend/src/views/BannerDemo.vue+++ b/frontend/src/views/BannerDemo.vue@@ -1,26 +1,26 @@<template><div v-if="show" class="bg-accent">- <div class="mx-auto py-3 px-3">+ <div class="mx-auto py-1 px-3"><div class="flex items-center justify-between flex-wrap"><div class="w-0 flex-1 flex items-center">- <p class="ml-3 font-medium text-white truncate">+ <p class="flex font-medium text-white items-center truncate">+ 📆<ahref="https://cal.com/adela-bytebase/30min"target="_blank"- class="flex underline"+ class="flex underline ml-1">- <heroicons-outline:calendar class="mr-1 w-6 h-6" />{{ $t("banner.request-demo") }}</a></p></div><div- class="flex flex-row space-x-4 order-3 mt-2 flex-shrink-0 w-full sm:order-2 sm:mt-0 sm:w-auto"+ class="flex flex-row space-x-4 order-3 my-2 flex-shrink-0 w-full sm:order-2 sm:py-1 sm:my-0 sm:w-auto"><ahref="https://bytebase.com/docs/get-started/install/deploy-with-docker?source=demo"target="_blank"- class="flex items-center justify-center pl-4 pr-2 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-accent bg-white hover:bg-indigo-50"+ class="flex items-center justify-center pl-4 pr-2 py-1 border border-transparent rounded-sm text-base font-medium text-accent bg-white hover:bg-indigo-50">{{ $t("banner.deploy") }}<heroicons-outline:arrow-down-tray class="ml-1 w-6 h-6" />@@ -28,7 +28,7 @@<ahref="https://hub.bytebase.com/workspace?source=demo"target="_blank"- class="flex items-center justify-center pl-4 pr-2 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-accent bg-white hover:bg-indigo-50"+ class="flex items-center justify-center pl-4 pr-2 py-1 border border-transparent rounded-sm text-base font-medium text-accent bg-white hover:bg-indigo-50">{{ $t("banner.cloud") }}<heroicons-outline:cloud class="ml-1 w-6 h-6" />