♻️ refactor(codebase): 拆分大文件并收敛模块职责

- 拆分 ConnectionModal、DataGrid、QueryEditor、App 等前端大文件

- 抽出 driver assets、v2 workbench 样式和 source-as-test 读取辅助

- 更新相关测试以覆盖拆分后的源码位置
This commit is contained in:
Syngnat
2026-06-19 23:10:00 +08:00
parent 6179c3fbd9
commit 0f67305100
33 changed files with 22113 additions and 18998 deletions

View File

@@ -0,0 +1,6 @@
import { readFileSync } from 'node:fs';
export const readV2ThemeCss = (): string => [
readFileSync(new URL('../v2-theme.css', import.meta.url), 'utf8'),
readFileSync(new URL('../styles/v2-theme-workbench.css', import.meta.url), 'utf8'),
].join('\n');