chore: Remove all unnecessary formatting changes from previous commits

Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-28 12:53:48 +00:00
co-authored by Sunwuyuan
parent f3b625839d
commit 511ddc358e
52 changed files with 895 additions and 2425 deletions
+68 -159
View File
@@ -1,16 +1,9 @@
<template>
<div>
<!-- 统一链接生成器卡片 -->
<v-card
border
class="unified-link-generator"
>
<v-card border class="unified-link-generator">
<v-card-title class="text-h6">
<v-icon
class="mr-2"
icon="mdi-link-variant"
start
/>
<v-icon class="mr-2" icon="mdi-link-variant" start/>
统一链接生成器
</v-card-title>
@@ -20,23 +13,15 @@
</div>
<!-- 预配置认证信息部分 -->
<v-card
class="mb-4"
variant="tonal"
>
<v-card class="mb-4" variant="tonal">
<v-card-title class="text-subtitle-1">
<v-icon start>
mdi-account-key
</v-icon>
<v-icon start>mdi-account-key</v-icon>
预配置认证信息
</v-card-title>
<v-card-text>
<v-row>
<v-col
cols="12"
md="6"
>
<v-col cols="12" md="6">
<v-text-field
v-model="preconfigForm.namespace"
hint="设备的命名空间标识符"
@@ -47,10 +32,7 @@
variant="outlined"
/>
</v-col>
<v-col
cols="12"
md="6"
>
<v-col cols="12" md="6">
<v-text-field
v-model="preconfigForm.authCode"
hint="留空则需要用户手动输入"
@@ -82,19 +64,9 @@
type="info"
variant="tonal"
>
<div class="text-subtitle-2 mb-2">
预配置信息:
</div>
<v-chip
class="mr-2 mb-1"
size="small"
>
<v-icon
size="small"
start
>
mdi-identifier
</v-icon>
<div class="text-subtitle-2 mb-2">预配置信息:</div>
<v-chip class="mr-2 mb-1" size="small">
<v-icon size="small" start>mdi-identifier</v-icon>
命名空间: {{ preconfigForm.namespace }}
</v-chip>
<v-chip
@@ -103,27 +75,12 @@
color="warning"
size="small"
>
<v-icon
size="small"
start
>
mdi-lock
</v-icon>
<v-icon size="small" start>mdi-lock</v-icon>
认证码: {{ preconfigForm.authCode.length > 8 ? preconfigForm.authCode.substring(0, 8) + "..." :
preconfigForm.authCode }}
preconfigForm.authCode }}
</v-chip>
<v-chip
v-else
class="mr-2 mb-1"
color="grey"
size="small"
>
<v-icon
size="small"
start
>
mdi-lock-open
</v-icon>
<v-chip v-else class="mr-2 mb-1" color="grey" size="small">
<v-icon size="small" start>mdi-lock-open</v-icon>
无认证码
</v-chip>
<v-chip
@@ -131,12 +88,8 @@
class="mr-2 mb-1"
size="small"
>
<v-icon
size="small"
start
>
{{
preconfigForm.autoExecute ? "mdi-play-circle" : "mdi-hand-back-left"
<v-icon size="small" start>{{
preconfigForm.autoExecute ? "mdi-play-circle" : "mdi-hand-back-left"
}}
</v-icon>
{{ preconfigForm.autoExecute ? "自动认证" : "手动认证" }}
@@ -146,14 +99,9 @@
</v-card>
<!-- 设置分享部分 -->
<v-card
class="mb-4"
variant="tonal"
>
<v-card class="mb-4" variant="tonal">
<v-card-title class="text-subtitle-1">
<v-icon start>
mdi-cog-transfer
</v-icon>
<v-icon start>mdi-cog-transfer</v-icon>
设置分享(可选)
</v-card-title>
@@ -204,10 +152,7 @@
<!-- 选择摘要 -->
<div class="d-flex align-center mb-3 flex-wrap gap-2">
<v-chip
class="mr-2"
color="primary"
>
<v-chip class="mr-2" color="primary">
已选 {{ selectedItems.length }} 项设置
</v-chip>
@@ -238,9 +183,7 @@
<v-expansion-panel-title>
<template #default="{ expanded }">
<div class="d-flex align-center">
<v-icon class="mr-2">
{{ expanded ? 'mdi-chevron-up' : 'mdi-chevron-down' }}
</v-icon>
<v-icon class="mr-2">{{ expanded ? 'mdi-chevron-up' : 'mdi-chevron-down' }}</v-icon>
显示设置列表详情
</div>
</template>
@@ -318,14 +261,9 @@
</v-card>
<!-- 链接生成和操作部分 -->
<v-card
class="mb-4"
variant="outlined"
>
<v-card class="mb-4" variant="outlined">
<v-card-title class="text-subtitle-1">
<v-icon start>
mdi-link
</v-icon>
<v-icon start>mdi-link</v-icon>
生成的统一链接
</v-card-title>
@@ -379,20 +317,10 @@
type="success"
variant="tonal"
>
<div class="text-subtitle-2 mb-2">
链接包含内容:
</div>
<div class="text-subtitle-2 mb-2">链接包含内容:</div>
<div class="d-flex flex-wrap gap-1">
<v-chip
color="primary"
size="small"
>
<v-icon
size="small"
start
>
mdi-account-key
</v-icon>
<v-chip color="primary" size="small">
<v-icon size="small" start>mdi-account-key</v-icon>
预配置认证
</v-chip>
<v-chip
@@ -400,25 +328,11 @@
color="secondary"
size="small"
>
<v-icon
size="small"
start
>
mdi-cog
</v-icon>
<v-icon size="small" start>mdi-cog</v-icon>
{{ selectedItems.length }} 项设置
</v-chip>
<v-chip
v-else
color="grey"
size="small"
>
<v-icon
size="small"
start
>
mdi-cog-off
</v-icon>
<v-chip v-else color="grey" size="small">
<v-icon size="small" start>mdi-cog-off</v-icon>
无额外设置
</v-chip>
</div>
@@ -427,13 +341,8 @@
</v-card>
<!-- 安全提醒 -->
<v-alert
type="warning"
variant="tonal"
>
<div class="text-subtitle-2 mb-2">
⚠️ 安全提醒
</div>
<v-alert type="warning" variant="tonal">
<div class="text-subtitle-2 mb-2">⚠️ 安全提醒</div>
<ul class="text-body-2 pl-4">
<li>认证码和设置信息会在URL中传输,请谨慎分发</li>
<li>建议仅在受信任的网络环境中使用</li>
@@ -600,45 +509,6 @@ export default {
},
},
watch: {
// 监听选择变化,自动生成统一链接
selectedItems: {
handler() {
if (this.preconfigForm.namespace.trim()) {
this.generateUnifiedLink();
}
},
deep: true,
},
// 监听预配置表单变化,自动生成统一链接
"preconfigForm.namespace": {
handler() {
if (this.preconfigForm.namespace.trim()) {
this.generateUnifiedLink();
} else {
this.unifiedLink = "";
}
},
},
"preconfigForm.authCode": {
handler() {
if (this.preconfigForm.namespace.trim()) {
this.generateUnifiedLink();
}
},
},
"preconfigForm.autoExecute": {
handler() {
if (this.preconfigForm.namespace.trim()) {
this.generateUnifiedLink();
}
},
},
},
methods: {
/**
* 处理表格选择变化
@@ -912,5 +782,44 @@ export default {
this.linkCopied = false;
},
},
watch: {
// 监听选择变化,自动生成统一链接
selectedItems: {
handler() {
if (this.preconfigForm.namespace.trim()) {
this.generateUnifiedLink();
}
},
deep: true,
},
// 监听预配置表单变化,自动生成统一链接
"preconfigForm.namespace": {
handler() {
if (this.preconfigForm.namespace.trim()) {
this.generateUnifiedLink();
} else {
this.unifiedLink = "";
}
},
},
"preconfigForm.authCode": {
handler() {
if (this.preconfigForm.namespace.trim()) {
this.generateUnifiedLink();
}
},
},
"preconfigForm.autoExecute": {
handler() {
if (this.preconfigForm.namespace.trim()) {
this.generateUnifiedLink();
}
},
},
},
};
</script>