2026-04-03 00:39:15 +08:00
|
|
|
|
<script setup lang="ts">
|
2026-05-05 21:01:11 +08:00
|
|
|
|
import {
|
|
|
|
|
|
CheckCircleFilled,
|
|
|
|
|
|
CloseCircleFilled,
|
|
|
|
|
|
ExclamationCircleFilled,
|
|
|
|
|
|
InfoCircleFilled,
|
|
|
|
|
|
MinusCircleFilled,
|
|
|
|
|
|
} from '@ant-design/icons-vue'
|
2026-05-05 20:48:14 +08:00
|
|
|
|
import { ApiClientError } from '@geo/http-client'
|
|
|
|
|
|
import type {
|
|
|
|
|
|
ArticleDetail,
|
|
|
|
|
|
ComplianceCheckResult,
|
|
|
|
|
|
ComplianceRuntimeStatus,
|
|
|
|
|
|
GateDecisionLiteral,
|
|
|
|
|
|
} from '@geo/shared-types'
|
2026-05-01 20:39:09 +08:00
|
|
|
|
import { useMutation, useQuery, useQueryClient } from '@tanstack/vue-query'
|
|
|
|
|
|
import { message, notification } from 'ant-design-vue'
|
|
|
|
|
|
import { computed, ref, watch, watchEffect } from 'vue'
|
|
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
|
|
|
|
|
|
|
|
import CoverPickerModal from '@/components/CoverPickerModal.vue'
|
2026-05-05 20:48:14 +08:00
|
|
|
|
import {
|
|
|
|
|
|
articlesApi,
|
|
|
|
|
|
complianceApi,
|
|
|
|
|
|
mediaApi,
|
|
|
|
|
|
publishJobsApi,
|
|
|
|
|
|
resolveApiURL,
|
|
|
|
|
|
tenantAccountsApi,
|
|
|
|
|
|
} from '@/lib/api'
|
2026-05-01 20:39:09 +08:00
|
|
|
|
import { coverUploadRequired, deriveCoverFileName } from '@/lib/cover-requirements'
|
|
|
|
|
|
import { formatError } from '@/lib/errors'
|
2026-04-20 19:46:59 +08:00
|
|
|
|
import {
|
2026-04-30 01:32:19 +08:00
|
|
|
|
accountInitial,
|
|
|
|
|
|
buildPublishAccountCards,
|
|
|
|
|
|
buildPublishPlatformMap,
|
|
|
|
|
|
clientStatusColor,
|
|
|
|
|
|
clientStatusLabel,
|
|
|
|
|
|
healthColor,
|
|
|
|
|
|
healthLabel,
|
|
|
|
|
|
publishStateLabel,
|
|
|
|
|
|
type PublishAccountCard,
|
2026-05-01 20:39:09 +08:00
|
|
|
|
} from '@/lib/publish-account-cards'
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
2026-04-03 00:39:15 +08:00
|
|
|
|
const props = defineProps<{
|
2026-05-01 20:39:09 +08:00
|
|
|
|
open: boolean
|
|
|
|
|
|
articleId: number | null
|
|
|
|
|
|
}>()
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
2026-05-01 20:39:09 +08:00
|
|
|
|
'update:open': [value: boolean]
|
|
|
|
|
|
published: []
|
|
|
|
|
|
}>()
|
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
const queryClient = useQueryClient()
|
|
|
|
|
|
|
|
|
|
|
|
const selectedAccountIds = ref<string[]>([])
|
|
|
|
|
|
const coverEnabled = ref(false)
|
|
|
|
|
|
const coverAssetUrl = ref('')
|
|
|
|
|
|
const coverFileName = ref('')
|
|
|
|
|
|
const coverImageAssetId = ref<number | null>(null)
|
|
|
|
|
|
const coverPickerOpen = ref(false)
|
|
|
|
|
|
const selectionHydrated = ref(false)
|
|
|
|
|
|
const coverHydrated = ref(false)
|
2026-05-05 20:48:14 +08:00
|
|
|
|
const complianceResult = ref<ComplianceCheckResult | null>(null)
|
|
|
|
|
|
const publishAdmissionResult = ref<ComplianceCheckResult | null>(null)
|
|
|
|
|
|
const publishAdmissionLoading = ref(false)
|
|
|
|
|
|
const publishAdmissionError = ref<string | null>(null)
|
|
|
|
|
|
let publishAdmissionRunId = 0
|
|
|
|
|
|
const ackInProgress = ref(false)
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
|
|
|
|
|
const detailQuery = useQuery({
|
2026-05-01 20:39:09 +08:00
|
|
|
|
queryKey: computed(() => ['articles', 'detail', props.articleId, 'publish-modal']),
|
2026-04-03 00:39:15 +08:00
|
|
|
|
enabled: computed(() => props.open && Boolean(props.articleId)),
|
|
|
|
|
|
queryFn: () => articlesApi.detail(props.articleId as number),
|
2026-05-01 20:39:09 +08:00
|
|
|
|
})
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
|
|
|
|
|
const accountsQuery = useQuery({
|
2026-05-01 20:39:09 +08:00
|
|
|
|
queryKey: ['tenant', 'desktop-accounts', 'publish-modal'],
|
2026-04-03 00:39:15 +08:00
|
|
|
|
enabled: computed(() => props.open),
|
2026-04-20 09:52:48 +08:00
|
|
|
|
queryFn: () => tenantAccountsApi.list(),
|
2026-05-01 20:39:09 +08:00
|
|
|
|
})
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
|
|
|
|
|
const platformsQuery = useQuery({
|
2026-05-01 20:39:09 +08:00
|
|
|
|
queryKey: ['media', 'platforms', 'publish-modal'],
|
2026-04-03 00:39:15 +08:00
|
|
|
|
enabled: computed(() => props.open),
|
|
|
|
|
|
queryFn: () => mediaApi.platforms(),
|
2026-05-01 20:39:09 +08:00
|
|
|
|
})
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
const complianceStatusQuery = useQuery({
|
|
|
|
|
|
queryKey: ['compliance', 'runtime-status', 'publish-modal'],
|
|
|
|
|
|
enabled: computed(() => props.open),
|
|
|
|
|
|
queryFn: () => complianceApi.runtimeStatus(),
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2026-04-03 00:39:15 +08:00
|
|
|
|
watch(
|
|
|
|
|
|
() => props.open,
|
|
|
|
|
|
async (open) => {
|
|
|
|
|
|
if (!open) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
selectedAccountIds.value = []
|
|
|
|
|
|
coverAssetUrl.value = ''
|
|
|
|
|
|
coverFileName.value = ''
|
|
|
|
|
|
coverImageAssetId.value = null
|
|
|
|
|
|
coverEnabled.value = false
|
|
|
|
|
|
selectionHydrated.value = false
|
|
|
|
|
|
coverHydrated.value = false
|
2026-05-05 20:48:14 +08:00
|
|
|
|
complianceResult.value = null
|
|
|
|
|
|
publishAdmissionResult.value = null
|
|
|
|
|
|
publishAdmissionLoading.value = false
|
|
|
|
|
|
publishAdmissionError.value = null
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
selectionHydrated.value = false
|
|
|
|
|
|
coverHydrated.value = false
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
2026-04-13 16:08:12 +08:00
|
|
|
|
await Promise.allSettled([
|
|
|
|
|
|
props.articleId ? detailQuery.refetch() : Promise.resolve(),
|
|
|
|
|
|
accountsQuery.refetch(),
|
|
|
|
|
|
platformsQuery.refetch(),
|
2026-05-05 20:48:14 +08:00
|
|
|
|
complianceStatusQuery.refetch(),
|
2026-05-01 20:39:09 +08:00
|
|
|
|
])
|
2026-04-03 00:39:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{ immediate: true },
|
2026-05-01 20:39:09 +08:00
|
|
|
|
)
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const platformMap = computed(() => buildPublishPlatformMap(platformsQuery.data.value ?? []))
|
2026-04-20 19:46:59 +08:00
|
|
|
|
|
2026-04-30 01:32:19 +08:00
|
|
|
|
const accountCards = computed<PublishAccountCard[]>(() =>
|
2026-05-01 11:02:21 +08:00
|
|
|
|
buildPublishAccountCards(accountsQuery.data.value ?? [], platformMap.value),
|
2026-05-01 20:39:09 +08:00
|
|
|
|
)
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
|
accountCards,
|
|
|
|
|
|
(cards) => {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const selectableIds = new Set(cards.filter((card) => card.selectable).map((card) => card.id))
|
|
|
|
|
|
selectedAccountIds.value = selectedAccountIds.value.filter((id) => selectableIds.has(id))
|
2026-04-20 09:52:48 +08:00
|
|
|
|
},
|
|
|
|
|
|
{ immediate: true },
|
2026-05-01 20:39:09 +08:00
|
|
|
|
)
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
2026-04-06 15:41:49 +08:00
|
|
|
|
watchEffect(() => {
|
2026-04-07 09:19:03 +08:00
|
|
|
|
if (!props.open) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
if (!coverHydrated.value && !detailQuery.isPending.value && !detailQuery.isFetching.value) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const initialUrl = resolveApiURL(detailQuery.data.value?.cover_asset_url)
|
|
|
|
|
|
coverAssetUrl.value = initialUrl
|
|
|
|
|
|
coverFileName.value = deriveCoverFileName(initialUrl)
|
|
|
|
|
|
coverImageAssetId.value = detailQuery.data.value?.cover_image_asset_id ?? null
|
|
|
|
|
|
coverEnabled.value = Boolean(initialUrl)
|
|
|
|
|
|
coverHydrated.value = true
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (selectionHydrated.value) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return
|
2026-04-06 15:41:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
detailQuery.isPending.value ||
|
2026-04-13 16:08:12 +08:00
|
|
|
|
detailQuery.isFetching.value ||
|
2026-04-06 15:41:49 +08:00
|
|
|
|
accountsQuery.isPending.value ||
|
2026-04-13 16:08:12 +08:00
|
|
|
|
accountsQuery.isFetching.value ||
|
2026-04-06 15:41:49 +08:00
|
|
|
|
platformsQuery.isPending.value ||
|
2026-04-20 09:52:48 +08:00
|
|
|
|
platformsQuery.isFetching.value
|
2026-04-06 15:41:49 +08:00
|
|
|
|
) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return
|
2026-04-06 15:41:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
selectedAccountIds.value = []
|
|
|
|
|
|
selectionHydrated.value = true
|
|
|
|
|
|
})
|
2026-04-06 15:41:49 +08:00
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
const selectedCards = computed(() => {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const selected = new Set(selectedAccountIds.value)
|
|
|
|
|
|
return accountCards.value.filter((card) => selected.has(card.id))
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const modalTitle = computed(() => detailQuery.data.value?.title || t('article.untitled'))
|
|
|
|
|
|
const selectedPlatformIds = computed(() =>
|
|
|
|
|
|
Array.from(new Set(selectedCards.value.map((card) => card.platformId))),
|
|
|
|
|
|
)
|
2026-05-05 20:48:14 +08:00
|
|
|
|
watch(selectedPlatformIds, () => {
|
|
|
|
|
|
complianceResult.value = null
|
|
|
|
|
|
})
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const selectedImmediateCount = computed(
|
|
|
|
|
|
() => selectedCards.value.filter((card) => card.publishState === 'immediate').length,
|
|
|
|
|
|
)
|
|
|
|
|
|
const selectedQueuedCount = computed(
|
|
|
|
|
|
() => selectedCards.value.filter((card) => card.publishState === 'queued').length,
|
|
|
|
|
|
)
|
|
|
|
|
|
const publishModalVisible = computed(() => props.open && !coverPickerOpen.value)
|
|
|
|
|
|
const coverRequired = computed(() => coverUploadRequired(selectedPlatformIds.value))
|
|
|
|
|
|
const effectiveCoverEnabled = computed(() => coverRequired.value || coverEnabled.value)
|
|
|
|
|
|
const normalizedCoverValue = computed(() =>
|
|
|
|
|
|
effectiveCoverEnabled.value ? coverAssetUrl.value.trim() : '',
|
|
|
|
|
|
)
|
2026-05-05 20:48:14 +08:00
|
|
|
|
const publishMutation = useMutation({
|
|
|
|
|
|
mutationFn: () => runPublishFlow(),
|
|
|
|
|
|
onSuccess: handlePublishSuccess,
|
|
|
|
|
|
onError: handlePublishError,
|
|
|
|
|
|
})
|
|
|
|
|
|
const complianceStatus = computed<ComplianceRuntimeStatus | null>(
|
|
|
|
|
|
() => complianceStatusQuery.data.value ?? null,
|
|
|
|
|
|
)
|
|
|
|
|
|
const publishComplianceEnabled = computed(
|
|
|
|
|
|
() =>
|
|
|
|
|
|
complianceStatus.value?.enabled === true &&
|
|
|
|
|
|
complianceStatus.value.enforcement_mode !== 'disabled',
|
|
|
|
|
|
)
|
|
|
|
|
|
const publishComplianceMode = computed(() => complianceStatus.value?.enforcement_mode ?? 'disabled')
|
|
|
|
|
|
const publishComplianceMandatory = computed(
|
|
|
|
|
|
() => publishComplianceEnabled.value && publishComplianceMode.value === 'mandatory',
|
|
|
|
|
|
)
|
|
|
|
|
|
const publishAdmissionPassed = computed(
|
|
|
|
|
|
() => complianceDisplayDecision(publishAdmissionResult.value) === 'pass',
|
|
|
|
|
|
)
|
|
|
|
|
|
const mandatoryAdmissionBlocking = computed(
|
|
|
|
|
|
() => publishComplianceMandatory.value && !publishAdmissionPassed.value,
|
|
|
|
|
|
)
|
|
|
|
|
|
const accountSelectionLocked = computed(
|
|
|
|
|
|
() =>
|
|
|
|
|
|
publishMutation.isPending.value || ackInProgress.value || mandatoryAdmissionBlocking.value,
|
|
|
|
|
|
)
|
|
|
|
|
|
const accountSelectionLockSpinning = computed(
|
|
|
|
|
|
() =>
|
|
|
|
|
|
publishAdmissionLoading.value ||
|
|
|
|
|
|
(publishComplianceMandatory.value &&
|
|
|
|
|
|
!publishAdmissionResult.value &&
|
|
|
|
|
|
!publishAdmissionError.value &&
|
|
|
|
|
|
!publishAdmissionPassed.value),
|
|
|
|
|
|
)
|
|
|
|
|
|
const accountSelectionLockMessage = computed(() => {
|
|
|
|
|
|
if (publishMutation.isPending.value || ackInProgress.value) {
|
|
|
|
|
|
return '发布任务提交中,请稍候。'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (accountSelectionLockSpinning.value) {
|
2026-05-05 21:01:11 +08:00
|
|
|
|
return '强制敏感词检测中,检测通过后可选择目标账号。\n请回到文章编辑页,使用合规检测查看全部命中词并逐项修改。'
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
if (publishAdmissionError.value) {
|
2026-05-05 21:01:11 +08:00
|
|
|
|
return '强制敏感词检测暂时不可用,当前不能选择目标账号。\n请回到文章编辑页,使用合规检测查看全部命中词并逐项修改。'
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
2026-05-05 21:01:11 +08:00
|
|
|
|
return '当前文章未通过强制敏感词检测,暂不能选择目标账号。\n请回到文章编辑页,使用合规检测查看全部命中词并逐项修改。'
|
2026-05-05 20:48:14 +08:00
|
|
|
|
})
|
|
|
|
|
|
const okText = computed(() => {
|
|
|
|
|
|
if (publishComplianceMandatory.value && publishAdmissionLoading.value) {
|
|
|
|
|
|
return '检测中'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (publishComplianceMandatory.value && publishAdmissionError.value) {
|
|
|
|
|
|
return '检测失败'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (
|
|
|
|
|
|
publishComplianceMandatory.value &&
|
|
|
|
|
|
publishAdmissionResult.value &&
|
|
|
|
|
|
complianceDisplayDecision(publishAdmissionResult.value) !== 'pass'
|
|
|
|
|
|
) {
|
|
|
|
|
|
return '检测未通过'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (
|
|
|
|
|
|
publishComplianceMandatory.value &&
|
|
|
|
|
|
complianceResult.value &&
|
|
|
|
|
|
complianceDisplayDecision(complianceResult.value) !== 'pass'
|
|
|
|
|
|
) {
|
|
|
|
|
|
return '检测未通过'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (publishComplianceMandatory.value && !publishAdmissionPassed.value) {
|
|
|
|
|
|
return '检测中'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (complianceDisplayDecision(complianceResult.value) === 'needs_ack') {
|
|
|
|
|
|
return '已了解风险,继续发布'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (complianceDisplayDecision(complianceResult.value) === 'block') {
|
|
|
|
|
|
return '无法发布'
|
|
|
|
|
|
}
|
|
|
|
|
|
return '提交发布'
|
|
|
|
|
|
})
|
|
|
|
|
|
const okDisabled = computed(() => {
|
|
|
|
|
|
if (mandatoryAdmissionBlocking.value) {
|
|
|
|
|
|
return true
|
|
|
|
|
|
}
|
|
|
|
|
|
if (
|
|
|
|
|
|
publishComplianceMandatory.value &&
|
|
|
|
|
|
complianceResult.value &&
|
|
|
|
|
|
complianceDisplayDecision(complianceResult.value) !== 'pass'
|
|
|
|
|
|
) {
|
|
|
|
|
|
return true
|
|
|
|
|
|
}
|
|
|
|
|
|
return complianceDisplayDecision(complianceResult.value) === 'block'
|
|
|
|
|
|
})
|
|
|
|
|
|
const compliancePanelTitle = computed(() => {
|
|
|
|
|
|
if (complianceDisplayDecision(complianceResult.value) === 'needs_ack') {
|
|
|
|
|
|
return '发布前需要确认合规风险'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (complianceDisplayDecision(complianceResult.value) === 'block') {
|
|
|
|
|
|
return '检测到敏感词,已阻断发布'
|
|
|
|
|
|
}
|
|
|
|
|
|
return ''
|
|
|
|
|
|
})
|
|
|
|
|
|
const publishCompliancePanelVisible = computed(
|
|
|
|
|
|
() =>
|
|
|
|
|
|
publishComplianceEnabled.value &&
|
|
|
|
|
|
(publishAdmissionLoading.value ||
|
|
|
|
|
|
Boolean(publishAdmissionResult.value) ||
|
|
|
|
|
|
Boolean(publishAdmissionError.value) ||
|
|
|
|
|
|
Boolean(complianceResult.value)),
|
|
|
|
|
|
)
|
|
|
|
|
|
const publishCompliancePanelTone = computed(() => {
|
|
|
|
|
|
const finalDecision = complianceDisplayDecision(complianceResult.value)
|
|
|
|
|
|
const admissionDecision = complianceDisplayDecision(publishAdmissionResult.value)
|
|
|
|
|
|
if (publishAdmissionError.value || finalDecision === 'block' || admissionDecision === 'block') {
|
|
|
|
|
|
return 'error'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (publishAdmissionLoading.value) {
|
|
|
|
|
|
return 'info'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (
|
|
|
|
|
|
admissionDecision === 'needs_ack' ||
|
|
|
|
|
|
finalDecision === 'needs_ack'
|
|
|
|
|
|
) {
|
|
|
|
|
|
return publishComplianceMandatory.value ? 'error' : 'warning'
|
|
|
|
|
|
}
|
|
|
|
|
|
return 'success'
|
|
|
|
|
|
})
|
|
|
|
|
|
const publishCompliancePanelTitle = computed(() => {
|
|
|
|
|
|
if (publishAdmissionLoading.value) {
|
|
|
|
|
|
return publishComplianceMandatory.value ? '正在进行强制敏感词检测' : '正在加载敏感词检测状态'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (publishAdmissionError.value) {
|
|
|
|
|
|
return '敏感词检测暂时不可用'
|
|
|
|
|
|
}
|
|
|
|
|
|
const finalDecision = complianceDisplayDecision(complianceResult.value)
|
|
|
|
|
|
const admissionDecision = complianceDisplayDecision(publishAdmissionResult.value)
|
|
|
|
|
|
if (finalDecision === 'block') {
|
|
|
|
|
|
return publishComplianceMandatory.value ? '检测到敏感词,已阻断发布' : '检测到敏感词风险'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (finalDecision === 'needs_ack') {
|
|
|
|
|
|
return publishComplianceMandatory.value ? '检测到敏感词,已阻断发布' : '检测到敏感词风险'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (finalDecision === 'pass') {
|
|
|
|
|
|
return '敏感词检测通过'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (admissionDecision === 'block') {
|
|
|
|
|
|
return publishComplianceMandatory.value ? '检测到敏感词,已阻断发布' : '检测到敏感词风险'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (admissionDecision === 'needs_ack') {
|
|
|
|
|
|
return publishComplianceMandatory.value ? '检测到敏感词,已阻断发布' : '检测到敏感词风险'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (admissionDecision === 'pass') {
|
|
|
|
|
|
return '敏感词检测通过'
|
|
|
|
|
|
}
|
|
|
|
|
|
return compliancePanelTitle.value
|
|
|
|
|
|
})
|
|
|
|
|
|
const publishCompliancePanelDescription = computed(() => {
|
|
|
|
|
|
if (publishAdmissionLoading.value) {
|
|
|
|
|
|
return publishComplianceMandatory.value
|
|
|
|
|
|
? '检测完成前暂时不能选择目标账号或提交发布。'
|
|
|
|
|
|
: '仅提示确认模式不会阻断目标账号选择和发布操作。'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (publishAdmissionError.value) {
|
|
|
|
|
|
return publishComplianceMandatory.value
|
|
|
|
|
|
? '当前为强制阻断模式,请稍后重试或联系运营处理。'
|
|
|
|
|
|
: '当前为仅提示确认模式,仍可继续选择账号并发布。'
|
|
|
|
|
|
}
|
|
|
|
|
|
const finalDecision = complianceDisplayDecision(complianceResult.value)
|
|
|
|
|
|
const admissionDecision = complianceDisplayDecision(publishAdmissionResult.value)
|
|
|
|
|
|
if (finalDecision === 'block') {
|
|
|
|
|
|
return publishComplianceMandatory.value
|
|
|
|
|
|
? '请回到文章编辑页,使用合规检测查看全部命中词并逐项修改。'
|
|
|
|
|
|
: '请回到文章编辑页,使用合规检测查看全部命中词。'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (finalDecision === 'needs_ack') {
|
|
|
|
|
|
return publishComplianceMandatory.value
|
|
|
|
|
|
? '请回到文章编辑页,使用合规检测查看全部命中词并逐项修改。'
|
|
|
|
|
|
: '请回到文章编辑页,使用合规检测查看全部命中词;确认风险后仍可继续发布。'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (finalDecision === 'pass') {
|
|
|
|
|
|
return '当前文章未命中敏感词风险。'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (admissionDecision === 'block') {
|
|
|
|
|
|
return publishComplianceMandatory.value
|
|
|
|
|
|
? '请回到文章编辑页,使用合规检测查看全部命中词并逐项修改。'
|
|
|
|
|
|
: '请回到文章编辑页,使用合规检测查看全部命中词。'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (admissionDecision === 'needs_ack') {
|
|
|
|
|
|
return publishComplianceMandatory.value
|
|
|
|
|
|
? '请回到文章编辑页,使用合规检测查看全部命中词并逐项修改。'
|
|
|
|
|
|
: '请回到文章编辑页,使用合规检测查看全部命中词;确认风险后仍可继续发布。'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (admissionDecision === 'pass') {
|
|
|
|
|
|
return '当前文章未命中敏感词风险。'
|
|
|
|
|
|
}
|
|
|
|
|
|
return '请回到文章编辑页,使用合规检测查看全部命中词。'
|
|
|
|
|
|
})
|
|
|
|
|
|
const displayedComplianceResult = computed(
|
|
|
|
|
|
() => complianceResult.value ?? publishAdmissionResult.value,
|
|
|
|
|
|
)
|
|
|
|
|
|
const complianceAcknowledgedViolationIds = computed(() =>
|
|
|
|
|
|
(complianceResult.value?.violations ?? [])
|
|
|
|
|
|
.map((item) => item.id),
|
|
|
|
|
|
)
|
2026-04-07 09:19:03 +08:00
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
|
coverRequired,
|
|
|
|
|
|
(required) => {
|
|
|
|
|
|
if (required) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
coverEnabled.value = true
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{ immediate: true },
|
2026-05-01 20:39:09 +08:00
|
|
|
|
)
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
watch(
|
|
|
|
|
|
[
|
|
|
|
|
|
() => props.open,
|
|
|
|
|
|
() => detailQuery.data.value?.id,
|
|
|
|
|
|
() => detailQuery.data.value?.current_version_id,
|
|
|
|
|
|
() => complianceStatusQuery.data.value?.enabled,
|
|
|
|
|
|
() => complianceStatusQuery.data.value?.enforcement_mode,
|
|
|
|
|
|
],
|
|
|
|
|
|
() => {
|
|
|
|
|
|
void runPublishAdmissionCheck()
|
2026-04-03 00:39:15 +08:00
|
|
|
|
},
|
2026-05-05 20:48:14 +08:00
|
|
|
|
{ immediate: true },
|
|
|
|
|
|
)
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
async function runPublishFlow(ackRecordId?: number) {
|
|
|
|
|
|
if (!props.articleId || !detailQuery.data.value) {
|
|
|
|
|
|
throw new Error('missing_article')
|
|
|
|
|
|
}
|
|
|
|
|
|
if (!selectedAccountIds.value.length) {
|
|
|
|
|
|
throw new Error('no_accounts_selected')
|
|
|
|
|
|
}
|
|
|
|
|
|
if (coverRequired.value && !normalizedCoverValue.value) {
|
|
|
|
|
|
throw new Error('cover_required_for_selected_platforms')
|
|
|
|
|
|
}
|
2026-05-01 20:39:09 +08:00
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
const article = await persistCoverIfNeeded(detailQuery.data.value)
|
|
|
|
|
|
const articleVersionId = article.current_version_id ?? detailQuery.data.value.current_version_id
|
|
|
|
|
|
if (!articleVersionId) {
|
|
|
|
|
|
throw new Error('invalid_article_version')
|
|
|
|
|
|
}
|
|
|
|
|
|
if (
|
|
|
|
|
|
publishComplianceEnabled.value &&
|
|
|
|
|
|
!ackRecordId
|
|
|
|
|
|
) {
|
|
|
|
|
|
const result = await complianceApi.checkArticle(article.id, {
|
|
|
|
|
|
article_version_id: articleVersionId,
|
|
|
|
|
|
title: article.title,
|
|
|
|
|
|
plaintext: article.markdown_content ?? '',
|
|
|
|
|
|
target_platforms: selectedPlatformIds.value,
|
|
|
|
|
|
trigger_source: 'publish_gate',
|
|
|
|
|
|
})
|
|
|
|
|
|
complianceResult.value = result
|
|
|
|
|
|
const decision = complianceDisplayDecision(result)
|
|
|
|
|
|
if (decision === 'block' || decision === 'needs_ack') {
|
|
|
|
|
|
throw new Error(`compliance_${decision}`)
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
return publishJobsApi.create({
|
|
|
|
|
|
title: article.title?.trim() || t('article.untitled'),
|
|
|
|
|
|
content_ref: {
|
|
|
|
|
|
article_id: article.id,
|
|
|
|
|
|
},
|
|
|
|
|
|
article_version_id: articleVersionId,
|
|
|
|
|
|
ack_record_id: ackRecordId,
|
|
|
|
|
|
accounts: selectedAccountIds.value.map((accountId) => ({
|
|
|
|
|
|
account_id: accountId,
|
|
|
|
|
|
})),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function handlePublishSuccess() {
|
|
|
|
|
|
notification.success({
|
|
|
|
|
|
message: '已提交发布任务',
|
|
|
|
|
|
description: successDescription(),
|
|
|
|
|
|
placement: 'topRight',
|
|
|
|
|
|
duration: 5,
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
await Promise.all([
|
|
|
|
|
|
queryClient.invalidateQueries({ queryKey: ['articles'] }),
|
|
|
|
|
|
queryClient.invalidateQueries({ queryKey: ['workspace'] }),
|
|
|
|
|
|
queryClient.invalidateQueries({ queryKey: ['tenant', 'desktop-accounts'] }),
|
|
|
|
|
|
queryClient.invalidateQueries({ queryKey: ['articles', 'detail', props.articleId] }),
|
|
|
|
|
|
queryClient.invalidateQueries({
|
|
|
|
|
|
queryKey: ['articles', 'detail', props.articleId, 'publish-modal'],
|
|
|
|
|
|
}),
|
|
|
|
|
|
queryClient.invalidateQueries({ queryKey: ['articles', 'publish-records', props.articleId] }),
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
emit('published')
|
|
|
|
|
|
emit('update:open', false)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handlePublishError(error: unknown) {
|
|
|
|
|
|
const gate = parseComplianceResultFromError(error)
|
|
|
|
|
|
if (gate) {
|
|
|
|
|
|
complianceResult.value = gate
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
const normalized = error instanceof Error ? error.message : ''
|
|
|
|
|
|
if (normalized === 'no_accounts_selected') {
|
|
|
|
|
|
message.warning('请先选择至少一个可发布账号')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
if (normalized === 'cover_required_for_selected_platforms') {
|
|
|
|
|
|
message.warning(t('media.publish.messages.coverRequired'))
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
if (normalized === 'compliance_needs_ack' || normalized === 'compliance_block') {
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
message.error(formatError(error))
|
|
|
|
|
|
}
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
async function persistCoverIfNeeded(detail: ArticleDetail): Promise<ArticleDetail> {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const currentUrl = resolveApiURL(detail.cover_asset_url).trim()
|
|
|
|
|
|
const nextUrl = normalizedCoverValue.value.trim()
|
|
|
|
|
|
const currentAssetId = detail.cover_image_asset_id ?? null
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
|
|
|
|
|
if (currentUrl === nextUrl && currentAssetId === coverImageAssetId.value) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return detail
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
|
|
|
|
|
return articlesApi.update(detail.id, {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
title: detail.title?.trim() || t('article.untitled'),
|
|
|
|
|
|
markdown_content: detail.markdown_content ?? '',
|
2026-04-20 09:52:48 +08:00
|
|
|
|
cover_asset_url: nextUrl || null,
|
|
|
|
|
|
cover_image_asset_id: coverImageAssetId.value,
|
2026-05-01 20:39:09 +08:00
|
|
|
|
})
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
function successDescription(): string {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const total = selectedCards.value.length
|
2026-04-20 09:52:48 +08:00
|
|
|
|
if (total === 0) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return '任务已进入发布队列。'
|
2026-04-20 09:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
if (selectedQueuedCount.value === 0) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return `共 ${total} 个账号,在线客户端会立即开始消费。`
|
2026-04-20 09:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
if (selectedImmediateCount.value === 0) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return `共 ${total} 个账号已进入离线队列,客户端上线后会自动继续发布。`
|
2026-04-20 09:52:48 +08:00
|
|
|
|
}
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return `共 ${total} 个账号:${selectedImmediateCount.value} 个立即发布,${selectedQueuedCount.value} 个离线排队。`
|
2026-04-20 09:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function toggleAccount(accountId: string, selectable: boolean): void {
|
2026-05-05 20:48:14 +08:00
|
|
|
|
if (!selectable || accountSelectionLocked.value) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
2026-04-03 00:39:15 +08:00
|
|
|
|
if (selectedAccountIds.value.includes(accountId)) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
selectedAccountIds.value = selectedAccountIds.value.filter((id) => id !== accountId)
|
|
|
|
|
|
return
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
selectedAccountIds.value = [...selectedAccountIds.value, accountId]
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
function isSelected(accountId: string): boolean {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return selectedAccountIds.value.includes(accountId)
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-07 09:19:03 +08:00
|
|
|
|
function handleCoverToggle(checked: boolean): void {
|
|
|
|
|
|
if (coverRequired.value) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
coverEnabled.value = true
|
|
|
|
|
|
return
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
2026-05-01 20:39:09 +08:00
|
|
|
|
coverEnabled.value = checked
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
function handleCoverPicked(payload: {
|
|
|
|
|
|
url: string
|
|
|
|
|
|
fileName: string
|
|
|
|
|
|
assetId?: number | null
|
|
|
|
|
|
}): void {
|
|
|
|
|
|
coverAssetUrl.value = payload.url
|
|
|
|
|
|
coverFileName.value = payload.fileName
|
|
|
|
|
|
coverImageAssetId.value = payload.assetId ?? null
|
|
|
|
|
|
coverEnabled.value = true
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handleRemoveCover(): void {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
coverAssetUrl.value = ''
|
|
|
|
|
|
coverFileName.value = ''
|
|
|
|
|
|
coverImageAssetId.value = null
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
2026-05-05 20:48:14 +08:00
|
|
|
|
|
|
|
|
|
|
async function handleModalOk(): Promise<void> {
|
|
|
|
|
|
if (okDisabled.value) {
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
if (complianceDisplayDecision(complianceResult.value) === 'needs_ack') {
|
|
|
|
|
|
await publishWithAck()
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
publishMutation.mutate()
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function runPublishAdmissionCheck(): Promise<void> {
|
|
|
|
|
|
const runId = ++publishAdmissionRunId
|
|
|
|
|
|
if (!props.open) {
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
const status = complianceStatusQuery.data.value
|
|
|
|
|
|
if (!status || status.enabled !== true || status.enforcement_mode === 'disabled') {
|
|
|
|
|
|
publishAdmissionResult.value = null
|
|
|
|
|
|
publishAdmissionError.value = null
|
|
|
|
|
|
publishAdmissionLoading.value = false
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
const article = detailQuery.data.value
|
|
|
|
|
|
const articleVersionId = article?.current_version_id
|
|
|
|
|
|
if (!article || !props.articleId || !articleVersionId) {
|
|
|
|
|
|
publishAdmissionResult.value = null
|
|
|
|
|
|
publishAdmissionError.value = null
|
|
|
|
|
|
publishAdmissionLoading.value =
|
|
|
|
|
|
detailQuery.isPending.value || detailQuery.isFetching.value || complianceStatusQuery.isFetching.value
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
publishAdmissionLoading.value = true
|
|
|
|
|
|
publishAdmissionError.value = null
|
|
|
|
|
|
try {
|
|
|
|
|
|
const result = await complianceApi.checkArticle(article.id, {
|
|
|
|
|
|
article_version_id: articleVersionId,
|
|
|
|
|
|
title: article.title,
|
|
|
|
|
|
plaintext: article.markdown_content ?? '',
|
|
|
|
|
|
target_platforms: [],
|
|
|
|
|
|
trigger_source: 'publish_gate',
|
|
|
|
|
|
})
|
|
|
|
|
|
if (runId === publishAdmissionRunId && props.open) {
|
|
|
|
|
|
publishAdmissionResult.value = result
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
if (runId === publishAdmissionRunId && props.open) {
|
|
|
|
|
|
publishAdmissionError.value = formatError(error)
|
|
|
|
|
|
publishAdmissionResult.value = null
|
|
|
|
|
|
}
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
if (runId === publishAdmissionRunId && props.open) {
|
|
|
|
|
|
publishAdmissionLoading.value = false
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function publishWithAck(): Promise<void> {
|
|
|
|
|
|
const result = complianceResult.value
|
|
|
|
|
|
if (!result || complianceDisplayDecision(result) !== 'needs_ack' || !result.record_id) {
|
|
|
|
|
|
publishMutation.mutate()
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
ackInProgress.value = true
|
|
|
|
|
|
try {
|
|
|
|
|
|
const ack = await complianceApi.createAck(result.record_id, {
|
|
|
|
|
|
acknowledged_violation_ids: complianceAcknowledgedViolationIds.value,
|
|
|
|
|
|
})
|
|
|
|
|
|
await runPublishFlow(ack.id)
|
|
|
|
|
|
await handlePublishSuccess()
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
handlePublishError(error)
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
ackInProgress.value = false
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function parseComplianceResultFromError(error: unknown): ComplianceCheckResult | null {
|
|
|
|
|
|
if (!(error instanceof ApiClientError) || typeof error.detail !== 'string') {
|
|
|
|
|
|
return null
|
|
|
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
|
|
|
const parsed = JSON.parse(error.detail) as Partial<ComplianceCheckResult>
|
|
|
|
|
|
if (typeof parsed.record_id === 'number' && typeof parsed.decision === 'string') {
|
|
|
|
|
|
return parsed as ComplianceCheckResult
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
return null
|
|
|
|
|
|
}
|
|
|
|
|
|
return null
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function hasComplianceHits(result: ComplianceCheckResult | null | undefined): boolean {
|
|
|
|
|
|
return Boolean(
|
|
|
|
|
|
result && ((result.hit_count ?? 0) > 0 || (result.violations?.length ?? 0) > 0),
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function complianceDisplayDecision(
|
|
|
|
|
|
result: ComplianceCheckResult | null | undefined,
|
|
|
|
|
|
): GateDecisionLiteral | undefined {
|
|
|
|
|
|
if (!result) {
|
|
|
|
|
|
return undefined
|
|
|
|
|
|
}
|
|
|
|
|
|
if (result.decision === 'pass' && (result.passed === false || hasComplianceHits(result))) {
|
|
|
|
|
|
if (result.enforcement_mode === 'mandatory') {
|
|
|
|
|
|
return 'block'
|
|
|
|
|
|
}
|
|
|
|
|
|
return 'needs_ack'
|
|
|
|
|
|
}
|
|
|
|
|
|
return result.decision
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function decisionAlertType(result: ComplianceCheckResult | null | undefined) {
|
|
|
|
|
|
const decision = complianceDisplayDecision(result)
|
|
|
|
|
|
if (decision === 'block') {
|
|
|
|
|
|
return 'error'
|
|
|
|
|
|
}
|
|
|
|
|
|
if (decision === 'needs_ack') {
|
|
|
|
|
|
return 'warning'
|
|
|
|
|
|
}
|
|
|
|
|
|
return 'info'
|
|
|
|
|
|
}
|
2026-04-03 00:39:15 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<a-modal
|
2026-04-07 09:19:03 +08:00
|
|
|
|
:open="publishModalVisible"
|
2026-04-20 09:52:48 +08:00
|
|
|
|
title="发布"
|
|
|
|
|
|
:width="980"
|
2026-05-05 20:48:14 +08:00
|
|
|
|
:confirm-loading="publishMutation.isPending.value || ackInProgress"
|
|
|
|
|
|
:ok-text="okText"
|
|
|
|
|
|
:ok-button-props="{ disabled: okDisabled }"
|
2026-04-20 09:52:48 +08:00
|
|
|
|
:cancel-text="t('common.cancel')"
|
2026-05-05 20:48:14 +08:00
|
|
|
|
@ok="handleModalOk"
|
2026-04-03 00:39:15 +08:00
|
|
|
|
@cancel="emit('update:open', false)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="publish-modal">
|
|
|
|
|
|
<section class="publish-modal__hero">
|
2026-04-20 09:52:48 +08:00
|
|
|
|
<div>
|
|
|
|
|
|
<span class="publish-modal__eyebrow">发布标题</span>
|
|
|
|
|
|
<h3>{{ modalTitle }}</h3>
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<p>
|
|
|
|
|
|
在线账号会立即消费,离线账号会自动排队;数据库保留任务真相,RabbitMQ
|
|
|
|
|
|
负责唤醒在线客户端。
|
|
|
|
|
|
</p>
|
2026-04-20 09:52:48 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="publish-modal__hero-metrics">
|
|
|
|
|
|
<div class="publish-modal__metric">
|
|
|
|
|
|
<strong>{{ selectedCards.length }}</strong>
|
|
|
|
|
|
<span>已选账号</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="publish-modal__metric">
|
|
|
|
|
|
<strong>{{ selectedImmediateCount }}</strong>
|
|
|
|
|
|
<span>立即发布</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="publish-modal__metric">
|
|
|
|
|
|
<strong>{{ selectedQueuedCount }}</strong>
|
|
|
|
|
|
<span>离线排队</span>
|
2026-04-03 17:48:30 +08:00
|
|
|
|
</div>
|
2026-04-03 00:39:15 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="publish-modal__section">
|
2026-04-03 17:48:30 +08:00
|
|
|
|
<div class="publish-modal__section-header">
|
2026-05-05 21:01:11 +08:00
|
|
|
|
<div class="publish-modal__title-row">
|
|
|
|
|
|
<h3>
|
|
|
|
|
|
<span class="required-star">*</span>
|
|
|
|
|
|
目标账号
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-if="accountSelectionLocked && !accountsQuery.isPending.value && !platformsQuery.isPending.value"
|
|
|
|
|
|
class="publish-modal__account-lock publish-modal__account-lock--inline"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'publish-modal__account-lock--error': !accountSelectionLockSpinning && (mandatoryAdmissionBlocking || publishAdmissionError)
|
|
|
|
|
|
}"
|
|
|
|
|
|
>
|
|
|
|
|
|
<a-spin v-if="accountSelectionLockSpinning" size="small" />
|
|
|
|
|
|
<CloseCircleFilled v-else-if="mandatoryAdmissionBlocking || publishAdmissionError" class="publish-modal__account-lock-icon" />
|
|
|
|
|
|
<InfoCircleFilled v-else class="publish-modal__account-lock-icon" />
|
|
|
|
|
|
<span>{{ accountSelectionLockMessage }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<p class="muted">
|
|
|
|
|
|
优先预选文章里已经勾选的平台账号。支持同平台多账号;授权异常或未绑定桌面客户端的账号不可选。
|
|
|
|
|
|
</p>
|
2026-04-03 00:39:15 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-if="accountsQuery.isPending.value || platformsQuery.isPending.value"
|
|
|
|
|
|
class="publish-modal__loading"
|
|
|
|
|
|
>
|
2026-04-03 00:39:15 +08:00
|
|
|
|
<a-skeleton active :paragraph="{ rows: 5 }" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
<template v-else>
|
|
|
|
|
|
<div v-if="accountCards.length" class="publish-modal__list">
|
|
|
|
|
|
<button
|
|
|
|
|
|
v-for="account in accountCards"
|
|
|
|
|
|
:key="account.id"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
class="publish-modal__card"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'publish-modal__card--active': isSelected(account.id),
|
|
|
|
|
|
'publish-modal__card--disabled': !account.selectable || accountSelectionLocked,
|
|
|
|
|
|
}"
|
|
|
|
|
|
:disabled="!account.selectable || accountSelectionLocked"
|
|
|
|
|
|
@click="toggleAccount(account.id, account.selectable)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="publish-modal__card-header">
|
|
|
|
|
|
<div class="publish-modal__card-identity">
|
|
|
|
|
|
<span class="publish-modal__avatar" :style="{ background: account.platformAccent }">
|
2026-04-27 21:34:05 +08:00
|
|
|
|
<img
|
2026-05-05 20:48:14 +08:00
|
|
|
|
v-if="account.avatarUrl"
|
|
|
|
|
|
:src="account.avatarUrl"
|
|
|
|
|
|
:alt="account.displayName"
|
2026-04-27 21:34:05 +08:00
|
|
|
|
referrerpolicy="no-referrer"
|
|
|
|
|
|
/>
|
2026-05-05 20:48:14 +08:00
|
|
|
|
<span v-else>{{ accountInitial(account) }}</span>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<div class="publish-modal__identity-copy">
|
|
|
|
|
|
<strong :title="account.displayName">{{ account.displayName }}</strong>
|
2026-04-27 21:34:05 +08:00
|
|
|
|
<span
|
2026-05-05 20:48:14 +08:00
|
|
|
|
class="publish-modal__platform-line"
|
|
|
|
|
|
:title="`${account.platformName} · ${account.platformUid}`"
|
2026-05-01 20:39:09 +08:00
|
|
|
|
>
|
2026-05-05 20:48:14 +08:00
|
|
|
|
<img
|
|
|
|
|
|
v-if="account.platformLogoUrl"
|
|
|
|
|
|
class="publish-modal__platform-logo"
|
|
|
|
|
|
:src="account.platformLogoUrl"
|
|
|
|
|
|
:alt="account.platformName"
|
|
|
|
|
|
referrerpolicy="no-referrer"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<span
|
|
|
|
|
|
v-else
|
|
|
|
|
|
class="publish-modal__platform-logo publish-modal__platform-logo--fallback"
|
|
|
|
|
|
:style="{ background: account.platformAccent }"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ account.platformShortName }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<span class="publish-modal__platform-text">
|
|
|
|
|
|
{{ account.platformName }} · {{ account.platformUid }}
|
|
|
|
|
|
</span>
|
2026-05-01 20:39:09 +08:00
|
|
|
|
</span>
|
2026-05-05 20:48:14 +08:00
|
|
|
|
</div>
|
2026-04-27 00:59:08 +08:00
|
|
|
|
</div>
|
2026-05-05 20:48:14 +08:00
|
|
|
|
<span class="publish-modal__check">
|
|
|
|
|
|
<span v-if="isSelected(account.id)" class="publish-modal__check-inner"></span>
|
|
|
|
|
|
</span>
|
2026-04-20 09:52:48 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
<div class="publish-modal__card-footer">
|
|
|
|
|
|
<div class="publish-modal__tags">
|
|
|
|
|
|
<a-tag :color="healthColor(account.health)">
|
|
|
|
|
|
{{ healthLabel(account.health) }}
|
|
|
|
|
|
</a-tag>
|
|
|
|
|
|
<a-tag :color="clientStatusColor(account)">{{ clientStatusLabel(account) }}</a-tag>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<a-tooltip :title="account.statusText" placement="top">
|
|
|
|
|
|
<span
|
|
|
|
|
|
class="publish-modal__state-pill"
|
|
|
|
|
|
:class="`publish-modal__state-pill--${account.publishState}`"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ publishStateLabel(account.publishState) }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2026-04-03 00:39:15 +08:00
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
<a-empty v-else description="当前还没有可用的桌面媒体账号,请先在桌面端绑定。" />
|
|
|
|
|
|
</template>
|
2026-04-03 00:39:15 +08:00
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="publish-modal__section">
|
2026-04-20 09:52:48 +08:00
|
|
|
|
<div class="publish-modal__section-header publish-modal__section-header--inline">
|
|
|
|
|
|
<h3>封面图</h3>
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<a-switch
|
|
|
|
|
|
:checked="effectiveCoverEnabled"
|
|
|
|
|
|
:disabled="coverRequired"
|
|
|
|
|
|
@change="handleCoverToggle"
|
|
|
|
|
|
/>
|
2026-04-03 17:48:30 +08:00
|
|
|
|
</div>
|
2026-04-07 09:19:03 +08:00
|
|
|
|
<p class="muted">
|
2026-05-01 20:39:09 +08:00
|
|
|
|
{{
|
|
|
|
|
|
coverRequired
|
|
|
|
|
|
? t('media.publish.messages.coverRequired')
|
|
|
|
|
|
: '默认关闭。需要时可在这里单独指定发布封面,并先写回文章。'
|
|
|
|
|
|
}}
|
2026-04-07 09:19:03 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
|
2026-04-13 16:08:12 +08:00
|
|
|
|
<div v-if="effectiveCoverEnabled" class="publish-modal__cover-body">
|
|
|
|
|
|
<div class="publish-modal__cover-preview-wrap">
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<button
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
class="publish-modal__cover-preview"
|
|
|
|
|
|
@click="coverPickerOpen = true"
|
|
|
|
|
|
>
|
2026-04-13 16:08:12 +08:00
|
|
|
|
<template v-if="coverAssetUrl">
|
|
|
|
|
|
<img :src="coverAssetUrl" alt="cover preview" />
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-else>
|
|
|
|
|
|
<span class="publish-modal__cover-plus">+</span>
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<span>{{ t('media.publish.coverUpload') }}</span>
|
2026-04-13 16:08:12 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
|
|
v-if="coverAssetUrl"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
class="publish-modal__cover-remove"
|
|
|
|
|
|
:aria-label="t('article.editor.coverRemove')"
|
|
|
|
|
|
:title="t('article.editor.coverRemove')"
|
|
|
|
|
|
@click.stop="handleRemoveCover"
|
|
|
|
|
|
>
|
|
|
|
|
|
<MinusCircleFilled />
|
|
|
|
|
|
</button>
|
2026-04-07 09:19:03 +08:00
|
|
|
|
</div>
|
2026-04-03 00:39:15 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</a-modal>
|
2026-04-07 09:19:03 +08:00
|
|
|
|
|
|
|
|
|
|
<CoverPickerModal
|
|
|
|
|
|
v-model:open="coverPickerOpen"
|
|
|
|
|
|
:article-id="detailQuery.data.value?.id ?? null"
|
|
|
|
|
|
:platform-ids="selectedPlatformIds"
|
|
|
|
|
|
:current-url="coverAssetUrl"
|
|
|
|
|
|
:current-file-name="coverFileName"
|
2026-04-20 09:52:48 +08:00
|
|
|
|
:current-asset-id="coverImageAssetId"
|
2026-04-07 09:19:03 +08:00
|
|
|
|
@confirmed="handleCoverPicked"
|
|
|
|
|
|
/>
|
2026-04-03 00:39:15 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.publish-modal {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
gap: 24px;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__hero {
|
2026-04-20 09:52:48 +08:00
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
gap: 24px;
|
|
|
|
|
|
padding: 24px;
|
|
|
|
|
|
border: 1px solid #e5e7eb;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
background: #ffffff;
|
2026-05-01 20:39:09 +08:00
|
|
|
|
box-shadow:
|
|
|
|
|
|
0 1px 3px 0 rgba(0, 0, 0, 0.02),
|
|
|
|
|
|
0 4px 8px -2px rgba(0, 0, 0, 0.02);
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__eyebrow {
|
|
|
|
|
|
display: inline-block;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
padding: 4px 10px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
font-size: 12px;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #4f46e5;
|
|
|
|
|
|
background: #e0e7ff;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
letter-spacing: 0.05em;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
text-transform: uppercase;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-03 17:48:30 +08:00
|
|
|
|
.publish-modal__hero h3 {
|
2026-04-03 00:39:15 +08:00
|
|
|
|
margin: 0;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
color: #111827;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
font-size: 18px;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 1.5;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__hero p {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
margin: 8px 0 0;
|
|
|
|
|
|
color: #6b7280;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
line-height: 1.6;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__hero-metrics {
|
|
|
|
|
|
display: grid;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
grid-template-columns: repeat(3, minmax(96px, 1fr));
|
2026-04-20 09:52:48 +08:00
|
|
|
|
gap: 12px;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__metric {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
padding: 16px;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
background: #f9fafb;
|
|
|
|
|
|
border: 1px solid #f3f4f6;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__metric strong {
|
|
|
|
|
|
display: block;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
color: #111827;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
font-size: 24px;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
font-weight: 600;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
line-height: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__metric span {
|
|
|
|
|
|
display: block;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
margin-top: 6px;
|
|
|
|
|
|
color: #6b7280;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-weight: 500;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-03 00:39:15 +08:00
|
|
|
|
.publish-modal__section {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
.publish-modal__compliance {
|
2026-05-05 21:01:11 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 14px;
|
|
|
|
|
|
padding: 16px 20px;
|
2026-05-05 20:48:14 +08:00
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-05 21:01:11 +08:00
|
|
|
|
.publish-modal__compliance-icon {
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__compliance-content {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__compliance-title {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__compliance-desc {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
.publish-modal__compliance--error {
|
2026-05-05 21:01:11 +08:00
|
|
|
|
background: linear-gradient(145deg, #fef2f2, #fff5f5);
|
|
|
|
|
|
border-color: #fee2e2;
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.06);
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__compliance--error .publish-modal__compliance-icon {
|
|
|
|
|
|
color: #ef4444;
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__compliance--error .publish-modal__compliance-title {
|
|
|
|
|
|
color: #991b1b;
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__compliance--error .publish-modal__compliance-desc {
|
|
|
|
|
|
color: #991b1b;
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__compliance--warning {
|
2026-05-05 21:01:11 +08:00
|
|
|
|
background: linear-gradient(145deg, #fffbeb, #fffde7);
|
|
|
|
|
|
border-color: #fef3c7;
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.06);
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
2026-05-05 21:01:11 +08:00
|
|
|
|
.publish-modal__compliance--warning .publish-modal__compliance-icon {
|
|
|
|
|
|
color: #f59e0b;
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__compliance--warning .publish-modal__compliance-title {
|
|
|
|
|
|
color: #92400e;
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__compliance--warning .publish-modal__compliance-desc {
|
|
|
|
|
|
color: #92400e;
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__compliance--info {
|
2026-05-05 21:01:11 +08:00
|
|
|
|
background: linear-gradient(145deg, #eff6ff, #f5f8ff);
|
|
|
|
|
|
border-color: #dbeafe;
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.06);
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__compliance--info .publish-modal__compliance-icon {
|
|
|
|
|
|
color: #3b82f6;
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__compliance--info .publish-modal__compliance-title {
|
|
|
|
|
|
color: #1e40af;
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__compliance--info .publish-modal__compliance-desc {
|
|
|
|
|
|
color: #1e40af;
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-05 21:01:11 +08:00
|
|
|
|
.publish-modal__compliance--success {
|
|
|
|
|
|
background: linear-gradient(145deg, #f0fdf4, #f5fdf7);
|
|
|
|
|
|
border-color: #dcfce7;
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(34, 197, 94, 0.06);
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
2026-05-05 21:01:11 +08:00
|
|
|
|
.publish-modal__compliance--success .publish-modal__compliance-icon {
|
|
|
|
|
|
color: #22c55e;
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
2026-05-05 21:01:11 +08:00
|
|
|
|
.publish-modal__compliance--success .publish-modal__compliance-title {
|
|
|
|
|
|
color: #166534;
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
2026-05-05 21:01:11 +08:00
|
|
|
|
.publish-modal__compliance--success .publish-modal__compliance-desc {
|
|
|
|
|
|
color: #166534;
|
2026-05-05 20:48:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-03 17:48:30 +08:00
|
|
|
|
.publish-modal__section-header {
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__section-header--inline {
|
2026-04-03 17:48:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__section-header h3 {
|
2026-05-05 21:01:11 +08:00
|
|
|
|
margin: 0;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
color: #1f2937;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-05 21:01:11 +08:00
|
|
|
|
.publish-modal__title-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__section-header--inline h3 {
|
2026-04-03 17:48:30 +08:00
|
|
|
|
margin: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.required-star {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
color: #ef4444;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
margin-right: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.muted {
|
|
|
|
|
|
margin: 0;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
color: #6b7280;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
line-height: 1.6;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__loading {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
padding: 12px 0;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-05 20:48:14 +08:00
|
|
|
|
.publish-modal__account-lock {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
width: fit-content;
|
|
|
|
|
|
max-width: 100%;
|
2026-05-05 21:01:11 +08:00
|
|
|
|
padding: 10px 14px;
|
|
|
|
|
|
border: 1px solid #ffedd5;
|
2026-05-05 20:48:14 +08:00
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
background: #fff7ed;
|
|
|
|
|
|
color: #9a3412;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-05 21:01:11 +08:00
|
|
|
|
.publish-modal__account-lock--inline {
|
|
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__account-lock--inline span {
|
|
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__account-lock--error {
|
|
|
|
|
|
background: #fef2f2;
|
|
|
|
|
|
border-color: #fee2e2;
|
|
|
|
|
|
color: #991b1b;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__account-lock--error .publish-modal__account-lock-icon {
|
|
|
|
|
|
color: #ef4444;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__account-lock-icon {
|
|
|
|
|
|
color: #ea580c;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__list {
|
2026-04-27 00:59:08 +08:00
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
max-height: 400px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
padding-right: 6px;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
padding-bottom: 4px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Custom scrollbar for list */
|
|
|
|
|
|
.publish-modal__list::-webkit-scrollbar {
|
|
|
|
|
|
width: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.publish-modal__list::-webkit-scrollbar-thumb {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
background: #d1d5db;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 00:59:08 +08:00
|
|
|
|
.publish-modal__card {
|
2026-04-03 00:39:15 +08:00
|
|
|
|
display: flex;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 14px;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
width: 100%;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
padding: 16px;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
border: 1px solid #e5e7eb;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
border-radius: 12px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
background: #ffffff;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
text-align: left;
|
|
|
|
|
|
cursor: pointer;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
transition: all 0.2s ease;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 00:59:08 +08:00
|
|
|
|
.publish-modal__card:hover:not(.publish-modal__card--disabled) {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
border-color: #d1d5db;
|
2026-05-01 20:39:09 +08:00
|
|
|
|
box-shadow:
|
|
|
|
|
|
0 4px 6px -1px rgba(0, 0, 0, 0.08),
|
|
|
|
|
|
0 2px 4px -1px rgba(0, 0, 0, 0.04);
|
2026-04-27 00:59:08 +08:00
|
|
|
|
transform: translateY(-2px);
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 00:59:08 +08:00
|
|
|
|
.publish-modal__card--active {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
border-color: #3b82f6;
|
|
|
|
|
|
background: #eff6ff;
|
|
|
|
|
|
box-shadow: 0 0 0 1px #3b82f6;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 00:59:08 +08:00
|
|
|
|
.publish-modal__card--active:hover:not(.publish-modal__card--disabled) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
box-shadow:
|
|
|
|
|
|
0 4px 6px -1px rgba(59, 130, 246, 0.15),
|
|
|
|
|
|
0 0 0 1px #3b82f6;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__card--disabled {
|
2026-04-03 00:39:15 +08:00
|
|
|
|
cursor: not-allowed;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
opacity: 0.6;
|
|
|
|
|
|
background: #f9fafb;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
box-shadow: none;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 00:59:08 +08:00
|
|
|
|
.publish-modal__card-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__card-identity {
|
2026-04-03 17:48:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
gap: 12px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 00:59:08 +08:00
|
|
|
|
.publish-modal__card-footer {
|
2026-04-20 09:52:48 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
padding-top: 12px;
|
|
|
|
|
|
border-top: 1px dashed #e5e7eb;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
transition: border-color 0.2s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__card--active .publish-modal__card-footer {
|
|
|
|
|
|
border-top-color: #bfdbfe;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__check {
|
2026-04-20 09:52:48 +08:00
|
|
|
|
width: 18px;
|
|
|
|
|
|
height: 18px;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
border: 1px solid #d1d5db;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
border-radius: 4px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
display: inline-flex;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
background: #fff;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
flex-shrink: 0;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
transition: all 0.2s;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
margin-top: 2px;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 00:59:08 +08:00
|
|
|
|
.publish-modal__card--active .publish-modal__check {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
background: #3b82f6;
|
|
|
|
|
|
border-color: #3b82f6;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__check-inner {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
width: 6px;
|
|
|
|
|
|
height: 10px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
border-right: 2px solid #fff;
|
|
|
|
|
|
border-bottom: 2px solid #fff;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
transform: rotate(45deg) translate(-1px, -2px);
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transition: opacity 0.2s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 00:59:08 +08:00
|
|
|
|
.publish-modal__card--active .publish-modal__check-inner {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
opacity: 1;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__avatar {
|
2026-04-27 00:59:08 +08:00
|
|
|
|
width: 40px;
|
|
|
|
|
|
height: 40px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
border-radius: 8px;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
color: #fff;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 600;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
flex-shrink: 0;
|
2026-05-01 20:39:09 +08:00
|
|
|
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__avatar img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__identity-copy {
|
2026-04-03 00:39:15 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
min-width: 0;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__identity-copy strong {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
color: #111827;
|
|
|
|
|
|
font-size: 15px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
font-weight: 600;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
line-height: 1.4;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__identity-copy span {
|
2026-04-03 17:48:30 +08:00
|
|
|
|
margin-top: 2px;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
color: #6b7280;
|
|
|
|
|
|
font-size: 13px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
line-height: 1.5;
|
2026-04-27 00:59:08 +08:00
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-27 21:34:05 +08:00
|
|
|
|
.publish-modal__platform-line {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__platform-logo {
|
|
|
|
|
|
width: 14px;
|
|
|
|
|
|
height: 14px;
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__platform-logo--fallback {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
font-size: 9px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__platform-text {
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__state-pill {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
min-width: 72px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
flex-shrink: 0;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__state-pill--immediate {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
background: #ecfdf5;
|
|
|
|
|
|
color: #059669;
|
|
|
|
|
|
border: 1px solid #a7f3d0;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__state-pill--queued {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
background: #fffbeb;
|
|
|
|
|
|
color: #d97706;
|
|
|
|
|
|
border: 1px solid #fde68a;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__state-pill--unavailable {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
background: #fef2f2;
|
|
|
|
|
|
color: #dc2626;
|
|
|
|
|
|
border: 1px solid #fecaca;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__tags {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
gap: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__tags .ant-tag {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
border-radius: 4px;
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-03 17:48:30 +08:00
|
|
|
|
.publish-modal__cover-body {
|
2026-04-13 16:08:12 +08:00
|
|
|
|
display: flex;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
margin-top: 12px;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-13 16:08:12 +08:00
|
|
|
|
.publish-modal__cover-preview-wrap {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
width: 176px;
|
|
|
|
|
|
flex: 0 0 176px;
|
2026-04-07 19:38:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-07 09:19:03 +08:00
|
|
|
|
.publish-modal__cover-preview {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-04-13 16:08:12 +08:00
|
|
|
|
width: 100%;
|
2026-04-07 09:19:03 +08:00
|
|
|
|
min-height: 124px;
|
|
|
|
|
|
padding: 0;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
border: 1px dashed #d1d5db;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
background: #f9fafb;
|
|
|
|
|
|
color: #6b7280;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
gap: 8px;
|
2026-04-07 09:19:03 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
overflow: hidden;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
transition: all 0.2s ease;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.publish-modal__cover-preview:hover {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
border-color: #6366f1;
|
|
|
|
|
|
color: #6366f1;
|
|
|
|
|
|
background: #f5f3ff;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
2026-04-07 09:19:03 +08:00
|
|
|
|
|
|
|
|
|
|
.publish-modal__cover-preview img {
|
2026-04-20 09:52:48 +08:00
|
|
|
|
display: block;
|
2026-04-07 09:19:03 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 124px;
|
|
|
|
|
|
object-fit: cover;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-07 09:19:03 +08:00
|
|
|
|
.publish-modal__cover-plus {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
font-size: 20px;
|
2026-04-07 09:19:03 +08:00
|
|
|
|
line-height: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-13 16:08:12 +08:00
|
|
|
|
.publish-modal__cover-remove {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 8px;
|
|
|
|
|
|
right: 8px;
|
2026-04-20 09:52:48 +08:00
|
|
|
|
width: 28px;
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 999px;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
background: rgba(17, 24, 39, 0.7);
|
2026-04-20 09:52:48 +08:00
|
|
|
|
color: #fff;
|
|
|
|
|
|
display: inline-flex;
|
2026-04-13 16:08:12 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
cursor: pointer;
|
2026-04-20 11:08:17 +08:00
|
|
|
|
transition: background 0.2s;
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-13 16:08:12 +08:00
|
|
|
|
.publish-modal__cover-remove:hover {
|
2026-04-20 11:08:17 +08:00
|
|
|
|
background: rgba(17, 24, 39, 0.9);
|
2026-04-03 17:48:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
@media (max-width: 900px) {
|
2026-04-03 00:39:15 +08:00
|
|
|
|
.publish-modal__hero {
|
2026-04-20 09:52:48 +08:00
|
|
|
|
grid-template-columns: minmax(0, 1fr);
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
2026-04-07 09:19:03 +08:00
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
|
.publish-modal__hero-metrics {
|
|
|
|
|
|
min-width: 0;
|
2026-04-07 09:19:03 +08:00
|
|
|
|
}
|
2026-04-03 00:39:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|