diff --git a/package-lock.json b/package-lock.json
index 961a223..fe03b36 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1542,9 +1542,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001599",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001599.tgz",
- "integrity": "sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==",
+ "version": "1.0.30001667",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz",
+ "integrity": "sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw==",
"dev": true,
"funding": [
{
@@ -1802,12 +1802,12 @@
"dev": true
},
"node_modules/debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
+ "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
"devOptional": true,
"dependencies": {
- "ms": "2.1.2"
+ "ms": "^2.1.3"
},
"engines": {
"node": ">=6.0"
@@ -3312,9 +3312,9 @@
}
},
"node_modules/ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"devOptional": true
},
"node_modules/muggle-string": {
@@ -3718,9 +3718,9 @@
"dev": true
},
"node_modules/picocolors": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",
- "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew=="
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="
},
"node_modules/picomatch": {
"version": "2.3.1",
@@ -3826,9 +3826,9 @@
}
},
"node_modules/postcss": {
- "version": "8.4.39",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.39.tgz",
- "integrity": "sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==",
+ "version": "8.4.49",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz",
+ "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==",
"funding": [
{
"type": "opencollective",
@@ -3845,8 +3845,8 @@
],
"dependencies": {
"nanoid": "^3.3.7",
- "picocolors": "^1.0.1",
- "source-map-js": "^1.2.0"
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
},
"engines": {
"node": "^10 || ^12 || >=14"
@@ -4272,9 +4272,9 @@
}
},
"node_modules/source-map-js": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
- "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
"engines": {
"node": ">=0.10.0"
}
diff --git a/src/locales/en.ts b/src/locales/en.ts
index 246a957..08d4856 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -5,6 +5,26 @@ export default {
disconnected: "Disconnected",
connected: "Connected",
connecting: "Connecting",
+ use: "use",
+ author: "author",
+ studioYunSi: "Yunsi Studio",
+ authorEmail: "Author email",
+ TencentQQGroup: "QQ Group",
+ Discord: "Discord",
+ BiliBili: "BiliBili",
+
+ suggestion: "suggestion",
+ feature: "feature",
+ version: "Version",
+ releaseTime: "Release Time",
+ credit: "Credit",
+ aboutWebHost: "About the Web Host Application",
+ aboutDebugger: "About the Debugger",
+ officialWebsite: "Official Website",
+ email: "Email",
+ note: "Note",
+ welcomeMessage: "Welcome to reach out anytime",
+ serialNumber: "Serial Number",
ws: {
disconnected: "Disconnected",
@@ -122,6 +142,63 @@ export default {
sendFormat: "Send Format",
cachedFrame: "Cached",
format: "Format",
+ },
+
+ wifi: {
+ settings: "Settings",
+ setFailed: "Settings failed to set",
+ setSuccess: "Settings saved",
+ connection: "Connection",
+ scanning: "Scanning",
+ scan: "Scan",
+ scanDone: "Scan done",
+ warnWifiName: "Enter Wi-Fi Name",
+ password: "Password",
+ connectInfoHTML: "Changing Wi-Fi will disconnect this interface from the passthrough device if not connected through its hotspot.",
+ connect: "Connect",
+ mode: "Mode",
+ save: "Save",
+ station: "Station",
+ intelligent: "Smart",
+ APOnly: "Hotspot Only",
+ disconnected: "Disconnected",
+ modeTipsHtml: "
\n" +
+ "Smart Mode:\n" +
+ "After connecting to Wi-Fi, the hotspot will turn off automatically after 30 seconds if no device is connected. It will turn on after 5 seconds if disconnected from AP.\n" +
+ "
\n" +
+ "\n" +
+ "Coexistence Mode:\n" +
+ "Convenient but impacts stability and increases power consumption.\n" +
+ "
\n" +
+ "\n" +
+ "Hotspot-Only Mode Drawback:\n" +
+ "No network connection.\n" +
+ "
",
+ enabled: "Enabled",
+ disabled: "Disabled",
+
+ stationInfo: "Terminal (STA) Info",
+ hotspotInfo: "Hotspot (AP) Info",
+ signalStrength: "Signal Strength",
+ gateway: "Gateway",
+ netmask: "Netmask",
+ primaryDNS: "Primary DNS",
+ backupDNS: "Backup DNS",
+ IPmode: "IP Allocation Mode",
+ DNSmode: "DNS Mode",
+ internalAddress: "Internal Address",
+
+ autoIP: "Automatic (DHCP)",
+ staticIP: "Static IP",
+ autoDNS: "Automatic (Use Gateway)",
+ staticDNS: "Static DNS",
+ APauto_STA: "Smart Hotspot + Persistent Terminal (AP+STA)",
+ APonly: "Hotspot Only (AP)",
+ AP_STA: "Persistent Hotspot + Persistent Terminal (AP+STA)",
+
+ connectionSuccess: "Connection Successful",
+ enterAPName: "Entre the AP name",
+ debuggerNotConnected: "Debugger not connected",
}
};
\ No newline at end of file
diff --git a/src/locales/fr.ts b/src/locales/fr.ts
index eee64ab..357a23a 100644
--- a/src/locales/fr.ts
+++ b/src/locales/fr.ts
@@ -5,6 +5,26 @@ export default {
disconnected: "Déconnecté",
connected: "Connecté",
connecting: "Connexion..",
+ use: "utiliser",
+ author: "Auteur",
+ studioYunSi: "Studio Yunsi",
+ authorEmail: "Email de l'auteur",
+ TencentQQGroup: "Groupe QQ",
+ Discord: "Discord",
+ BiliBili: "BiliBili",
+
+ suggestion: "suggestion",
+ feature: "fonctionnalité",
+ version: "Version",
+ releaseTime: "Date de Publication",
+ credit: "Remerciements",
+ aboutWebHost: "À propos de l'Hôte Web",
+ aboutDebugger: "À propos du Débogueur",
+ officialWebsite: "Site Officiel",
+ email: "E-mail",
+ note: "Remarque",
+ welcomeMessage: "N'hésitez pas à venir nous solliciter.",
+ serialNumber: "Numéro de série",
ws: {
disconnected: "Déconnecté",
@@ -123,6 +143,62 @@ export default {
sendFormat: "Format d'Envoi",
cachedFrame: "Cache",
format: "Format",
- }
+ },
+ wifi: {
+ settings: "Paramètres",
+ setFailed: "Echec d'enregistrement de paramètres",
+ setSuccess: "Paramètres enregistrés",
+ connection: "Connexion",
+ scanning: "Recherche en cours",
+ scan: "Rechercher",
+ scanDone: "Fin recherche de Wi-Fi",
+ warnWifiName: "Entrez le nom du Wi-Fi",
+ password: "Mot de passe",
+ connectInfoHTML: "Changer de Wi-Fi déconnectera cette interface du dispositif de transmission s'il ne passe pas par le point d'accès.",
+ connect: "Connecter",
+ mode: "Mode",
+ save: "Enregistrer",
+ station: "Station",
+ intelligent: "Intelligent",
+ APOnly: "Point d'accès uniquement",
+ disconnected: "Déconnecté",
+ modeTipsHtml: "\n" +
+ "Mode intelligent :\n" +
+ "Après la connexion au Wi-Fi, le point d'accès s'éteindra automatiquement après 30 secondes si aucun appareil n'est connecté. Il s'allumera après 5 secondes si la connexion AP est perdue.\n" +
+ "
\n" +
+ "\n" +
+ "Mode coexistence :\n" +
+ "Pratique mais réduit la stabilité et augmente la consommation d'énergie.\n" +
+ "
\n" +
+ "\n" +
+ "Inconvénient du mode point d'accès seul :\n" +
+ "Pas de connexion réseau.\n" +
+ "
",
+ enabled: "Activé",
+ disabled: "Désactivé",
+
+ stationInfo: "Info Terminal (STA)",
+ hotspotInfo: "Info Point d'Accès (AP)",
+ signalStrength: "Puissance du Signal",
+ gateway: "Passerelle",
+ netmask: "Masque de Sous-réseau",
+ primaryDNS: "DNS Primaire",
+ backupDNS: "DNS Secondaire",
+ IPmode: "Mode d'Attribution IP",
+ DNSmode: "Mode DNS",
+ internalAddress: "Adresse Interne",
+
+ autoIP: "Automatique (DHCP)",
+ staticIP: "IP Statique",
+ autoDNS: "Automatique (gateway)",
+ staticDNS: "DNS Statique",
+ APauto_STA: "Point d'Accès Intelligent + Terminal Permanent (AP+STA)",
+ APonly: "Point d'Accès Seul (AP)",
+ AP_STA: "Point d'Accès Permanent + Terminal Permanent (AP+STA)",
+
+ connectionSuccess: "Connexion Réussie",
+ enterAPName: "Entrez le nom du AP",
+ debuggerNotConnected: "Debugger non connecté",
+ }
};
\ No newline at end of file
diff --git a/src/locales/zh.ts b/src/locales/zh.ts
index f8f19bb..cf92d72 100644
--- a/src/locales/zh.ts
+++ b/src/locales/zh.ts
@@ -6,6 +6,25 @@ export default {
connected: "已连接",
connecting: "连接中",
use: "使用",
+ author: "作者",
+ studioYunSi: "允斯工作室",
+ authorEmail: "作者邮箱",
+ TencentQQGroup: "QQ群",
+ Discord: "Discord",
+ BiliBili: "哔哩哔哩",
+
+ suggestion: "建议",
+ feature: "需求",
+ version: "版本",
+ releaseTime: "发布时间",
+ credit: "鸣谢",
+ aboutWebHost: "关于网页版上位机",
+ aboutDebugger: "关于调试器",
+ officialWebsite: "官网",
+ email: "邮箱",
+ note: "备注",
+ welcomeMessage: "欢迎来打扰啊~",
+ serialNumber: "序列号",
ws: {
disconnected: "未连接",
@@ -127,5 +146,62 @@ export default {
sendFormat: "发送格式",
cachedFrame: "缓存帧数",
format: "格式化",
+ },
+
+ wifi: {
+ settings: "配置",
+ setFailed: "设置失败",
+ setSuccess: "配置成功",
+ connection: "连接",
+ scanning: "扫描中",
+ scan: "扫描",
+ scanDone: "扫描成功",
+ warnWifiName: "请输入WIFI名",
+ password: "密码",
+ connectInfoHTML: "如果不是通过透传器的热点连接,更换Wi-Fi将导致此界面与透传器断开连接。",
+ connect: "连接",
+ mode: "模式",
+ save: "保存",
+ station: "终端",
+ intelligent: "智能",
+ APOnly: "仅开启热点",
+ disconnected: "未连接",
+ modeTipsHtml: "\n" +
+ "智能模式:\n" +
+ "成功连接至Wi-Fi后,如果此设备的热点未被其他设备连接,将在30秒后自动关闭热点;如果此设备与AP断开连接,将在5秒后自动开启热点\n" +
+ "
\n" +
+ "\n" +
+ "热点+终端共存模式:\n" +
+ "方便使用,但是影响稳定性,增加功耗\n" +
+ "
\n" +
+ "\n" +
+ "单热点模式缺点:\n" +
+ "无网络\n" +
+ "
",
+ enabled: "已开启",
+ disabled: "未开启",
+
+ stationInfo: "终端(STA)信息",
+ hotspotInfo: "自发热点(AP)信息",
+ signalStrength: "信号强度",
+ gateway: "网关",
+ netmask: "掩码",
+ primaryDNS: "首选DNS",
+ backupDNS: "备用DNS",
+ IPmode: "IP分配模式",
+ DNSmode: "DNS模式",
+ internalAddress: "内网地址",
+
+ autoIP: "自动 (DHCP)",
+ staticIP: "静态IP",
+ autoDNS: "自动 (使用网关)",
+ staticDNS: "静态DNS",
+ APauto_STA: "智能热点+常开终端 (AP+STA)",
+ APonly: "仅开启热点 (AP)",
+ AP_STA: "常开热点+常开终端 (AP+STA)",
+
+ connectionSuccess: "连接成功",
+ enterAPName: "请输入AP名",
+ debuggerNotConnected: "调试器未连接",
}
}
\ No newline at end of file
diff --git a/src/views/About.vue b/src/views/About.vue
index d33f5c4..2f89f39 100644
--- a/src/views/About.vue
+++ b/src/views/About.vue
@@ -1,5 +1,6 @@
diff --git a/src/views/Wifi.vue b/src/views/Wifi.vue
index 83cd59c..6d4d57f 100644
--- a/src/views/Wifi.vue
+++ b/src/views/Wifi.vue
@@ -1,17 +1,17 @@
- Wi-Fi 配置
+ Wi-Fi {{ translate('wifi.settings') }}
-
连接Wi-Fi
+
{{ translate('wifi.connection') }} Wi-Fi
@@ -36,7 +36,7 @@
-
+
- 如果不是通过透传器的热点连接,更换Wi-Fi将导致此界面与透传器断开连接。
+ {{ translate("wifi.connectInfo")}}
- 连接
+ {{ translate('wifi.connect') }}
-
Wi-Fi模式
+
Wi-Fi {{ translate('wifi.mode') }}
-
- 智能模式:
- 成功连接Wi-Fi,30秒后自动关闭热点;断开连接,5秒后自动打开热点
-
-
- 热点+终端共存模式:
- 方便使用,但是影响稳定性,增加功耗
-
-
- 单热点模式缺点:
- 无网络
-
+
@@ -84,28 +73,28 @@
:label="item.label"
/>
-
保存
+
{{ translate('wifi.save') }}
- 信号强度
+ {{ translate('wifi.signalStrength') }}
@@ -115,7 +104,7 @@
- Wi-Fi名(SSID)
+ Wi-Fi(SSID)
{{ wifiStaApInfo.ssid }}
@@ -138,14 +127,14 @@
- IP(内网地址)
+ IP({{ translate('wifi.internalAddress') }})
{{ wifiStaApInfo.ip }}
- 网关
+ {{ translate('wifi.gateway') }}
{{ wifiStaApInfo.gateway }}
@@ -153,7 +142,7 @@
- 掩码
+ {{ translate('wifi.netmask') }}
{{ wifiStaApInfo.netmask }}
@@ -161,7 +150,7 @@
- 首选DNS
+ {{ translate('wifi.primaryDNS') }}
{{ wifiStaApInfo.dns_main }}
@@ -169,7 +158,7 @@
- 备用DNS
+ {{ translate('wifi.backupDNS') }}
{{ wifiStaApInfo.dns_backup }}
@@ -178,7 +167,7 @@
- IP分配模式
+ {{ translate('wifi.IPmode') }}
@@ -192,14 +181,14 @@
- IP(内网地址)
+ IP({{ translate('wifi.internalAddress') }})
- 网关
+ {{ translate('wifi.gateway') }}
@@ -207,7 +196,7 @@
- 掩码
+ {{ translate('wifi.netmask') }}
@@ -216,7 +205,7 @@
- DNS模式
+ {{ translate('wifi.DNSmode') }}
@@ -231,7 +220,7 @@
- 首选DNS
+ {{ translate('wifi.primaryDNS') }}
@@ -239,34 +228,34 @@
- 备用DNS
+ {{ translate('wifi.backupDNS') }}
- 保存
+ {{ translate('wifi.save') }}
- Wi-Fi名(SSID)
+ Wi-Fi(SSID)
@@ -276,7 +265,7 @@
- 密码
+ {{ translate('wifi.password') }}
@@ -302,7 +291,7 @@
- 网关
+ {{ translate('wifi.gateway') }}
{{ wifiApInfo.gateway }}
@@ -311,14 +300,14 @@
- 掩码
+ {{ translate('wifi.netmask') }}
{{ wifiApInfo.netmask }}
- 保存
+ {{ translate('wifi.save') }}
@@ -326,7 +315,7 @@
-