新增下载页面
This commit is contained in:
32
frontend/bindings/go-site-clone/app.js
Normal file
32
frontend/bindings/go-site-clone/app.js
Normal file
@@ -0,0 +1,32 @@
|
||||
// @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);
|
||||
@@ -2,7 +2,9 @@
|
||||
// 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
|
||||
};
|
||||
|
||||
7
frontend/bindings/go-site-clone/services/index.js
Normal file
7
frontend/bindings/go-site-clone/services/index.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export {
|
||||
ResourcesList
|
||||
} from "./models.js";
|
||||
75
frontend/bindings/go-site-clone/services/models.js
Normal file
75
frontend/bindings/go-site-clone/services/models.js
Normal file
@@ -0,0 +1,75 @@
|
||||
// @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"] = [];
|
||||
}
|
||||
|
||||
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;
|
||||
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"]);
|
||||
}
|
||||
return new ResourcesList(/** @type {Partial<ResourcesList>} */($$parsedSource));
|
||||
}
|
||||
}
|
||||
|
||||
// Private type creation functions
|
||||
const $$createType0 = $Create.Array($Create.Any);
|
||||
Reference in New Issue
Block a user