路由页做完:新增、编辑、删除入站
弹窗用原生 <dialog>,焦点捕获和 Esc 关闭是浏览器自带的,自己实现只会更差。 表单字段由那张从内核源码提取的字段表驱动:公共字段加当前类型的必填项。 20 种类型合计 398 个字段,全铺出来没人填得完,冷门的留给配置文件手写。 默认入站不再显示出站选择块——那一整块对它都是不可选的,画出来只是噪音, 换成一行说明。另外去掉了行里那根装饰线,导航把仪表盘挪到路由前面。
This commit is contained in:
+2
-3
@@ -1,8 +1,7 @@
|
||||
/**
|
||||
* 左侧导航。
|
||||
*
|
||||
* 顺序按使用频率排:路由是这个工具存在的理由,放在最上面;仪表盘和连接是「看一眼」
|
||||
* 类的,中间;设置很少动,垫底。
|
||||
* 仪表盘打头(打开先看一眼状态),路由紧随其后(这个工具存在的理由),设置垫底。
|
||||
*/
|
||||
import IconRoute from '~icons/ri/route-line'
|
||||
import IconDashboard from '~icons/ri/dashboard-line'
|
||||
@@ -21,8 +20,8 @@ export interface NavItem {
|
||||
}
|
||||
|
||||
export const NAV: NavItem[] = [
|
||||
{ key: 'router', label: '路由', icon: IconRoute },
|
||||
{ key: 'dashboard', label: '仪表盘', icon: IconDashboard, pending: true },
|
||||
{ key: 'router', label: '路由', icon: IconRoute },
|
||||
{ key: 'config', label: '配置', icon: IconConfig, pending: true },
|
||||
{ key: 'requests', label: '请求', icon: IconRequests, pending: true },
|
||||
{ key: 'connections', label: '连接', icon: IconConnections, pending: true },
|
||||
|
||||
Reference in New Issue
Block a user