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
@@ -80,10 +80,15 @@ function isPendingStatus(status: string): boolean {
}
function hasActivePublishingRecord(page: PublishRecordListResponse | undefined): boolean {
return Boolean(page?.items.some((record) => isPendingStatus(normalizeRecordStatus(record.status))))
return Boolean(
page?.items.some((record) => isPendingStatus(normalizeRecordStatus(record.status))),
)
}
function normalizeRecordErrorMessage(messageText: string | null, platform?: string | null): string | null {
function normalizeRecordErrorMessage(
messageText: string | null,
platform?: string | null,
): string | null {
const normalized = extractString(messageText)
if (!normalized) {
return null
@@ -222,8 +227,7 @@ const publishRecords = computed<PublishRecordItem[]>(() =>
const platformMeta = getPublishPlatformMeta(platformId)
const isEnterpriseSite = record.target_type === 'enterprise_site'
const accountName =
extractString(record.platform_nickname) ??
(isEnterpriseSite ? '企业自建站点' : '待同步账号')
extractString(record.platform_nickname) ?? (isEnterpriseSite ? '企业自建站点' : '待同步账号')
const statusMeta = statusMetaForRecord(status)
const externalUrl =
extractString(record.external_article_url) ?? extractString(record.external_manage_url)
@@ -538,7 +542,11 @@ async function copyErrorMessage(record: PublishRecordItem): Promise<void> {
</a-button>
</span>
</a-tooltip>
<a-tooltip v-if="record.canOpenWorkbench" :title="`打开 ${record.accountName} 的${record.platformName}工作台`" placement="top">
<a-tooltip
v-if="record.canOpenWorkbench"
:title="`打开 ${record.accountName} 的${record.platformName}工作台`"
placement="top"
>
<a-button
type="text"
class="publish-action-btn"