From 6ea0b836be67167d50c5491fd8a38f5e86019614 Mon Sep 17 00:00:00 2001 From: Ramiro Medina Date: Sun, 18 Feb 2024 22:47:43 +0000 Subject: [PATCH] feat: Added Rating Input component --- ui/src/core/templateMap.ts | 6 +- .../core_components/input/CoreRatingInput.vue | 327 ++++++++++++++++++ 2 files changed, 330 insertions(+), 3 deletions(-) create mode 100644 ui/src/core_components/input/CoreRatingInput.vue diff --git a/ui/src/core/templateMap.ts b/ui/src/core/templateMap.ts index f2e288c5d..92af35a5f 100644 --- a/ui/src/core/templateMap.ts +++ b/ui/src/core/templateMap.ts @@ -42,12 +42,11 @@ import CoreVideoPlayer from "../core_components/CoreVideoPlayer.vue"; import CoreChat from "../core_components/CoreChat.vue"; import CoreStep from "../core_components/CoreStep.vue"; import CoreSteps from "../core_components/CoreSteps.vue"; +import CoreRating from "../core_components/input/CoreRatingInput.vue"; import { StreamsyncComponentDefinition } from "../streamsyncTypes"; import { h } from "vue"; - - const templateMap = { root: CoreRoot, page: CorePage, @@ -90,7 +89,8 @@ const templateMap = { videoplayer: CoreVideoPlayer, chat: CoreChat, step: CoreStep, - steps: CoreSteps + steps: CoreSteps, + ratinginput: CoreRating }; if (STREAMSYNC_LIVE_CCT === "yes") { diff --git a/ui/src/core_components/input/CoreRatingInput.vue b/ui/src/core_components/input/CoreRatingInput.vue new file mode 100644 index 000000000..cd6ac009a --- /dev/null +++ b/ui/src/core_components/input/CoreRatingInput.vue @@ -0,0 +1,327 @@ + + + + + + +