Build lightweight AI agent admin

This commit is contained in:
Codex
2026-06-08 18:14:59 +08:00
commit e164840f43
2530 changed files with 435693 additions and 0 deletions
@@ -0,0 +1 @@
export { default as DatabaseTreeNodeLabel } from './index.vue';
@@ -0,0 +1,33 @@
<script lang="ts" setup>
import type { TreeNodeType } from '#/utils/database-tree/types';
import { computed } from 'vue';
import { $t } from '@vben/locales';
import { ElTag } from 'element-plus';
defineOptions({ name: 'DatabaseTreeNodeLabel' });
const props = defineProps<{
dbName?: string;
isSystem?: boolean;
label: string;
type: string | TreeNodeType;
}>();
const showSystemTag = computed(
() =>
props.type === 'connection' &&
(props.isSystem === true || props.dbName === 'default'),
);
</script>
<template>
<div class="flex items-center">
<span class="text-sm">{{ label }}</span>
<ElTag v-if="showSystemTag" class="ml-1" size="small" type="warning">
{{ $t('database-manager.systemDatabase') }}
</ElTag>
</div>
</template>