Skip to content

Commit 40311ea

Browse files
authored
Merge pull request #38 from kkroid/showDeviceId
show device id instead of name
2 parents 9bf8dd6 + 62bacdf commit 40311ea

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/components/Device/DeviceAdbShellDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ watch(() => visible.value, async (v) => {
3131
term.loadAddon(fitAddon);
3232
term.open(terminal.value as HTMLElement)
3333
term.clear()
34-
term.writeln(t('进入设备 {name} 的命令行', {name: device.value?.name}))
34+
term.writeln(t('进入设备 {id} 的命令行', {id: device.value?.id}))
3535
term.writeln('==========================================')
3636
nextTick(() => {
3737
fitAddon.fit()
@@ -83,7 +83,7 @@ defineExpose({
8383
:footer="false"
8484
title-align="start">
8585
<template #title>
86-
{{ $t('设备 {name} 命令行', {name: device?.name}) }}
86+
{{ $t('设备 {id} 命令行', {id: device?.id}) }}
8787
</template>
8888
<div style="margin:-0.8rem;border-radius:0.5rem;overflow:hidden;background:#000;">
8989
<div class="h-full p-2 overflow-hidden">

src/components/Device/DeviceSettingDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ defineExpose({
6767
title-align="start">
6868
<template #title>
6969
<icon-mobile/>
70-
{{ $t('设备') }} {{ device?.name }}
70+
{{ $t('设备') }} {{ device?.id }}
7171
</template>
7272
<template #footer>
7373
<a-button type="primary" @click="doSubmit">

src/lang/en-US.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"3eb6a611": "Default 8000000(8M), Support Unit K、M",
137137
"40e57868": "Detail",
138138
"4148da61": "Request error",
139-
"42554fbd": "Shell of {name} started",
139+
"42554fbd": "Shell of {id} started",
140140
"42c281d4": "Auto",
141141
"42ed4ed0": "Connect Device",
142142
"42fe6375": "Select Path",
@@ -164,7 +164,7 @@
164164
"67ae246d": "Device Edit Successful",
165165
"67bf9872": "Add as network device",
166166
"69f87f08": "Open Command Line",
167-
"6a51c6b3": "Device {name} shell",
167+
"6a51c6b3": "Device {id} shell",
168168
"6f369807": "Screenshot Editor",
169169
"6f506676": "Device not found",
170170
"73b90d88": "Already mirroring",

src/lang/source.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
"视频比特率": "23886069",
173173
"记住我的选择": "160fdc0e",
174174
"设备": "00114509",
175-
"设备 {name} 命令行": "6a51c6b3",
175+
"设备 {id} 命令行": "6a51c6b3",
176176
"设备未连接": "24ba3978",
177177
"设备版本过低,不支持此功能": "3dad1885",
178178
"设备编辑成功": "67ae246d",
@@ -190,7 +190,7 @@
190190
"还没有设备,使用USB连接电脑开始使用~": "7b11c571",
191191
"进入OTG模式": "3a80871a",
192192
"进入OTG模式成功": "639109f5",
193-
"进入设备 {name} 的命令行": "42554fbd",
193+
"进入设备 {id} 的命令行": "42554fbd",
194194
"连接中": "02286f86",
195195
"连接成功": "42e83c56",
196196
"连接网络设备": "66ddc2bb",

src/lang/zh-CN.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"3eb6a611": "默认 8000000(8M),支持支持单位 K、M",
161161
"40e57868": "设备设置",
162162
"4148da61": "请求错误",
163-
"42554fbd": "进入设备 {name} 的命令行",
163+
"42554fbd": "进入设备 {id} 的命令行",
164164
"42bad8e1": "退出软件",
165165
"42c281d4": "跟随系统",
166166
"42e83c56": "连接成功",
@@ -198,7 +198,7 @@
198198
"67ae246d": "设备编辑成功",
199199
"67bf9872": "正在添加为网络设备",
200200
"69f87f08": "打开命令行",
201-
"6a51c6b3": "设备 {name} 命令行",
201+
"6a51c6b3": "设备 {id} 命令行",
202202
"6bf53f2e": "打开摄像头成功",
203203
"6f369807": "截图编辑器",
204204
"6f506676": "找不到设备",

src/pages/Device.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const doHelp = () => {
165165
<div class="font-bold truncate cursor-pointer">
166166
<DeviceType :type="r.type"/>
167167
<span>
168-
{{ r.name }}
168+
{{ r.id }}
169169
</span>
170170
</div>
171171
</div>

0 commit comments

Comments
 (0)