mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3] Add CallByID method to runtime.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
function OpenURL(url) {
|
||||
return wails.Plugin("browser", "OpenURL", url);
|
||||
return wails.CallByID(3188315539, url);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -14,7 +14,7 @@ function OpenURL(url) {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
function OpenFile(filename) {
|
||||
return wails.Plugin("browser", "OpenFile", filename);
|
||||
return wails.CallByID(3105408620, filename);
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @returns {Promise<any>} - The value of the key.
|
||||
*/
|
||||
export function Get(key) {
|
||||
return wails.Plugin("kvstore", "Get", key);
|
||||
return wails.CallByID(3322496224, key);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -18,7 +18,7 @@ export function Get(key) {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
export function Set(key, value) {
|
||||
return wails.Plugin("kvstore", "Set", key, value);
|
||||
return wails.CallByID(1207638860, key, value);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,5 +27,5 @@ export function Set(key, value) {
|
||||
* @returns {Promise<void|Error>}
|
||||
*/
|
||||
export function Save() {
|
||||
return wails.Plugin("kvstore", "Save");
|
||||
return wails.CallByID(1377075201);
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
function Debug(input, ...args) {
|
||||
return wails.Plugin("log", "Debug", input, ...args);
|
||||
return wails.CallByID(4111675027, input, ...args);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -20,7 +20,7 @@ function Debug(input, ...args) {
|
||||
* @returns {Promise<void|Error>}
|
||||
*/
|
||||
function Info(input, ...args) {
|
||||
return wails.Plugin("log", "Info", input, ...args);
|
||||
return wails.CallByID(2391172776, input, ...args);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,7 +30,7 @@ function Info(input, ...args) {
|
||||
* @returns {Promise<void|Error>}
|
||||
*/
|
||||
function Warning(input, ...args) {
|
||||
return wails.Plugin("log", "Warning", input, ...args);
|
||||
return wails.CallByID(2762394760, input, ...args);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,5 +40,5 @@ function Warning(input, ...args) {
|
||||
* @returns {Promise<void|Error>}
|
||||
*/
|
||||
function Error(input, ...args) {
|
||||
return wails.Plugin("log", "Error", input, ...args);
|
||||
return wails.CallByID(878590242, input, ...args);
|
||||
}
|
||||
|
||||
+311
-305
File diff suppressed because it is too large
Load Diff
@@ -4,5 +4,5 @@
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
function Close() {
|
||||
return wails.Plugin("sqlite", "Close");
|
||||
return wails.CallByID(3998329564);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
function Execute(statement, ...args) {
|
||||
return wails.Plugin("sqlite", "Execute", statement, ...args);
|
||||
return wails.CallByID(2804887383, statement, ...args);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -16,5 +16,5 @@ function Execute(statement, ...args) {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
function Select(statement, ...args) {
|
||||
return wails.Plugin("sqlite", "Select", statement, ...args);
|
||||
return wails.CallByID(2209315040, statement, ...args);
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
function Open(filename) {
|
||||
return wails.Plugin("sqlite", "Open", filename);
|
||||
return wails.CallByID(147348976, filename);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user