add: settings page
This commit is contained in:
@@ -5,6 +5,22 @@
|
||||
// @ts-ignore: Unused imports
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
export function GetAutoAccept(): $CancellablePromise<boolean> {
|
||||
return $Call.ByID(2605668438);
|
||||
}
|
||||
|
||||
export function GetHostName(): $CancellablePromise<string> {
|
||||
return $Call.ByID(972342140);
|
||||
}
|
||||
|
||||
export function GetID(): $CancellablePromise<string> {
|
||||
return $Call.ByID(4240411568);
|
||||
}
|
||||
|
||||
export function GetSaveHistory(): $CancellablePromise<boolean> {
|
||||
return $Call.ByID(2178923392);
|
||||
}
|
||||
|
||||
export function GetSavePath(): $CancellablePromise<string> {
|
||||
return $Call.ByID(4081533263);
|
||||
}
|
||||
@@ -16,6 +32,18 @@ export function Save(): $CancellablePromise<void> {
|
||||
return $Call.ByID(3089450934);
|
||||
}
|
||||
|
||||
export function SetAutoAccept(autoAccept: boolean): $CancellablePromise<void> {
|
||||
return $Call.ByID(3371961138, autoAccept);
|
||||
}
|
||||
|
||||
export function SetHostName(hostName: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(1580131496, hostName);
|
||||
}
|
||||
|
||||
export function SetSaveHistory(saveHistory: boolean): $CancellablePromise<void> {
|
||||
return $Call.ByID(3779587628, saveHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* SetSavePath 修改配置
|
||||
*/
|
||||
|
||||
@@ -46,11 +46,6 @@ export class Peer {
|
||||
* Port 是文件传输服务的监听端口。
|
||||
*/
|
||||
"port": number;
|
||||
|
||||
/**
|
||||
* IsOnline 标记该端点当前是否活跃 (UI 渲染用)。
|
||||
*/
|
||||
"is_online": boolean;
|
||||
"os": OS;
|
||||
|
||||
/** Creates a new Peer instance. */
|
||||
@@ -67,9 +62,6 @@ export class Peer {
|
||||
if (!("port" in $$source)) {
|
||||
this["port"] = 0;
|
||||
}
|
||||
if (!("is_online" in $$source)) {
|
||||
this["is_online"] = false;
|
||||
}
|
||||
if (!("os" in $$source)) {
|
||||
this["os"] = OS.$zero;
|
||||
}
|
||||
|
||||
@@ -13,10 +13,6 @@ export function GetID(): $CancellablePromise<string> {
|
||||
return $Call.ByID(1539451205);
|
||||
}
|
||||
|
||||
export function GetName(): $CancellablePromise<string> {
|
||||
return $Call.ByID(1578367131);
|
||||
}
|
||||
|
||||
export function GetPeerByIP(ip: string): $CancellablePromise<$models.Peer | null> {
|
||||
return $Call.ByID(1626825408, ip).then(($result: any) => {
|
||||
return $$createType1($result);
|
||||
|
||||
@@ -45,6 +45,10 @@ export function GetTransferList(): $CancellablePromise<($models.Transfer | null)
|
||||
});
|
||||
}
|
||||
|
||||
export function LoadHistory(): $CancellablePromise<void> {
|
||||
return $Call.ByID(2987999795);
|
||||
}
|
||||
|
||||
export function NotifyTransferListUpdate(): $CancellablePromise<void> {
|
||||
return $Call.ByID(1220032142);
|
||||
}
|
||||
@@ -57,6 +61,10 @@ export function ResolvePendingRequest(id: string, accept: boolean, savePath: str
|
||||
return $Call.ByID(207902967, id, accept, savePath);
|
||||
}
|
||||
|
||||
export function SaveHistory(): $CancellablePromise<void> {
|
||||
return $Call.ByID(713135400);
|
||||
}
|
||||
|
||||
export function SendFile(target: discovery$0.Peer | null, targetIP: string, filePath: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(2954589433, target, targetIP, filePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user