From 2aa05ebe0912dc7e504b258876b1a7ef9e2cb459 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Wed, 24 Jul 2024 07:23:25 +0000 Subject: [PATCH] feat: native video player --- packages/nc-gui/assets/nc-icons/play.svg | 5 + .../components/cell/attachment/Carousel.vue | 100 ++++++++++++------ .../components/cell/attachment/Modal.vue | 6 +- .../components/cell/attachment/Video.vue | 23 ++++ .../components/cell/attachment/index.vue | 12 +-- .../components/cell/attachment/utils.ts | 4 +- .../nc-gui/components/nc/Carousel/Item.vue | 5 +- packages/nc-gui/utils/fileUtils.ts | 27 ++++- packages/nc-gui/utils/iconUtils.ts | 2 + 9 files changed, 133 insertions(+), 51 deletions(-) create mode 100644 packages/nc-gui/assets/nc-icons/play.svg create mode 100644 packages/nc-gui/components/cell/attachment/Video.vue diff --git a/packages/nc-gui/assets/nc-icons/play.svg b/packages/nc-gui/assets/nc-icons/play.svg new file mode 100644 index 0000000000..a0015479fd --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/play.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/packages/nc-gui/components/cell/attachment/Carousel.vue b/packages/nc-gui/components/cell/attachment/Carousel.vue index 0ed3217a37..9ea237a93d 100644 --- a/packages/nc-gui/components/cell/attachment/Carousel.vue +++ b/packages/nc-gui/components/cell/attachment/Carousel.vue @@ -1,52 +1,71 @@