diff --git a/ArkUI/entry/src/main/ets/entryability/EntryAbilityLockDevice.ets b/ArkUI/entry/src/main/ets/entryability/EntryAbilityLockDevice.ets index 0f901d4a6a354a12435a8caf36fcb56c1bd29115..e89d35d5926025cb0455e4d3a50e27a786340a53 100644 --- a/ArkUI/entry/src/main/ets/entryability/EntryAbilityLockDevice.ets +++ b/ArkUI/entry/src/main/ets/entryability/EntryAbilityLockDevice.ets @@ -36,7 +36,7 @@ export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage: window.WindowStage): void { // [Start entry_ability_lock_device] - //1.Get the window instance object, use the creatWindow method to create a new window, and use the findWindow method to obtain an existing window + //1.Get the window instance object, use the createWindow method to create a new window, and use the findWindow method to obtain an existing window let windowClass: window.Window | undefined = undefined; let config: window.Configuration = { name: "alertWindow", diff --git a/ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets b/ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets index c2cc20f12f80c7bf15b76eefb15614ae97fee3a4..a14aeff70d18ab25df33ed2163e6d3b4000d69ea 100644 --- a/ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets +++ b/ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets @@ -21,14 +21,14 @@ @Entry @Component struct ImageExample1 { - private_resource1: Resource = $r('app.media.icon'); - @State image_src: Resource = this.private_resource1; + privateResource1: Resource = $r('app.media.icon'); + @State imageSrc: Resource = this.privateResource1; build() { Column() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Start }) { Row({ space: 5 }) { - Image(this.image_src) + Image(this.imageSrc) .linearGradientBlur(60, { fractionStops: [[0, 0], [0, 0.33], [1, 0.66], [1, 1]], direction: GradientDirection.Bottom diff --git a/ArkUI/entry/src/main/ets/pages/attributeModifier.ets b/ArkUI/entry/src/main/ets/pages/attributeModifier.ets index 3cda9bb1d5a62548ca4508b8d062d5410d32842e..89bc6b4d1aa19c95d76076bb53c2fcfb43c5879d 100644 --- a/ArkUI/entry/src/main/ets/pages/attributeModifier.ets +++ b/ArkUI/entry/src/main/ets/pages/attributeModifier.ets @@ -41,7 +41,7 @@ export class CommodityText implements AttributeModifier { instance.fontWeight(FontWeight.Bold); instance.fontColor(Color.Blue); instance.width(200); - } else if (this.textType === TextType.TYPE_Three) { + } else if (this.textType === TextType.TYPE_THREE) { instance.fontColor(Color.Gray); instance.fontSize(this.textSize); instance.fontWeight(FontWeight.Normal); @@ -61,7 +61,7 @@ export class CommodityText implements AttributeModifier { export enum TextType { TYPE_ONE, TYPE_TWO, - TYPE_Three, + TYPE_THREE, TYPE_FOUR } // [End implement_cross_file_style_reuse_one] \ No newline at end of file diff --git a/ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html b/ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html index 075953636c589db60fe7792cb7192ee4c94d7756..dc6787a7396bed318cdc7ecfe55298cbdecf308b 100644 --- a/ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html +++ b/ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html @@ -25,7 +25,7 @@ -页面一:”Hello world! +页面一:Hello world!
点击跳转 diff --git a/ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html b/ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html index 567018d58ef4252cf6f3e0eaf4eb78c4ab419c37..5ab89bf3e8f805cd9f774e0c9265882b7312ccca 100644 --- a/ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html +++ b/ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html @@ -25,7 +25,7 @@ -页面一:”Hello world! +页面一:Hello world!
点击跳转 diff --git a/ArkWebKit/entry/src/main/resources/rawfile/index.html b/ArkWebKit/entry/src/main/resources/rawfile/index.html index 3638123360790266e6647a528dd30d2c36e663a6..5e3eee7270bdb179b283ccafe77d6265ebbd6052 100644 --- a/ArkWebKit/entry/src/main/resources/rawfile/index.html +++ b/ArkWebKit/entry/src/main/resources/rawfile/index.html @@ -12,5 +12,4 @@ - // [End GetRawfileHtml2] \ No newline at end of file diff --git a/CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets b/CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets index 1cffe04e1c55716d1a864b675c59f75ef4c76135..7088eb6f89253a23b7ae388a12eeb764b5a5703a 100644 --- a/CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets +++ b/CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets @@ -67,8 +67,8 @@ class AvoidDistortion { surfaceWidth: this.xComponentWidth, surfaceHeight: this.xComponentHeight }); - // Create a preview output stream, where the parameter surfaceId refers to the XCompoonent component mentioned earlier, - // and the preview stream is the surface provided by the XCompoonent component + // Create a preview output stream, where the parameter surfaceId refers to the XComponent component mentioned earlier, + // and the preview stream is the surface provided by the XComponent component try { previewOutput = cameraManager.createPreviewOutput(previewProfilesArray[position],surfaceId); } catch (error) { diff --git a/CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets b/CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets index 0a3fc200c70c606b509f2ab8f5074d504526ef28..c7b693c9d21263cb2f491a7776c3ffa6b5e2d1ad 100644 --- a/CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets +++ b/CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets @@ -44,12 +44,12 @@ struct GetFrontCameraImage { let cameraInput = cameraManager.createCameraInput(camera.CameraPosition.CAMERA_POSITION_FRONT, camera.CameraType.CAMERA_TYPE_DEFAULT); await cameraInput.open(); - // 3、Retrieve the physical camera information and query the output formats supported by the preview stream of the camera. Create a preview output channel by combining it with the surfeId provided by XCompoonent + // 3、Retrieve the physical camera information and query the output formats supported by the preview stream of the camera. Create a preview output channel by combining it with the surfaceId provided by XComponent let outputCapability = cameraManager.getSupportedOutputCapability(cameraDevice, camera.SceneMode.NORMAL_PHOTO); let previewProfile = outputCapability.previewProfiles[0]; let surfaceId = this.xComponentController.getXComponentSurfaceId(); let previewOutput = cameraManager.createPreviewOutput(previewProfile, surfaceId); - // 4、Create a camera session, add the camera input stream and preview output stream in the session, then start the session, and the preview image will be displayed on the XCompoonent component. + // 4、Create a camera session, add the camera input stream and preview output stream in the session, then start the session, and the preview image will be displayed on the XComponent component. let captureSession = cameraManager.createSession(camera.SceneMode.NORMAL_PHOTO); captureSession.beginConfig(); captureSession.addInput(cameraInput); diff --git a/CameraKit/entry/src/main/ets/pages/GetSurface.ets b/CameraKit/entry/src/main/ets/pages/GetSurface.ets index a343a9be2281425f54d94dc239ca769368591915..141f0df865f402051ae403c33b6957a88736a027 100644 --- a/CameraKit/entry/src/main/ets/pages/GetSurface.ets +++ b/CameraKit/entry/src/main/ets/pages/GetSurface.ets @@ -49,7 +49,7 @@ struct XComponentPage { build() { Flex() { - // Create XCompoonent + // Create XComponent XComponent({ id: '', type: 'surface', diff --git a/CompilingAndBuilding/library/src/main/ets/components/index.js b/CompilingAndBuilding/library/src/main/ets/components/index.js index af09e900cc65322b223faae24221facf57a4c7da..b5eb48ab4011e69761eb286fb4a9df464ce7efa8 100644 --- a/CompilingAndBuilding/library/src/main/ets/components/index.js +++ b/CompilingAndBuilding/library/src/main/ets/components/index.js @@ -23,7 +23,6 @@ function sub(a, b) { return a - b } - var allFunction = { sub } -module.exports = allFuntion +module.exports = allFunction // [End subFunction] \ No newline at end of file diff --git a/ImageKit/entry/src/main/ets/pages/CompressedImage.ets b/ImageKit/entry/src/main/ets/pages/CompressedImage.ets index c575711376e5e0b76879c87af6cb3b834c8cdbb4..8cd8920bf67b994891cf4d9ac80ee6be0197e399 100644 --- a/ImageKit/entry/src/main/ets/pages/CompressedImage.ets +++ b/ImageKit/entry/src/main/ets/pages/CompressedImage.ets @@ -151,7 +151,7 @@ async function saveImage(compressedImageData: ArrayBuffer): Promise { diff --git a/NetworkKit/entry/src/main/ets/pages/SetForm.ets b/NetworkKit/entry/src/main/ets/pages/SetForm.ets index 9c6288665fc92f220bfa43e85ad7bc07b5e2b71a..e86a1d80eb8dad79b5e88f039a8cb2e9e6c569f9 100644 --- a/NetworkKit/entry/src/main/ets/pages/SetForm.ets +++ b/NetworkKit/entry/src/main/ets/pages/SetForm.ets @@ -36,7 +36,7 @@ httpRequest.request( 'https:xxx', { method: http.RequestMethod.POST, - // Optional, default is http.RequestMethod.gET//Developers can add header fields according to their own business needs + // Optional, default is http.RequestMethod.GET//Developers can add header fields according to their own business needs header: { 'Content-Type': 'application/x-www-form-urlencoded' }, // This field is used to pass content when using POST requests extraData: data, connectTimeout: 60000, // Optional, default is 60000ms diff --git a/Notificationkit/entry/src/main/ets/entryability/EntryAbility2.ets b/Notificationkit/entry/src/main/ets/entryability/EntryAbility2.ets index b11da8859e81c254ef5167bb12bf1bfc58ea88a4..1197665f72fb30c9e471a147b40ca11a69a33c25 100644 --- a/Notificationkit/entry/src/main/ets/entryability/EntryAbility2.ets +++ b/Notificationkit/entry/src/main/ets/entryability/EntryAbility2.ets @@ -20,7 +20,7 @@ export default class EntryAbility extends UIAbility { } eventFunc(argOne: number, argTwo: number) { - console.log('eventFunc is called, ${argOne}, ${argTwo}'); + console.log(`eventFunc is called, ${argOne}, ${argTwo}`); } } // [End EventHubTransfer] \ No newline at end of file