-
Notifications
You must be signed in to change notification settings - Fork 30
Fix and update #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix and update #139
Conversation
Chillln
commented
Oct 1, 2025
- 更新前端依赖至最新版本
- 修复登录报错
- 优化服务器设置弹窗
- 优化告警规则弹窗
更新所有UI组件中的forwardRef类型,从ElementRef改为ComponentRef以保持一致性 迁移postcss配置至mjs格式并更新依赖版本
移除自定义的 asOptionalField 工具函数,直接使用 Zod 的 optional() 方法,并明确定义表单数据类型。
将主题风格从default切换为new-york,并重构CSS变量使用OKLCH色彩空间。同时添加tailwindcss-animate插件支持。
优化多个页面头部按钮组的布局样式,增加响应式设计和flex-wrap支持
修复对话框关闭逻辑并阻止外部交互,同时禁用SWR的自动重新验证功能以提升性能。
实现基于 react-day-picker 的日历组件,并添加账单管理相关的多语言支持
为删除和禁用按钮添加text-white类名,同时调整ServerCard组件中的代码缩进格式。
调整Vite构建配置,改进第三方依赖的分组逻辑并添加UUID支持到安装命令组件
将CronPage和ServicePage的标题从"Server"分别改为"Task"和"Service",并优化NotificationGroupPage的按钮组布局。
优化登录错误提示,添加多语言支持并移除控制台错误日志。同时修复头部组件透明度样式问题。
为服务器卡片添加统一的下拉菜单操作入口,整合终端、配置和安装命令功能。
重构告警规则组件代码结构,提升渲染效率并减少内存占用。
为界面添加"Add"、"Delete"、"AdvancedJSON"和"Save"等关键操作的翻译字段,支持中英文双语显示。
重构 manualChunks 逻辑,按功能类别分组依赖项,并增加大型库的独立分包规则。
在所有确认操作的弹窗按钮中添加白色文字样式,保持视觉一致性。
根据菜单项状态动态设置下拉菜单的对齐方向和起始位置。
添加ModelOnlineUserApi接口类型,包含分页信息,并移除index.ts中重复的类型定义。
|
Linting and formatting issues were automatically fixed. Please review the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR performs a comprehensive frontend dependency update and UI improvements, including updating all React and UI-related packages to their latest versions, fixing login error handling, and optimizing dialogs/popovers with better responsive design.
- Updates frontend dependencies to latest versions (React 19, Tailwind CSS 4, etc.)
- Improves login error messages with proper internationalization
- Enhances server settings and alert rule dialogs with structured form components
Reviewed Changes
Copilot reviewed 59 out of 62 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updates all frontend dependencies to latest versions |
| vite.config.ts | Refactors build configuration with improved manual chunks for better performance |
| src/index.css | Migrates to Tailwind CSS v4 with new theme configuration |
| src/components/ui/* | Updates UI component type references from ElementRef to ComponentRef |
| src/components/server.tsx | Adds structured public note editor with calendar and validation |
| src/components/alert-rule.tsx | Implements structured rule editor with UI components |
| src/hooks/useAuth.tsx | Enhances login error handling with translated messages |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
为英文和中文翻译文件添加"NoExpiry"、"SetNoExpiry"等无过期相关字段的翻译。 fix(components): 移除重复的图标按钮选项 从IconButton组件中删除重复的"more"图标选项。
为日期选择器添加下拉布局和年份范围限制,并在公共笔记区域增加下拉项生效提示文本。
|
Linting and formatting issues were automatically fixed. Please review the changes. |
统一按钮悬停样式并简化国际化文本调用,移除冗余的单位显示和空值判断逻辑。
删除 ServerCard 组件中与 plan.networkRoute 相关的字段验证和错误显示逻辑。
|
Linting and formatting issues were automatically fixed. Please review the changes. |
|
@uubulb review ok 吗? |
pr有点大 暂时没有时间review |
- 新增Radix UI Switch组件依赖及实现 - 将IPv4/IPv6输入改为开关控件,优化用户体验 - 添加"按量付费"选项和新的翻译字段 - 改进网络路由和备注输入的占位提示 - 修复暗黑模式下的按钮背景色
|
Linting and formatting issues were automatically fixed. Please review the changes. |
调整日期选择器的宽度和高度限制,添加滚动容器以解决内容溢出问题
使用!!操作符简化controllerField.value的布尔值转换,使代码更简洁
为告警规则组件添加多语言支持,包括服务器监控选项、忽略提示和示例文本。同时将搜索框的占位文本替换为国际化字段。
|
Linting and formatting issues were automatically fixed. Please review the changes. |
|
Hi @Chillln 感谢做了这么多优化,准备合并了,麻烦把 pnpm-lock 和 bun lock 删除,很难 review 这种lock文件 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 60 out of 63 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (1)
src/components/ui/calendar.tsx:1
- The useEffect hook that focuses the button when modifiers.focused is true should include modifiers.focused in its dependency array to ensure it only runs when the focus state changes, not on every render.
import { Button, buttonVariants } from "@/components/ui/button"
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@naiba 已删除lock文件 |
|
index-Bu8s1osn.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'displayName') |
|
更新以后 点击登陆后变成空白页了 没办法登录 |
|
@naiba sorry 依赖包问题 |
|
@uubulb 好的 明天我看下 |