diff --git a/entry/src/main/ets/common/utils/CameraCheck.ets b/entry/src/main/ets/common/utils/CameraCheck.ets index 30324ff88399ee771952a70398b2ccf9407ebac7..b0482ef350e82f06254e467a90947ab6b4db74c7 100644 --- a/entry/src/main/ets/common/utils/CameraCheck.ets +++ b/entry/src/main/ets/common/utils/CameraCheck.ets @@ -52,7 +52,7 @@ export function previewProfileCameraCheck(cameraManager: camera.CameraManager, let previewProfilesArray: Array = profiles.previewProfiles; if (!previewProfilesArray) { - Logger.error(TAG, "createOutput previewProfilesArray == null || undefined"); + Logger.error(TAG, 'createOutput previewProfilesArray == null || undefined'); return; } diff --git a/entry/src/main/ets/common/utils/FileUtil.ets b/entry/src/main/ets/common/utils/FileUtil.ets index d4a17d35461b71ac0fcdf93a7e2fe8e5abea0886..c0526820d7b4bc2e585d1ea177d0cfd01e36cd23 100644 --- a/entry/src/main/ets/common/utils/FileUtil.ets +++ b/entry/src/main/ets/common/utils/FileUtil.ets @@ -71,8 +71,8 @@ export struct SaveFileDialog { }.width('100%') Text($r('app.string.saveButtonNote')) - .width($r("app.string.full_width")) - .fontSize($r("app.float.authorized_text_fontsize")) + .width($r('app.string.full_width')) + .fontSize($r('app.float.authorized_text_fontsize')) .margin({ top: $r('app.float.authorized_text_fontsize'), bottom: $r('app.float.authorized_text_fontsize') }) Row() { @@ -80,7 +80,7 @@ export struct SaveFileDialog { .onClick(() => { this.controller?.close(); }) - .width($r("app.string.authorized_button_width")) + .width($r('app.string.authorized_button_width')) Blank() @@ -117,7 +117,7 @@ export struct SaveFileDialog { Logger.error(TAG, 'get outputFd failed!' + JSON.stringify(e)); } }) - .width($r("app.string.authorized_button_width")) + .width($r('app.string.authorized_button_width')) .height($r('app.float.authorized_button_height')) } .justifyContent(FlexAlign.SpaceAround) diff --git a/entry/src/main/ets/common/utils/RecorderUtil.ets b/entry/src/main/ets/common/utils/RecorderUtil.ets index f5ef75768e9665ba3e462d60920e872b0d08d9f5..e7552c2ef949c24cb4af589a39505de70aa9049f 100644 --- a/entry/src/main/ets/common/utils/RecorderUtil.ets +++ b/entry/src/main/ets/common/utils/RecorderUtil.ets @@ -23,7 +23,7 @@ import { BusinessError } from '@kit.BasicServicesKit'; import { fileIo } from '@kit.CoreFileKit'; import { colorSpaceManager } from '@kit.ArkGraphics2D'; -const TAG = "RecorderUtil" +const TAG = 'RecorderUtil' export class RecorderUtil { private hostContext: common.BaseContext; diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 1d95b0559c4ccc42619ed9a1b522e8cd19378982..2dc16fcb41c628550fcbb9670d897ad4db9b5746 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -35,11 +35,11 @@ struct Index { build() { Navigation(this.pageInfos) { - Column({ space: $r("app.float.column_space") }) { - Button($r("app.string.local_scene"), + Column({ space: $r('app.float.column_space') }) { + Button($r('app.string.local_scene'), { stateEffect: true, type: ButtonType.Capsule, buttonStyle: ButtonStyleMode.NORMAL }) .width($r('app.string.button_width')) - .height($r("app.float.set_button_height")) + .height($r('app.float.set_button_height')) .onClick(async () => { let selectedFilePath: string | undefined = undefined try { @@ -55,20 +55,20 @@ struct Index { }); } }) - Button($r("app.string.network_video_scene"), + Button($r('app.string.network_video_scene'), { stateEffect: true, type: ButtonType.Capsule, buttonStyle: ButtonStyleMode.NORMAL }) .width($r('app.string.button_width')) - .height($r("app.float.set_button_height")) + .height($r('app.float.set_button_height')) .onClick(() => { this.pageInfos.pushPath({ name: CommonConstants.NETWORK_VIDEO_PAGE }); }) - Button($r("app.string.recorder_scene"), + Button($r('app.string.recorder_scene'), { stateEffect: true, type: ButtonType.Capsule, buttonStyle: ButtonStyleMode.NORMAL }) .width($r('app.string.button_width')) - .height($r("app.float.set_button_height")) + .height($r('app.float.set_button_height')) .onClick(async () => { let result: PermissionRequestResult = await PermissionUtil.getInstance() @@ -93,6 +93,6 @@ struct Index { .padding({ bottom: $r('app.float.set_button_margin_right') }) } .title($r('app.string.EntryAbility_label')) - .backgroundColor($r("app.string.background_color")) + .backgroundColor($r('app.string.background_color')) } } \ No newline at end of file diff --git a/entry/src/main/ets/pages/NetworkVideo.ets b/entry/src/main/ets/pages/NetworkVideo.ets index 843ca8892881d531da25aa9e762f62fbc0bc2dd9..76c5a5abfd0c7dc245201ab149d7cc0c337bf593 100644 --- a/entry/src/main/ets/pages/NetworkVideo.ets +++ b/entry/src/main/ets/pages/NetworkVideo.ets @@ -48,17 +48,17 @@ struct NetworkVideo { }) .height(this.heightPx) .width(Const.FULL_SIZE) - .margin({ top: $r("app.float.XComponent_margin") }) + .margin({ top: $r('app.float.XComponent_margin') }) - Column({ space: $r("app.float.column_space") }) { + Column({ space: $r('app.float.column_space') }) { Column() { Text($r('app.string.current_show_video_uri')).fontWeight(FontWeight.Bold) Blank().height($r('app.float.blank_height')); Text(CommonConstants.VIDEO_URI) }.alignItems(HorizontalAlign.Start) .padding({ - left: $r("app.float.column_padding"), - right: $r("app.float.column_padding") + left: $r('app.float.column_padding'), + right: $r('app.float.column_padding') }) .width($r('app.string.full_width')) .height($r('app.float.video_uri_show_height')) @@ -77,8 +77,8 @@ struct NetworkVideo { }) } .padding({ - left: $r("app.float.column_padding"), - right: $r("app.float.column_padding") + left: $r('app.float.column_padding'), + right: $r('app.float.column_padding') }) .width($r('app.string.full_width')) .height($r('app.float.index_column_height')) @@ -87,10 +87,10 @@ struct NetworkVideo { .width($r('app.string.full_width')) .height($r('app.string.full_width')) .justifyContent(FlexAlign.End) - .padding({ bottom: $r("app.float.column_padding") }) + .padding({ bottom: $r('app.float.column_padding') }) } .height($r('app.string.full_width')) - .backgroundColor($r("app.string.background_color")) + .backgroundColor($r('app.string.background_color')) .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) .title($r('app.string.network_video_scene')) .onHidden(() => { diff --git a/entry/src/main/ets/pages/PlayerSync.ets b/entry/src/main/ets/pages/PlayerSync.ets index 2bb5d56186b9c767fb812cfa3a75bb63664eec3e..d15c72cf55485241459524f8d4fdad66b4b1ee44 100644 --- a/entry/src/main/ets/pages/PlayerSync.ets +++ b/entry/src/main/ets/pages/PlayerSync.ets @@ -128,7 +128,7 @@ struct PlayerSync { .width(Const.FULL_SIZE) .margin({ top: $r('app.float.XComponent_margin') }) - Column({ space: $r("app.float.column_space") }) { + Column({ space: $r('app.float.column_space') }) { Column() { Button(this.playStatus === PlayStatus.Stopped ? $r('app.string.play') : this.playStatus === PlayStatus.Buffering ? $r('app.string.buffing') : $r('app.string.playing'), @@ -138,7 +138,7 @@ struct PlayerSync { }) .size({ width: $r('app.string.full_width'), - height: $r("app.float.set_button_height") + height: $r('app.float.set_button_height') }) .enabled(this.playStatus === PlayStatus.Stopped) } @@ -156,7 +156,7 @@ struct PlayerSync { }) .size({ width: $r('app.string.full_width'), - height: $r("app.float.set_button_height") + height: $r('app.float.set_button_height') }) .enabled(this.playStatus === PlayStatus.Playing) } @@ -174,7 +174,7 @@ struct PlayerSync { }) .size({ width: $r('app.string.full_width'), - height: $r("app.float.set_button_height") + height: $r('app.float.set_button_height') }) .enabled(this.playStatus === PlayStatus.Playing) } @@ -192,7 +192,7 @@ struct PlayerSync { }) .size({ width: $r('app.string.full_width'), - height: $r("app.float.set_button_height") + height: $r('app.float.set_button_height') }) .enabled(this.playStatus === PlayStatus.Playing) } @@ -210,7 +210,7 @@ struct PlayerSync { .padding({ bottom: $r('app.float.set_button_margin_right') }) } .height($r('app.string.full_height')) - .backgroundColor($r("app.string.background_color")) + .backgroundColor($r('app.string.background_color')) .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) .onHidden(() => { player.stopNative(); diff --git a/entry/src/main/ets/pages/Recorder.ets b/entry/src/main/ets/pages/Recorder.ets index 9b2d88bbe88ad12e41c9b9057653c8f1b50eb233..32d1693999c303041e14d6cdf5f2553b2ec2ec42 100644 --- a/entry/src/main/ets/pages/Recorder.ets +++ b/entry/src/main/ets/pages/Recorder.ets @@ -134,7 +134,7 @@ struct Recorder { this.isRecorderTimeTextHide = false; this.getRecordTime(); promptAction.openToast({ - message: $r("app.string.start_recording"), + message: $r('app.string.start_recording'), duration: 500, }).catch(() => { }) @@ -205,8 +205,8 @@ struct Recorder { .height($r('app.string.full_height')) } .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) - .title($r("app.string.recorder_scene")) - .backgroundColor($r("app.string.background_color")) + .title($r('app.string.recorder_scene')) + .backgroundColor($r('app.string.background_color')) .onHidden(() => { if (this.buttonEnabled) { this.stopRecord();