Show asset pack manifest summary in frontend
这个提交存在于:
父节点
0d63feecbf
当前提交
3a4eec6163
共有 7 个文件被更改,包括 52 次插入 和 21 次删除
|
|
@ -1,3 +1,18 @@
|
|||
export interface AssetManifestSummary {
|
||||
present: boolean
|
||||
valid: boolean
|
||||
uri: string | null
|
||||
name: string | null
|
||||
version: string | null
|
||||
materials: number
|
||||
styles: number
|
||||
errors: Array<{
|
||||
code: string
|
||||
message: string
|
||||
[key: string]: unknown
|
||||
}>
|
||||
}
|
||||
|
||||
export interface AssetImportPlan {
|
||||
dry_run: boolean
|
||||
status: string
|
||||
|
|
@ -5,6 +20,7 @@ export interface AssetImportPlan {
|
|||
files: number
|
||||
bytes: number
|
||||
manifest_candidates: string[]
|
||||
manifest: AssetManifestSummary
|
||||
import_enabled: boolean
|
||||
execution_enabled: boolean
|
||||
}
|
||||
|
|
|
|||
|
|
@ -237,6 +237,9 @@ const text = {
|
|||
storage: "\u5b58\u50a8",
|
||||
storageMigrate: "\u8fc1\u79fb\u9884\u68c0",
|
||||
assetImportPack: "\u8d44\u4ea7\u5305\u9884\u68c0",
|
||||
manifest: "\u6e05\u5355",
|
||||
valid: "\u6709\u6548",
|
||||
invalid: "\u65e0\u6548",
|
||||
packageUri: "\u5305 URI",
|
||||
sourceUri: "\u6e90 URI",
|
||||
targetUri: "\u76ee\u6807 URI",
|
||||
|
|
@ -2928,7 +2931,19 @@ function planAssetImportPack() {
|
|||
</div>
|
||||
<div>
|
||||
<dt>Manifest</dt>
|
||||
<dd>{{ assetImportPlan.manifest_candidates.length }}</dd>
|
||||
<dd>{{ assetImportPlan.manifest.valid ? text.valid : text.invalid }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>{{ text.name }}</dt>
|
||||
<dd>{{ assetImportPlan.manifest.name ?? "-" }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>{{ text.materials }}</dt>
|
||||
<dd>{{ assetImportPlan.manifest.materials }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>{{ text.style }}</dt>
|
||||
<dd>{{ assetImportPlan.manifest.styles }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</aside>
|
||||
|
|
|
|||
17
web/assets/index-B0hKUYHx.js
普通文件
17
web/assets/index-B0hKUYHx.js
普通文件
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
|
|
@ -1,3 +1,3 @@
|
|||
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-Sl8IwODU.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-C4Ku8Roa.css">
|
||||
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-B0hKUYHx.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-CqrOefcX.css">
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
正在加载…
添加表格
在新工单中引用