新增 XSLPrintDot 项目,包含打印服务的核心功能和相关配置。实现打印机查询、打印任务处理、远程转发功能,并支持多平台设备ID获取。优化打印数据准备逻辑,增强系统的可维护性和扩展性,同时更新工作区配置以支持新项目。
This commit is contained in:
58
XSLPrintDot/frontend/src/locales/en.json
Normal file
58
XSLPrintDot/frontend/src/locales/en.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"settings": {
|
||||
"title": "Settings",
|
||||
"language": "Language",
|
||||
"autoStart": "Start on Boot",
|
||||
"remotePrint": "Remote Print Server",
|
||||
"forwarding": "Cloud Print Forwarder",
|
||||
"serverAddress": "Server Address",
|
||||
"authAddress": "Auth Address",
|
||||
"wsAddress": "WS Address",
|
||||
"autoConnect": "Auto Reconnect",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"clientId": "Client ID",
|
||||
"secretKey": "Secret Key",
|
||||
"clientName": "Client Name (Optional)",
|
||||
"deviceIdReadonly": "Device ID is auto-detected and cannot be edited",
|
||||
"forwarderStatus": "Connection Status",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"connect": "Connect",
|
||||
"connecting": "Connecting...",
|
||||
"disconnect": "Disconnect",
|
||||
"disconnecting": "Disconnecting...",
|
||||
"lastError": "Last Error",
|
||||
"save": "Save Settings",
|
||||
"saving": "Saving...",
|
||||
"saved": "Saved",
|
||||
"restart": "Restart Now",
|
||||
"confirmRestart": "Restart Required",
|
||||
"confirmRestartMessage": "Applying these settings requires a restart. Do you want to restart now?",
|
||||
"cancel": "Cancel"
|
||||
},
|
||||
"main": {
|
||||
"title": "XSL-PrintDot",
|
||||
"subtitle": "WebSocket Printer Bridge",
|
||||
"clients": "connections",
|
||||
"serverControl": "Server Control",
|
||||
"port": "Port",
|
||||
"secretKey": "Secret Key (Optional)",
|
||||
"placeholderKey": "Leave empty for no auth",
|
||||
"startServer": "Start Server",
|
||||
"stopServer": "Stop Server",
|
||||
"connectionUrl": "Connection URL",
|
||||
"availablePrinters": "Available Printers",
|
||||
"defaultPrinter": "Default",
|
||||
"refresh": "Refresh",
|
||||
"loading": "Loading...",
|
||||
"noPrinters": "No printers found.",
|
||||
"clientConnected": "Client Connected"
|
||||
},
|
||||
"logs": {
|
||||
"title": "System Logs",
|
||||
"subtitle": "Live system events",
|
||||
"clearAll": "Clear All",
|
||||
"empty": "No logs available yet..."
|
||||
}
|
||||
}
|
||||
58
XSLPrintDot/frontend/src/locales/zh.json
Normal file
58
XSLPrintDot/frontend/src/locales/zh.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"settings": {
|
||||
"title": "设置",
|
||||
"language": "语言",
|
||||
"autoStart": "开机自启动",
|
||||
"remotePrint": "远程打印服务器",
|
||||
"forwarding": "云打印中转服务",
|
||||
"serverAddress": "服务器地址",
|
||||
"authAddress": "鉴权地址",
|
||||
"wsAddress": "WS地址",
|
||||
"autoConnect": "自动重连",
|
||||
"username": "用户名",
|
||||
"password": "密码",
|
||||
"clientId": "客户端ID",
|
||||
"secretKey": "密钥",
|
||||
"clientName": "客户端名称(可选)",
|
||||
"deviceIdReadonly": "设备ID自动获取,无法修改",
|
||||
"forwarderStatus": "连接状态",
|
||||
"connected": "已连接",
|
||||
"disconnected": "未连接",
|
||||
"connect": "连接",
|
||||
"connecting": "连接中...",
|
||||
"disconnect": "断开",
|
||||
"disconnecting": "断开中...",
|
||||
"lastError": "最近错误",
|
||||
"save": "保存",
|
||||
"saving": "保存中...",
|
||||
"saved": "已保存",
|
||||
"restart": "立即重启",
|
||||
"confirmRestart": "需要重启",
|
||||
"confirmRestartMessage": "应用这些设置需要重启程序。是否立即重启?",
|
||||
"cancel": "取消"
|
||||
},
|
||||
"main": {
|
||||
"title": "XSL-PrintDot",
|
||||
"subtitle": "WebSocket 打印桥接器",
|
||||
"clients": "个连接",
|
||||
"serverControl": "服务控制",
|
||||
"port": "端口",
|
||||
"secretKey": "密钥 (可选)",
|
||||
"placeholderKey": "留空则无需认证",
|
||||
"startServer": "启动服务",
|
||||
"stopServer": "停止服务",
|
||||
"connectionUrl": "连接地址",
|
||||
"availablePrinters": "可用打印机",
|
||||
"defaultPrinter": "默认",
|
||||
"refresh": "刷新",
|
||||
"loading": "加载中...",
|
||||
"noPrinters": "未找到打印机",
|
||||
"clientConnected": "客户端已连接"
|
||||
},
|
||||
"logs": {
|
||||
"title": "系统日志",
|
||||
"subtitle": "实时系统事件",
|
||||
"clearAll": "清除所有",
|
||||
"empty": "暂无日志..."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user