From 3e3eac8aa84796e9678466de160ed7aec761c4b5 Mon Sep 17 00:00:00 2001 From: Shubham Kukreti <57281769+KukretiShubham@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:44:26 +0530 Subject: [PATCH 01/13] add: mp4box based videoFetch.vue --- package.json | 3 +- src/ui/components/Checkout/Checkout.vue | 9 +- src/ui/components/Checkout/Result.vue | 13 +- src/ui/vue/VideoFetch.vue | 228 ++++++++++++++++++++++++ yarn.lock | 8 + 5 files changed, 248 insertions(+), 13 deletions(-) create mode 100644 src/ui/vue/VideoFetch.vue diff --git a/package.json b/package.json index 88308ee3d..7a60172b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devprotocol/clubs-core", - "version": "3.22.9", + "version": "3.22.10", "description": "Core library for Clubs", "main": "dist/index.mjs", "exports": { @@ -106,6 +106,7 @@ "js-base64": "^3.7.2", "lit": "^3.0.0", "marked": "^10.0.0", + "mp4box": "^0.5.3", "p-queue": "^8.0.1", "ramda": "^0.30.0", "rxjs": "^7.8.1", diff --git a/src/ui/components/Checkout/Checkout.vue b/src/ui/components/Checkout/Checkout.vue index 9ff1e7d77..15ad06404 100644 --- a/src/ui/components/Checkout/Checkout.vue +++ b/src/ui/components/Checkout/Checkout.vue @@ -41,6 +41,7 @@ import { fetchProfile } from '../../../profile' import IconSpinner from '../../vue/IconSpinner.vue' import IconInfo from '../../vue/IconInfo.vue' import IconCheckCircle from '../../vue/IconCheckCircle.vue' +import VideoFetch from '../../vue/VideoFetch.vue' import IconBouncingArrowRight from '../../vue/IconBouncingArrowRight.vue' let providerPool: UndefinedOr @@ -566,10 +567,10 @@ onUnmounted(() => { v-if="!previewImageSrc && previewVideoSrc" class="w-36 rounded-lg border border-black/20 bg-black/10 p-1" > - + { class="h-auto w-full rounded object-cover object-center sm:h-full sm:w-full" /> - + :url="videoSrc" + :videoClass="`w-full rounded`" + />

diff --git a/src/ui/vue/VideoFetch.vue b/src/ui/vue/VideoFetch.vue new file mode 100644 index 000000000..91c0f4ac2 --- /dev/null +++ b/src/ui/vue/VideoFetch.vue @@ -0,0 +1,228 @@ + + + \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index a9c0b0d9c..d68aa068e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -825,6 +825,7 @@ __metadata: jsdom: "npm:^25.0.0" lit: "npm:^3.0.0" marked: "npm:^10.0.0" + mp4box: "npm:^0.5.3" npm-run-all2: "npm:7.0.1" open-cli: "npm:^8.0.0" p-queue: "npm:^8.0.1" @@ -7196,6 +7197,13 @@ __metadata: languageName: node linkType: hard +"mp4box@npm:^0.5.3": + version: 0.5.3 + resolution: "mp4box@npm:0.5.3" + checksum: 10c0/901d39813b3ea792bce34b7c111013304de4ea14376d4e42f70a96659e94a4eb00f22923619d045c96c6d27336f107456f00b2bfb05db015b872c7db0aecf53f + languageName: node + linkType: hard + "mri@npm:^1.1.0": version: 1.2.0 resolution: "mri@npm:1.2.0" From 68ade410b84e7e3a1cad572b39ae21f7b6df4394 Mon Sep 17 00:00:00 2001 From: Shubham Kukreti <57281769+KukretiShubham@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:44:55 +0530 Subject: [PATCH 02/13] lint --- src/ui/components/Checkout/Checkout.vue | 16 +- src/ui/components/Checkout/ModalCheckout.vue | 20 +- src/ui/vue/VideoFetch.vue | 354 +++++++++---------- 3 files changed, 195 insertions(+), 195 deletions(-) diff --git a/src/ui/components/Checkout/Checkout.vue b/src/ui/components/Checkout/Checkout.vue index 15ad06404..5f0f01d6e 100644 --- a/src/ui/components/Checkout/Checkout.vue +++ b/src/ui/components/Checkout/Checkout.vue @@ -568,8 +568,8 @@ onUnmounted(() => { class="w-36 rounded-lg border border-black/20 bg-black/10 p-1" > @@ -618,12 +618,12 @@ onUnmounted(() => { }}