From 633637a0541b466e488975a95cff2be6e1a5809c Mon Sep 17 00:00:00 2001 From: "@feng-yu4279" Date: Tue, 27 May 2025 17:07:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat=20(=E6=A0=87=E8=AF=86):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20OnlineVideoPlaying=20=E4=BB=93=E5=BA=93=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.idea/.deveco/module/entry.cache.json | 24 +++++++++---------- animation/.idea/.deveco/project.cache.json | 2 +- .../src/main/ets/pages/ImageAnimation.ets | 18 +++++++------- animation/oh-package.json5 | 4 ---- 4 files changed, 21 insertions(+), 27 deletions(-) diff --git a/animation/.idea/.deveco/module/entry.cache.json b/animation/.idea/.deveco/module/entry.cache.json index ca593aa9..49d751d4 100644 --- a/animation/.idea/.deveco/module/entry.cache.json +++ b/animation/.idea/.deveco/module/entry.cache.json @@ -5,18 +5,18 @@ "BuildOptions":{ "SELECT_BUILD_TARGET":"default", "BUILD_PATH":{ - "OUTPUT_METADATA_JSON":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json", - "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\outputs\\default", - "RES_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates\\res\\default", - "ETS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule", - "JS_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates\\loader_out\\default", - "SOURCE_MAP_DIR":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates\\source_map\\default", - "INTERMEDIA_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates", - "RES_PROFILE_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile", - "WORKER_LOADER":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates\\loader\\default\\loader.json", - "MANIFEST_JSON":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates\\manifest\\default", - "JS_LITE_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\intermediates\\loader_out_lite\\default", - "JS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle" + "OUTPUT_METADATA_JSON":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json", + "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\outputs\\default", + "RES_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\res\\default", + "ETS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule", + "JS_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\loader_out\\default", + "SOURCE_MAP_DIR":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\source_map\\default", + "INTERMEDIA_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates", + "RES_PROFILE_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile", + "WORKER_LOADER":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\loader\\default\\loader.json", + "MANIFEST_JSON":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\manifest\\default", + "JS_LITE_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\loader_out_lite\\default", + "JS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle" } } } \ No newline at end of file diff --git a/animation/.idea/.deveco/project.cache.json b/animation/.idea/.deveco/project.cache.json index 889c855c..536b8ad7 100644 --- a/animation/.idea/.deveco/project.cache.json +++ b/animation/.idea/.deveco/project.cache.json @@ -9,7 +9,7 @@ "SELECT_BUILD_PRODUCT":"default", "BUNDLE_NAME":"com.example.animation", "BUILD_PATH":{ - "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\noproject\\BestPracticeSnippets\\animation\\build\\outputs\\default" + "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\build\\outputs\\default" }, "SELECT_BUILD_MODE":"" } diff --git a/animation/entry/src/main/ets/pages/ImageAnimation.ets b/animation/entry/src/main/ets/pages/ImageAnimation.ets index 7e8027ba..cbcb4113 100644 --- a/animation/entry/src/main/ets/pages/ImageAnimation.ets +++ b/animation/entry/src/main/ets/pages/ImageAnimation.ets @@ -1,5 +1,5 @@ // [Start image_animation] -// [Start change_animation] +// [Start component_animation] @Component export struct ImageAnimation { @State imageWidth: number = 60; @@ -28,7 +28,7 @@ export struct ImageAnimation { .translate({ x: this.imageTranslateX, y: this.imageTranslateY }) }.width('33%') // [StartExclude image_animation] - // [StartExclude change_animation] + // [StartExclude component_animation] Row() { Image($r('app.media.startIcon')) .width(this.imageWidth) @@ -57,11 +57,11 @@ export struct ImageAnimation { .translate({ x: this.imageTranslateX, y: this.imageTranslateY }) }.width('33%') // [EndExclude image_animation] - // [EndExclude change_animation] + // [EndExclude component_animation] } .height('25%') + // [StartExclude component_animation] // [StartExclude image_animation] - // [StartExclude change_animation] Row() { Row() { Image($r('app.media.startIcon')) @@ -149,13 +149,13 @@ export struct ImageAnimation { }) .translate({ x: this.imageTranslateX, y: this.imageTranslateY }) }.width('33%') - // [EndExclude change_animation] // [EndExclude image_animation] } .height('25%') + // [EndExclude component_animation] Column() { - // [StartExclude change_animation] + // [StartExclude component_animation] Button('Change Layout Properties') .width('100%') // Key Attribute Settings @@ -184,8 +184,7 @@ export struct ImageAnimation { } } }) - // [EndExclude change_animation] - // [StartExclude image_animation] + // [EndExclude component_animation] Button('Change Image Properties') .width('100%') .margin({ top: 12 }) @@ -213,7 +212,6 @@ export struct ImageAnimation { } } }) - // [EndExclude image_animation] } .justifyContent(FlexAlign.End) .height('25%') @@ -229,4 +227,4 @@ export struct ImageAnimation { } } // [End image_animation] -// [End change_animation] \ No newline at end of file +// [End component_animation] \ No newline at end of file diff --git a/animation/oh-package.json5 b/animation/oh-package.json5 index 55a89782..9286e9d8 100644 --- a/animation/oh-package.json5 +++ b/animation/oh-package.json5 @@ -3,8 +3,4 @@ "description": "Please describe the basic information.", "dependencies": { }, - "devDependencies": { - "@ohos/hypium": "1.0.21", - "@ohos/hamock": "1.0.1-rc2" - } } -- Gitee From a150d80dbd07834c3660a4018807d1d2792ddf78 Mon Sep 17 00:00:00 2001 From: "@feng-yu4279" Date: Tue, 27 May 2025 17:10:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat=20(=E6=A0=87=E8=AF=86):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20OnlineVideoPlaying=20=E4=BB=93=E5=BA=93=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- animation/.idea/.deveco/module/entry.cache.json | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/animation/.idea/.deveco/module/entry.cache.json b/animation/.idea/.deveco/module/entry.cache.json index 49d751d4..2dfd35ed 100644 --- a/animation/.idea/.deveco/module/entry.cache.json +++ b/animation/.idea/.deveco/module/entry.cache.json @@ -5,18 +5,6 @@ "BuildOptions":{ "SELECT_BUILD_TARGET":"default", "BUILD_PATH":{ - "OUTPUT_METADATA_JSON":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json", - "OUTPUT_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\outputs\\default", - "RES_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\res\\default", - "ETS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule", - "JS_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\loader_out\\default", - "SOURCE_MAP_DIR":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\source_map\\default", - "INTERMEDIA_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates", - "RES_PROFILE_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile", - "WORKER_LOADER":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\loader\\default\\loader.json", - "MANIFEST_JSON":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\manifest\\default", - "JS_LITE_ASSETS_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\intermediates\\loader_out_lite\\default", - "JS_SUPER_VISUAL_PATH":"C:\\Users\\fy\\Desktop\\5.26new\\BestPracticeSnippets_1\\animation\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle" } } } \ No newline at end of file -- Gitee