修复: 版本更新与设置面板走查问题
- 更新链路: 检查记录远端SHA256,下载完成事件回传,安装时带哈希校验 - 续传: 服务器忽略Range返回200时截断重下防追加损坏,文件名去query - 定时器: 自动检查可重入,配置变更免重启生效,关闭即停,下载加互斥 - 前端: 支持跳过此版本并按版本去重,手动检查不受门禁限制,启动未就绪延时重试 - 更新面板: 新增自动检查开关/间隔/地址配置与进度条状态映射 - 版本历史: cache参数强制刷新与加载超时重试兜底 - 配置: 侧边栏分区全链路持久化,保存请求复用api类型防字段丢失 - 侧边栏: 区块定位改显式类名,不再依赖排序位置 - 绑定: 重新生成并与镜像目录同步
This commit is contained in:
@@ -15,6 +15,9 @@ import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Cr
|
||||
import * as application$0 from "../github.com/wailsapp/wails/v3/pkg/application/models.js";
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import * as api$0 from "./internal/api/models.js";
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import * as filesystem$0 from "./internal/filesystem/models.js";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
@@ -549,8 +552,9 @@ export function RestoreFromRecycleBin(recyclePath: string): $CancellablePromise<
|
||||
|
||||
/**
|
||||
* SaveAppConfig 保存应用配置
|
||||
* 直接复用 api.SaveAppConfigRequest,避免 main 包副本转发时丢字段
|
||||
*/
|
||||
export function SaveAppConfig(req: $models.SaveAppConfigRequest): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
export function SaveAppConfig(req: api$0.SaveAppConfigRequest): $CancellablePromise<{ [_ in string]?: any }> {
|
||||
return $Call.ByID(1942219977, req).then(($result: any) => {
|
||||
return $$createType2($result);
|
||||
});
|
||||
|
||||
@@ -11,7 +11,6 @@ export {
|
||||
OssConnectRequest,
|
||||
OssRenamePathRequest,
|
||||
RenamePathRequest,
|
||||
SaveAppConfigRequest,
|
||||
SaveBase64FileRequest,
|
||||
SaveProfileRequest,
|
||||
SftpConnectRequest,
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export {
|
||||
AppTabDefinition
|
||||
AppTabDefinition,
|
||||
SaveAppConfigRequest
|
||||
} from "./models.js";
|
||||
|
||||
@@ -40,3 +40,56 @@ export class AppTabDefinition {
|
||||
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);
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
// @ts-ignore: Unused imports
|
||||
import { Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import * as api$0 from "./internal/api/models.js";
|
||||
|
||||
/**
|
||||
* BgmPlaylistItem 播放列表条目
|
||||
*/
|
||||
@@ -134,46 +130,6 @@ export class RenamePathRequest {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SaveAppConfigRequest 保存应用配置请求
|
||||
*/
|
||||
export class SaveAppConfigRequest {
|
||||
"tabs": api$0.AppTabDefinition[];
|
||||
"visibleTabs": string[];
|
||||
"defaultTab": 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"] = "";
|
||||
}
|
||||
|
||||
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;
|
||||
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"]);
|
||||
}
|
||||
return new SaveAppConfigRequest($$parsedSource as Partial<SaveAppConfigRequest>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SaveBase64FileRequest 保存 Base64 编码的二进制文件
|
||||
*/
|
||||
@@ -422,8 +378,3 @@ export class WriteFileRequest {
|
||||
return new WriteFileRequest($$parsedSource as Partial<WriteFileRequest>);
|
||||
}
|
||||
}
|
||||
|
||||
// Private type creation functions
|
||||
const $$createType0 = api$0.AppTabDefinition.createFrom;
|
||||
const $$createType1 = $Create.Array($$createType0);
|
||||
const $$createType2 = $Create.Array($Create.Any);
|
||||
|
||||
Reference in New Issue
Block a user