- 更新链路: 检查记录远端SHA256,下载完成事件回传,安装时带哈希校验 - 续传: 服务器忽略Range返回200时截断重下防追加损坏,文件名去query - 定时器: 自动检查可重入,配置变更免重启生效,关闭即停,下载加互斥 - 前端: 支持跳过此版本并按版本去重,手动检查不受门禁限制,启动未就绪延时重试 - 更新面板: 新增自动检查开关/间隔/地址配置与进度条状态映射 - 版本历史: cache参数强制刷新与加载超时重试兜底 - 配置: 侧边栏分区全链路持久化,保存请求复用api类型防字段丢失 - 侧边栏: 区块定位改显式类名,不再依赖排序位置 - 绑定: 重新生成并与镜像目录同步
96 lines
3.1 KiB
TypeScript
96 lines
3.1 KiB
TypeScript
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore: Unused imports
|
|
import { Create as $Create } from "@wailsio/runtime";
|
|
|
|
/**
|
|
* AppTabDefinition 应用 Tab 定义(前端格式)
|
|
*/
|
|
export class AppTabDefinition {
|
|
"key": string;
|
|
"title": string;
|
|
"visible": boolean;
|
|
"enabled": boolean;
|
|
|
|
/** Creates a new AppTabDefinition instance. */
|
|
constructor($$source: Partial<AppTabDefinition> = {}) {
|
|
if (!("key" in $$source)) {
|
|
this["key"] = "";
|
|
}
|
|
if (!("title" in $$source)) {
|
|
this["title"] = "";
|
|
}
|
|
if (!("visible" in $$source)) {
|
|
this["visible"] = false;
|
|
}
|
|
if (!("enabled" in $$source)) {
|
|
this["enabled"] = false;
|
|
}
|
|
|
|
Object.assign(this, $$source);
|
|
}
|
|
|
|
/**
|
|
* Creates a new AppTabDefinition instance from a string or object.
|
|
*/
|
|
static createFrom($$source: any = {}): AppTabDefinition {
|
|
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
|
return new AppTabDefinition($$parsedSource as Partial<AppTabDefinition>);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* SaveAppConfigRequest 保存应用配置请求(前端格式)
|
|
*/
|
|
export class SaveAppConfigRequest {
|
|
"tabs": AppTabDefinition[];
|
|
"visibleTabs": string[];
|
|
"defaultTab": string;
|
|
"sidebarSections": string[];
|
|
|
|
/** Creates a new SaveAppConfigRequest instance. */
|
|
constructor($$source: Partial<SaveAppConfigRequest> = {}) {
|
|
if (!("tabs" in $$source)) {
|
|
this["tabs"] = [];
|
|
}
|
|
if (!("visibleTabs" in $$source)) {
|
|
this["visibleTabs"] = [];
|
|
}
|
|
if (!("defaultTab" in $$source)) {
|
|
this["defaultTab"] = "";
|
|
}
|
|
if (!("sidebarSections" in $$source)) {
|
|
this["sidebarSections"] = [];
|
|
}
|
|
|
|
Object.assign(this, $$source);
|
|
}
|
|
|
|
/**
|
|
* Creates a new SaveAppConfigRequest instance from a string or object.
|
|
*/
|
|
static createFrom($$source: any = {}): SaveAppConfigRequest {
|
|
const $$createField0_0 = $$createType1;
|
|
const $$createField1_0 = $$createType2;
|
|
const $$createField3_0 = $$createType2;
|
|
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
|
if ("tabs" in $$parsedSource) {
|
|
$$parsedSource["tabs"] = $$createField0_0($$parsedSource["tabs"]);
|
|
}
|
|
if ("visibleTabs" in $$parsedSource) {
|
|
$$parsedSource["visibleTabs"] = $$createField1_0($$parsedSource["visibleTabs"]);
|
|
}
|
|
if ("sidebarSections" in $$parsedSource) {
|
|
$$parsedSource["sidebarSections"] = $$createField3_0($$parsedSource["sidebarSections"]);
|
|
}
|
|
return new SaveAppConfigRequest($$parsedSource as Partial<SaveAppConfigRequest>);
|
|
}
|
|
}
|
|
|
|
// Private type creation functions
|
|
const $$createType0 = AppTabDefinition.createFrom;
|
|
const $$createType1 = $Create.Array($$createType0);
|
|
const $$createType2 = $Create.Array($Create.Any);
|