Show signed recent images on dashboard
这个提交存在于:
父节点
c267c1ad39
当前提交
74604654e8
共有 7 个文件被更改,包括 57 次插入 和 21 次删除
|
|
@ -1,3 +1,15 @@
|
|||
export interface DashboardImage {
|
||||
image_id: string
|
||||
node_id?: string | null
|
||||
workflow_id?: string | null
|
||||
profile_id?: string | null
|
||||
image_uri: string
|
||||
thumbnail_uri?: string | null
|
||||
image_url?: string | null
|
||||
thumbnail_url?: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export interface DashboardSummary {
|
||||
plugin_status: "running" | "degraded" | "stopped"
|
||||
today_generation_count: number
|
||||
|
|
@ -15,5 +27,5 @@ export interface DashboardSummary {
|
|||
temp_bytes: number
|
||||
}
|
||||
recent_jobs: unknown[]
|
||||
recent_images: unknown[]
|
||||
recent_images: DashboardImage[]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -235,6 +235,7 @@ const text = {
|
|||
validationResult: "\u6821\u9a8c\u7ed3\u679c",
|
||||
diffResult: "\u53d8\u66f4\u5bf9\u6bd4",
|
||||
storage: "\u5b58\u50a8",
|
||||
recentImages: "\u6700\u8fd1\u56fe\u7247",
|
||||
storageMigrate: "\u8fc1\u79fb\u9884\u68c0",
|
||||
overwriteRisk: "\u8986\u76d6\u98ce\u9669",
|
||||
assetImportPack: "\u8d44\u4ea7\u5305\u9884\u68c0",
|
||||
|
|
@ -1760,6 +1761,29 @@ function planAssetImportPack() {
|
|||
<strong>{{ formatBytes(storage?.total_bytes ?? dashboard?.storage.total_bytes) }}</strong>
|
||||
</article>
|
||||
</section>
|
||||
<section v-if="activeView === 'dashboard'" class="list-view">
|
||||
<header>
|
||||
<h2>{{ text.recentImages }}</h2>
|
||||
<span>{{ dashboard?.recent_images.length ?? 0 }}</span>
|
||||
</header>
|
||||
<ul>
|
||||
<li v-for="image in dashboard?.recent_images ?? []" :key="image.image_id">
|
||||
<img
|
||||
v-if="image.thumbnail_url || image.image_url"
|
||||
class="image-preview"
|
||||
:src="image.thumbnail_url ?? image.image_url ?? ''"
|
||||
:alt="image.image_id"
|
||||
loading="lazy"
|
||||
/>
|
||||
<div>
|
||||
<strong>{{ image.image_id }}</strong>
|
||||
<small>{{ image.thumbnail_uri ?? image.image_uri }}</small>
|
||||
</div>
|
||||
<span>{{ image.created_at }}</span>
|
||||
</li>
|
||||
<li v-if="!dashboard?.recent_images.length" class="empty">{{ text.emptyImages }}</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section v-if="activeView === 'profiles'" class="list-view">
|
||||
<header>
|
||||
|
|
|
|||
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
17
web/assets/index-ur_RQ_Aq.js
普通文件
17
web/assets/index-ur_RQ_Aq.js
普通文件
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
|
|
@ -1,3 +1,3 @@
|
|||
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-xlGwJRiI.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-BD2zkovs.css">
|
||||
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-ur_RQ_Aq.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-DX8Ei8SG.css">
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
正在加载…
添加表格
在新工单中引用