|
|
|
@@ -12,13 +12,13 @@ import {Call as $Call, Create as $Create} from "@wailsio/runtime";
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
|
|
|
// @ts-ignore: Unused imports
|
|
|
|
|
import * as models$0 from "../../models/models.js";
|
|
|
|
|
import * as models$0 from "../models/models.js";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GetConfig 获取完整应用配置
|
|
|
|
|
*/
|
|
|
|
|
export function GetConfig(): Promise<models$0.AppConfig | null> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(3332910023) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(1013336538) as any;
|
|
|
|
|
let $typingPromise = $resultPromise.then(($result: any) => {
|
|
|
|
|
return $$createType1($result);
|
|
|
|
|
}) as any;
|
|
|
|
@@ -26,19 +26,11 @@ export function GetConfig(): Promise<models$0.AppConfig | null> & { cancel(): vo
|
|
|
|
|
return $typingPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GetConfigPath 获取当前配置文件路径
|
|
|
|
|
*/
|
|
|
|
|
export function GetConfigPath(): Promise<string> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(2145796624) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GetEditorConfig 获取编辑器配置
|
|
|
|
|
*/
|
|
|
|
|
export function GetEditorConfig(): Promise<models$0.EditorConfig> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(3738882774) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(3648153351) as any;
|
|
|
|
|
let $typingPromise = $resultPromise.then(($result: any) => {
|
|
|
|
|
return $$createType2($result);
|
|
|
|
|
}) as any;
|
|
|
|
@@ -50,7 +42,7 @@ export function GetEditorConfig(): Promise<models$0.EditorConfig> & { cancel():
|
|
|
|
|
* GetLanguage 获取当前语言设置
|
|
|
|
|
*/
|
|
|
|
|
export function GetLanguage(): Promise<models$0.LanguageType> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(1762264443) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(3409375894) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -58,7 +50,7 @@ export function GetLanguage(): Promise<models$0.LanguageType> & { cancel(): void
|
|
|
|
|
* GetMetadata 获取配置元数据
|
|
|
|
|
*/
|
|
|
|
|
export function GetMetadata(): Promise<models$0.ConfigMetadata> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(356327488) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(3276720617) as any;
|
|
|
|
|
let $typingPromise = $resultPromise.then(($result: any) => {
|
|
|
|
|
return $$createType3($result);
|
|
|
|
|
}) as any;
|
|
|
|
@@ -70,7 +62,7 @@ export function GetMetadata(): Promise<models$0.ConfigMetadata> & { cancel(): vo
|
|
|
|
|
* GetPaths 获取路径配置
|
|
|
|
|
*/
|
|
|
|
|
export function GetPaths(): Promise<models$0.PathsConfig> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(1115810463) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(1096257096) as any;
|
|
|
|
|
let $typingPromise = $resultPromise.then(($result: any) => {
|
|
|
|
|
return $$createType4($result);
|
|
|
|
|
}) as any;
|
|
|
|
@@ -82,7 +74,7 @@ export function GetPaths(): Promise<models$0.PathsConfig> & { cancel(): void } {
|
|
|
|
|
* ResetConfig 重置为默认配置
|
|
|
|
|
*/
|
|
|
|
|
export function ResetConfig(): Promise<void> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(2265390548) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(3593047389) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -90,7 +82,7 @@ export function ResetConfig(): Promise<void> & { cancel(): void } {
|
|
|
|
|
* SaveConfig 保存完整应用配置
|
|
|
|
|
*/
|
|
|
|
|
export function SaveConfig(config: models$0.AppConfig | null): Promise<void> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(2710445504, config) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(616684383, config) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -98,15 +90,7 @@ export function SaveConfig(config: models$0.AppConfig | null): Promise<void> & {
|
|
|
|
|
* SetLanguage 设置语言
|
|
|
|
|
*/
|
|
|
|
|
export function SetLanguage(language: models$0.LanguageType): Promise<void> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(2553541807, language) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* UpdateConfigPath 更新配置文件路径
|
|
|
|
|
*/
|
|
|
|
|
export function UpdateConfigPath(newPath: string): Promise<void> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(251712339, newPath) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(814725002, language) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -114,7 +98,7 @@ export function UpdateConfigPath(newPath: string): Promise<void> & { cancel(): v
|
|
|
|
|
* UpdateEditorConfig 更新编辑器配置
|
|
|
|
|
*/
|
|
|
|
|
export function UpdateEditorConfig(editorConfig: models$0.EditorConfig): Promise<void> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(420530601, editorConfig) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(1237949666, editorConfig) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -122,7 +106,7 @@ export function UpdateEditorConfig(editorConfig: models$0.EditorConfig): Promise
|
|
|
|
|
* UpdateMetadata 更新配置元数据
|
|
|
|
|
*/
|
|
|
|
|
export function UpdateMetadata(metadata: models$0.ConfigMetadata): Promise<void> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(1687760751, metadata) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(3353893284, metadata) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -130,7 +114,7 @@ export function UpdateMetadata(metadata: models$0.ConfigMetadata): Promise<void>
|
|
|
|
|
* UpdatePaths 更新路径配置
|
|
|
|
|
*/
|
|
|
|
|
export function UpdatePaths(paths: models$0.PathsConfig): Promise<void> & { cancel(): void } {
|
|
|
|
|
let $resultPromise = $Call.ByID(3466187518, paths) as any;
|
|
|
|
|
let $resultPromise = $Call.ByID(3650847675, paths) as any;
|
|
|
|
|
return $resultPromise;
|
|
|
|
|
}
|
|
|
|
|
|