mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 03:29:03 +08:00
Fix vue-ts template (#1813)
This commit is contained in:
parent
3a7ef4c26d
commit
01e46f0c24
@ -120,6 +120,10 @@ export function WindowFullscreen(): void;
|
|||||||
// Restores the previous window dimensions and position prior to full screen.
|
// Restores the previous window dimensions and position prior to full screen.
|
||||||
export function WindowUnfullscreen(): void;
|
export function WindowUnfullscreen(): void;
|
||||||
|
|
||||||
|
// [WindowIsFullscreen](https://wails.io/docs/reference/runtime/window#windowisfullscreen)
|
||||||
|
// Returns the state of the window, i.e. whether the window is in full screen mode or not.
|
||||||
|
export function WindowIsFullscreen(): Promise<boolean>;
|
||||||
|
|
||||||
// [WindowSetSize](https://wails.io/docs/reference/runtime/window#windowsetsize)
|
// [WindowSetSize](https://wails.io/docs/reference/runtime/window#windowsetsize)
|
||||||
// Sets the width and height of the window.
|
// Sets the width and height of the window.
|
||||||
export function WindowSetSize(width: number, height: number): Promise<Size>;
|
export function WindowSetSize(width: number, height: number): Promise<Size>;
|
||||||
@ -166,6 +170,10 @@ export function WindowToggleMaximise(): void;
|
|||||||
// Restores the window to the dimensions and position prior to maximising.
|
// Restores the window to the dimensions and position prior to maximising.
|
||||||
export function WindowUnmaximise(): void;
|
export function WindowUnmaximise(): void;
|
||||||
|
|
||||||
|
// [WindowIsMaximised](https://wails.io/docs/reference/runtime/window#windowismaximised)
|
||||||
|
// Returns the state of the window, i.e. whether the window is maximised or not.
|
||||||
|
export function WindowIsMaximised(): Promise<boolean>;
|
||||||
|
|
||||||
// [WindowMinimise](https://wails.io/docs/reference/runtime/window#windowminimise)
|
// [WindowMinimise](https://wails.io/docs/reference/runtime/window#windowminimise)
|
||||||
// Minimises the window.
|
// Minimises the window.
|
||||||
export function WindowMinimise(): void;
|
export function WindowMinimise(): void;
|
||||||
@ -174,6 +182,14 @@ export function WindowMinimise(): void;
|
|||||||
// Restores the window to the dimensions and position prior to minimising.
|
// Restores the window to the dimensions and position prior to minimising.
|
||||||
export function WindowUnminimise(): void;
|
export function WindowUnminimise(): void;
|
||||||
|
|
||||||
|
// [WindowIsMinimised](https://wails.io/docs/reference/runtime/window#windowisminimised)
|
||||||
|
// Returns the state of the window, i.e. whether the window is minimised or not.
|
||||||
|
export function WindowIsMinimised(): Promise<boolean>;
|
||||||
|
|
||||||
|
// [WindowIsNormal](https://wails.io/docs/reference/runtime/window#windowisnormal)
|
||||||
|
// Returns the state of the window, i.e. whether the window is normal or not.
|
||||||
|
export function WindowIsNormal(): Promise<boolean>;
|
||||||
|
|
||||||
// [WindowSetBackgroundColour](https://wails.io/docs/reference/runtime/window#windowsetbackgroundcolour)
|
// [WindowSetBackgroundColour](https://wails.io/docs/reference/runtime/window#windowsetbackgroundcolour)
|
||||||
// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
|
// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
|
||||||
export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;
|
export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;
|
||||||
|
@ -93,6 +93,10 @@ export function WindowUnfullscreen() {
|
|||||||
window.runtime.WindowUnfullscreen();
|
window.runtime.WindowUnfullscreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsFullscreen() {
|
||||||
|
return window.runtime.WindowIsFullscreen();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowGetSize() {
|
export function WindowGetSize() {
|
||||||
return window.runtime.WindowGetSize();
|
return window.runtime.WindowGetSize();
|
||||||
}
|
}
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "esnext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "esnext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": false,
|
"isolatedModules": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
"esnext",
|
"ESNext",
|
||||||
"dom"
|
"DOM"
|
||||||
]
|
],
|
||||||
|
"skipLibCheck": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
|
@ -193,3 +193,11 @@ export function Environment(): Promise<EnvironmentInfo>;
|
|||||||
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
||||||
// Quits the application.
|
// Quits the application.
|
||||||
export function Quit(): void;
|
export function Quit(): void;
|
||||||
|
|
||||||
|
// [Hide](https://wails.io/docs/reference/runtime/intro#hide)
|
||||||
|
// Hides the application.
|
||||||
|
export function Hide(): void;
|
||||||
|
|
||||||
|
// [Show](https://wails.io/docs/reference/runtime/intro#show)
|
||||||
|
// Shows the application.
|
||||||
|
export function Show(): void;
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
@ -164,3 +176,11 @@ export function Environment() {
|
|||||||
export function Quit() {
|
export function Quit() {
|
||||||
window.runtime.Quit();
|
window.runtime.Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function Hide() {
|
||||||
|
window.runtime.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Show() {
|
||||||
|
window.runtime.Show();
|
||||||
|
}
|
||||||
|
@ -193,3 +193,11 @@ export function Environment(): Promise<EnvironmentInfo>;
|
|||||||
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
||||||
// Quits the application.
|
// Quits the application.
|
||||||
export function Quit(): void;
|
export function Quit(): void;
|
||||||
|
|
||||||
|
// [Hide](https://wails.io/docs/reference/runtime/intro#hide)
|
||||||
|
// Hides the application.
|
||||||
|
export function Hide(): void;
|
||||||
|
|
||||||
|
// [Show](https://wails.io/docs/reference/runtime/intro#show)
|
||||||
|
// Shows the application.
|
||||||
|
export function Show(): void;
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
@ -164,3 +176,11 @@ export function Environment() {
|
|||||||
export function Quit() {
|
export function Quit() {
|
||||||
window.runtime.Quit();
|
window.runtime.Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function Hide() {
|
||||||
|
window.runtime.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Show() {
|
||||||
|
window.runtime.Show();
|
||||||
|
}
|
||||||
|
@ -18,6 +18,13 @@ export interface Size {
|
|||||||
h: number;
|
h: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Screen {
|
||||||
|
isCurrent: boolean;
|
||||||
|
isPrimary: boolean;
|
||||||
|
width: number
|
||||||
|
height: number
|
||||||
|
}
|
||||||
|
|
||||||
// Environment information such as platform, buildtype, ...
|
// Environment information such as platform, buildtype, ...
|
||||||
export interface EnvironmentInfo {
|
export interface EnvironmentInfo {
|
||||||
buildType: string;
|
buildType: string;
|
||||||
@ -171,6 +178,10 @@ export function WindowUnminimise(): void;
|
|||||||
// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
|
// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
|
||||||
export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;
|
export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;
|
||||||
|
|
||||||
|
// [ScreenGetAll](https://wails.io/docs/reference/runtime/window#screengetall)
|
||||||
|
// Gets the all screens. Call this anew each time you want to refresh data from the underlying windowing system.
|
||||||
|
export function ScreenGetAll(): Promise<Screen[]>;
|
||||||
|
|
||||||
// [BrowserOpenURL](https://wails.io/docs/reference/runtime/browser#browseropenurl)
|
// [BrowserOpenURL](https://wails.io/docs/reference/runtime/browser#browseropenurl)
|
||||||
// Opens the given URL in the system browser.
|
// Opens the given URL in the system browser.
|
||||||
export function BrowserOpenURL(url: string): void;
|
export function BrowserOpenURL(url: string): void;
|
||||||
@ -182,3 +193,11 @@ export function Environment(): Promise<EnvironmentInfo>;
|
|||||||
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
||||||
// Quits the application.
|
// Quits the application.
|
||||||
export function Quit(): void;
|
export function Quit(): void;
|
||||||
|
|
||||||
|
// [Hide](https://wails.io/docs/reference/runtime/intro#hide)
|
||||||
|
// Hides the application.
|
||||||
|
export function Hide(): void;
|
||||||
|
|
||||||
|
// [Show](https://wails.io/docs/reference/runtime/intro#show)
|
||||||
|
// Shows the application.
|
||||||
|
export function Show(): void;
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -149,6 +153,18 @@ export function WindowSetBackgroundColour(R, G, B, A) {
|
|||||||
window.runtime.WindowSetBackgroundColour(R, G, B, A);
|
window.runtime.WindowSetBackgroundColour(R, G, B, A);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function ScreenGetAll() {
|
||||||
|
return window.runtime.ScreenGetAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
@ -161,6 +177,10 @@ export function Quit() {
|
|||||||
window.runtime.Quit();
|
window.runtime.Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ScreenGetAll() {
|
export function Hide() {
|
||||||
return window.runtime.ScreenGetAll();
|
window.runtime.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Show() {
|
||||||
|
window.runtime.Show();
|
||||||
}
|
}
|
@ -18,6 +18,13 @@ export interface Size {
|
|||||||
h: number;
|
h: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Screen {
|
||||||
|
isCurrent: boolean;
|
||||||
|
isPrimary: boolean;
|
||||||
|
width: number
|
||||||
|
height: number
|
||||||
|
}
|
||||||
|
|
||||||
// Environment information such as platform, buildtype, ...
|
// Environment information such as platform, buildtype, ...
|
||||||
export interface EnvironmentInfo {
|
export interface EnvironmentInfo {
|
||||||
buildType: string;
|
buildType: string;
|
||||||
@ -171,6 +178,10 @@ export function WindowUnminimise(): void;
|
|||||||
// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
|
// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
|
||||||
export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;
|
export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;
|
||||||
|
|
||||||
|
// [ScreenGetAll](https://wails.io/docs/reference/runtime/window#screengetall)
|
||||||
|
// Gets the all screens. Call this anew each time you want to refresh data from the underlying windowing system.
|
||||||
|
export function ScreenGetAll(): Promise<Screen[]>;
|
||||||
|
|
||||||
// [BrowserOpenURL](https://wails.io/docs/reference/runtime/browser#browseropenurl)
|
// [BrowserOpenURL](https://wails.io/docs/reference/runtime/browser#browseropenurl)
|
||||||
// Opens the given URL in the system browser.
|
// Opens the given URL in the system browser.
|
||||||
export function BrowserOpenURL(url: string): void;
|
export function BrowserOpenURL(url: string): void;
|
||||||
@ -182,3 +193,11 @@ export function Environment(): Promise<EnvironmentInfo>;
|
|||||||
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
||||||
// Quits the application.
|
// Quits the application.
|
||||||
export function Quit(): void;
|
export function Quit(): void;
|
||||||
|
|
||||||
|
// [Hide](https://wails.io/docs/reference/runtime/intro#hide)
|
||||||
|
// Hides the application.
|
||||||
|
export function Hide(): void;
|
||||||
|
|
||||||
|
// [Show](https://wails.io/docs/reference/runtime/intro#show)
|
||||||
|
// Shows the application.
|
||||||
|
export function Show(): void;
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -149,6 +153,18 @@ export function WindowSetBackgroundColour(R, G, B, A) {
|
|||||||
window.runtime.WindowSetBackgroundColour(R, G, B, A);
|
window.runtime.WindowSetBackgroundColour(R, G, B, A);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function ScreenGetAll() {
|
||||||
|
return window.runtime.ScreenGetAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
@ -161,6 +177,10 @@ export function Quit() {
|
|||||||
window.runtime.Quit();
|
window.runtime.Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ScreenGetAll() {
|
export function Hide() {
|
||||||
return window.runtime.ScreenGetAll();
|
window.runtime.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Show() {
|
||||||
|
window.runtime.Show();
|
||||||
}
|
}
|
@ -1,19 +1,20 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "esnext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "esnext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "Node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": false,
|
"isolatedModules": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
"esnext",
|
"ESNext",
|
||||||
"dom"
|
"DOM"
|
||||||
]
|
],
|
||||||
|
"skipLibCheck": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
|
@ -137,6 +137,10 @@ export function WindowUnmaximise() {
|
|||||||
window.runtime.WindowUnmaximise();
|
window.runtime.WindowUnmaximise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMaximised() {
|
||||||
|
return window.runtime.WindowIsMaximised();
|
||||||
|
}
|
||||||
|
|
||||||
export function WindowMinimise() {
|
export function WindowMinimise() {
|
||||||
window.runtime.WindowMinimise();
|
window.runtime.WindowMinimise();
|
||||||
}
|
}
|
||||||
@ -153,6 +157,14 @@ export function ScreenGetAll() {
|
|||||||
return window.runtime.ScreenGetAll();
|
return window.runtime.ScreenGetAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function WindowIsMinimised() {
|
||||||
|
return window.runtime.WindowIsMinimised();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function WindowIsNormal() {
|
||||||
|
return window.runtime.WindowIsNormal();
|
||||||
|
}
|
||||||
|
|
||||||
export function BrowserOpenURL(url) {
|
export function BrowserOpenURL(url) {
|
||||||
window.runtime.BrowserOpenURL(url);
|
window.runtime.BrowserOpenURL(url);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -110,7 +110,7 @@ go env -w GOPROXY=https://goproxy.cn,direct
|
|||||||
|
|
||||||
Source: https://github.com/wailsapp/wails/issues/1233
|
Source: https://github.com/wailsapp/wails/issues/1233
|
||||||
|
|
||||||
## The generated Typescript doesn''t have the correct types
|
## The generated Typescript doesn't have the correct types
|
||||||
|
|
||||||
Sometimes the generated Typescript doesn''t have the correct types. To mitigate this,
|
Sometimes the generated Typescript doesn''t have the correct types. To mitigate this,
|
||||||
it is possible to specify what types should be generated using the `ts_type` struct tag. For
|
it is possible to specify what types should be generated using the `ts_type` struct tag. For
|
||||||
|
Loading…
Reference in New Issue
Block a user