Update runtime wrapper. Update base templates.

This commit is contained in:
Lea Anthony
2022-04-19 17:43:55 +10:00
parent 053f2748d5
commit 02fcf738d3
85 changed files with 2111 additions and 5224 deletions
@@ -8,80 +8,73 @@ export interface Size {
h: number;
}
export interface runtime {
EventsEmit(eventName: string, data?: any): void;
EventsOn(eventName: string, callback: (data?: any) => void): void;
export function EventsEmit(eventName: string, data?: any): void;
EventsOnMultiple(eventName: string, callback: (data?: any) => void, maxCallbacks: number): void;
export function EventsOn(eventName: string, callback: (data?: any) => void): void;
EventsOnce(eventName: string, callback: (data?: any) => void): void;
export function EventsOnMultiple(eventName: string, callback: (data?: any) => void, maxCallbacks: number): void;
EventsOff(eventName: string): void;
export function EventsOnce(eventName: string, callback: (data?: any) => void): void;
LogTrace(message: string): void;
export function EventsOff(eventName: string): void;
LogDebug(message: string): void;
export function LogTrace(message: string): void;
LogError(message: string): void;
export function LogDebug(message: string): void;
LogFatal(message: string): void;
export function LogError(message: string): void;
LogInfo(message: string): void;
export function LogFatal(message: string): void;
LogWarning(message: string): void;
export function LogInfo(message: string): void;
WindowReload(): void;
export function LogWarning(message: string): void;
WindowSetSystemDefaultTheme(): void;
export function WindowReload(): void;
WindowSetLightTheme(): void;
export function WindowSetSystemDefaultTheme(): void;
WindowSetDarkTheme(): void;
export function WindowSetLightTheme(): void;
WindowCenter(): void;
export function WindowSetDarkTheme(): void;
WindowSetTitle(title: string): void;
export function WindowCenter(): void;
WindowFullscreen(): void;
export function WindowSetTitle(title: string): void;
WindowUnfullscreen(): void;
export function WindowFullscreen(): void;
WindowSetSize(width: number, height: number): Promise<Size>;
export function WindowUnfullscreen(): void;
WindowGetSize(): Promise<Size>;
export function WindowSetSize(width: number, height: number): Promise<Size>;
WindowSetMaxSize(width: number, height: number): void;
export function WindowGetSize(): Promise<Size>;
WindowSetMinSize(width: number, height: number): void;
export function WindowSetMaxSize(width: number, height: number): void;
WindowSetPosition(x: number, y: number): void;
export function WindowSetMinSize(width: number, height: number): void;
WindowGetPosition(): Promise<Position>;
export function WindowSetPosition(x: number, y: number): void;
WindowHide(): void;
export function WindowGetPosition(): Promise<Position>;
WindowShow(): void;
export function WindowHide(): void;
WindowMaximise(): void;
export function WindowShow(): void;
WindowToggleMaximise(): void;
export function WindowMaximise(): void;
WindowUnmaximise(): void;
export function WindowToggleMaximise(): void;
WindowMinimise(): void;
export function WindowUnmaximise(): void;
WindowUnminimise(): void;
export function WindowMinimise(): void;
WindowSetRGBA(R: number, G: number, B: number, A: number): void;
export function WindowUnminimise(): void;
BrowserOpenURL(url: string): void;
export function WindowSetRGBA(R: number, G: number, B: number, A: number): void;
Quit(): void;
}
export function BrowserOpenURL(url: string): void;
declare global {
interface Window {
runtime: runtime;
}
}
export function Quit(): void;
File diff suppressed because one or more lines are too long
@@ -1,4 +0,0 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1: string): Promise<string>;
@@ -1,7 +0,0 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1) {
return window['go']['main']['App']['Greet'](arg1);
}
@@ -1 +0,0 @@
(()=>{(function(){let n=function(e){for(var s=window[e.shift()];s&&e.length;)s=s[e.shift()];return s},o=n(["chrome","webview","postMessage"]),t=n(["webkit","messageHandlers","external","postMessage"]);if(!o&&!t){console.error("Unsupported Platform");return}o&&(window.WailsInvoke=e=>window.chrome.webview.postMessage(e)),t&&(window.WailsInvoke=e=>window.webkit.messageHandlers.external.postMessage(e))})();})();
@@ -1,24 +0,0 @@
{
"name": "@wailsapp/runtime",
"version": "2.0.0",
"description": "Wails Javascript runtime library",
"main": "runtime.js",
"types": "runtime.d.ts",
"scripts": {
},
"repository": {
"type": "git",
"url": "git+https://github.com/wailsapp/wails.git"
},
"keywords": [
"Wails",
"Javascript",
"Go"
],
"author": "Lea Anthony <lea.anthony@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/wailsapp/wails/issues"
},
"homepage": "https://github.com/wailsapp/wails#readme"
}
@@ -1,87 +0,0 @@
export interface Position {
x: number;
y: number;
}
export interface Size {
w: number;
h: number;
}
export interface runtime {
EventsEmit(eventName: string, data?: any): void;
EventsOn(eventName: string, callback: (data?: any) => void): void;
EventsOnMultiple(eventName: string, callback: (data?: any) => void, maxCallbacks: number): void;
EventsOnce(eventName: string, callback: (data?: any) => void): void;
EventsOff(eventName: string): void;
LogTrace(message: string): void;
LogDebug(message: string): void;
LogError(message: string): void;
LogFatal(message: string): void;
LogInfo(message: string): void;
LogWarning(message: string): void;
WindowReload(): void;
WindowSetSystemDefaultTheme(): void;
WindowSetLightTheme(): void;
WindowSetDarkTheme(): void;
WindowCenter(): void;
WindowSetTitle(title: string): void;
WindowFullscreen(): void;
WindowUnfullscreen(): void;
WindowSetSize(width: number, height: number): Promise<Size>;
WindowGetSize(): Promise<Size>;
WindowSetMaxSize(width: number, height: number): void;
WindowSetMinSize(width: number, height: number): void;
WindowSetPosition(x: number, y: number): void;
WindowGetPosition(): Promise<Position>;
WindowHide(): void;
WindowShow(): void;
WindowMaximise(): void;
WindowToggleMaximise(): void;
WindowUnmaximise(): void;
WindowMinimise(): void;
WindowUnminimise(): void;
WindowSetRGBA(R: number, G: number, B: number, A: number): void;
BrowserOpenURL(url: string): void;
Quit(): void;
}
declare global {
interface Window {
runtime: runtime;
}
}
@@ -1,4 +0,0 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1: string): Promise<string>;
@@ -1,7 +0,0 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1) {
return window['go']['main']['App']['Greet'](arg1);
}
@@ -1 +0,0 @@
(()=>{(function(){let n=function(e){for(var s=window[e.shift()];s&&e.length;)s=s[e.shift()];return s},o=n(["chrome","webview","postMessage"]),t=n(["webkit","messageHandlers","external","postMessage"]);if(!o&&!t){console.error("Unsupported Platform");return}o&&(window.WailsInvoke=e=>window.chrome.webview.postMessage(e)),t&&(window.WailsInvoke=e=>window.webkit.messageHandlers.external.postMessage(e))})();})();
@@ -1,24 +0,0 @@
{
"name": "@wailsapp/runtime",
"version": "2.0.0",
"description": "Wails Javascript runtime library",
"main": "runtime.js",
"types": "runtime.d.ts",
"scripts": {
},
"repository": {
"type": "git",
"url": "git+https://github.com/wailsapp/wails.git"
},
"keywords": [
"Wails",
"Javascript",
"Go"
],
"author": "Lea Anthony <lea.anthony@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/wailsapp/wails/issues"
},
"homepage": "https://github.com/wailsapp/wails#readme"
}
@@ -1,87 +0,0 @@
export interface Position {
x: number;
y: number;
}
export interface Size {
w: number;
h: number;
}
export interface runtime {
EventsEmit(eventName: string, data?: any): void;
EventsOn(eventName: string, callback: (data?: any) => void): void;
EventsOnMultiple(eventName: string, callback: (data?: any) => void, maxCallbacks: number): void;
EventsOnce(eventName: string, callback: (data?: any) => void): void;
EventsOff(eventName: string): void;
LogTrace(message: string): void;
LogDebug(message: string): void;
LogError(message: string): void;
LogFatal(message: string): void;
LogInfo(message: string): void;
LogWarning(message: string): void;
WindowReload(): void;
WindowSetSystemDefaultTheme(): void;
WindowSetLightTheme(): void;
WindowSetDarkTheme(): void;
WindowCenter(): void;
WindowSetTitle(title: string): void;
WindowFullscreen(): void;
WindowUnfullscreen(): void;
WindowSetSize(width: number, height: number): Promise<Size>;
WindowGetSize(): Promise<Size>;
WindowSetMaxSize(width: number, height: number): void;
WindowSetMinSize(width: number, height: number): void;
WindowSetPosition(x: number, y: number): void;
WindowGetPosition(): Promise<Position>;
WindowHide(): void;
WindowShow(): void;
WindowMaximise(): void;
WindowToggleMaximise(): void;
WindowUnmaximise(): void;
WindowMinimise(): void;
WindowUnminimise(): void;
WindowSetRGBA(R: number, G: number, B: number, A: number): void;
BrowserOpenURL(url: string): void;
Quit(): void;
}
declare global {
interface Window {
runtime: runtime;
}
}
@@ -1,4 +0,0 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1: string): Promise<string>;
@@ -1,7 +0,0 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1) {
return window['go']['main']['App']['Greet'](arg1);
}
@@ -1 +0,0 @@
(()=>{(function(){let n=function(e){for(var s=window[e.shift()];s&&e.length;)s=s[e.shift()];return s},o=n(["chrome","webview","postMessage"]),t=n(["webkit","messageHandlers","external","postMessage"]);if(!o&&!t){console.error("Unsupported Platform");return}o&&(window.WailsInvoke=e=>window.chrome.webview.postMessage(e)),t&&(window.WailsInvoke=e=>window.webkit.messageHandlers.external.postMessage(e))})();})();
@@ -1,24 +0,0 @@
{
"name": "@wailsapp/runtime",
"version": "2.0.0",
"description": "Wails Javascript runtime library",
"main": "runtime.js",
"types": "runtime.d.ts",
"scripts": {
},
"repository": {
"type": "git",
"url": "git+https://github.com/wailsapp/wails.git"
},
"keywords": [
"Wails",
"Javascript",
"Go"
],
"author": "Lea Anthony <lea.anthony@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/wailsapp/wails/issues"
},
"homepage": "https://github.com/wailsapp/wails#readme"
}

Some files were not shown because too many files have changed in this diff Show More