style: format web apps with prettier and sort imports

Apply repo-wide Prettier/lint normalization across admin-web,
desktop-client and ops-web: single quotes, no semicolons, trailing
commas, consistent line wrapping, and import ordering. Also drop an
unused brand-logo import in DesktopShell.vue.

No behavior changes — formatting only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-08 11:56:18 +08:00
parent a44ed21967
commit aa96143754
81 changed files with 2929 additions and 2252 deletions
@@ -283,18 +283,16 @@
/>
</a-form-item>
</template>
<a-form-item v-else-if="form.updater_download_source === 'custom'" label="更新包自定义地址">
<a-form-item
v-else-if="form.updater_download_source === 'custom'"
label="更新包自定义地址"
>
<a-input
v-model:value="form.updater_custom_download_url"
placeholder="https://download.example.com/desktop/app.zip"
/>
</a-form-item>
<a-alert
v-else
type="info"
show-icon
message="复用官网安装包"
/>
<a-alert v-else type="info" show-icon message="复用官网安装包" />
<div v-if="form.updater_download_source !== ''" class="form-grid">
<a-form-item label="更新包文件名">
@@ -347,6 +345,7 @@ import { message } from 'ant-design-vue'
import dayjs from 'dayjs'
import { computed, onMounted, reactive, ref, watch } from 'vue'
import { copyTextToClipboard } from '@/lib/clipboard'
import {
archOptions,
desktopClientReleaseApi,
@@ -357,7 +356,6 @@ import {
type DesktopReleasePlatform,
type DesktopReleaseSource,
} from '@/lib/desktop-client-releases'
import { copyTextToClipboard } from '@/lib/clipboard'
import { showOpsError } from '@/lib/errors'
const enabledOptions = [
@@ -620,7 +618,8 @@ async function beforeUploadReleasePackage(file: File, kind: 'installer' | 'updat
function uploadButtonText(kind: 'installer' | 'updater') {
const isUploading = kind === 'installer' ? uploading.value : updaterUploading.value
const progress = kind === 'installer' ? uploadProgress.value : updaterUploadProgress.value
const hasUploaded = kind === 'installer' ? Boolean(form.oss_object_key) : Boolean(form.updater_oss_object_key)
const hasUploaded =
kind === 'installer' ? Boolean(form.oss_object_key) : Boolean(form.updater_oss_object_key)
if (isUploading && typeof progress === 'number' && progress < 100) {
return `上传中 ${progress}%`
}
@@ -749,10 +748,7 @@ function updaterSourceText(row: DesktopClientRelease): string {
return row.updater_download_source === 'oss' ? 'OSS' : '自定义'
}
function assetTargetText(
row: DesktopClientRelease,
kind: 'installer' | 'updater',
): string {
function assetTargetText(row: DesktopClientRelease, kind: 'installer' | 'updater'): string {
if (kind === 'installer' || !row.updater_download_source) {
return row.download_source === 'oss'
? (row.oss_object_key ?? '未配置')