init commit
This commit is contained in:
30
frontend/wailsjs/go/main/App.d.ts
vendored
Normal file
30
frontend/wailsjs/go/main/App.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {main} from '../models';
|
||||
import {core} from '../models';
|
||||
|
||||
export function AddConfig(arg1:string):Promise<string>;
|
||||
|
||||
export function Connect(arg1:string):Promise<void>;
|
||||
|
||||
export function DeleteConfig(arg1:string):Promise<void>;
|
||||
|
||||
export function Disconnect():Promise<void>;
|
||||
|
||||
export function GetConfigs():Promise<Array<main.VpnConfigItem>>;
|
||||
|
||||
export function GetSelectedConfigID():Promise<string>;
|
||||
|
||||
export function GetSettings():Promise<core.AppSettings>;
|
||||
|
||||
export function GetState():Promise<string>;
|
||||
|
||||
export function HideWindow():Promise<void>;
|
||||
|
||||
export function PingAll():Promise<void>;
|
||||
|
||||
export function ResizeWindow(arg1:number,arg2:number):Promise<void>;
|
||||
|
||||
export function SaveSettings(arg1:boolean,arg2:boolean,arg3:boolean):Promise<void>;
|
||||
|
||||
export function SetSelectedConfig(arg1:string):Promise<void>;
|
||||
55
frontend/wailsjs/go/main/App.js
Normal file
55
frontend/wailsjs/go/main/App.js
Normal file
@@ -0,0 +1,55 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function AddConfig(arg1) {
|
||||
return window['go']['main']['App']['AddConfig'](arg1);
|
||||
}
|
||||
|
||||
export function Connect(arg1) {
|
||||
return window['go']['main']['App']['Connect'](arg1);
|
||||
}
|
||||
|
||||
export function DeleteConfig(arg1) {
|
||||
return window['go']['main']['App']['DeleteConfig'](arg1);
|
||||
}
|
||||
|
||||
export function Disconnect() {
|
||||
return window['go']['main']['App']['Disconnect']();
|
||||
}
|
||||
|
||||
export function GetConfigs() {
|
||||
return window['go']['main']['App']['GetConfigs']();
|
||||
}
|
||||
|
||||
export function GetSelectedConfigID() {
|
||||
return window['go']['main']['App']['GetSelectedConfigID']();
|
||||
}
|
||||
|
||||
export function GetSettings() {
|
||||
return window['go']['main']['App']['GetSettings']();
|
||||
}
|
||||
|
||||
export function GetState() {
|
||||
return window['go']['main']['App']['GetState']();
|
||||
}
|
||||
|
||||
export function HideWindow() {
|
||||
return window['go']['main']['App']['HideWindow']();
|
||||
}
|
||||
|
||||
export function PingAll() {
|
||||
return window['go']['main']['App']['PingAll']();
|
||||
}
|
||||
|
||||
export function ResizeWindow(arg1, arg2) {
|
||||
return window['go']['main']['App']['ResizeWindow'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function SaveSettings(arg1, arg2, arg3) {
|
||||
return window['go']['main']['App']['SaveSettings'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
export function SetSelectedConfig(arg1) {
|
||||
return window['go']['main']['App']['SetSelectedConfig'](arg1);
|
||||
}
|
||||
50
frontend/wailsjs/go/models.ts
Normal file
50
frontend/wailsjs/go/models.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
export namespace core {
|
||||
|
||||
export class AppSettings {
|
||||
RunOnStartup: boolean;
|
||||
AutoConnect: boolean;
|
||||
AutoReconnect: boolean;
|
||||
LastConfigId?: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new AppSettings(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.RunOnStartup = source["RunOnStartup"];
|
||||
this.AutoConnect = source["AutoConnect"];
|
||||
this.AutoReconnect = source["AutoReconnect"];
|
||||
this.LastConfigId = source["LastConfigId"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export namespace main {
|
||||
|
||||
export class VpnConfigItem {
|
||||
id: string;
|
||||
name: string;
|
||||
link: string;
|
||||
protocolType: string;
|
||||
ping: string;
|
||||
pingColor: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new VpnConfigItem(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.id = source["id"];
|
||||
this.name = source["name"];
|
||||
this.link = source["link"];
|
||||
this.protocolType = source["protocolType"];
|
||||
this.ping = source["ping"];
|
||||
this.pingColor = source["pingColor"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user