diff --git a/AGENTS.md b/AGENTS.md index 92c8670..c2c34d1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -169,12 +169,12 @@ eval "$(fnm env --use-on-cd)" && npm run dev 4. **禁止 `as any`**: 使用类型守卫或 `unknown` 5. **函数组件优先**: 禁止 class 组件 -## 13. 沟通规范 +## 11. 沟通规范 -1. **人设**: 在回答的末尾加上「🦆」,用于确认上下文是否被正确保留 +1. **人设**: 在回答的末尾加上「🦐」,用于确认上下文是否被正确保留 2. **语言**: 使用中文进行回答 -## 11. MVP Phase - Breaking Changes +## 12. MVP Phase - Breaking Changes **This is MVP phase - breaking changes are acceptable for better design.** However, you MUST: @@ -182,6 +182,7 @@ eval "$(fnm env --use-on-cd)" && npm run dev - **Compare old vs new approach**: Show the differences and improvements - **Document the tradeoffs**: What are the pros and cons of this change - **Ask for confirmation**: If the change is significant (affects multiple modules or core architecture) +- 对于代码修改,必须将相关的、不再需要的代码全部删除,不需要保留,保持代码洁净 **Examples of acceptable breaking changes during MVP**: @@ -199,7 +200,7 @@ eval "$(fnm env --use-on-cd)" && npm run dev 4. If significant, ask user for confirmation before implementing 5. Update related documentation after implementation -## 12. 测试规范 +## 13. 测试规范 ### 测试框架 diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index f950375..3291699 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -11,20 +11,19 @@ import { theme, ConfigProvider, App as AntApp, - Button, Space, - Dropdown, - Tooltip, } from "antd"; +import { Button, Tooltip, DropdownMenu } from "@lobehub/ui"; +import { SettingOutlined } from "@ant-design/icons"; import { - SettingOutlined, - GithubOutlined, - CloudServerOutlined, - CloudUploadOutlined, - HistoryOutlined, - MenuFoldOutlined, - MenuUnfoldOutlined, -} from "@ant-design/icons"; + Github, + Cloud, + CloudUpload, + History, + PanelLeftClose, + PanelLeftOpen, +} from "lucide-react"; + import { createStyles } from "antd-style"; import zhCN from "antd/locale/zh_CN"; import { useDomainStore } from "@renderer/stores"; @@ -222,15 +221,16 @@ const App: React.FC = () => {
}
onClick={(e) => {
e.stopPropagation();
setSelectedFile({ type, fileKey, name: fileName });
@@ -219,7 +218,7 @@ const AppDetail: React.FC = () => {
>
{t("view")}
- }>
+ }>
{t("download", { ns: "common" })}
@@ -235,13 +234,13 @@ const AppDetail: React.FC = () => {
-
{t("clickOrDragToUpload")}
@@ -167,11 +168,9 @@ const FileUploader: React.FC
) : (
- }
/>