seeder-st2110-components 1.7.10 → 1.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +476 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +478 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1308,6 +1308,69 @@ var useWebSocketWithFeatures$1 = useWebSocketWithFeatures;
|
|
|
1308
1308
|
// 在控制台中直接查看所有可用的导出方法 Object.keys(window).filter(key => key.startsWith('exportWebSocketLogs_'))
|
|
1309
1309
|
// 导出特定连接的日志 window['exportWebSocketLogs_d3M6Ly8xOTIuMTY4LjEyMy4yMDQvd3MvZHZyL3ZpZGVvX3N0YXR1c19jaGFuZ2U=']();
|
|
1310
1310
|
|
|
1311
|
+
/**
|
|
1312
|
+
* 国际化调试工具
|
|
1313
|
+
* 在浏览器控制台运行 window.debugI18n() 查看当前国际化状态
|
|
1314
|
+
*/
|
|
1315
|
+
|
|
1316
|
+
const debugI18n = () => {
|
|
1317
|
+
var _window$g_initialProp, _window$g_initialProp2, _window$g_initialProp3, _window$g_initialProp4, _window$g_initialProp5, _window$g_initialProp6;
|
|
1318
|
+
if (typeof window === 'undefined') {
|
|
1319
|
+
console.log('[i18n debug] Not in browser environment');
|
|
1320
|
+
return;
|
|
1321
|
+
}
|
|
1322
|
+
console.group('🌍 I18n Debug Information');
|
|
1323
|
+
|
|
1324
|
+
// 1. 当前语言环境
|
|
1325
|
+
console.log('📍 Current Locale Sources:');
|
|
1326
|
+
console.log(' - window.g_initialProps?.locale:', (_window$g_initialProp = window.g_initialProps) === null || _window$g_initialProp === void 0 ? void 0 : _window$g_initialProp.locale);
|
|
1327
|
+
console.log(' - window.g_initialProps?.___g_initialPropsFromServer?.locale:', (_window$g_initialProp2 = window.g_initialProps) === null || _window$g_initialProp2 === void 0 || (_window$g_initialProp2 = _window$g_initialProp2.___g_initialPropsFromServer) === null || _window$g_initialProp2 === void 0 ? void 0 : _window$g_initialProp2.locale);
|
|
1328
|
+
try {
|
|
1329
|
+
console.log(' - localStorage.umi-locale:', localStorage.getItem('umi-locale'));
|
|
1330
|
+
} catch (e) {
|
|
1331
|
+
console.log(' - localStorage: not available');
|
|
1332
|
+
}
|
|
1333
|
+
console.log(' - window.__COMPONENT_LOCALE__:', window.__COMPONENT_LOCALE__);
|
|
1334
|
+
|
|
1335
|
+
// 2. 语言包
|
|
1336
|
+
console.log('\n📦 Available Message Sources:');
|
|
1337
|
+
console.log(' - window.__COMPONENT_I18N_MESSAGES__:', window.__COMPONENT_I18N_MESSAGES__);
|
|
1338
|
+
console.log(' - window.__PROJECT_I18N_MESSAGES__:', window.__PROJECT_I18N_MESSAGES__);
|
|
1339
|
+
console.log(' - window.g_initialProps?.messages:', (_window$g_initialProp3 = window.g_initialProps) === null || _window$g_initialProp3 === void 0 ? void 0 : _window$g_initialProp3.messages);
|
|
1340
|
+
|
|
1341
|
+
// 3. 合并后的语言包
|
|
1342
|
+
const componentMessages = window.__COMPONENT_I18N_MESSAGES__ || {};
|
|
1343
|
+
const projectMessages = window.__PROJECT_I18N_MESSAGES__ || {};
|
|
1344
|
+
const umiMessages = ((_window$g_initialProp4 = window.g_initialProps) === null || _window$g_initialProp4 === void 0 ? void 0 : _window$g_initialProp4.messages) || {};
|
|
1345
|
+
const allLocales = new Set([...Object.keys(componentMessages), ...Object.keys(projectMessages), ...Object.keys(umiMessages)]);
|
|
1346
|
+
console.log('\n🔧 Merged Locales:', Array.from(allLocales));
|
|
1347
|
+
allLocales.forEach(locale => {
|
|
1348
|
+
const merged = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, umiMessages[locale] || {}), projectMessages[locale] || {}), componentMessages[locale] || {});
|
|
1349
|
+
console.log("\n \uD83D\uDCC4 ".concat(locale, " (").concat(Object.keys(merged).length, " keys):"), merged);
|
|
1350
|
+
});
|
|
1351
|
+
|
|
1352
|
+
// 4. 测试几个关键的 key
|
|
1353
|
+
console.log('\n🧪 Test Translation:');
|
|
1354
|
+
const testKeys = ['networkSettings.title', 'button.ok', 'button.cancel', 'button.apply', 'button.close'];
|
|
1355
|
+
const currentLocale = ((_window$g_initialProp5 = window.g_initialProps) === null || _window$g_initialProp5 === void 0 ? void 0 : _window$g_initialProp5.locale) || ((_window$g_initialProp6 = window.g_initialProps) === null || _window$g_initialProp6 === void 0 || (_window$g_initialProp6 = _window$g_initialProp6.___g_initialPropsFromServer) === null || _window$g_initialProp6 === void 0 ? void 0 : _window$g_initialProp6.locale) || localStorage.getItem('umi-locale') || 'zh-CN';
|
|
1356
|
+
const allMessages = {};
|
|
1357
|
+
allLocales.forEach(locale => {
|
|
1358
|
+
allMessages[locale] = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, umiMessages[locale] || {}), projectMessages[locale] || {}), componentMessages[locale] || {});
|
|
1359
|
+
});
|
|
1360
|
+
testKeys.forEach(key => {
|
|
1361
|
+
var _allMessages$currentL, _allMessages$enUS;
|
|
1362
|
+
const translation = ((_allMessages$currentL = allMessages[currentLocale]) === null || _allMessages$currentL === void 0 ? void 0 : _allMessages$currentL[key]) || ((_allMessages$enUS = allMessages['en-US']) === null || _allMessages$enUS === void 0 ? void 0 : _allMessages$enUS[key]) || '❌ NOT FOUND';
|
|
1363
|
+
console.log(" - ".concat(key, ": ").concat(translation));
|
|
1364
|
+
});
|
|
1365
|
+
console.groupEnd();
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1368
|
+
// 自动在开发环境注册到 window
|
|
1369
|
+
if (process.env.NODE_ENV === 'development' && typeof window !== 'undefined') {
|
|
1370
|
+
window.debugI18n = debugI18n;
|
|
1371
|
+
console.log('💡 I18n debug tool available. Run window.debugI18n() in console to check i18n status.');
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1311
1374
|
/**
|
|
1312
1375
|
* seeder-st2110-components 组件库国际化 Hook
|
|
1313
1376
|
*
|
|
@@ -1325,26 +1388,58 @@ var useWebSocketWithFeatures$1 = useWebSocketWithFeatures;
|
|
|
1325
1388
|
const getLocale = () => {
|
|
1326
1389
|
// 尝试从 Umi 获取语言设置
|
|
1327
1390
|
if (typeof window !== 'undefined') {
|
|
1328
|
-
var _window$g_initialProp;
|
|
1391
|
+
var _window$g_initialProp, _window$g_initialProp2;
|
|
1392
|
+
// 方式 1:Umi 的 g_initialProps
|
|
1329
1393
|
if ((_window$g_initialProp = window.g_initialProps) !== null && _window$g_initialProp !== void 0 && _window$g_initialProp.locale) {
|
|
1330
1394
|
return window.g_initialProps.locale;
|
|
1331
1395
|
}
|
|
1332
|
-
|
|
1333
|
-
|
|
1396
|
+
// 方式 2:Umi 的全局语言标记
|
|
1397
|
+
if ((_window$g_initialProp2 = window.g_initialProps) !== null && _window$g_initialProp2 !== void 0 && (_window$g_initialProp2 = _window$g_initialProp2.___g_initialPropsFromServer) !== null && _window$g_initialProp2 !== void 0 && _window$g_initialProp2.locale) {
|
|
1398
|
+
return window.g_initialProps.___g_initialPropsFromServer.locale;
|
|
1334
1399
|
}
|
|
1400
|
+
// 方式 3:从 localStorage 读取(Umi 默认行为)
|
|
1401
|
+
try {
|
|
1402
|
+
const storedLocale = localStorage.getItem('umi-locale');
|
|
1403
|
+
if (storedLocale) {
|
|
1404
|
+
return storedLocale;
|
|
1405
|
+
}
|
|
1406
|
+
} catch (e) {
|
|
1407
|
+
// localStorage 不可用时忽略
|
|
1408
|
+
}
|
|
1409
|
+
// 方式 4:组件库自定义语言标记
|
|
1335
1410
|
if (window.__COMPONENT_LOCALE__) {
|
|
1336
1411
|
return window.__COMPONENT_LOCALE__;
|
|
1337
1412
|
}
|
|
1338
1413
|
}
|
|
1414
|
+
// 默认语言
|
|
1339
1415
|
return 'zh-CN';
|
|
1340
1416
|
};
|
|
1341
1417
|
|
|
1342
1418
|
/**
|
|
1343
1419
|
* 获取语言包
|
|
1420
|
+
* 优先从主项目读取,其次使用组件库自带的语言包
|
|
1344
1421
|
*/
|
|
1345
1422
|
const getMessages = () => {
|
|
1346
1423
|
if (typeof window !== 'undefined') {
|
|
1347
|
-
|
|
1424
|
+
var _window$g_initialProp3;
|
|
1425
|
+
// 尝试从多个来源读取语言包
|
|
1426
|
+
const messages = {};
|
|
1427
|
+
|
|
1428
|
+
// 1. 组件库注册的语言包
|
|
1429
|
+
const componentMessages = window.__COMPONENT_I18N_MESSAGES__ || {};
|
|
1430
|
+
|
|
1431
|
+
// 2. 主项目的语言包
|
|
1432
|
+
const projectMessages = window.__PROJECT_I18N_MESSAGES__ || {};
|
|
1433
|
+
|
|
1434
|
+
// 3. Umi 的语言包
|
|
1435
|
+
const umiMessages = ((_window$g_initialProp3 = window.g_initialProps) === null || _window$g_initialProp3 === void 0 ? void 0 : _window$g_initialProp3.messages) || {};
|
|
1436
|
+
|
|
1437
|
+
// 合并语言包(组件库的优先级最高,其次是主项目,最后是 Umi)
|
|
1438
|
+
const allLocales = new Set([...Object.keys(componentMessages), ...Object.keys(projectMessages), ...Object.keys(umiMessages)]);
|
|
1439
|
+
allLocales.forEach(locale => {
|
|
1440
|
+
messages[locale] = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, umiMessages[locale] || {}), projectMessages[locale] || {}), componentMessages[locale] || {});
|
|
1441
|
+
});
|
|
1442
|
+
return messages;
|
|
1348
1443
|
}
|
|
1349
1444
|
return {};
|
|
1350
1445
|
};
|
|
@@ -1477,6 +1572,382 @@ const initI18n = () => {
|
|
|
1477
1572
|
});
|
|
1478
1573
|
};
|
|
1479
1574
|
|
|
1575
|
+
// seeder-st2110-components 组件库中文语言包
|
|
1576
|
+
var zhCN = {
|
|
1577
|
+
// 通用按钮
|
|
1578
|
+
'button.ok': '确定',
|
|
1579
|
+
'button.cancel': '取消',
|
|
1580
|
+
'button.save': '保存',
|
|
1581
|
+
'button.delete': '删除',
|
|
1582
|
+
'button.edit': '编辑',
|
|
1583
|
+
'button.add': '添加',
|
|
1584
|
+
'button.confirm': '确认',
|
|
1585
|
+
'button.close': '关闭',
|
|
1586
|
+
'button.apply': '应用',
|
|
1587
|
+
'button.submit': '提交',
|
|
1588
|
+
'button.next': '下一步',
|
|
1589
|
+
'button.previous': '上一步',
|
|
1590
|
+
'button.refresh': '刷新',
|
|
1591
|
+
'button.retry': '重试',
|
|
1592
|
+
// 菜单
|
|
1593
|
+
'menu.networkSettings': '网络设置',
|
|
1594
|
+
'menu.ptp': 'PTP',
|
|
1595
|
+
'menu.nmos': 'NMOS',
|
|
1596
|
+
'menu.preset': '预设',
|
|
1597
|
+
'menu.license': '许可证',
|
|
1598
|
+
'menu.maintenance': '维护',
|
|
1599
|
+
'menu.system': '系统',
|
|
1600
|
+
// Network Settings Modal
|
|
1601
|
+
'networkSettings.title': '网络设置',
|
|
1602
|
+
'networkSettings.ipAddress': 'IP 地址',
|
|
1603
|
+
'networkSettings.subnetMask': '子网掩码',
|
|
1604
|
+
'networkSettings.restartRequired': '配置已修改。是否重启以应用更改?',
|
|
1605
|
+
'networkSettings.restartNow': '立即重启',
|
|
1606
|
+
'networkSettings.restartLater': '稍后重启',
|
|
1607
|
+
'networkSettings.saveSuccess': '保存成功',
|
|
1608
|
+
// PTP Modal
|
|
1609
|
+
'ptp.title': 'PTP 设置',
|
|
1610
|
+
'ptp.enable': '启用 PTP',
|
|
1611
|
+
'ptp.status': 'PTP 状态',
|
|
1612
|
+
'ptp.domainNumber': '域编号',
|
|
1613
|
+
'ptp.priority1': '优先级 1',
|
|
1614
|
+
'ptp.priority2': '优先级 2',
|
|
1615
|
+
'ptp.clockClass': '时钟等级',
|
|
1616
|
+
'ptp.clockAccuracy': '时钟精度',
|
|
1617
|
+
'ptp.offsetScaledLogVariance': '偏移缩放对数方差',
|
|
1618
|
+
'ptp.port': 'PTP 端口',
|
|
1619
|
+
'ptp.master': '主时钟',
|
|
1620
|
+
'ptp.slave': '从时钟',
|
|
1621
|
+
'ptp.grandmaster': '主时钟源',
|
|
1622
|
+
'ptp.locked': '已锁定',
|
|
1623
|
+
'ptp.unlocked': '未锁定',
|
|
1624
|
+
'ptp.saveSuccess': 'PTP 设置保存成功',
|
|
1625
|
+
'ptp.saveFailed': 'PTP 设置保存失败',
|
|
1626
|
+
// NMOS Modal
|
|
1627
|
+
'nmos.title': 'NMOS 设置',
|
|
1628
|
+
'nmos.enable': '启用 NMOS',
|
|
1629
|
+
'nmos.hostAddress': '主机地址',
|
|
1630
|
+
'nmos.port': '端口',
|
|
1631
|
+
'nmos.registrationUrl': '注册 URL',
|
|
1632
|
+
'nmos.connectionUrl': '连接 URL',
|
|
1633
|
+
'nmos.nodeId': '节点 ID',
|
|
1634
|
+
'nmos.deviceId': '设备 ID',
|
|
1635
|
+
'nmos.saveSuccess': 'NMOS 设置保存成功',
|
|
1636
|
+
'nmos.saveFailed': 'NMOS 设置保存失败',
|
|
1637
|
+
// Preset Modal
|
|
1638
|
+
'preset.title': '预设管理',
|
|
1639
|
+
'preset.name': '名称',
|
|
1640
|
+
'preset.categories': '分类',
|
|
1641
|
+
'preset.description': '描述',
|
|
1642
|
+
'preset.save': '保存预设',
|
|
1643
|
+
'preset.load': '加载预设',
|
|
1644
|
+
'preset.delete': '删除预设',
|
|
1645
|
+
'preset.edit': '编辑预设',
|
|
1646
|
+
'preset.confirmDelete': '确认删除',
|
|
1647
|
+
'preset.deleteConfirmMessage': '确定要删除此预设吗?',
|
|
1648
|
+
'preset.saveSuccess': '预设保存成功',
|
|
1649
|
+
'preset.loadSuccess': '预设加载成功',
|
|
1650
|
+
'preset.deleteSuccess': '预设删除成功',
|
|
1651
|
+
'preset.saveFailed': '预设保存失败',
|
|
1652
|
+
'preset.loadFailed': '预设加载失败',
|
|
1653
|
+
'preset.deleteFailed': '预设删除失败',
|
|
1654
|
+
'preset.noPresets': '暂无预设',
|
|
1655
|
+
'preset.enterName': '输入预设名称',
|
|
1656
|
+
'preset.enterDescription': '输入预设描述',
|
|
1657
|
+
'preset.selectCategory': '选择分类',
|
|
1658
|
+
// License/Auth Modal
|
|
1659
|
+
'license.title': '许可证管理',
|
|
1660
|
+
'license.authCode': '授权码',
|
|
1661
|
+
'license.activate': '激活',
|
|
1662
|
+
'license.deactivate': '停用',
|
|
1663
|
+
'license.valid': '许可证有效',
|
|
1664
|
+
'license.expired': '许可证已过期',
|
|
1665
|
+
'license.invalid': '许可证无效',
|
|
1666
|
+
'license.activationSuccess': '激活成功',
|
|
1667
|
+
'license.deactivationSuccess': '停用成功',
|
|
1668
|
+
'license.activationFailed': '激活失败',
|
|
1669
|
+
'license.enterAuthCode': '输入授权码',
|
|
1670
|
+
'license.productInfo': '产品信息',
|
|
1671
|
+
'license.customerInfo': '客户信息',
|
|
1672
|
+
'license.expiryDate': '到期日期',
|
|
1673
|
+
'license.features': '功能特性',
|
|
1674
|
+
// 升级相关
|
|
1675
|
+
'upgrade.title': '系统升级',
|
|
1676
|
+
'upgrade.checking': '检查更新...',
|
|
1677
|
+
'upgrade.available': '有新版本可用',
|
|
1678
|
+
'upgrade.upToDate': '已是最新版本',
|
|
1679
|
+
'upgrade.downloading': '下载中...',
|
|
1680
|
+
'upgrade.installing': '安装中...',
|
|
1681
|
+
'upgrade.complete': '升级完成',
|
|
1682
|
+
'upgrade.failed': '升级失败',
|
|
1683
|
+
'upgrade.confirmRestart': '升级完成后需要重启,是否继续?',
|
|
1684
|
+
'upgrade.newVersion': '新版本',
|
|
1685
|
+
'upgrade.currentVersion': '当前版本',
|
|
1686
|
+
'upgrade.releaseNotes': '更新说明',
|
|
1687
|
+
'upgrade.download': '下载',
|
|
1688
|
+
'upgrade.install': '安装',
|
|
1689
|
+
'upgrade.cancel': '取消',
|
|
1690
|
+
// 系统操作
|
|
1691
|
+
'system.restart': '重启',
|
|
1692
|
+
'system.shutdown': '关机',
|
|
1693
|
+
'system.poweroff': '断电',
|
|
1694
|
+
'system.reboot': '重新启动',
|
|
1695
|
+
'system.confirmRestart': '确认重启',
|
|
1696
|
+
'system.confirmShutdown': '确认关机',
|
|
1697
|
+
'system.restartConfirmMessage': '确定要重启设备吗?',
|
|
1698
|
+
'system.shutdownConfirmMessage': '确定要关闭设备吗?',
|
|
1699
|
+
'system.restarting': '设备重启中...',
|
|
1700
|
+
'system.shuttingDown': '设备关机中...',
|
|
1701
|
+
// 维护页面
|
|
1702
|
+
'maintenance.title': '系统维护',
|
|
1703
|
+
'maintenance.description': '设备正在维护中,请稍候...',
|
|
1704
|
+
'maintenance.restart': '设备正在重启',
|
|
1705
|
+
'maintenance.poweroff': '设备已关闭',
|
|
1706
|
+
'maintenance.redirecting': '页面跳转中...',
|
|
1707
|
+
'maintenance.backToHome': '返回首页',
|
|
1708
|
+
// 表单验证
|
|
1709
|
+
'validation.required': '此项为必填项',
|
|
1710
|
+
'validation.invalidIP': 'IP 地址格式不正确',
|
|
1711
|
+
'validation.invalidPort': '端口号范围应为 1-65535',
|
|
1712
|
+
'validation.invalidEmail': '邮箱格式不正确',
|
|
1713
|
+
'validation.minLength': '最少需要 {min} 个字符',
|
|
1714
|
+
'validation.maxLength': '最多只能有 {max} 个字符',
|
|
1715
|
+
'validation.min': '最小值为 {min}',
|
|
1716
|
+
'validation.max': '最大值为 {max}',
|
|
1717
|
+
'validation.pattern': '格式不正确',
|
|
1718
|
+
'validation.unique': '该值已存在',
|
|
1719
|
+
// 状态消息
|
|
1720
|
+
'status.loading': '加载中...',
|
|
1721
|
+
'status.saving': '保存中...',
|
|
1722
|
+
'status.deleting': '删除中...',
|
|
1723
|
+
'status.updating': '更新中...',
|
|
1724
|
+
'status.submitting': '提交中...',
|
|
1725
|
+
'status.success': '成功',
|
|
1726
|
+
'status.failed': '失败',
|
|
1727
|
+
'status.error': '错误',
|
|
1728
|
+
'status.pending': '等待中',
|
|
1729
|
+
'status.processing': '处理中',
|
|
1730
|
+
'status.completed': '已完成',
|
|
1731
|
+
'status.cancelled': '已取消',
|
|
1732
|
+
// 确认对话框
|
|
1733
|
+
'confirm.title': '确认操作',
|
|
1734
|
+
'confirm.message': '确定要执行此操作吗?',
|
|
1735
|
+
'confirm.cancel': '取消',
|
|
1736
|
+
'confirm.ok': '确定',
|
|
1737
|
+
// 空状态
|
|
1738
|
+
'empty.noData': '暂无数据',
|
|
1739
|
+
'empty.noResults': '暂无结果',
|
|
1740
|
+
'empty.noItems': '暂无项目',
|
|
1741
|
+
// 通用标签
|
|
1742
|
+
'label.name': '名称',
|
|
1743
|
+
'label.description': '描述',
|
|
1744
|
+
'label.status': '状态',
|
|
1745
|
+
'label.type': '类型',
|
|
1746
|
+
'label.action': '操作',
|
|
1747
|
+
'label.actions': '操作',
|
|
1748
|
+
'label.settings': '设置',
|
|
1749
|
+
'label.configuration': '配置',
|
|
1750
|
+
'label.information': '信息',
|
|
1751
|
+
'label.version': '版本',
|
|
1752
|
+
'label.time': '时间',
|
|
1753
|
+
'label.date': '日期',
|
|
1754
|
+
'label.enable': '启用',
|
|
1755
|
+
'label.disable': '禁用',
|
|
1756
|
+
// 占位符
|
|
1757
|
+
'placeholder.select': '请选择',
|
|
1758
|
+
'placeholder.enter': '请输入',
|
|
1759
|
+
'placeholder.search': '搜索',
|
|
1760
|
+
'placeholder.filter': '筛选'
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
// seeder-st2110-components component library English language pack
|
|
1764
|
+
var enUS = {
|
|
1765
|
+
// General buttons
|
|
1766
|
+
'button.ok': 'OK',
|
|
1767
|
+
'button.cancel': 'Cancel',
|
|
1768
|
+
'button.save': 'Save',
|
|
1769
|
+
'button.delete': 'Delete',
|
|
1770
|
+
'button.edit': 'Edit',
|
|
1771
|
+
'button.add': 'Add',
|
|
1772
|
+
'button.confirm': 'Confirm',
|
|
1773
|
+
'button.close': 'Close',
|
|
1774
|
+
'button.apply': 'Apply',
|
|
1775
|
+
'button.submit': 'Submit',
|
|
1776
|
+
'button.next': 'Next',
|
|
1777
|
+
'button.previous': 'Previous',
|
|
1778
|
+
'button.refresh': 'Refresh',
|
|
1779
|
+
'button.retry': 'Retry',
|
|
1780
|
+
// Menu
|
|
1781
|
+
'menu.networkSettings': 'Network Settings',
|
|
1782
|
+
'menu.ptp': 'PTP',
|
|
1783
|
+
'menu.nmos': 'NMOS',
|
|
1784
|
+
'menu.preset': 'Preset',
|
|
1785
|
+
'menu.license': 'License',
|
|
1786
|
+
'menu.maintenance': 'Maintenance',
|
|
1787
|
+
'menu.system': 'System',
|
|
1788
|
+
// Network Settings Modal
|
|
1789
|
+
'networkSettings.title': 'Network Settings',
|
|
1790
|
+
'networkSettings.ipAddress': 'IP Address',
|
|
1791
|
+
'networkSettings.subnetMask': 'Netmask',
|
|
1792
|
+
'networkSettings.restartRequired': 'Configuration modified. Restart to apply changes?',
|
|
1793
|
+
'networkSettings.restartNow': 'Restart Now',
|
|
1794
|
+
'networkSettings.restartLater': 'Restart Later',
|
|
1795
|
+
'networkSettings.saveSuccess': 'saved successfully',
|
|
1796
|
+
// PTP Modal
|
|
1797
|
+
'ptp.title': 'PTP Settings',
|
|
1798
|
+
'ptp.enable': 'Enable PTP',
|
|
1799
|
+
'ptp.status': 'PTP Status',
|
|
1800
|
+
'ptp.domainNumber': 'Domain Number',
|
|
1801
|
+
'ptp.priority1': 'Priority 1',
|
|
1802
|
+
'ptp.priority2': 'Priority 2',
|
|
1803
|
+
'ptp.clockClass': 'Clock Class',
|
|
1804
|
+
'ptp.clockAccuracy': 'Clock Accuracy',
|
|
1805
|
+
'ptp.offsetScaledLogVariance': 'Offset Scaled Log Variance',
|
|
1806
|
+
'ptp.port': 'PTP Port',
|
|
1807
|
+
'ptp.master': 'Master',
|
|
1808
|
+
'ptp.slave': 'Slave',
|
|
1809
|
+
'ptp.grandmaster': 'Grandmaster',
|
|
1810
|
+
'ptp.locked': 'Locked',
|
|
1811
|
+
'ptp.unlocked': 'Unlocked',
|
|
1812
|
+
'ptp.saveSuccess': 'PTP settings saved successfully',
|
|
1813
|
+
'ptp.saveFailed': 'Failed to save PTP settings',
|
|
1814
|
+
// NMOS Modal
|
|
1815
|
+
'nmos.title': 'NMOS Settings',
|
|
1816
|
+
'nmos.enable': 'Enable NMOS',
|
|
1817
|
+
'nmos.hostAddress': 'Host Address',
|
|
1818
|
+
'nmos.port': 'Port',
|
|
1819
|
+
'nmos.registrationUrl': 'Registration URL',
|
|
1820
|
+
'nmos.connectionUrl': 'Connection URL',
|
|
1821
|
+
'nmos.nodeId': 'Node ID',
|
|
1822
|
+
'nmos.deviceId': 'Device ID',
|
|
1823
|
+
'nmos.saveSuccess': 'NMOS settings saved successfully',
|
|
1824
|
+
'nmos.saveFailed': 'Failed to save NMOS settings',
|
|
1825
|
+
// Preset Modal
|
|
1826
|
+
'preset.title': 'Preset Management',
|
|
1827
|
+
'preset.name': 'Name',
|
|
1828
|
+
'preset.categories': 'Categories',
|
|
1829
|
+
'preset.description': 'Description',
|
|
1830
|
+
'preset.save': 'Save Preset',
|
|
1831
|
+
'preset.load': 'Load Preset',
|
|
1832
|
+
'preset.delete': 'Delete Preset',
|
|
1833
|
+
'preset.edit': 'Edit Preset',
|
|
1834
|
+
'preset.confirmDelete': 'Confirm Deletion',
|
|
1835
|
+
'preset.deleteConfirmMessage': 'Are you sure you want to delete this preset?',
|
|
1836
|
+
'preset.saveSuccess': 'Preset saved successfully',
|
|
1837
|
+
'preset.loadSuccess': 'Preset loaded successfully',
|
|
1838
|
+
'preset.deleteSuccess': 'Preset deleted successfully',
|
|
1839
|
+
'preset.saveFailed': 'Failed to save preset',
|
|
1840
|
+
'preset.loadFailed': 'Failed to load preset',
|
|
1841
|
+
'preset.deleteFailed': 'Failed to delete preset',
|
|
1842
|
+
'preset.noPresets': 'No presets',
|
|
1843
|
+
'preset.enterName': 'Enter preset name',
|
|
1844
|
+
'preset.enterDescription': 'Enter preset description',
|
|
1845
|
+
'preset.selectCategory': 'Select category',
|
|
1846
|
+
// License/Auth Modal
|
|
1847
|
+
'license.title': 'License Management',
|
|
1848
|
+
'license.authCode': 'Authorization Code',
|
|
1849
|
+
'license.activate': 'Activate',
|
|
1850
|
+
'license.deactivate': 'Deactivate',
|
|
1851
|
+
'license.valid': 'License Valid',
|
|
1852
|
+
'license.expired': 'License Expired',
|
|
1853
|
+
'license.invalid': 'License Invalid',
|
|
1854
|
+
'license.activationSuccess': 'Activation successful',
|
|
1855
|
+
'license.deactivationSuccess': 'Deactivation successful',
|
|
1856
|
+
'license.activationFailed': 'Activation failed',
|
|
1857
|
+
'license.enterAuthCode': 'Enter authorization code',
|
|
1858
|
+
'license.productInfo': 'Product Information',
|
|
1859
|
+
'license.customerInfo': 'Customer Information',
|
|
1860
|
+
'license.expiryDate': 'Expiry Date',
|
|
1861
|
+
'license.features': 'Features',
|
|
1862
|
+
// Upgrade related
|
|
1863
|
+
'upgrade.title': 'System Upgrade',
|
|
1864
|
+
'upgrade.checking': 'Checking for updates...',
|
|
1865
|
+
'upgrade.available': 'New version available',
|
|
1866
|
+
'upgrade.upToDate': 'Up to date',
|
|
1867
|
+
'upgrade.downloading': 'Downloading...',
|
|
1868
|
+
'upgrade.installing': 'Installing...',
|
|
1869
|
+
'upgrade.complete': 'Upgrade complete',
|
|
1870
|
+
'upgrade.failed': 'Upgrade failed',
|
|
1871
|
+
'upgrade.confirmRestart': 'Device restart required after upgrade. Continue?',
|
|
1872
|
+
'upgrade.newVersion': 'New Version',
|
|
1873
|
+
'upgrade.currentVersion': 'Current Version',
|
|
1874
|
+
'upgrade.releaseNotes': 'Release Notes',
|
|
1875
|
+
'upgrade.download': 'Download',
|
|
1876
|
+
'upgrade.install': 'Install',
|
|
1877
|
+
'upgrade.cancel': 'Cancel',
|
|
1878
|
+
// System operations
|
|
1879
|
+
'system.restart': 'Restart',
|
|
1880
|
+
'system.shutdown': 'Shutdown',
|
|
1881
|
+
'system.poweroff': 'Power Off',
|
|
1882
|
+
'system.reboot': 'Reboot',
|
|
1883
|
+
'system.confirmRestart': 'Confirm Restart',
|
|
1884
|
+
'system.confirmShutdown': 'Confirm Shutdown',
|
|
1885
|
+
'system.restartConfirmMessage': 'Are you sure you want to restart the device?',
|
|
1886
|
+
'system.shutdownConfirmMessage': 'Are you sure you want to shutdown the device?',
|
|
1887
|
+
'system.restarting': 'Device is restarting...',
|
|
1888
|
+
'system.shuttingDown': 'Device is shutting down...',
|
|
1889
|
+
// Maintenance page
|
|
1890
|
+
'maintenance.title': 'System Maintenance',
|
|
1891
|
+
'maintenance.description': 'Device is under maintenance, please wait...',
|
|
1892
|
+
'maintenance.restart': 'Device is restarting',
|
|
1893
|
+
'maintenance.poweroff': 'Device is powered off',
|
|
1894
|
+
'maintenance.redirecting': 'Redirecting...',
|
|
1895
|
+
'maintenance.backToHome': 'Back to Home',
|
|
1896
|
+
// Form validation
|
|
1897
|
+
'validation.required': 'This field is required',
|
|
1898
|
+
'validation.invalidIP': 'Invalid IP address format',
|
|
1899
|
+
'validation.invalidPort': 'Port number should be 1-65535',
|
|
1900
|
+
'validation.invalidEmail': 'Invalid email format',
|
|
1901
|
+
'validation.minLength': 'Minimum {min} characters required',
|
|
1902
|
+
'validation.maxLength': 'Maximum {max} characters allowed',
|
|
1903
|
+
'validation.min': 'Minimum value is {min}',
|
|
1904
|
+
'validation.max': 'Maximum value is {max}',
|
|
1905
|
+
'validation.pattern': 'Invalid format',
|
|
1906
|
+
'validation.unique': 'This value already exists',
|
|
1907
|
+
// Status messages
|
|
1908
|
+
'status.loading': 'Loading...',
|
|
1909
|
+
'status.saving': 'Saving...',
|
|
1910
|
+
'status.deleting': 'Deleting...',
|
|
1911
|
+
'status.updating': 'Updating...',
|
|
1912
|
+
'status.submitting': 'Submitting...',
|
|
1913
|
+
'status.success': 'Success',
|
|
1914
|
+
'status.failed': 'Failed',
|
|
1915
|
+
'status.error': 'Error',
|
|
1916
|
+
'status.pending': 'Pending',
|
|
1917
|
+
'status.processing': 'Processing',
|
|
1918
|
+
'status.completed': 'Completed',
|
|
1919
|
+
'status.cancelled': 'Cancelled',
|
|
1920
|
+
// Confirmation dialogs
|
|
1921
|
+
'confirm.title': 'Confirm Action',
|
|
1922
|
+
'confirm.message': 'Are you sure you want to proceed?',
|
|
1923
|
+
'confirm.cancel': 'Cancel',
|
|
1924
|
+
'confirm.ok': 'OK',
|
|
1925
|
+
// Empty states
|
|
1926
|
+
'empty.noData': 'No Data',
|
|
1927
|
+
'empty.noResults': 'No Results',
|
|
1928
|
+
'empty.noItems': 'No Items',
|
|
1929
|
+
// General labels
|
|
1930
|
+
'label.name': 'Name',
|
|
1931
|
+
'label.description': 'Description',
|
|
1932
|
+
'label.status': 'Status',
|
|
1933
|
+
'label.type': 'Type',
|
|
1934
|
+
'label.action': 'Action',
|
|
1935
|
+
'label.actions': 'Actions',
|
|
1936
|
+
'label.settings': 'Settings',
|
|
1937
|
+
'label.configuration': 'Configuration',
|
|
1938
|
+
'label.information': 'Information',
|
|
1939
|
+
'label.version': 'Version',
|
|
1940
|
+
'label.time': 'Time',
|
|
1941
|
+
'label.date': 'Date',
|
|
1942
|
+
'label.enable': 'Enable',
|
|
1943
|
+
'label.disable': 'Disable',
|
|
1944
|
+
// Placeholders
|
|
1945
|
+
'placeholder.select': 'Please select',
|
|
1946
|
+
'placeholder.enter': 'Please enter',
|
|
1947
|
+
'placeholder.search': 'Search',
|
|
1948
|
+
'placeholder.filter': 'Filter'
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1480
1951
|
const NetworkFieldGroup = _ref => {
|
|
1481
1952
|
var _fieldConfig$netmask$, _fieldConfig$netmask;
|
|
1482
1953
|
let {
|
|
@@ -13628,5 +14099,5 @@ const PayloadInput = props => /*#__PURE__*/jsx(BoundedInput, _objectSpread2$1({
|
|
|
13628
14099
|
placeholder: "Enter payload (96-127)"
|
|
13629
14100
|
}, props));
|
|
13630
14101
|
|
|
13631
|
-
export { AuthorizationModal$1 as AuthorizationModal, CommonHeader$1 as CommonHeader, DraggableNumberInput, LSMLabelField$1 as LSMLabelField, MaintenancePage, NetworkSettingsModal$1 as NetworkSettingsModal, NmosModal$1 as NmosModal, PayloadInput, PortInput, PresetModal, PtpModal$1 as PtpModal, StyledModal$3 as StyledModal, SystemOperations$1 as SystemOperations, UpgradeManager$1 as UpgradeManager, addMessages, initI18n, setLocale, useAuth, useHardwareUsage$1 as useHardwareUsage, useIntl, usePageReload$1 as usePageReload, useSystemOperations$1 as useSystemOperations, useUpgrade$1 as useUpgrade, useWebSocketWithFeatures$1 as useWebSocketWithFeatures };
|
|
14102
|
+
export { AuthorizationModal$1 as AuthorizationModal, CommonHeader$1 as CommonHeader, DraggableNumberInput, LSMLabelField$1 as LSMLabelField, MaintenancePage, NetworkSettingsModal$1 as NetworkSettingsModal, NmosModal$1 as NmosModal, PayloadInput, PortInput, PresetModal, PtpModal$1 as PtpModal, StyledModal$3 as StyledModal, SystemOperations$1 as SystemOperations, UpgradeManager$1 as UpgradeManager, addMessages, debugI18n, initI18n, enUS as localesEnUS, zhCN as localesZhCN, setLocale, useAuth, useHardwareUsage$1 as useHardwareUsage, useIntl, usePageReload$1 as usePageReload, useSystemOperations$1 as useSystemOperations, useUpgrade$1 as useUpgrade, useWebSocketWithFeatures$1 as useWebSocketWithFeatures };
|
|
13632
14103
|
//# sourceMappingURL=index.esm.js.map
|