mirror of
https://github.com/hansjone/netx.git
synced 2026-10-15 22:20:46 +08:00
Structure
- pages/ -> features/<domain>/{Page, components, hooks, lib}; 95 files moved,
333 imports rewritten, verified with tsc.
- services/api.ts -> services/api/<domain>.ts (250 exports preserved),
types.ts -> types/<domain>.ts, i18n zh/en -> locales/<lang>/<namespace>.ts
(2696 messages deep-equal before/after).
- ESLint rule: shared layers must not import features/.
Styles
- index.css (16k lines) split losslessly into styles/{base,layout,components,
pages,legacy,theme}; compiled CSS was byte-identical before tokenizing.
- ~930 hard-coded colors replaced by --nx-* tokens (theme/tokens.css); WebCRT
off-palette colors unified; fixed dark-on-dark text introduced by mapping.
- theme/theme.css: modern blue design language (rounded shapes, gradients,
unified buttons/fields/tables/modals), form-grid alignment fix, flat nav list
without tree indent, soft selected state instead of left accent bar.
Docs: WEB.md documents code structure and style rules.
Not touched: the large Biz*/Webcrt/Topology page components (to be split later).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
109 lines
2.9 KiB
TypeScript
109 lines
2.9 KiB
TypeScript
const lldpLinks = {
|
||
title: "LLDP 链路",
|
||
collectNow: "立即采集",
|
||
retryFailed: "一键重试失败",
|
||
started: "已启动 LLDP 采集",
|
||
pause: "暂停",
|
||
resume: "继续",
|
||
stop: "停止",
|
||
confirmStop: "停止后将取消未扫描的网元,确定停止本轮采集?",
|
||
paused: "已暂停",
|
||
resumed: "已继续",
|
||
stopped: "已停止采集",
|
||
policyTitle: "采集策略",
|
||
policySaved: "策略已保存",
|
||
enabled: "启用周期调度",
|
||
autoAddUnmatched: "发现时自动入库未匹配网元(占位)",
|
||
autoAddUnmatchedHint: "周期采集与画布单点发现共用;关闭则未匹配邻居只记未匹配、不建占位网元。默认开启。",
|
||
intervalDays: "周期(天)",
|
||
interval: "采集周期",
|
||
intervalUnitDays: "天",
|
||
intervalUnitHours: "小时",
|
||
concurrency: "并发",
|
||
historyKeep: "任务保留数",
|
||
scope: "范围",
|
||
scopeAll: "全部网元(纳管+UME)",
|
||
scopeSelected: "指定网元",
|
||
savePolicy: "保存策略",
|
||
selectedCount: "已选 {{count}} 台",
|
||
targetKeywordPh: "名称 / IP / 厂商",
|
||
jobsTitle: "采集任务",
|
||
jobDetailTitle: "任务明细",
|
||
expand: "详情",
|
||
edgesTitle: "Fabric 链路",
|
||
edgeKeywordPh: "本端 / 对端名称或 IP",
|
||
edgeStatusAll: "全部状态",
|
||
edgeStatusActive: "活跃",
|
||
edgeStatusMissing: "未发现",
|
||
edgeSourceAll: "全部来源",
|
||
exportEdgesName: "lldp-fabric-edges",
|
||
exportJobsName: "lldp-collect-jobs",
|
||
exportItemsName: "lldp-job-items",
|
||
statusAll: "全部状态",
|
||
jobKeywordPh: "任务 ID / 错误 / 范围",
|
||
itemKeywordPh: "网元名称 / IP / 错误",
|
||
itemResultAll: "全部结果",
|
||
missCount: "未发现周期",
|
||
replacedBy: "已被替换",
|
||
kpi: {
|
||
nodes: "Fabric 网元",
|
||
edges: "活跃链路",
|
||
missing: "未发现",
|
||
running: "进行中",
|
||
idle: "空闲",
|
||
last: "最近任务",
|
||
nextDue: "下次调度",
|
||
},
|
||
col: {
|
||
source: "来源",
|
||
name: "设备",
|
||
vendor: "厂商",
|
||
trigger: "触发",
|
||
scope: "范围",
|
||
status: "状态",
|
||
progress: "进度",
|
||
edges: "链路",
|
||
missingDelta: "未发现/清理",
|
||
started: "开始",
|
||
ended: "结束",
|
||
neighbors: "邻居",
|
||
error: "错误",
|
||
aSide: "本端",
|
||
bSide: "对端",
|
||
aPort: "本端口",
|
||
bPort: "对端口",
|
||
lastSeen: "最近看见",
|
||
},
|
||
jobStatus: {
|
||
running: "运行中",
|
||
pending: "排队中",
|
||
paused: "已暂停",
|
||
done: "已完成",
|
||
failed: "失败",
|
||
cancelled: "已取消",
|
||
stopped: "已停止",
|
||
},
|
||
triggerMode: {
|
||
manual: "手动",
|
||
schedule: "周期",
|
||
topology: "拓扑画布",
|
||
retry_failed: "重试失败",
|
||
},
|
||
jobScope: {
|
||
all: "全部网元",
|
||
ne_ids: "指定网元",
|
||
selected: "指定网元",
|
||
},
|
||
itemResult: {
|
||
ok: "成功",
|
||
warn: "警告",
|
||
fail: "失败",
|
||
},
|
||
edgeSource: {
|
||
lldp: "LLDP",
|
||
manual: "手动",
|
||
stale: "陈旧",
|
||
},
|
||
};
|
||
|
||
export default lldpLinks;
|