feat: 重做管理后台的导航、表单和登录页
This commit is contained in:
+19
-19
@@ -7,8 +7,8 @@ export const messageStateLabel: Record<string, string> = {
|
||||
};
|
||||
|
||||
export const destKindLabel: Record<string, string> = {
|
||||
endpoint: "端",
|
||||
group: "群",
|
||||
endpoint: "设备端",
|
||||
group: "群组",
|
||||
};
|
||||
|
||||
export const deliveryStateLabel: Record<string, string> = {
|
||||
@@ -31,29 +31,29 @@ export const reasonLabel: Record<string, string> = {
|
||||
};
|
||||
|
||||
export const settingsFieldLabel: Record<string, string> = {
|
||||
listen: "端监听地址",
|
||||
admin_listen: "后台监听地址",
|
||||
session_idle_days: "会话闲置天数",
|
||||
listen: "服务端口",
|
||||
admin_listen: "后台端口",
|
||||
session_idle_days: "登录闲置天数",
|
||||
record_retention_days: "记录保留天数",
|
||||
idempotency_hours: "防重小时数",
|
||||
idempotency_hours: "重复提交识别(小时)",
|
||||
receipt_retention_days: "回执保留天数",
|
||||
sqlite_synchronous: "SQLite 同步模式",
|
||||
sqlite_synchronous: "写入确认方式",
|
||||
};
|
||||
|
||||
export const limitsLabel: Record<string, string> = {
|
||||
max_body_bytes: "正文上限(字节)",
|
||||
max_meta_bytes: "元数据上限(字节)",
|
||||
max_frame_bytes: "帧上限(字节)",
|
||||
max_ttl_seconds: "TTL 上限(秒)",
|
||||
max_schedule_seconds: "定时上限(秒)",
|
||||
max_group_members: "群成员上限",
|
||||
grace_seconds: "宽限秒数",
|
||||
ack_timeout_seconds: "确认超时(秒)",
|
||||
delivery_window: "投递窗口",
|
||||
receipt_window: "回执窗口",
|
||||
requests_per_second: "每秒请求",
|
||||
max_body_bytes: "单条消息最大字节",
|
||||
max_meta_bytes: "附加信息最大字节",
|
||||
max_frame_bytes: "单帧最大字节",
|
||||
max_ttl_seconds: "离线保留最长时间(秒)",
|
||||
max_schedule_seconds: "定时最远时间(秒)",
|
||||
max_group_members: "群组人数上限",
|
||||
grace_seconds: "短暂断线宽限(秒)",
|
||||
ack_timeout_seconds: "等待确认(秒)",
|
||||
delivery_window: "同时推送条数",
|
||||
receipt_window: "同时等待回执条数",
|
||||
requests_per_second: "每秒请求上限",
|
||||
max_pending_per_sender: "发送方未完成上限",
|
||||
max_pending_per_receiver: "接收方未完成上限",
|
||||
max_pending_per_receiver: "接收方未收下上限",
|
||||
};
|
||||
|
||||
export function zhLabel(map: Record<string, string>, value: string | undefined | null, fallback = "—"): string {
|
||||
|
||||
Reference in New Issue
Block a user