feat: 添加Neo4j图数据库支持及前端代码重构

- 新增 Neo4j 图数据库 handler、service、model
- 后端添加 SaveGraph API 接口
- 前端 Database.vue 重构,拆分为独立组件
- 新增 web/src/views/database/ 组件目录
- 删除临时文件 (temp_*.go)
- 添加 Neo4j 相关 API 需求文档

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 09:11:08 +08:00
parent 20015dbd2a
commit c917d6b04c
41 changed files with 4453 additions and 1021 deletions

View File

@@ -0,0 +1,69 @@
/* Reset - 样式重置 */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html.dark {
color-scheme: dark;
}
body {
font-family: var(--font-system, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
font-size: var(--font-size-sm, 14px);
line-height: 1.5;
color: #f3f4f6;
background-color: #0f1117;
}
a {
color: inherit;
text-decoration: none;
}
button {
border: none;
background: none;
cursor: pointer;
font: inherit;
}
input,
textarea,
select {
font: inherit;
}
ul,
ol {
list-style: none;
}
img {
max-width: 100%;
display: block;
}
/* 滚动条隐藏工具类 */
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* 内容自动可见性 */
.content-auto {
content-visibility: auto;
}

View File

@@ -0,0 +1,65 @@
/* CSS Variables - 全局变量 */
:root {
/* 主题色 */
--color-primary: #ff9500;
--color-primary-light: #ffb732;
--color-primary-dark: #cc7700;
/* 功能色 */
--color-success: #22c55e;
--color-warning: #eab308;
--color-danger: #ef4444;
--color-info: #3b82f6;
/* 文字色 */
--color-text-primary: #ffffff;
--color-text-regular: #a1a1aa;
--color-text-secondary: #71717a;
--color-text-placeholder: #6b7280;
/* 背景色 - Dark 主题 */
--color-bg-base: #0f1117;
--color-bg-dark: #171922;
--color-bg-light: #1a1c25;
--color-bg-lighter: #1f2230;
/* 边框色 */
--color-border: #2a2c36;
--color-border-light: #3a3c46;
--color-border-lighter: #4a4c56;
/* 圆角 */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-2xl: 24px;
/* 间距 */
--spacing-xs: 4px;
--spacing-sm: 8px;
--spacing-md: 12px;
--spacing-lg: 16px;
--spacing-xl: 24px;
--spacing-2xl: 32px;
/* 字体-family: -apple */
--font-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
--font-size-xs: 12px;
--font-size-sm: 14px;
--font-size-md: 16px;
--font-size-lg: 18px;
--font-size-xl: 20px;
--font-size-2xl: 24px;
/* 阴影 */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
--shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.5);
/* 动画 */
--transition-fast: 150ms ease;
--transition-base: 200ms ease;
--transition-slow: 300ms ease;
}