feat: add LAN access configuration for desktop app, allowing users to enable public API access with corresponding UI updates and translations
This commit is contained in:
+8
@@ -3,6 +3,14 @@
|
||||
|
||||
export function GetAPIBaseURL():Promise<string>;
|
||||
|
||||
export function GetAPILanBaseURL():Promise<string>;
|
||||
|
||||
export function GetDesktopHTTPBindPublicSetting():Promise<boolean>;
|
||||
|
||||
export function GetDesktopHTTPPortSetting():Promise<number>;
|
||||
|
||||
export function GetDesktopListenPublicActive():Promise<boolean>;
|
||||
|
||||
export function SetDesktopHTTPBindPublicSetting(arg1:boolean):Promise<void>;
|
||||
|
||||
export function SetDesktopHTTPPortSetting(arg1:number):Promise<void>;
|
||||
|
||||
@@ -6,10 +6,26 @@ export function GetAPIBaseURL() {
|
||||
return window['go']['main']['App']['GetAPIBaseURL']();
|
||||
}
|
||||
|
||||
export function GetAPILanBaseURL() {
|
||||
return window['go']['main']['App']['GetAPILanBaseURL']();
|
||||
}
|
||||
|
||||
export function GetDesktopHTTPBindPublicSetting() {
|
||||
return window['go']['main']['App']['GetDesktopHTTPBindPublicSetting']();
|
||||
}
|
||||
|
||||
export function GetDesktopHTTPPortSetting() {
|
||||
return window['go']['main']['App']['GetDesktopHTTPPortSetting']();
|
||||
}
|
||||
|
||||
export function GetDesktopListenPublicActive() {
|
||||
return window['go']['main']['App']['GetDesktopListenPublicActive']();
|
||||
}
|
||||
|
||||
export function SetDesktopHTTPBindPublicSetting(arg1) {
|
||||
return window['go']['main']['App']['SetDesktopHTTPBindPublicSetting'](arg1);
|
||||
}
|
||||
|
||||
export function SetDesktopHTTPPortSetting(arg1) {
|
||||
return window['go']['main']['App']['SetDesktopHTTPPortSetting'](arg1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user