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
@@ -22,17 +22,13 @@ import { useRouter } from 'vue-router'
import ArticleEditorCanvas from '@/components/ArticleEditorCanvas.vue'
import { articlesApi, imagesApi, mediaSupplyApi } from '@/lib/api'
import { formatDateTime, getGenerateStatusMeta, getSourceTypeLabel } from '@/lib/display'
import { formatError } from '@/lib/errors'
import {
clearMediaSupplySubmitSelection,
loadMediaSupplySubmitSelection,
type MediaSupplySubmitResourceSnapshot,
} from '@/lib/media-supply-submit-selection'
import {
formatDateTime,
getGenerateStatusMeta,
getSourceTypeLabel,
} from '@/lib/display'
import { formatError } from '@/lib/errors'
import { useCompanyStore } from '@/stores/company'
const MODEL_ID_AUTHORITY_NEWS = 1
@@ -225,7 +221,9 @@ function displayValue(value?: string | null): string {
return value?.trim() || '--'
}
function sourceLabel(article: Pick<ArticleDetail | ArticleListItem, 'source_type' | 'generation_mode'>): string {
function sourceLabel(
article: Pick<ArticleDetail | ArticleListItem, 'source_type' | 'generation_mode'>,
): string {
return getSourceTypeLabel(article.source_type, article.generation_mode)
}
@@ -292,7 +290,9 @@ function stripLeadingTitleHeading(titleValue: string, markdownValue: string): st
<article v-for="resource in resources" :key="resource.id" class="media-row">
<div>
<strong>{{ resource.name }}</strong>
<span>{{ displayValue(resource.channel_type) }} · {{ displayValue(resource.region) }}</span>
<span>
{{ displayValue(resource.channel_type) }} · {{ displayValue(resource.region) }}
</span>
</div>
<em>{{ formatSellPrice(resource.sell_price_cents) }}</em>
<p v-if="resource.resource_remark">{{ resource.resource_remark }}</p>
@@ -335,7 +335,11 @@ function stripLeadingTitleHeading(titleValue: string, markdownValue: string): st
>
<template #prefix><SearchOutlined /></template>
</a-input>
<a-select v-model:value="articleSourceType" :options="sourceOptions" @change="applyArticleSearch" />
<a-select
v-model:value="articleSourceType"
:options="sourceOptions"
@change="applyArticleSearch"
/>
</div>
<a-spin :spinning="articlesQuery.isPending.value || selectedArticleLoading">
<div v-if="articleRows.length" class="article-list">
@@ -386,14 +390,15 @@ function stripLeadingTitleHeading(titleValue: string, markdownValue: string): st
/>
</div>
</section>
</main>
</div>
<footer class="submit-footer">
<div class="footer-balance" :class="{ 'footer-balance--danger': !balanceEnough }">
<WalletOutlined />
<span>合计 {{ formatSellPrice(selectedTotal) }}余额 {{ formatMoney(walletBalance) }}</span>
<span>
合计 {{ formatSellPrice(selectedTotal) }}余额 {{ formatMoney(walletBalance) }}
</span>
</div>
<div class="footer-actions">
<a-button @click="cancelSubmit">取消</a-button>