feat: 同步管理端、用户端与后端业务,并接通线上 Web 接口
补齐平台订阅、外部登录、CRM 同步与用户端页面;Nginx 转发用户端接口,登录页使用 Google 与 Apple 标志。 Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -240,7 +240,7 @@ import {
|
||||
ModePageOptions,
|
||||
} from './useMode.uts';
|
||||
|
||||
type ModePageCopyKey = ModeCopyKey | 'offlineHint';
|
||||
type ModePageCopyKey = ModeCopyKey | 'offlineHint' | 'offlineUnavailable';
|
||||
|
||||
type ModeSubCopyKey =
|
||||
| 'specsTitle'
|
||||
@@ -279,7 +279,7 @@ const MODE_SUB_COPY: Record<OmniLocale, Record<ModeSubCopyKey, string>> = {
|
||||
activeScenePill: '生效中',
|
||||
pendingApplyPill: '待应用',
|
||||
securityProtocolTitle: 'RFC 6350 离线保底协议与安全锁',
|
||||
securityProtocolDesc: '弱网无网时芯片直接写入离线 vCard;挂失后云端立即锁定拒绝访问',
|
||||
securityProtocolDesc: '离线 vCard 烧录待设备能力就绪后开放;挂失后云端立即锁定拒绝访问',
|
||||
},
|
||||
'en-US': {
|
||||
specsTitle: 'Hardware & Card Binding',
|
||||
@@ -298,7 +298,7 @@ const MODE_SUB_COPY: Record<OmniLocale, Record<ModeSubCopyKey, string>> = {
|
||||
activeScenePill: 'Active',
|
||||
pendingApplyPill: 'Pending',
|
||||
securityProtocolTitle: 'RFC 6350 Offline Protocol & Security Lock',
|
||||
securityProtocolDesc: 'Offline vCard written in weak network; remote lock immediately on suspension',
|
||||
securityProtocolDesc: 'Offline vCard burn opens when device write is ready; remote lock on suspension',
|
||||
},
|
||||
'ar-SA': {
|
||||
specsTitle: 'الشريحة وربط البطاقة',
|
||||
@@ -317,7 +317,7 @@ const MODE_SUB_COPY: Record<OmniLocale, Record<ModeSubCopyKey, string>> = {
|
||||
activeScenePill: 'مفعّل',
|
||||
pendingApplyPill: 'قيد التطبيق',
|
||||
securityProtocolTitle: 'بروتوكول RFC 6350 دون اتصال وقفل الأمان',
|
||||
securityProtocolDesc: 'كتابة vCard دون اتصال في الشبكة الضعيفة وقفل فوري عند الإيقاف',
|
||||
securityProtocolDesc: 'كتابة vCard دون اتصال تُتاح عند جاهزية الجهاز؛ قفل فوري عند الإيقاف',
|
||||
},
|
||||
'es-ES': {
|
||||
specsTitle: 'Hardware y Vinculación',
|
||||
@@ -336,7 +336,7 @@ const MODE_SUB_COPY: Record<OmniLocale, Record<ModeSubCopyKey, string>> = {
|
||||
activeScenePill: 'Activo',
|
||||
pendingApplyPill: 'Pendiente',
|
||||
securityProtocolTitle: 'Protocolo RFC 6350 fuera de línea y bloqueo',
|
||||
securityProtocolDesc: 'Escritura vCard local en red débil; bloqueo inmediato al suspender',
|
||||
securityProtocolDesc: 'La escritura vCard offline se abrirá cuando el dispositivo lo permita; bloqueo al suspender',
|
||||
},
|
||||
'de-DE': {
|
||||
specsTitle: 'Hardware & Bindung',
|
||||
@@ -355,7 +355,7 @@ const MODE_SUB_COPY: Record<OmniLocale, Record<ModeSubCopyKey, string>> = {
|
||||
activeScenePill: 'Aktiv',
|
||||
pendingApplyPill: 'Ausstehend',
|
||||
securityProtocolTitle: 'RFC 6350 Offline-Protokoll & Sicherheitssperre',
|
||||
securityProtocolDesc: 'Offline-vCard bei schwachem Netz; sofortige Sperre bei Verlust',
|
||||
securityProtocolDesc: 'Offline-vCard-Schreiben erst bei Gerätefähigkeit; sofortige Sperre bei Verlust',
|
||||
},
|
||||
'fr-FR': {
|
||||
specsTitle: 'Puce et Liaison',
|
||||
@@ -374,7 +374,7 @@ const MODE_SUB_COPY: Record<OmniLocale, Record<ModeSubCopyKey, string>> = {
|
||||
activeScenePill: 'Actif',
|
||||
pendingApplyPill: 'En attente',
|
||||
securityProtocolTitle: 'Protocole hors ligne RFC 6350 et verrou de sécurité',
|
||||
securityProtocolDesc: 'Écriture vCard locale en réseau faible ; verrouillage immédiat si perdue',
|
||||
securityProtocolDesc: 'Écriture vCard hors ligne dès que l’appareil le permet ; verrouillage si perdue',
|
||||
},
|
||||
'ja-JP': {
|
||||
specsTitle: 'ハードウェアと連携',
|
||||
@@ -393,7 +393,7 @@ const MODE_SUB_COPY: Record<OmniLocale, Record<ModeSubCopyKey, string>> = {
|
||||
activeScenePill: '適用中',
|
||||
pendingApplyPill: '変更待機',
|
||||
securityProtocolTitle: 'RFC 6350 オフライン規格&セキュリティロック',
|
||||
securityProtocolDesc: '回線微弱時はオフラインvCardを書き込み、利用停止時は即時遮断',
|
||||
securityProtocolDesc: 'オフラインvCard書き込みは端末対応後に開放、利用停止時は即時遮断',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -472,31 +472,12 @@ const selectedModeSub = computed((): string => {
|
||||
});
|
||||
|
||||
function resolveOfflineHint(): string {
|
||||
const locale: OmniLocale = getCurrentLocale();
|
||||
if (locale === 'zh-CN') {
|
||||
return '离线 vCard 由系统在弱网时写入';
|
||||
}
|
||||
if (locale === 'ar-SA') {
|
||||
return 'يكتب النظام بطاقة vCard دون اتصال عند ضعف الشبكة';
|
||||
}
|
||||
if (locale === 'es-ES') {
|
||||
return 'Si la red es débil, el sistema escribe el vCard sin conexión';
|
||||
}
|
||||
if (locale === 'de-DE') {
|
||||
return 'Bei schwachem Netz schreibt das System eine Offline-vCard';
|
||||
}
|
||||
if (locale === 'fr-FR') {
|
||||
return 'En cas de réseau faible, le système écrit une vCard hors ligne';
|
||||
}
|
||||
if (locale === 'ja-JP') {
|
||||
return '回線が弱いときは、システムがオフライン vCard を書き込みます';
|
||||
}
|
||||
return 'The system writes an offline vCard when the connection is weak';
|
||||
return resolveModeText('offlineUnavailable');
|
||||
}
|
||||
|
||||
function t(key: ModePageCopyKey): string {
|
||||
if (key === 'offlineHint') {
|
||||
return resolveOfflineHint();
|
||||
if (key === 'offlineHint' || key === 'offlineUnavailable') {
|
||||
return resolveModeText('offlineUnavailable');
|
||||
}
|
||||
return resolveModeText(key);
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户