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: remove introbanner (#1709)
tianzhoub9eeefd20a87
diff --git a/frontend/src/assets/illustration/guide.webp b/frontend/src/assets/illustration/guide.webpdeleted file mode 100644index c032e26183..0000000000Binary files a/frontend/src/assets/illustration/guide.webp and /dev/null differdiff --git a/frontend/src/components/IntroBanner.vue b/frontend/src/components/IntroBanner.vuedeleted file mode 100644index 96ba39190b..0000000000--- a/frontend/src/components/IntroBanner.vue+++ /dev/null@@ -1,58 +0,0 @@-<template>- <div class="hidden md:flex justify-center items-center border m-4">- <img class="m-4 h-72" src="../assets/illustration/guide.webp" alt="" />- <div class="m-4">- <h2 class="text-xl text-main">- <i18n-t keypath="intro.content">- <template #quickstart>- <span class="text-accent">{{ $t("common.quickstart") }}</span>- </template>- <template #doc>- <a- class="normal-link"- href="https://bytebase.com/docs?source=console"- target="__blank"- >- {{ $t("intro.doc") }}- </a>- </template>- <template #issue>- <a- class="normal-link"- href="https://github.com/bytebase/bytebase/issues"- target="__blank"- >- {{ $t("intro.issue") }}- </a>- </template>- </i18n-t>- </h2>- <div class="mt-4">- <button class="btn-normal" @click.prevent="dismiss">- {{ $t("common.dismiss") }}- </button>- </div>- </div>- </div>-</template>--<script lang="ts">-import { useUIStateStore } from "@/store";-import { defineComponent } from "vue";--export default defineComponent({- name: "IntroBanner",- components: {},- setup() {- const dismiss = () => {- useUIStateStore().saveIntroStateByKey({- key: "general.overview",- newState: true,- });- };- return {- dismiss,- };- },-});-</script>diff --git a/frontend/src/components/ProfileDropdown.vue b/frontend/src/components/ProfileDropdown.vueindex 5733a2797e..ee8cdf78ae 100644--- a/frontend/src/components/ProfileDropdown.vue+++ b/frontend/src/components/ProfileDropdown.vue@@ -99,7 +99,11 @@@click.prevent="resetQuickstart">{{ $t("common.quickstart") }}</a>- <a href="https://bytebase.com/docs?source=console" target="_blank" class="menu-item">+ <a+ href="https://bytebase.com/docs?source=console"+ target="_blank"+ class="menu-item"+ >{{ $t("common.help") }}</a></div>@@ -166,7 +170,6 @@ export default defineComponent({const resetQuickstart = () => {const keys = [- "general.overview","bookmark.create","comment.create","project.visit",diff --git a/frontend/src/layouts/BodyLayout.vue b/frontend/src/layouts/BodyLayout.vueindex b362f0869e..cb23cbcbcf 100644--- a/frontend/src/layouts/BodyLayout.vue+++ b/frontend/src/layouts/BodyLayout.vue@@ -126,7 +126,6 @@<div v-if="showBreadcrumb" class="hidden md:block px-4 pt-4"><Breadcrumb /></div>- <IntroBanner v-if="showIntro" /><div v-if="quickActionList.length > 0" class="mx-4 mt-4"><QuickActionPanel :quick-action-list="quickActionList" /></div>@@ -149,7 +148,6 @@import { computed, defineComponent, reactive } from "vue";import { useRouter } from "vue-router";import Breadcrumb from "../components/Breadcrumb.vue";-import IntroBanner from "../components/IntroBanner.vue";import Quickstart from "../components/Quickstart.vue";import QuickActionPanel from "../components/QuickActionPanel.vue";import { QuickActionType } from "../types";@@ -170,7 +168,6 @@ export default defineComponent({name: "BodyLayout",components: {Breadcrumb,- IntroBanner,Quickstart,QuickActionPanel,},@@ -234,10 +231,6 @@ export default defineComponent({return !(name === "workspace.home" || name === "workspace.profile");});- const showIntro = computed(- () => !uiStateStore.getIntroStateByKey("general.overview")- );-const showQuickstart = computed(() => {// Do not show quickstart in demo mode since we don't expect user to alter the datareturn (@@ -278,7 +271,6 @@ export default defineComponent({state,quickActionList,showBreadcrumb,- showIntro,showQuickstart,version,gitCommit,diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 2ac2a822bf..27bb3bb3c9 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -273,8 +273,6 @@"debug": "Debug mode is active, you can disable Debug mode via the top-right profile dropdown."},"intro": {- "content": "Bytebase is for DBAs and Developers to collaborate on database schemas changes. One can construct a single pipeline to propagate the schema change across multiple environments. One can also store the schemas in VCS and trigger a new pipeline upon commit push. Follow the {quickstart} on the bottom left to get familiar with the product. If you encounter problems, visit {doc} or report {issue} on GitHub.",- "quickstart": "Quickstart","doc": "doc","issue": "issue"},diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex bba6f484fc..5ee000cfb8 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -273,7 +273,6 @@"debug": "Debug 模式已开启,您可以通过右上角头像下拉框关闭 Debug。"},"intro": {- "content": "Bytebase 是为 DBA 和开发人员进行数据库表结构 (schema) 变更而设计的团队协作工具。用户可以通过一个工作流 (pipeline),来推进 schema 在多个环境中的变化。同时用户也可以把 schema 保存在 VCS 中 ,再由新的 schema 文件提交来触发工作流。请通过左下角的{quickstart}来熟悉该产品。如果遇到问题,请访问{doc}或在 GitHub 上报告{issue}。","doc": "文档","issue": "工单","quickstart": "快速入门"