Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(frontend): show tenant icon in project list (#1941)
Liu Jif6a42d8efc16
diff --git a/frontend/src/components/ProjectTable.vue b/frontend/src/components/ProjectTable.vueindex 8e6dc4e993..195bd67835 100644--- a/frontend/src/components/ProjectTable.vue+++ b/frontend/src/components/ProjectTable.vue@@ -16,12 +16,12 @@<BBTableCell :left-padding="4" class="table-cell text-gray-500 w-[30%]"><span class="flex flex-row items-center space-x-1"><span>{{ project.key }}</span>- <BBBadge- v-if="project.tenantMode === 'TENANT'"- :text="$t('project.mode.tenant')"- :can-remove="false"- size="small"- />+ <div v-if="project.tenantMode === 'TENANT'" class="tooltip-wrapper">+ <TenantIcon class="ml-1 w-4 h-4 text-control" />+ <span class="tooltip whitespace-nowrap">+ {{ $t("project.mode.tenant") }}+ </span>+ </div><div v-if="project.rowStatus === 'ARCHIVED'" class="tooltip-wrapper"><heroicons-outline:archive class="ml-1 w-4 h-4 text-control" /><span class="tooltip whitespace-nowrap">@@ -49,13 +49,16 @@<script lang="ts">import { PropType, computed, defineComponent } from "vue";import { useRouter } from "vue-router";+import { useI18n } from "vue-i18n";import { projectSlug } from "../utils";import { Project } from "../types";-import { useI18n } from "vue-i18n";+import TenantIcon from "./TenantIcon.vue";export default defineComponent({name: "ProjectTable",- components: {},+ components: {+ TenantIcon,+ },props: {projectList: {required: true,diff --git a/frontend/src/components/TenantIcon.vue b/frontend/src/components/TenantIcon.vuenew file mode 100644index 0000000000..2cac697ab7--- /dev/null+++ b/frontend/src/components/TenantIcon.vue@@ -0,0 +1,61 @@+<template>+ <svg+ width="189"+ height="189"+ viewBox="0 0 189 189"+ xmlns="http://www.w3.org/2000/svg"+ >+ <g>+ <path+ d="M18.5 104V29C18.5 29 29 14 59.5 13.5C90 13 102.5 29 102.5 29V104C102.5 104 84.5 115.5 59.5 114.5C34.5 113.5 18.5 104 18.5 104Z"+ fill="white"+ stroke="currentColor"+ stroke-width="10"+ />+ <path+ d="M60.5 49.375C36.3 49.375 10.0834 42.8208 10.0834 29.2083C10.0834 15.5958 36.3 9.04167 60.5 9.04167C84.7 9.04167 110.917 15.5958 110.917 29.2083C110.917 42.8208 84.7 49.375 60.5 49.375V49.375ZM60.5 19.125C34.2834 19.125 20.1667 26.6875 20.1667 29.2083C20.1667 31.7292 34.2834 39.2917 60.5 39.2917C86.7167 39.2917 100.833 31.7292 100.833 29.2083C100.833 26.6875 86.7167 19.125 60.5 19.125V19.125ZM60.5 84.6667C36.3 84.6667 10.0834 78.1125 10.0834 64.5C10.0834 61.475 12.1 59.4583 15.125 59.4583C18.15 59.4583 20.1667 61.475 20.1667 64.5C20.1667 67.0208 32.7709 74.5833 60.5 74.5833C88.2292 74.5833 100.833 67.0208 100.833 64.5C100.833 61.475 102.85 59.4583 105.875 59.4583C108.9 59.4583 110.917 61.475 110.917 64.5C110.917 78.1125 84.7 84.6667 60.5 84.6667V84.6667Z"+ fill="currentColor"+ />+ <path+ d="M60.5 119.958C36.3 119.958 10.0834 113.404 10.0834 99.7917V29.2083C10.0834 26.1833 12.1 24.1667 15.125 24.1667C18.15 24.1667 20.1667 26.1833 20.1667 29.2083V99.7917C20.1667 102.313 32.7709 109.875 60.5 109.875C88.2292 109.875 100.833 102.313 100.833 99.7917V29.2083C100.833 26.1833 102.85 24.1667 105.875 24.1667C108.9 24.1667 110.917 26.1833 110.917 29.2083V99.7917C110.917 113.404 84.7 119.958 60.5 119.958V119.958Z"+ fill="currentColor"+ />+ <path+ d="M87.5 124V49C87.5 49 98 34 128.5 33.5C159 33 171.5 49 171.5 49V124C171.5 124 153.5 135.5 128.5 134.5C103.5 133.5 87.5 124 87.5 124Z"+ fill="white"+ stroke="currentColor"+ stroke-width="10"+ />+ <path+ d="M129.5 69.375C105.3 69.375 79.0834 62.8208 79.0834 49.2083C79.0834 35.5958 105.3 29.0417 129.5 29.0417C153.7 29.0417 179.917 35.5958 179.917 49.2083C179.917 62.8208 153.7 69.375 129.5 69.375V69.375ZM129.5 39.125C103.283 39.125 89.1667 46.6875 89.1667 49.2083C89.1667 51.7292 103.283 59.2917 129.5 59.2917C155.717 59.2917 169.833 51.7292 169.833 49.2083C169.833 46.6875 155.717 39.125 129.5 39.125V39.125ZM129.5 104.667C105.3 104.667 79.0834 98.1125 79.0834 84.5C79.0834 81.475 81.1 79.4583 84.125 79.4583C87.15 79.4583 89.1667 81.475 89.1667 84.5C89.1667 87.0208 101.771 94.5833 129.5 94.5833C157.229 94.5833 169.833 87.0208 169.833 84.5C169.833 81.475 171.85 79.4583 174.875 79.4583C177.9 79.4583 179.917 81.475 179.917 84.5C179.917 98.1125 153.7 104.667 129.5 104.667V104.667Z"+ fill="currentColor"+ />+ <path+ d="M129.5 139.958C105.3 139.958 79.0834 133.404 79.0834 119.792V49.2083C79.0834 46.1833 81.1 44.1667 84.125 44.1667C87.15 44.1667 89.1667 46.1833 89.1667 49.2083V119.792C89.1667 122.313 101.771 129.875 129.5 129.875C157.229 129.875 169.833 122.313 169.833 119.792V49.2083C169.833 46.1833 171.85 44.1667 174.875 44.1667C177.9 44.1667 179.917 46.1833 179.917 49.2083V119.792C179.917 133.404 153.7 139.958 129.5 139.958V139.958Z"+ fill="currentColor"+ />+ <path+ d="M45.5 164V89C45.5 89 56 74 86.5 73.5C117 73 129.5 89 129.5 89V164C129.5 164 111.5 175.5 86.5 174.5C61.5 173.5 45.5 164 45.5 164Z"+ fill="white"+ stroke="currentColor"+ stroke-width="10"+ />+ <path+ d="M87.5 109.375C63.3 109.375 37.0834 102.821 37.0834 89.2083C37.0834 75.5958 63.3 69.0417 87.5 69.0417C111.7 69.0417 137.917 75.5958 137.917 89.2083C137.917 102.821 111.7 109.375 87.5 109.375V109.375ZM87.5 79.125C61.2834 79.125 47.1667 86.6875 47.1667 89.2083C47.1667 91.7292 61.2834 99.2917 87.5 99.2917C113.717 99.2917 127.833 91.7292 127.833 89.2083C127.833 86.6875 113.717 79.125 87.5 79.125V79.125ZM87.5 144.667C63.3 144.667 37.0834 138.113 37.0834 124.5C37.0834 121.475 39.1 119.458 42.125 119.458C45.15 119.458 47.1667 121.475 47.1667 124.5C47.1667 127.021 59.7709 134.583 87.5 134.583C115.229 134.583 127.833 127.021 127.833 124.5C127.833 121.475 129.85 119.458 132.875 119.458C135.9 119.458 137.917 121.475 137.917 124.5C137.917 138.113 111.7 144.667 87.5 144.667V144.667Z"+ fill="currentColor"+ />+ <path+ d="M87.5 179.958C63.3 179.958 37.0834 173.404 37.0834 159.792V89.2083C37.0834 86.1833 39.1 84.1667 42.125 84.1667C45.15 84.1667 47.1667 86.1833 47.1667 89.2083V159.792C47.1667 162.313 59.7709 169.875 87.5 169.875C115.229 169.875 127.833 162.313 127.833 159.792V89.2083C127.833 86.1833 129.85 84.1667 132.875 84.1667C135.9 84.1667 137.917 86.1833 137.917 89.2083V159.792C137.917 173.404 111.7 179.958 87.5 179.958V179.958Z"+ fill="currentColor"+ />+ </g>+ </svg>+</template>++<script lang="ts">+import { defineComponent } from "vue";++export default defineComponent({+ name: "TenantIcon",+});+</script>