refactor: normalize standalone workbench labels

这个提交存在于:
YokiiroBW 2026-07-05 12:56:49 +08:00
父节点 8858b3af72
当前提交 4fbfdf2be8
共有 6 个文件被更改,包括 185 次插入 和 118 次删除

查看文件

@ -20,6 +20,79 @@ import type { WardrobeItem, WardrobeMatchResult } from "../../shared/types/wardr
type ViewKey = "dashboard" | "profiles" | "materials" | "wardrobe" | "jobs" | "discovery" | "logs" | "settings"
const text = {
waiting: "\u7b49\u5f85\u64cd\u4f5c",
loading: "\u52a0\u8f7d\u4e2d...",
loadFailed: "\u52a0\u8f7d\u5931\u8d25",
refresh: "\u5237\u65b0",
complete: "\u5b8c\u6210",
failed: "\u5931\u8d25",
noProfile: "\u672a\u9009\u62e9\u89d2\u8272",
noTags: "\u65e0\u6807\u7b7e",
noImage: "\u672a\u7ed1\u5b9a\u56fe\u7247",
dashboard: "\u8fd0\u884c\u6982\u89c8",
profiles: "\u89d2\u8272",
materials: "\u7d20\u6750\u5e93",
wardrobe: "\u89d2\u8272\u8863\u6a71",
jobs: "\u4efb\u52a1\u961f\u5217",
discovery: "\u80fd\u529b\u63a2\u6d4b",
logs: "\u65e5\u5fd7\u5ba1\u8ba1",
settings: "\u8bbe\u7f6e",
profileList: "\u89d2\u8272\u5217\u8868",
emptyProfiles: "\u6682\u65e0\u89d2\u8272",
categories: "\u7d20\u6750\u5206\u7c7b",
materialItems: "\u7d20\u6750\u6761\u76ee",
emptyCategories: "\u6682\u65e0\u5206\u7c7b",
emptyMaterials: "\u6682\u65e0\u7d20\u6750",
pendingConfirm: "\u5f85\u786e\u8ba4",
signFirstImage: "\u7b7e\u540d\u9996\u56fe",
noSignableMaterial: "\u6ca1\u6709\u53ef\u7b7e\u540d\u7684\u7d20\u6750\u56fe\u7247",
signMaterial: "\u7b7e\u540d\u7d20\u6750",
match: "\u5339\u914d",
matchWardrobe: "\u8863\u6a71\u5339\u914d",
emptyWardrobe: "\u6682\u65e0\u8863\u6a71\u6761\u76ee",
moveFailed: "\u5931\u8d25\u8f6c\u6b7b\u4fe1",
retryDead: "\u91cd\u8bd5\u6b7b\u4fe1",
retry: "\u91cd\u8bd5",
cancel: "\u53d6\u6d88",
emptyJobs: "\u6682\u65e0\u4efb\u52a1",
dialects: "\u534f\u8bae\u65b9\u8a00",
safeProbe: "\u5b89\u5168\u63a2\u6d4b",
capabilityProfiles: "\u80fd\u529b\u6863\u6848",
support: "\u652f\u6301",
unsupported: "\u4e0d\u652f\u6301",
unconfirmed: "\u5f85\u786e\u8ba4",
emptyCapabilities: "\u6682\u65e0\u80fd\u529b\u6863\u6848",
generationLogs: "\u751f\u6210\u65e5\u5fd7",
errorLogs: "\u9519\u8bef",
workflowLogs: "\u5de5\u4f5c\u6d41",
integrationLogs: "\u96c6\u6210",
auditLogs: "\u5ba1\u8ba1",
emptyGenerationLogs: "\u6682\u65e0\u751f\u6210\u65e5\u5fd7",
emptyErrors: "\u6682\u65e0\u9519\u8bef",
emptyWorkflowLogs: "\u6682\u65e0\u5de5\u4f5c\u6d41\u65e5\u5fd7",
emptyIntegrationLogs: "\u6682\u65e0\u96c6\u6210\u65e5\u5fd7",
emptyAuditLogs: "\u6682\u65e0\u5ba1\u8ba1\u65e5\u5fd7",
noErrorDetail: "\u65e0\u9519\u8bef\u8be6\u60c5",
reload: "\u91cd\u8f7d",
exportRedacted: "\u5bfc\u51fa\u8131\u654f\u914d\u7f6e",
exportSettings: "\u5bfc\u51fa\u8bbe\u7f6e",
exportDone: "\u5bfc\u51fa\u8bbe\u7f6e\u5b8c\u6210\uff0c\u914d\u7f6e\u5df2\u8131\u654f",
storage: "\u5b58\u50a8",
running: "\u8fd0\u884c",
} as const
const navItems: Array<{ key: ViewKey; label: string }> = [
{ key: "dashboard", label: "\u6982\u89c8" },
{ key: "profiles", label: text.profiles },
{ key: "materials", label: "\u7d20\u6750" },
{ key: "wardrobe", label: "\u8863\u6a71" },
{ key: "jobs", label: "\u961f\u5217" },
{ key: "discovery", label: "\u63a2\u6d4b" },
{ key: "logs", label: "\u65e5\u5fd7" },
{ key: "settings", label: text.settings },
]
const activeView = ref<ViewKey>("dashboard")
const bootstrap = ref<UiBootstrap | null>(null)
const dashboard = ref<DashboardSummary | null>(null)
@ -42,7 +115,7 @@ const busy = ref("")
const error = ref("")
const selectedProfileId = computed(() => profiles.value?.items[0]?.profile_id ?? "")
const selectedProfileName = computed(() => profiles.value?.items[0]?.name ?? "未选择角色")
const selectedProfileName = computed(() => profiles.value?.items[0]?.name ?? text.noProfile)
const queueTotal = computed(() => {
const queue = dashboard.value?.queue
return queue ? queue.pending + queue.running + queue.failed + queue.dead_letter : 0
@ -52,14 +125,14 @@ const pendingRecognition = computed(
)
const activeTitle = computed(() => {
const titles: Record<ViewKey, string> = {
dashboard: "运行概览",
profiles: "角色",
materials: "素材库",
wardrobe: "角色衣橱",
jobs: "任务队列",
discovery: "能力探测",
logs: "日志审计",
settings: "设置",
dashboard: text.dashboard,
profiles: text.profiles,
materials: text.materials,
wardrobe: text.wardrobe,
jobs: text.jobs,
discovery: text.discovery,
logs: text.logs,
settings: text.settings,
}
return titles[activeView.value]
})
@ -109,7 +182,7 @@ async function load() {
await loadWardrobe(profileData.items[0]?.profile_id)
await loadLogs()
} catch (err) {
error.value = err instanceof Error ? err.message : "加载失败"
error.value = err instanceof Error ? err.message : text.loadFailed
} finally {
loading.value = false
}
@ -149,39 +222,39 @@ async function runOperation(label: string, action: () => Promise<unknown>, refre
error.value = ""
try {
const result = await action()
lastOperation.value = `${label}完成`
if (label === "导出设置") {
lastOperation.value = `导出设置完成,配置已脱敏:${Boolean((result as ExportSettingsResult).redacted)}`
lastOperation.value = `${label}${text.complete}`
if (label === text.exportSettings) {
lastOperation.value = `${text.exportDone}: ${Boolean((result as ExportSettingsResult).redacted)}`
}
if (refresh) {
await load()
}
} catch (err) {
error.value = err instanceof Error ? err.message : `${label}失败`
error.value = err instanceof Error ? err.message : `${label}${text.failed}`
} finally {
busy.value = ""
}
}
function retryJob(taskId: string) {
return runOperation("重试任务", () => postJson(endpoints.jobRetry(taskId)))
return runOperation(text.retry, () => postJson(endpoints.jobRetry(taskId)))
}
function cancelJob(taskId: string) {
return runOperation("取消任务", () => postJson(endpoints.jobCancel(taskId)))
return runOperation(text.cancel, () => postJson(endpoints.jobCancel(taskId)))
}
function moveFailedJobs() {
return runOperation("转入死信", () => postJson(endpoints.jobDeadLetterMoveFailed, { limit: 20 }))
return runOperation(text.moveFailed, () => postJson(endpoints.jobDeadLetterMoveFailed, { limit: 20 }))
}
function retryDeadLetters() {
return runOperation("重试死信", () => postJson(endpoints.jobDeadLetterRetry, { limit: 20 }))
return runOperation(text.retryDead, () => postJson(endpoints.jobDeadLetterRetry, { limit: 20 }))
}
function safeProbeModel() {
const dialect = dialects.value[0]?.dialect ?? "unknown"
return runOperation("安全探测", () =>
return runOperation(text.safeProbe, () =>
postJson<CapabilityProfile>(endpoints.apiDiscoveryProbeModel, {
provider_id: "local-preview",
model_id: "metadata-only",
@ -192,7 +265,7 @@ function safeProbeModel() {
}
function setCapabilityStatus(profile: CapabilityProfile, status: CapabilityProfile["status"]) {
return runOperation("能力覆盖", () =>
return runOperation(text.discovery, () =>
postJson<CapabilityProfile>(endpoints.apiDiscoveryManualOverride, {
provider_id: profile.provider_id,
model_id: profile.model_id,
@ -207,7 +280,7 @@ function matchWardrobe() {
const profileId = selectedProfileId.value
if (!profileId) return Promise.resolve()
return runOperation(
"衣橱匹配",
text.matchWardrobe,
async () => {
wardrobeMatch.value = await postJson<WardrobeMatchResult>(endpoints.wardrobeMatch(profileId), {
tags: ["daily"],
@ -220,7 +293,7 @@ function matchWardrobe() {
function reloadSettings() {
return runOperation(
"重载设置",
text.reload,
async () => {
const result = await postJson<ReloadSettingsResult>(endpoints.settingsReload)
currentSettings.value = { config_path: currentSettings.value?.config_path ?? "***PATH***", config: result.config }
@ -231,17 +304,17 @@ function reloadSettings() {
}
function exportSettings() {
return runOperation("导出设置", () => getJson<ExportSettingsResult>(endpoints.settingsExport), false)
return runOperation(text.exportSettings, () => getJson<ExportSettingsResult>(endpoints.settingsExport), false)
}
function signFirstMaterial() {
const uri = materials.value?.items.find((item) => item.image_uri?.startsWith("storage://"))?.image_uri
if (!uri) {
lastOperation.value = "没有可签名的素材图片"
lastOperation.value = text.noSignableMaterial
return Promise.resolve()
}
return runOperation(
"签名素材",
text.signMaterial,
async () => {
signedMedia.value = await getJson<MediaSignResult>(endpoints.mediaSign, { uri })
return signedMedia.value
@ -270,29 +343,14 @@ function storageRootBytes(uriPrefix: string) {
<span>{{ bootstrap?.dashboard_user ?? "AstrBot" }}</span>
</div>
<nav>
<button type="button" :class="{ active: activeView === 'dashboard' }" @click="activeView = 'dashboard'">
概览
</button>
<button type="button" :class="{ active: activeView === 'profiles' }" @click="activeView = 'profiles'">
角色
</button>
<button type="button" :class="{ active: activeView === 'materials' }" @click="activeView = 'materials'">
素材
</button>
<button type="button" :class="{ active: activeView === 'wardrobe' }" @click="activeView = 'wardrobe'">
衣橱
</button>
<button type="button" :class="{ active: activeView === 'jobs' }" @click="activeView = 'jobs'">
队列
</button>
<button type="button" :class="{ active: activeView === 'discovery' }" @click="activeView = 'discovery'">
探测
</button>
<button type="button" :class="{ active: activeView === 'logs' }" @click="activeView = 'logs'">
日志
</button>
<button type="button" :class="{ active: activeView === 'settings' }" @click="activeView = 'settings'">
设置
<button
v-for="item in navItems"
:key="item.key"
type="button"
:class="{ active: activeView === item.key }"
@click="activeView = item.key"
>
{{ item.label }}
</button>
</nav>
</aside>
@ -301,41 +359,41 @@ function storageRootBytes(uriPrefix: string) {
<header class="topbar">
<div>
<h1>{{ activeTitle }}</h1>
<p>{{ dashboard?.plugin_status ?? "loading" }} · {{ lastOperation || "等待操作" }}</p>
<p>{{ dashboard?.plugin_status ?? "loading" }} / {{ lastOperation || text.waiting }}</p>
</div>
<div class="actions">
<button type="button" :disabled="Boolean(busy)" @click="load">
{{ busy || "刷新" }}
{{ busy || text.refresh }}
</button>
</div>
</header>
<section v-if="error" class="notice error">{{ error }}</section>
<section v-else-if="loading" class="notice">加载中...</section>
<section v-else-if="loading" class="notice">{{ text.loading }}</section>
<template v-else>
<section v-if="activeView === 'dashboard'" class="dashboard-grid">
<article>
<span>角色</span>
<span>{{ text.profiles }}</span>
<strong>{{ dashboard?.active_profiles ?? 0 }}</strong>
</article>
<article>
<span>队列</span>
<span>{{ text.jobs }}</span>
<strong>{{ queueTotal }}</strong>
</article>
<article>
<span>素材</span>
<span>{{ text.materials }}</span>
<strong>{{ materials?.total ?? 0 }}</strong>
</article>
<article>
<span>存储</span>
<span>{{ text.storage }}</span>
<strong>{{ formatBytes(storage?.total_bytes ?? dashboard?.storage.total_bytes) }}</strong>
</article>
</section>
<section v-if="activeView === 'profiles'" class="list-view">
<header>
<h2>角色列表</h2>
<h2>{{ text.profileList }}</h2>
<span>{{ profiles?.total ?? 0 }}</span>
</header>
<ul>
@ -346,14 +404,14 @@ function storageRootBytes(uriPrefix: string) {
</div>
<span class="badge">{{ profile.status }}</span>
</li>
<li v-if="!profiles?.items.length" class="empty">暂无角色</li>
<li v-if="!profiles?.items.length" class="empty">{{ text.emptyProfiles }}</li>
</ul>
</section>
<section v-if="activeView === 'materials'" class="split-view">
<div class="list-view">
<header>
<h2>素材分类</h2>
<h2>{{ text.categories }}</h2>
<span>{{ materialCategories.length }}</span>
</header>
<ul>
@ -364,26 +422,28 @@ function storageRootBytes(uriPrefix: string) {
</div>
<span>{{ category.sort_order }}</span>
</li>
<li v-if="!materialCategories.length" class="empty">暂无分类</li>
<li v-if="!materialCategories.length" class="empty">{{ text.emptyCategories }}</li>
</ul>
</div>
<div class="list-view">
<header>
<h2>素材条目</h2>
<h2>{{ text.materialItems }}</h2>
<div class="inline-actions">
<span>{{ pendingRecognition }} 待确认</span>
<button type="button" :disabled="Boolean(busy)" @click="signFirstMaterial">签名首图</button>
<span>{{ pendingRecognition }} {{ text.pendingConfirm }}</span>
<button type="button" :disabled="Boolean(busy)" @click="signFirstMaterial">
{{ text.signFirstImage }}
</button>
</div>
</header>
<ul>
<li v-for="material in materials?.items ?? []" :key="material.material_id">
<div>
<strong>{{ material.display_name }}</strong>
<small>{{ material.image_uri ?? "未绑定图片" }}</small>
<small>{{ material.image_uri ?? text.noImage }}</small>
</div>
<span class="badge">{{ material.recognition_status }}</span>
</li>
<li v-if="!materials?.items.length" class="empty">暂无素材</li>
<li v-if="!materials?.items.length" class="empty">{{ text.emptyMaterials }}</li>
</ul>
<pre v-if="signedMedia">{{ JSON.stringify(signedMedia, null, 2) }}</pre>
</div>
@ -393,57 +453,61 @@ function storageRootBytes(uriPrefix: string) {
<header>
<h2>{{ selectedProfileName }}</h2>
<button type="button" :disabled="!selectedProfileId || Boolean(busy)" @click="matchWardrobe">
匹配
{{ text.match }}
</button>
</header>
<ul>
<li v-for="item in wardrobe" :key="item.wardrobe_item_id">
<div>
<strong>{{ item.wardrobe_category }}</strong>
<small>{{ item.material_id }} · {{ item.tags.join(", ") || "无标签" }}</small>
<small>{{ item.material_id }} / {{ item.tags.join(", ") || text.noTags }}</small>
</div>
<span>{{ item.usage_count }}</span>
</li>
<li v-if="!wardrobe.length" class="empty">暂无衣橱条目</li>
<li v-if="!wardrobe.length" class="empty">{{ text.emptyWardrobe }}</li>
</ul>
<pre v-if="wardrobeMatch">{{ JSON.stringify(wardrobeMatch, null, 2) }}</pre>
</section>
<section v-if="activeView === 'jobs'" class="list-view">
<header>
<h2>任务队列</h2>
<h2>{{ text.jobs }}</h2>
<div class="inline-actions">
<button type="button" :disabled="Boolean(busy)" @click="moveFailedJobs">失败转死信</button>
<button type="button" :disabled="Boolean(busy)" @click="retryDeadLetters">重试死信</button>
<button type="button" :disabled="Boolean(busy)" @click="moveFailedJobs">{{ text.moveFailed }}</button>
<button type="button" :disabled="Boolean(busy)" @click="retryDeadLetters">{{ text.retryDead }}</button>
</div>
</header>
<ul>
<li v-for="job in jobs?.items ?? []" :key="job.task_id">
<div>
<strong>{{ job.task_id }}</strong>
<small>{{ job.task_type }} · {{ job.progress }}%</small>
<small>{{ job.task_type }} / {{ job.progress }}%</small>
</div>
<div class="inline-actions">
<span class="badge">{{ job.status }}</span>
<button v-if="job.status === 'failed'" type="button" @click="retryJob(job.task_id)">重试</button>
<button v-if="job.status === 'pending'" type="button" @click="cancelJob(job.task_id)">取消</button>
<button v-if="job.status === 'failed'" type="button" @click="retryJob(job.task_id)">
{{ text.retry }}
</button>
<button v-if="job.status === 'pending'" type="button" @click="cancelJob(job.task_id)">
{{ text.cancel }}
</button>
</div>
</li>
<li v-if="!jobs?.items.length" class="empty">暂无任务</li>
<li v-if="!jobs?.items.length" class="empty">{{ text.emptyJobs }}</li>
</ul>
</section>
<section v-if="activeView === 'discovery'" class="split-view">
<div class="list-view">
<header>
<h2>协议方言</h2>
<button type="button" :disabled="Boolean(busy)" @click="safeProbeModel">安全探测</button>
<h2>{{ text.dialects }}</h2>
<button type="button" :disabled="Boolean(busy)" @click="safeProbeModel">{{ text.safeProbe }}</button>
</header>
<ul>
<li v-for="dialect in dialects" :key="dialect.dialect">
<div>
<strong>{{ dialect.label }}</strong>
<small>{{ dialect.capabilities.join(", ") || "待确认" }}</small>
<small>{{ dialect.capabilities.join(", ") || text.unconfirmed }}</small>
</div>
<span>{{ dialect.dialect }}</span>
</li>
@ -451,7 +515,7 @@ function storageRootBytes(uriPrefix: string) {
</div>
<div class="list-view">
<header>
<h2>能力档案</h2>
<h2>{{ text.capabilityProfiles }}</h2>
<span>{{ capabilities.length }}</span>
</header>
<ul>
@ -463,14 +527,17 @@ function storageRootBytes(uriPrefix: string) {
<div class="inline-actions">
<span class="badge">{{ profile.status }}</span>
<button type="button" :disabled="Boolean(busy)" @click="setCapabilityStatus(profile, 'confirmed_supported')">
支持
{{ text.support }}
</button>
<button type="button" :disabled="Boolean(busy)" @click="setCapabilityStatus(profile, 'confirmed_unsupported')">
{{ text.unsupported }}
</button>
<button type="button" :disabled="Boolean(busy)" @click="setCapabilityStatus(profile, 'unconfirmed')">
待确认
{{ text.unconfirmed }}
</button>
</div>
</li>
<li v-if="!capabilities.length" class="empty">暂无能力档案</li>
<li v-if="!capabilities.length" class="empty">{{ text.emptyCapabilities }}</li>
</ul>
</div>
</section>
@ -479,34 +546,34 @@ function storageRootBytes(uriPrefix: string) {
<div class="split-view">
<div class="list-view">
<header>
<h2>生成日志</h2>
<h2>{{ text.generationLogs }}</h2>
<span>{{ logs.generation.length }}</span>
</header>
<ul>
<li v-for="item in logs.generation" :key="item.task_id">
<div>
<strong>{{ item.task_id }}</strong>
<small>{{ item.status }} · {{ item.progress }}%</small>
<small>{{ item.status }} / {{ item.progress }}%</small>
</div>
<span>{{ item.created_at }}</span>
</li>
<li v-if="!logs.generation.length" class="empty">暂无生成日志</li>
<li v-if="!logs.generation.length" class="empty">{{ text.emptyGenerationLogs }}</li>
</ul>
</div>
<div class="list-view">
<header>
<h2>错误</h2>
<h2>{{ text.errorLogs }}</h2>
<span>{{ logs.errors.length }}</span>
</header>
<ul>
<li v-for="item in logs.errors" :key="`${item.source}-${item.id}`">
<div>
<strong>{{ item.source }}</strong>
<small>{{ item.error_message ?? "无错误详情" }}</small>
<small>{{ item.error_message ?? text.noErrorDetail }}</small>
</div>
<span class="badge">{{ item.status }}</span>
</li>
<li v-if="!logs.errors.length" class="empty">暂无错误</li>
<li v-if="!logs.errors.length" class="empty">{{ text.emptyErrors }}</li>
</ul>
</div>
</div>
@ -514,7 +581,7 @@ function storageRootBytes(uriPrefix: string) {
<div class="split-view">
<div class="list-view">
<header>
<h2>工作流</h2>
<h2>{{ text.workflowLogs }}</h2>
<span>{{ logs.workflows.length }}</span>
</header>
<ul>
@ -525,12 +592,12 @@ function storageRootBytes(uriPrefix: string) {
</div>
<span>{{ item.branch_name ?? "main" }}</span>
</li>
<li v-if="!logs.workflows.length" class="empty">暂无工作流日志</li>
<li v-if="!logs.workflows.length" class="empty">{{ text.emptyWorkflowLogs }}</li>
</ul>
</div>
<div class="list-view">
<header>
<h2>集成</h2>
<h2>{{ text.integrationLogs }}</h2>
<span>{{ logs.integrations.length }}</span>
</header>
<ul>
@ -541,14 +608,14 @@ function storageRootBytes(uriPrefix: string) {
</div>
<span class="badge">{{ item.status }}</span>
</li>
<li v-if="!logs.integrations.length" class="empty">暂无集成日志</li>
<li v-if="!logs.integrations.length" class="empty">{{ text.emptyIntegrationLogs }}</li>
</ul>
</div>
</div>
<div class="list-view">
<header>
<h2>审计</h2>
<h2>{{ text.auditLogs }}</h2>
<span>{{ logs.audit.length }}</span>
</header>
<ul>
@ -559,20 +626,20 @@ function storageRootBytes(uriPrefix: string) {
</div>
<span>{{ item.created_at }}</span>
</li>
<li v-if="!logs.audit.length" class="empty">暂无审计日志</li>
<li v-if="!logs.audit.length" class="empty">{{ text.emptyAuditLogs }}</li>
</ul>
</div>
</section>
<section v-if="activeView === 'settings'" class="settings-view">
<div class="toolbar">
<button type="button" :disabled="Boolean(busy)" @click="reloadSettings">重载</button>
<button type="button" :disabled="Boolean(busy)" @click="exportSettings">导出脱敏配置</button>
<button type="button" :disabled="Boolean(busy)" @click="reloadSettings">{{ text.reload }}</button>
<button type="button" :disabled="Boolean(busy)" @click="exportSettings">{{ text.exportRedacted }}</button>
</div>
<div class="settings-sections">
<article v-for="section in settingsSchema?.sections ?? []" :key="section.key">
<h2>{{ section.title }}</h2>
<span>{{ section.fields.length }} 项</span>
<span>{{ section.fields.length }}</span>
</article>
</div>
<pre>{{ JSON.stringify(currentSettings?.config ?? {}, null, 2) }}</pre>
@ -581,7 +648,7 @@ function storageRootBytes(uriPrefix: string) {
</section>
<aside class="inspector">
<h2>运行</h2>
<h2>{{ text.running }}</h2>
<dl>
<div>
<dt>Pending</dt>
@ -600,7 +667,7 @@ function storageRootBytes(uriPrefix: string) {
<dd>{{ dashboard?.queue.dead_letter ?? 0 }}</dd>
</div>
</dl>
<h2>存储</h2>
<h2>{{ text.storage }}</h2>
<dl>
<div>
<dt>Images</dt>

查看文件

@ -1 +0,0 @@
.web-shell[data-v-1d79a532]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-1d79a532],.inspector[data-v-1d79a532]{background:#fff}.sidebar[data-v-1d79a532]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-1d79a532]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-1d79a532]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-1d79a532]{font-size:19px}.brand span[data-v-1d79a532],p[data-v-1d79a532],dt[data-v-1d79a532],.empty[data-v-1d79a532],small[data-v-1d79a532]{color:#667085}nav[data-v-1d79a532]{display:grid;gap:6px}button[data-v-1d79a532]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-1d79a532]:disabled{cursor:wait;opacity:.62}nav button[data-v-1d79a532]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-1d79a532]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-1d79a532]{min-width:0;padding:24px}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532],.toolbar[data-v-1d79a532],.inline-actions[data-v-1d79a532]{display:flex;gap:12px;align-items:center}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532]{justify-content:space-between}.actions[data-v-1d79a532],.inline-actions[data-v-1d79a532]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-1d79a532],.toolbar button[data-v-1d79a532],.list-view header button[data-v-1d79a532],.inline-actions button[data-v-1d79a532]{padding:0 14px}h1[data-v-1d79a532],h2[data-v-1d79a532],p[data-v-1d79a532],dl[data-v-1d79a532],dd[data-v-1d79a532]{margin:0}h1[data-v-1d79a532]{min-height:30px;font-size:26px}h2[data-v-1d79a532]{font-size:15px}.notice[data-v-1d79a532],article[data-v-1d79a532],.list-view[data-v-1d79a532],pre[data-v-1d79a532]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-1d79a532]{margin-top:18px;padding:14px}.error[data-v-1d79a532]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-1d79a532],.split-view[data-v-1d79a532]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-1d79a532]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-1d79a532]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-1d79a532]{display:grid;gap:8px;padding:16px}article span[data-v-1d79a532]{color:#667085;font-size:13px}article strong[data-v-1d79a532]{font-size:24px}.list-view[data-v-1d79a532],.logs-view[data-v-1d79a532],.settings-view[data-v-1d79a532]{margin-top:18px}.split-view .list-view[data-v-1d79a532],.logs-view .list-view[data-v-1d79a532]{margin-top:0}.list-view[data-v-1d79a532]{padding:16px}ul[data-v-1d79a532]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-1d79a532]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-1d79a532]:first-child{border-top:0}li>div[data-v-1d79a532]{display:grid;gap:3px;min-width:0}li strong[data-v-1d79a532],li span[data-v-1d79a532],li small[data-v-1d79a532]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-1d79a532]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-1d79a532]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-1d79a532]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-1d79a532]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-1d79a532]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-1d79a532]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-1d79a532]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-1d79a532]{display:none}}@media(max-width:820px){.web-shell[data-v-1d79a532]{grid-template-columns:1fr}.sidebar[data-v-1d79a532]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-1d79a532]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-1d79a532]{text-align:center}.dashboard-grid[data-v-1d79a532],.split-view[data-v-1d79a532],.settings-sections[data-v-1d79a532]{grid-template-columns:1fr}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532]{align-items:flex-start;flex-direction:column}}

文件差异因一行或多行过长而隐藏

查看文件

@ -0,0 +1 @@
.web-shell[data-v-7901da59]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-7901da59],.inspector[data-v-7901da59]{background:#fff}.sidebar[data-v-7901da59]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-7901da59]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-7901da59]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-7901da59]{font-size:19px}.brand span[data-v-7901da59],p[data-v-7901da59],dt[data-v-7901da59],.empty[data-v-7901da59],small[data-v-7901da59]{color:#667085}nav[data-v-7901da59]{display:grid;gap:6px}button[data-v-7901da59]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-7901da59]:disabled{cursor:wait;opacity:.62}nav button[data-v-7901da59]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-7901da59]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-7901da59]{min-width:0;padding:24px}.topbar[data-v-7901da59],.list-view header[data-v-7901da59],.toolbar[data-v-7901da59],.inline-actions[data-v-7901da59]{display:flex;gap:12px;align-items:center}.topbar[data-v-7901da59],.list-view header[data-v-7901da59]{justify-content:space-between}.actions[data-v-7901da59],.inline-actions[data-v-7901da59]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-7901da59],.toolbar button[data-v-7901da59],.list-view header button[data-v-7901da59],.inline-actions button[data-v-7901da59]{padding:0 14px}h1[data-v-7901da59],h2[data-v-7901da59],p[data-v-7901da59],dl[data-v-7901da59],dd[data-v-7901da59]{margin:0}h1[data-v-7901da59]{min-height:30px;font-size:26px}h2[data-v-7901da59]{font-size:15px}.notice[data-v-7901da59],article[data-v-7901da59],.list-view[data-v-7901da59],pre[data-v-7901da59]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-7901da59]{margin-top:18px;padding:14px}.error[data-v-7901da59]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-7901da59],.split-view[data-v-7901da59]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-7901da59]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-7901da59]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-7901da59]{display:grid;gap:8px;padding:16px}article span[data-v-7901da59]{color:#667085;font-size:13px}article strong[data-v-7901da59]{font-size:24px}.list-view[data-v-7901da59],.logs-view[data-v-7901da59],.settings-view[data-v-7901da59]{margin-top:18px}.split-view .list-view[data-v-7901da59],.logs-view .list-view[data-v-7901da59]{margin-top:0}.list-view[data-v-7901da59]{padding:16px}ul[data-v-7901da59]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-7901da59]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-7901da59]:first-child{border-top:0}li>div[data-v-7901da59]{display:grid;gap:3px;min-width:0}li strong[data-v-7901da59],li span[data-v-7901da59],li small[data-v-7901da59]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-7901da59]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-7901da59]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-7901da59]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-7901da59]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-7901da59]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-7901da59]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-7901da59]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-7901da59]{display:none}}@media(max-width:820px){.web-shell[data-v-7901da59]{grid-template-columns:1fr}.sidebar[data-v-7901da59]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-7901da59]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-7901da59]{text-align:center}.dashboard-grid[data-v-7901da59],.split-view[data-v-7901da59],.settings-sections[data-v-7901da59]{grid-template-columns:1fr}.topbar[data-v-7901da59],.list-view header[data-v-7901da59]{align-items:flex-start;flex-direction:column}}

文件差异因一行或多行过长而隐藏

查看文件

@ -1,3 +1,3 @@
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-QsMDq_Mp.js"></script>
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-BTWVDt8L.css">
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-ChLO5vLw.js"></script>
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-DL1DDRDZ.css">
<div id="app"></div>