新增本地化

This commit is contained in:
zyj
2025-10-22 18:27:24 +08:00
parent 81df8f1ad8
commit 211f4f9615
10 changed files with 531 additions and 152 deletions

View File

@@ -1,32 +0,0 @@
// @ts-check
// 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 { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as services$0 from "./services/models.js";
/**
* @returns {$CancellablePromise<void>}
*/
export function DownloadSite() {
return $Call.ByID(2539977978);
}
/**
* @param {string} rawURL
* @returns {$CancellablePromise<services$0.ResourcesList | null>}
*/
export function GetResources(rawURL) {
return $Call.ByID(2167352808, rawURL).then(/** @type {($result: any) => any} */(($result) => {
return $$createType1($result);
}));
}
// Private type creation functions
const $$createType0 = services$0.ResourcesList.createFrom;
const $$createType1 = $Create.Nullable($$createType0);

View File

@@ -1,15 +0,0 @@
// @ts-check
// 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 { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
/**
* @param {string} name
* @returns {$CancellablePromise<string>}
*/
export function Greet(name) {
return $Call.ByID(1411160069, name);
}

View File

@@ -1,10 +0,0 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as App from "./app.js";
import * as GreetService from "./greetservice.js";
export {
App,
GreetService
};

View File

@@ -1,7 +0,0 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export {
ResourcesList
} from "./models.js";

View File

@@ -1,86 +0,0 @@
// @ts-check
// 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";
export class ResourcesList {
/**
* Creates a new ResourcesList instance.
* @param {Partial<ResourcesList>} [$$source = {}] - The source object to create the ResourcesList.
*/
constructor($$source = {}) {
if (!("script" in $$source)) {
/**
* @member
* @type {string[]}
*/
this["script"] = [];
}
if (!("css" in $$source)) {
/**
* @member
* @type {string[]}
*/
this["css"] = [];
}
if (!("image" in $$source)) {
/**
* @member
* @type {string[]}
*/
this["image"] = [];
}
if (!("dom" in $$source)) {
/**
* @member
* @type {string[]}
*/
this["dom"] = [];
}
if (!("video" in $$source)) {
/**
* @member
* @type {string[]}
*/
this["video"] = [];
}
Object.assign(this, $$source);
}
/**
* Creates a new ResourcesList instance from a string or object.
* @param {any} [$$source = {}]
* @returns {ResourcesList}
*/
static createFrom($$source = {}) {
const $$createField0_0 = $$createType0;
const $$createField1_0 = $$createType0;
const $$createField2_0 = $$createType0;
const $$createField3_0 = $$createType0;
const $$createField4_0 = $$createType0;
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
if ("script" in $$parsedSource) {
$$parsedSource["script"] = $$createField0_0($$parsedSource["script"]);
}
if ("css" in $$parsedSource) {
$$parsedSource["css"] = $$createField1_0($$parsedSource["css"]);
}
if ("image" in $$parsedSource) {
$$parsedSource["image"] = $$createField2_0($$parsedSource["image"]);
}
if ("dom" in $$parsedSource) {
$$parsedSource["dom"] = $$createField3_0($$parsedSource["dom"]);
}
if ("video" in $$parsedSource) {
$$parsedSource["video"] = $$createField4_0($$parsedSource["video"]);
}
return new ResourcesList(/** @type {Partial<ResourcesList>} */($$parsedSource));
}
}
// Private type creation functions
const $$createType0 = $Create.Array($Create.Any);