From 874e7b79d976ed0fc4f73c9cb5df0d18c7155f16 Mon Sep 17 00:00:00 2001 From: Wouter van Boesschoten Date: Tue, 21 Nov 2023 18:46:58 +0100 Subject: [PATCH 1/7] Recent change https://github.com/rdkcentral/Lightning/commit/e52364ab423c066851d0003863c94e8c7340f966 introduced /dist/src to enable tree shaking. However since some of the files get transpites from mts the examples can no longer import directly from /src/lightning.mjs. This commit changes all examples to pull from the ./dist/src/ folder instead. --- examples/animation/index.html | 73 +++++++++++++++++++ examples/basic-usage/web-src/basic-usage.html | 2 +- examples/destroy/index.html | 2 +- examples/layout/layout.html | 2 +- examples/mouse-pointer/basic-usage.html | 2 +- examples/mouse-pointer/cursor.html | 2 +- examples/mouse-pointer/hover-tree.html | 2 +- examples/mouse-pointer/scroll.html | 2 +- examples/property-bindings/animations.html | 2 +- examples/property-bindings/basic-usage.html | 2 +- examples/property-bindings/components.html | 2 +- examples/property-bindings/states.html | 2 +- examples/shaders/fade-out/fade-out.html | 2 +- examples/shaders/fast-blur/fast-blur.html | 2 +- examples/shaders/magnifier/magnifier.html | 2 +- .../radial-gradient/radial-gradient.html | 2 +- .../round-rectangle/round-rectangle.html | 2 +- .../spinner-shader-2/spinner-shader-2.html | 2 +- examples/shaders/vignette/vignette.html | 2 +- .../water-reflection/WaterWaveShader.mjs | 2 +- examples/shaders/water-reflection/index.html | 2 +- .../shaders/water-waves/WaterWaveShader.mjs | 2 +- examples/shaders/water-waves/index.html | 2 +- examples/signals/signals.html | 2 +- examples/smooth-scale/smooth-scale.html | 2 +- examples/text/advanced-renderer.html | 2 +- .../texture-compression.html | 2 +- examples/three.js/threejs-as-texture.html | 2 +- examples/three.js/threejs-background.html | 2 +- examples/touch/touch-integration.html | 2 +- 30 files changed, 102 insertions(+), 29 deletions(-) create mode 100644 examples/animation/index.html diff --git a/examples/animation/index.html b/examples/animation/index.html new file mode 100644 index 00000000..1a0af118 --- /dev/null +++ b/examples/animation/index.html @@ -0,0 +1,73 @@ + + + + + + + + + + + + diff --git a/examples/basic-usage/web-src/basic-usage.html b/examples/basic-usage/web-src/basic-usage.html index 1f263132..3ceef17a 100644 --- a/examples/basic-usage/web-src/basic-usage.html +++ b/examples/basic-usage/web-src/basic-usage.html @@ -25,7 +25,7 @@