From 103a2eda7b039f6ee1fb9ea524c41b0a85fe158e Mon Sep 17 00:00:00 2001 From: emmanuel Date: Sun, 24 Sep 2023 13:20:04 +0000 Subject: [PATCH] CLASSROOMIO-T-90:Implemented the course settings only update order when lesson id changes CLASSROOMIO-T-90: Update banner image on course card CLASSROOMIO-T-90: Fix merge conflicts Merge branch 'main' into CLASSROOMIO-T-90 CLASSROOMIO-T-90:removed unused values and console log in the Course Settings CLASSROOMIO-T-90:removed unused import in the Course Settings CLASSROOMIO-T-90:fixed bugs in the Course Settings Merge branch 'main' into CLASSROOMIO-T-90 CLASSROOMIO-T-90:Implemented the Course Settings CLASSROOMIO-T-90:Worked on the course settings Merge branch 'main' into CLASSROOMIO-T-90 CLASSROOMIO-T-90:Fixed the landing page issue CLASSROOMIO-T-146:Made updates to the code following the reviews CLASSROOMIO-T-146:Made updates to the Z-Index Merge branch 'main' into CLASSROOMIO-T-146 Merge branch 'main' into CLASSROOMIO-T-146 CLASSROOMIO-T-146:Made the course page responsive CLASSROOMIO-T-146:working on the course page responsiveness Merge branch 'main' into CLASSROOMIO-T-145 CLASSROOMIO-T-146:Making the course page responsive CLASSROOMIO-T-145: All done and ready CLASSROOMIO-T-145: All done and ready CLASSROOMIO-T-145: Fixed the Z-index issue Merge branch 'main' into CLASSROOMIO-T-145 CLASSROOMIO-T-145: Finished implementing the responsive design for the Main dashboard and LMS dashboard Merge branch 'main' into CLASSROOMIO-T-145 CLASSROOMIO-T-144:Updating the dashboard responsiveness ooth for LMS and the Main dashboard CLASSROOMIO-T-144:Updated the dashboard responsiveness ooth for LMS and the Main dashboard Merge branch 'main' into CLASSROOMIO-T-145 CLASSROOMIO-T-145:Made the LMS dashboard responsive Co-authored-by: Ifeanyi Nwosu Co-authored-by: Rotimi Best Merge-request: CLASSROOMIO-MR-76 Merged-by: Best Admin --- src/lib/components/Apps/index.svelte | 34 +- .../Materials/components/ComponentNote.svelte | 22 + .../components/ComponentSlide.svelte | 17 + .../components/ComponentVideo.svelte | 72 ++++ .../components/Lesson/Materials/constants.js | 19 +- .../components/Lesson/Materials/index.svelte | 113 ++--- .../components/Navigation/NavIcons.svelte | 3 + .../Course/components/Navigation/index.svelte | 23 +- .../components/Settings/DragAndDrop.svelte | 40 ++ .../Course/components/Settings/index.svelte | 388 ++++++++++++++---- .../Course/components/Settings/store.js | 13 +- src/lib/components/Course/store.ts | 9 +- .../components/CourseContainer/index.svelte | 6 +- .../components/Editor/index.svelte | 4 +- .../components/PricingSection.svelte | 6 +- .../components/CourseLandingPage/index.svelte | 16 +- .../Courses/components/Card/index.svelte | 9 +- src/lib/components/Courses/index.svelte | 11 +- src/lib/components/Navigation/app.svelte | 1 - src/lib/components/PageBody/index.svelte | 3 +- src/lib/components/Tabs/index.svelte | 1 + src/lib/utils/functions/isObject.ts | 3 + src/lib/utils/types/index.ts | 8 + src/routes/course/[slug]/+page.svelte | 1 + .../courses/[id]/landingpage/+page.svelte | 4 +- .../lessons/[...lessonParams]/+page.svelte | 25 +- src/routes/courses/[id]/settings/+page.js | 5 + src/routes/courses/[id]/settings/+page.svelte | 27 ++ src/routes/org/[slug]/+page.svelte | 9 +- 29 files changed, 675 insertions(+), 217 deletions(-) create mode 100644 src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte create mode 100644 src/lib/components/Course/components/Lesson/Materials/components/ComponentSlide.svelte create mode 100644 src/lib/components/Course/components/Lesson/Materials/components/ComponentVideo.svelte create mode 100644 src/lib/components/Course/components/Settings/DragAndDrop.svelte create mode 100644 src/lib/utils/functions/isObject.ts create mode 100644 src/routes/courses/[id]/settings/+page.js create mode 100644 src/routes/courses/[id]/settings/+page.svelte diff --git a/src/lib/components/Apps/index.svelte b/src/lib/components/Apps/index.svelte index e3575f65..287327c3 100644 --- a/src/lib/components/Apps/index.svelte +++ b/src/lib/components/Apps/index.svelte @@ -14,7 +14,6 @@ import Notes from './components/Notes/index.svelte'; import Poll from './components/Poll/index.svelte'; import APPS_CONSTANTS from './constants'; - import { OverflowMenu, OverflowMenuItem } from 'carbon-components-svelte'; let selectedApp; @@ -28,8 +27,8 @@ } else { selectedApp = appName; } + $apps.dropdown = false; } - onMount(() => { hotkeys('A+1,A+2,A+3,A+4', function (event, handler) { event.preventDefault(); @@ -146,7 +145,7 @@ } } - @media screen and (max-width: 1024px) { + @media screen and (max-width: 1023px) { .root { position: absolute; height: calc(100vh - 109px); @@ -166,4 +165,33 @@ transition: all 0.2s ease-in-out; } } + + @media screen and (min-width: 1024px) { + .root { + height: calc(100vh - 48px); + position: sticky; + top: 0; + border-left: 1px solid var(--border-color); + display: flex; + flex-direction: row; + z-index: 1; + + & .apps { + padding-top: 20px; + display: flex; + flex-direction: column; + align-items: center; + width: 60px; + border-right: 1px solid var(--border-color); + height: 100%; + } + + & .app { + width: 400px; + transition: all 1s ease-out; + position: relative; + overflow: auto; + } + } + } diff --git a/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte b/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte new file mode 100644 index 00000000..c09b4907 --- /dev/null +++ b/src/lib/components/Course/components/Lesson/Materials/components/ComponentNote.svelte @@ -0,0 +1,22 @@ + + +{#if !isNoteEmpty($lesson.materials?.note)} +
+ {@html $lesson.materials.note} +
+{/if} diff --git a/src/lib/components/Course/components/Lesson/Materials/components/ComponentSlide.svelte b/src/lib/components/Course/components/Lesson/Materials/components/ComponentSlide.svelte new file mode 100644 index 00000000..58df5718 --- /dev/null +++ b/src/lib/components/Course/components/Lesson/Materials/components/ComponentSlide.svelte @@ -0,0 +1,17 @@ + + +{#if $lesson.materials.slide_url} +