Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore(frontend): remove WeChat QR and Discord from product (#19785)
Danny Xudce19491ef52
diff --git a/frontend/src/assets/bb-helper-wechat-qrcode.webp b/frontend/src/assets/bb-helper-wechat-qrcode.webpdeleted file mode 100644index 816e95267e..0000000000Binary files a/frontend/src/assets/bb-helper-wechat-qrcode.webp and /dev/null differdiff --git a/frontend/src/assets/wechat-official-qrcode.webp b/frontend/src/assets/wechat-official-qrcode.webpdeleted file mode 100644index ac233fbe15..0000000000Binary files a/frontend/src/assets/wechat-official-qrcode.webp and /dev/null differdiff --git a/frontend/src/components/FeatureGuard/FeatureAttention.vue b/frontend/src/components/FeatureGuard/FeatureAttention.vueindex 595694da9e..90877d5ecf 100644--- a/frontend/src/components/FeatureGuard/FeatureAttention.vue+++ b/frontend/src/components/FeatureGuard/FeatureAttention.vue@@ -9,11 +9,6 @@@click="onClick"/>- <WeChatQRModal- v-if="state.showQRCodeModal"- :title="$t('subscription.request-with-qr')"- @close="state.showQRCodeModal = false"- /><InstanceAssignment:show="state.showInstanceAssignmentDrawer"@dismiss="state.showInstanceAssignmentDrawer = false"@@ -25,7 +20,6 @@ import { computed, reactive } from "vue";import { useI18n } from "vue-i18n";import { useRouter } from "vue-router";import { BBAttention } from "@/bbkit";-import { useLanguage } from "@/composables/useLanguage";import { useActuatorV1Store, useSubscriptionV1Store } from "@/store";import { ENTERPRISE_INQUIRE_LINK, instanceLimitFeature } from "@/types";import type {@@ -38,11 +32,9 @@ import {} from "@/types/proto-es/v1/subscription_service_pb";import { autoSubscriptionRoute, hasWorkspacePermissionV2 } from "@/utils";import InstanceAssignment from "../InstanceAssignment.vue";-import WeChatQRModal from "../WeChatQRModal.vue";interface LocalState {showInstanceAssignmentDrawer: boolean;- showQRCodeModal: boolean;}const props = withDefaults(@@ -61,13 +53,11 @@ const props = withDefaults(const router = useRouter();const { t } = useI18n();-const { locale } = useLanguage();const actuatorStore = useActuatorV1Store();const subscriptionStore = useSubscriptionV1Store();const state = reactive<LocalState>({showInstanceAssignmentDrawer: false,- showQRCodeModal: false,});const hasPermission = computed(() =>@@ -171,11 +161,7 @@ const descriptionText = computed(() => {const onClick = () => {if (!hasFeature.value) {- if (locale.value === "zh-CN") {- state.showQRCodeModal = true;- } else {- window.open(ENTERPRISE_INQUIRE_LINK, "_blank");- }+ window.open(ENTERPRISE_INQUIRE_LINK, "_blank");return;}if (instanceMissingLicense.value || existInstanceWithoutLicense.value) {diff --git a/frontend/src/components/FeatureGuard/FeatureModal.vue b/frontend/src/components/FeatureGuard/FeatureModal.vueindex ed69761ed6..0f23b6504d 100644--- a/frontend/src/components/FeatureGuard/FeatureModal.vue+++ b/frontend/src/components/FeatureGuard/FeatureModal.vue@@ -85,11 +85,6 @@</div></div></BBModal>- <WeChatQRModal- v-if="state.showQRCodeModal"- :title="$t('subscription.request-with-qr')"- @close="state.showQRCodeModal = false"- /><InstanceAssignment:show="state.showInstanceAssignmentDrawer"@dismiss="state.showInstanceAssignmentDrawer = false"@@ -103,7 +98,6 @@ import { computed, reactive } from "vue";import { useI18n } from "vue-i18n";import { useRouter } from "vue-router";import { BBModal } from "@/bbkit";-import { useLanguage } from "@/composables/useLanguage";import { useSubscriptionV1Store } from "@/store";import { ENTERPRISE_INQUIRE_LINK } from "@/types";import type {@@ -116,11 +110,9 @@ import {} from "@/types/proto-es/v1/subscription_service_pb";import { autoSubscriptionRoute, hasWorkspacePermissionV2 } from "@/utils";import InstanceAssignment from "../InstanceAssignment.vue";-import WeChatQRModal from "../WeChatQRModal.vue";interface LocalState {showInstanceAssignmentDrawer: boolean;- showQRCodeModal: boolean;}const props = withDefaults(@@ -137,13 +129,11 @@ const props = withDefaults(const state = reactive<LocalState>({showInstanceAssignmentDrawer: false,- showQRCodeModal: false,});const emit = defineEmits(["cancel"]);const { t } = useI18n();const router = useRouter();-const { locale } = useLanguage();const subscriptionStore = useSubscriptionV1Store();const hasPermission = hasWorkspacePermissionV2("bb.settings.set");@@ -180,11 +170,7 @@ const featureKey = computed(() => {});const trialSubscription = () => {- if (locale.value === "zh-CN") {- state.showQRCodeModal = true;- } else {- window.open(ENTERPRISE_INQUIRE_LINK, "_blank");- }+ window.open(ENTERPRISE_INQUIRE_LINK, "_blank");};</script>diff --git a/frontend/src/components/HelpDrawer/HelpDrawer.vue b/frontend/src/components/HelpDrawer/HelpDrawer.vueindex aae3811657..151f263ea0 100644--- a/frontend/src/components/HelpDrawer/HelpDrawer.vue+++ b/frontend/src/components/HelpDrawer/HelpDrawer.vue@@ -22,40 +22,6 @@>{{ $t("help-drawer.dont-show-again") }}</NButton>- <div- v-if="locale === 'zh-CN'"- class="w-full flex flex-col items-center pt-2"- >- <p class="text-sm mb-2">微信扫码加入官方社群</p>- <div class="flex flex-row justify-center">- <div- class="w-20 flex flex-col items-center justify-start text-xs"- >- <img- src="@/assets/wechat-official-qrcode.webp"- alt="微信公众号"- />- <span>公众号</span>- </div>- <div- class="w-20 flex flex-col items-center justify-start text-xs ml-4"- >- <img- src="@/assets/bb-helper-wechat-qrcode.webp"- alt="BB_小助手"- />- <span>BB 小助手</span>- </div>- </div>- </div>- <div v-else class="w-1/2 pt-2">- <a href="https://discord.gg/huyw7gRsyA" target="_blank">- <img- src="https://discordapp.com/api/guilds/861117579216420874/widget.png?style=banner4"- alt="Discord Invite"- />- </a>- </div></div></template></DrawerContent>diff --git a/frontend/src/components/RequireEnterpriseButton.vue b/frontend/src/components/RequireEnterpriseButton.vueindex 5395b4c08c..a9ee2e71a2 100644--- a/frontend/src/components/RequireEnterpriseButton.vue+++ b/frontend/src/components/RequireEnterpriseButton.vue@@ -5,28 +5,13 @@</template><slot name="default"></slot></NButton>- <WeChatQRModal- v-if="showQRCodeModal"- :title="$t('subscription.request-with-qr')"- @close="showQRCodeModal = false"- /></template><script lang="ts" setup>import { NButton } from "naive-ui";-import { ref } from "vue";-import { useLanguage } from "@/composables/useLanguage";import { ENTERPRISE_INQUIRE_LINK } from "@/types";-import WeChatQRModal from "./WeChatQRModal.vue";--const showQRCodeModal = ref<boolean>(false);-const { locale } = useLanguage();const requireSubscription = () => {- if (locale.value === "zh-CN") {- showQRCodeModal.value = true;- } else {- window.open(ENTERPRISE_INQUIRE_LINK, "_blank");- }+ window.open(ENTERPRISE_INQUIRE_LINK, "_blank");};</script>diff --git a/frontend/src/components/UpgradeSubscriptionButton.vue b/frontend/src/components/UpgradeSubscriptionButton.vueindex e1f9c8d1e4..1984a690a3 100644--- a/frontend/src/components/UpgradeSubscriptionButton.vue+++ b/frontend/src/components/UpgradeSubscriptionButton.vue@@ -7,36 +7,19 @@{{ $t(actionText) }}</NButton></div>-- <WeChatQRModal- v-if="state.showQRCodeModal"- :title="$t('subscription.request-with-qr')"- @close="state.showQRCodeModal = false"- /></template><script lang="ts" setup>import { NButton } from "naive-ui";-import { computed, reactive } from "vue";+import { computed } from "vue";import { useI18n } from "vue-i18n";import { useRouter } from "vue-router";-import { useLanguage } from "@/composables/useLanguage";import { SETTING_ROUTE_WORKSPACE_SUBSCRIPTION } from "@/router/dashboard/workspaceSetting";import { useSubscriptionV1Store } from "@/store";import { ENTERPRISE_INQUIRE_LINK } from "@/types";-import WeChatQRModal from "./WeChatQRModal.vue";--interface LocalState {- showQRCodeModal: boolean;-}--const state = reactive<LocalState>({- showQRCodeModal: false,-});const { t } = useI18n();const router = useRouter();-const { locale } = useLanguage();const subscriptionStore = useSubscriptionV1Store();const actionText = computed(() => {@@ -50,11 +33,7 @@ const actionText = computed(() => {const onClick = () => {if (subscriptionStore.showTrial) {- if (locale.value === "zh-CN") {- state.showQRCodeModal = true;- } else {- window.open(ENTERPRISE_INQUIRE_LINK, "_blank");- }+ window.open(ENTERPRISE_INQUIRE_LINK, "_blank");} else {router.push({ name: SETTING_ROUTE_WORKSPACE_SUBSCRIPTION });}diff --git a/frontend/src/components/WeChatQRModal.vue b/frontend/src/components/WeChatQRModal.vuedeleted file mode 100644index 4be1604d1c..0000000000--- a/frontend/src/components/WeChatQRModal.vue+++ /dev/null@@ -1,25 +0,0 @@-<template>- <BBModal :title="title" @close="$emit('close')">- <img- class="w-48 h-48"- src="@/assets/bb-helper-wechat-qrcode.webp"- alt="bb_helper"- />- </BBModal>-</template>--<script lang="ts" setup>-import { BBModal } from "@/bbkit";--withDefaults(- defineProps<{- title?: string;- }>(),- {- title: "",- }-);-defineEmits<{- (event: "close"): void;-}>();-</script>diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 8c95c029ce..6f0bbfcca1 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2329,7 +2329,6 @@"description": "You can upload your Bytebase license to unlock pro/enterprise features.","upload-license": "Upload license","request-n-days-trial": "Request {days} days trial (no credit card required)",- "request-with-qr": "Scan QR code","require-subscription": "This feature requires {requiredPlan} subscription, please purchase Bytebase license to unlock it.","required-plan-with-trial": "This feature requires {requiredPlan}. {startTrial}","trial-for-days": "You can start a free trial for {days} days - no credit card required.",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 81411761b7..8e206a4c64 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2329,7 +2329,6 @@"description": "Puedes subir tu licencia Bytebase para desbloquear funciones de edición/empresa.","upload-license": "Subir licencia","request-n-days-trial": "Solicite una prueba de {days} días (no se requiere tarjeta de crédito)",- "request-with-qr": "Escanear código QR","require-subscription": "Esta función requiere una suscripción a {requiredPlan}. Compre una licencia de Bytebase para desbloquearla.","required-plan-with-trial": "Esta función requiere {requiredPlan}. {startTrial}","trial-for-days": "Puedes iniciar una prueba gratuita por {days} días - no se requiere tarjeta de crédito.",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 82a696df4d..32eb4ec370 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2329,7 +2329,6 @@"description": "ここで購入した Bytebase ライセンスをアップロードして、プロフェッショナル/エンタープライズ機能のロックを解除できます。","upload-license": "ライセンスのアップロード","request-n-days-trial": "{days} 日間のトライアルをリクエストします (クレジット カードは必要ありません)",- "request-with-qr": "QRコードを読み取ってトライアルを申し込みます","require-subscription": "この機能は、{requiredPlan} のサブスクリプションが必要です。この機能のロックを解除するには、Bytebase ライセンスを購入してください。","required-plan-with-trial": "この機能は、{requiredPlan} のサブスクリプションが必要です。{startTrial} ","trial-for-days": "{days} 日間の無料トライアルを開始できます。クレジット カードや前払いは必要ありません。",diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex f2cc25748a..0e5de2f5e4 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2329,7 +2329,6 @@"description": "Bạn có thể tải lên giấy phép Bytebase của mình để mở khóa các tính năng chuyên nghiệp/doanh nghiệp.","upload-license": "Tải lên giấy phép","request-n-days-trial": "Yêu cầu dùng thử {days} ngày (không cần thẻ tín dụng)",- "request-with-qr": "Quét mã QR","require-subscription": "Tính năng này yêu cầu đăng ký {requiredPlan}, vui lòng mua giấy phép Bytebase để mở khóa.","required-plan-with-trial": "Tính năng này yêu cầu {requiredPlan}. {startTrial}","trial-for-days": "Bạn có thể bắt đầu dùng thử miễn phí trong {days} ngày - không cần thẻ tín dụng.",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 2859081a47..5ce4d21deb 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2329,7 +2329,6 @@"description": "您可以在这里上传您购买的 Bytebase 证书来解锁专业版/企业版功能。","upload-license": "上传证书","request-n-days-trial": "申请 {days} 天试用 (无需信用卡)",- "request-with-qr": "扫描二维码申请试用","require-subscription": "这个功能需要{requiredPlan}订阅,请购买 Bytebase 证书来解锁该功能。","required-plan-with-trial": "这个功能需要{requiredPlan}订阅,{startTrial}","trial-for-days": "您可以开启 {days} 天的免费试用 - 无需任何信用卡或预付费。",diff --git a/frontend/src/react/SubscriptionPageMount.vue b/frontend/src/react/SubscriptionPageMount.vueindex 576d5112d9..2bd97edace 100644--- a/frontend/src/react/SubscriptionPageMount.vue+++ b/frontend/src/react/SubscriptionPageMount.vue@@ -1,10 +1,5 @@<template><div ref="container" />- <WeChatQRModal- v-if="showQRCodeModal"- :title="$t('subscription.request-with-qr')"- @close="showQRCodeModal = false"- /><InstanceAssignment:show="showInstanceAssignmentDrawer"@dismiss="showInstanceAssignmentDrawer = false"@@ -15,7 +10,6 @@import { onMounted, onUnmounted, ref, watch } from "vue";import { useI18n } from "vue-i18n";import InstanceAssignment from "@/components/InstanceAssignment.vue";-import WeChatQRModal from "@/components/WeChatQRModal.vue";import { ENTERPRISE_INQUIRE_LINK } from "@/types";const { locale } = useI18n();@@ -23,16 +17,11 @@ const container = ref<HTMLElement>();// biome-ignore lint/suspicious/noExplicitAny: React Root type from dynamic importlet root: any = null; // eslint-disable-line @typescript-eslint/no-explicit-any-const showQRCodeModal = ref(false);const showInstanceAssignmentDrawer = ref(false);const props = {onRequireEnterprise: () => {- if (locale.value === "zh-CN") {- showQRCodeModal.value = true;- } else {- window.open(ENTERPRISE_INQUIRE_LINK, "_blank");- }+ window.open(ENTERPRISE_INQUIRE_LINK, "_blank");},onManageInstanceLicenses: () => {showInstanceAssignmentDrawer.value = true;diff --git a/frontend/src/react/components/FeatureAttention.tsx b/frontend/src/react/components/FeatureAttention.tsxindex 1fbd1fc69b..b86c1cda46 100644--- a/frontend/src/react/components/FeatureAttention.tsx+++ b/frontend/src/react/components/FeatureAttention.tsx@@ -86,8 +86,6 @@ export function FeatureAttention({const onAction = () => {if (!hasFeature) {- // Vue version shows WeChat QR modal for zh-CN, but that's a Vue- // component. Open the inquiry link for all locales as a fallback.window.open(ENTERPRISE_INQUIRE_LINK, "_blank");return;}diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vueindex 9333dfa386..d1dbd30695 100644--- a/frontend/src/views/DashboardHeader.vue+++ b/frontend/src/views/DashboardHeader.vue@@ -65,12 +65,6 @@</ProfileBrandingLogo></div></div>-- <WeChatQRModal- v-if="state.showQRCodeModal"- :title="$t('common.want-help')"- @close="state.showQRCodeModal = false"- /></template><script lang="ts" setup>@@ -85,10 +79,9 @@ import {import { NButton } from "naive-ui";import { storeToRefs } from "pinia";import { v4 as uuidv4 } from "uuid";-import { computed, reactive } from "vue";+import { computed } from "vue";import { useRoute, useRouter } from "vue-router";import ProjectSwitchPopover from "@/components/Project/ProjectSwitch/ProjectSwitchPopover.vue";-import WeChatQRModal from "@/components/WeChatQRModal.vue";import { useAgentStore } from "@/plugins/agent";import {WORKSPACE_ROUTE_LANDING,@@ -116,7 +109,6 @@ import {import BytebaseLogo from "../components/BytebaseLogo.vue";import ProfileBrandingLogo from "../components/ProfileBrandingLogo.vue";import ProfileDropdown from "../components/ProfileDropdown.vue";-import { useLanguage } from "../composables/useLanguage";import {isValidDatabaseName,isValidProjectName,@@ -132,24 +124,13 @@ defineEmits<{"toggle-mobile-sidebar": [];}>();-interface LocalState {- showQRCodeModal: boolean;- showProjectModal: boolean;-}-const agentStore = useAgentStore();const subscriptionStore = useSubscriptionV1Store();const route = useRoute();const router = useRouter();-const { locale } = useLanguage();const { record } = useRecentVisit();const { width: windowWidth } = useWindowSize();-const state = reactive<LocalState>({- showQRCodeModal: false,- showProjectModal: false,-});-const params = computed(() => {return {projectId: route.params.projectId as string | undefined,@@ -217,10 +198,6 @@ const goToMyIssues = () => {};const handleWantHelp = () => {- if (locale.value === "zh-CN") {- state.showQRCodeModal = true;- } else {- window.open("https://docs.bytebase.com/faq#how-to-reach-us", "_blank");- }+ window.open("https://docs.bytebase.com/faq#how-to-reach-us", "_blank");};</script>