mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Runtime updates
This commit is contained in:
parent
205a6db9f1
commit
7c7b6ba082
5 changed files with 52 additions and 9 deletions
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
|
|
@ -1,4 +1,8 @@
|
|||
{
|
||||
"go.formatTool": "goimports",
|
||||
"eslint.alwaysShowStatus": true
|
||||
"eslint.alwaysShowStatus": true,
|
||||
"files.associations": {
|
||||
"__locale": "c",
|
||||
"ios": "c"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@wails/runtime",
|
||||
"version": "1.2.4",
|
||||
"version": "1.2.11",
|
||||
"description": "Wails V2 Javascript runtime library",
|
||||
"main": "main.js",
|
||||
"types": "runtime.d.ts",
|
||||
|
|
|
|||
45
v2/internal/runtime/js/runtime/runtime.d.ts
vendored
45
v2/internal/runtime/js/runtime/runtime.d.ts
vendored
|
|
@ -7,13 +7,51 @@ interface Store {
|
|||
update(callback: (currentvalue: any) => any): void;
|
||||
}
|
||||
|
||||
interface Level {
|
||||
interface MacTitleBar {
|
||||
TitleBarAppearsTransparent: boolean; // NSWindow.titleBarAppearsTransparent
|
||||
HideTitle: boolean; // NSWindow.hideTitle
|
||||
HideTitleBar: boolean; // NSWindow.hideTitleBar
|
||||
FullSizeContent: boolean; // Makes the webview portion of the window the full size of the window, even over the titlebar
|
||||
UseToolbar: boolean; // Set true to add a blank toolbar to the window (makes the title bar larger)
|
||||
HideToolbarSeparator: boolean; // Set true to remove the separator between the toolbar and the main content area
|
||||
}
|
||||
|
||||
interface MacAppConfig {
|
||||
TitleBar: MacTitleBar;
|
||||
}
|
||||
interface LinuxAppConfig {
|
||||
}
|
||||
interface WindowsAppConfig {
|
||||
}
|
||||
|
||||
interface AppConfig {
|
||||
Title: string; // Application Title
|
||||
Width: number; // Window Width
|
||||
Height: number; // Window Height
|
||||
DisableResize: boolean; // True if resize is disabled
|
||||
Fullscreen: boolean; // App started in fullscreen
|
||||
MinWidth: number; // Window Minimum Width
|
||||
MinHeight: number; // Window Minimum Height
|
||||
MaxWidth: number; // Window Maximum Width
|
||||
MaxHeight: number; // Window Maximum Height
|
||||
StartHidden: boolean; // Start with window hidden
|
||||
DevTools: boolean; // Enables the window devtools
|
||||
RBGA: number; // The initial window colour. Convert to hex then it'll mean 0xRRGGBBAA
|
||||
Mac?: MacAppConfig; // - Configuration when running on Mac
|
||||
Linux?: LinuxAppConfig; // - Configuration when running on Linux
|
||||
Windows?: WindowsAppConfig; // - Configuration when running on Windows
|
||||
Appearance: string; // The default application appearance. Use the values listed here: https://developer.apple.com/documentation/appkit/nsappearance?language=objc
|
||||
WebviewIsTransparent: number; // Makes the background of the webview content transparent. Use this with the Alpha part of the window colour to make parts of your application transparent.
|
||||
WindowBackgroundIsTranslucent: number; // Makes the transparent parts of the application window translucent. Example: https://en.wikipedia.org/wiki/MacOS_Big_Sur#/media/File:MacOS_Big_Sur_-_Safari_Extensions_category_in_App_Store.jpg
|
||||
LogLevel: number; // The initial log level (lower is more verbose)
|
||||
}
|
||||
interface Level {
|
||||
TRACE: 1,
|
||||
DEBUG: 2,
|
||||
INFO: 3,
|
||||
WARNING: 4,
|
||||
ERROR: 5,
|
||||
};
|
||||
}
|
||||
|
||||
declare const wailsapp__runtime: {
|
||||
Browser: {
|
||||
|
|
@ -39,7 +77,8 @@ declare const wailsapp__runtime: {
|
|||
OnThemeChange(callback: (darkModeEnabled: boolean) => void): void;
|
||||
LogLevel(): Store;
|
||||
Platform(): string;
|
||||
AppType(): string
|
||||
AppType(): string;
|
||||
AppConfig(): AppConfig;
|
||||
};
|
||||
Store: {
|
||||
New(name: string, defaultValue?: any): Store;
|
||||
|
|
|
|||
6
v2/test/kitchensink/frontend/package-lock.json
generated
6
v2/test/kitchensink/frontend/package-lock.json
generated
|
|
@ -135,9 +135,9 @@
|
|||
}
|
||||
},
|
||||
"@wails/runtime": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/@wails/runtime/-/runtime-1.2.2.tgz",
|
||||
"integrity": "sha512-sZlW83ZXldcb4Kbkcl1MZ/iPdSbMQtlCM60b3VcCehwYqR/aM/cKZPLm/HbOwvyRhkv4/Uo6QPlwlB13UUFhSA==",
|
||||
"version": "1.2.11",
|
||||
"resolved": "https://registry.npmjs.org/@wails/runtime/-/runtime-1.2.11.tgz",
|
||||
"integrity": "sha512-IhCsu8bvCb8Vjv3T0Ob+yLFYlpzFwox073LD55khsVJc7/1jB3aMcqt4y7Jnnomn6SUcitImLHpw8bytKsHjLA==",
|
||||
"dev": true
|
||||
},
|
||||
"alphanum-sort": {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
"@rollup/plugin-commonjs": "^11.0.0",
|
||||
"@rollup/plugin-node-resolve": "^7.0.0",
|
||||
"@rollup/plugin-url": "^5.0.1",
|
||||
"@wails/runtime": "^1.2.2",
|
||||
"@wails/runtime": "^1.2.11",
|
||||
"focus-visible": "^5.2.0",
|
||||
"halfmoon": "^1.1.1",
|
||||
"postcss": "^8.1.7",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue