diff --git a/AGENTS.md b/AGENTS.md index c2c34d1..8f5d869 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,6 +31,8 @@ npm run test:coverage # 测试覆盖率 **重要**: 修改 `src/main/` 目录下的文件后,必须运行 `npm test` 确保测试通过。 +**注意**: 仅修改 `src/renderer/`(前端/UI)或 `src/preload/` 文件时,不需要运行测试,只需确保类型检查通过(`npx tsc --noEmit`)即可。 + ## 2. 项目架构 ``` diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 3291699..3cffa59 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -8,20 +8,20 @@ import { useTranslation } from "react-i18next"; import { Layout, Typography, - theme, ConfigProvider, App as AntApp, Space, } from "antd"; -import { Button, Tooltip, DropdownMenu } from "@lobehub/ui"; -import { SettingOutlined } from "@ant-design/icons"; + +import { Button, Tooltip, Modal } from "@lobehub/ui"; + import { - Github, Cloud, CloudUpload, History, PanelLeftClose, PanelLeftOpen, + Settings as SettingsIcon, } from "lucide-react"; import { createStyles } from "antd-style"; @@ -37,7 +37,7 @@ const { Header, Content, Sider } = Layout; const { Title } = Typography; // Domain section heights -const DOMAIN_SECTION_COLLAPSED = 76; // 增加高度,避免按钮覆盖文字 +const DOMAIN_SECTION_COLLAPSED = 76; // 增加高度,避免按钮覆盖文字 const DOMAIN_SECTION_EXPANDED = 240; const DEFAULT_SIDER_WIDTH = 320; const MIN_SIDER_WIDTH = 280; @@ -150,9 +150,6 @@ const useStyles = createStyles(({ token, css }) => ({ const App: React.FC = () => { const { t } = useTranslation("common"); const { styles } = useStyles(); - const { - token: { colorBgContainer }, - } = theme.useToken(); const { currentDomain } = useDomainStore(); const { @@ -221,13 +218,10 @@ const App: React.FC = () => {
- + Kintone Manager
- + - } />} - items={[ - { - key: "settings", - icon: , - label: t("settings"), - onClick: () => setSettingsOpen(true), - }, - { type: "divider" }, - { - key: "github", - icon: , - label: "GitHub", - onClick: () => window.open("https://github.com", "_blank"), - }, - ]} - /> + +