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:
wizardchen
2026-04-11 16:34:40 +08:00
committed by lyingbug
parent d99e2cbac3
commit dfaaa62f14
14 changed files with 421 additions and 558 deletions
+8
View File
@@ -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>;
+16
View File
@@ -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);
}