diff --git a/src/common/ClientConnection.ts b/src/common/ClientConnection.ts index 5ba6cc6..4bbe8c4 100644 --- a/src/common/ClientConnection.ts +++ b/src/common/ClientConnection.ts @@ -594,6 +594,43 @@ export default class ClientConnection { } } + public async setSystemNetwork( + request: Protocol.SetSystemNetworkRequestEntity + ) { + try { + return await this.doRpc(request); + } catch (e) { + console.error(e); + } + } + public async setSystemGraphics( + request: Protocol.SetSystemGraphicsRequestEntity + ) { + try { + return await this.doRpc( + request + ); + } catch (e) { + console.error(e); + } + } + public async setSystemOther(request: Protocol.SetSystemOtherRequestEntity) { + try { + return await this.doRpc(request); + } catch (e) { + console.error(e); + } + } + public async getSupportResolutions() { + try { + return await this.doRpc( + new Protocol.GetSupportResolutionsRequestEntity(0) + ); + } catch (e) { + console.error(e); + } + } + public restartDevice() { this.ws?.send(JSON.stringify(new Protocol.RestartDeviceRequestEntity())); } diff --git a/src/common/GlobalData.ts b/src/common/GlobalData.ts index 1316af2..2e9fe29 100644 --- a/src/common/GlobalData.ts +++ b/src/common/GlobalData.ts @@ -138,6 +138,10 @@ export default class GlobalData { } } + public getCurrentClientName() { + return this._current_client_name; + } + public setCurrentClientName(name: string) { this._current_client_name = name; } diff --git a/src/common/Initializer.ts b/src/common/Initializer.ts index 5567bbd..2812887 100644 --- a/src/common/Initializer.ts +++ b/src/common/Initializer.ts @@ -85,6 +85,7 @@ export default class Initializer { global_data.applicationConfig = ( await global_data.getCurrentClient()?.getApplicationSettins() )?.config; + console.log(global_data.applicationConfig); const options = this.options; let $store = options.$store; diff --git a/src/components/SystemSettingDialog.vue b/src/components/SystemSettingDialog.vue index 8e55318..33d911b 100644 --- a/src/components/SystemSettingDialog.vue +++ b/src/components/SystemSettingDialog.vue @@ -146,7 +146,7 @@ (val) => isMacAddress(val) || $t('Please input vaild mac address') + - ' (04:XX:XX:XX:XX:XX)', + ' (XX:XX:XX:XX:XX:XX)', ]" lazy-rules /> @@ -365,11 +365,12 @@