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:
@@ -55,7 +55,10 @@ const exportLoading = ref<ArticleExportFormat | null>(null)
|
||||
const detailQuery = useQuery({
|
||||
queryKey: computed(() => ['articles', 'detail', companyStore.currentBrandId, articleId.value]),
|
||||
enabled: computed(
|
||||
() => Boolean(companyStore.currentBrandId) && Number.isInteger(articleId.value) && articleId.value > 0,
|
||||
() =>
|
||||
Boolean(companyStore.currentBrandId) &&
|
||||
Number.isInteger(articleId.value) &&
|
||||
articleId.value > 0,
|
||||
),
|
||||
queryFn: () => articlesApi.detail(articleId.value),
|
||||
})
|
||||
@@ -125,7 +128,9 @@ const complianceCheckLoading = ref(false)
|
||||
const editorComplianceViolations = computed(() =>
|
||||
compliancePanelOpen.value ? (editorComplianceResult.value?.violations ?? []) : [],
|
||||
)
|
||||
const complianceGroups = computed(() => groupViolations(editorComplianceResult.value?.violations ?? []))
|
||||
const complianceGroups = computed(() =>
|
||||
groupViolations(editorComplianceResult.value?.violations ?? []),
|
||||
)
|
||||
const complianceElapsedLabel = computed(() => {
|
||||
const duration = editorComplianceResult.value?.duration_ms ?? 0
|
||||
return duration > 0 ? `${duration} ms` : '< 1 ms'
|
||||
@@ -527,15 +532,21 @@ onBeforeUnmount(() => {
|
||||
<template #overlay>
|
||||
<a-menu class="article-editor-view__download-menu">
|
||||
<a-menu-item key="word" @click="handleDownload('word')">
|
||||
<FileWordOutlined class="article-editor-view__download-icon article-editor-view__download-icon--word" />
|
||||
<FileWordOutlined
|
||||
class="article-editor-view__download-icon article-editor-view__download-icon--word"
|
||||
/>
|
||||
<span>{{ t('article.editor.downloadFormats.word') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="pdf" @click="handleDownload('pdf')">
|
||||
<FilePdfOutlined class="article-editor-view__download-icon article-editor-view__download-icon--pdf" />
|
||||
<FilePdfOutlined
|
||||
class="article-editor-view__download-icon article-editor-view__download-icon--pdf"
|
||||
/>
|
||||
<span>{{ t('article.editor.downloadFormats.pdf') }}</span>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="markdown" @click="handleDownload('markdown')">
|
||||
<FileMarkdownOutlined class="article-editor-view__download-icon article-editor-view__download-icon--markdown" />
|
||||
<FileMarkdownOutlined
|
||||
class="article-editor-view__download-icon article-editor-view__download-icon--markdown"
|
||||
/>
|
||||
<span>{{ t('article.editor.downloadFormats.markdown') }}</span>
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
@@ -656,7 +667,7 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
<p v-if="violation.dictionary_name || violation.term_pattern">
|
||||
{{ violation.dictionary_name || '词库规则' }}
|
||||
<span v-if="violation.term_pattern"> · {{ violation.term_pattern }}</span>
|
||||
<span v-if="violation.term_pattern">· {{ violation.term_pattern }}</span>
|
||||
</p>
|
||||
<p v-if="violation.hint">{{ violation.hint }}</p>
|
||||
<div class="article-editor-view__violation-actions">
|
||||
|
||||
Reference in New Issue
Block a user