From 69d266e01867ed738afc060a650a975a030f7318 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 19 Jul 2024 11:55:36 +0530 Subject: [PATCH] feat: image pasting --- frontend/package.json | 2 +- frontend/src/components/BatchCard.vue | 23 ++++--- frontend/src/pages/CreateLesson.vue | 7 ++- frontend/src/utils/image.js | 64 ++++++++++++++++++++ frontend/src/utils/index.js | 10 +-- frontend/yarn.lock | 12 ++++ lms/lms/doctype/lms_batch/lms_batch.json | 5 +- lms/lms/doctype/lms_batch/lms_batch.py | 1 + lms/templates/emails/batch_confirmation.html | 3 +- 9 files changed, 106 insertions(+), 21 deletions(-) create mode 100644 frontend/src/utils/image.js diff --git a/frontend/package.json b/frontend/package.json index 82258fe4..7935452a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,10 +14,10 @@ "@editorjs/editorjs": "^2.29.0", "@editorjs/embed": "^2.7.0", "@editorjs/header": "^2.8.1", - "@editorjs/image": "^2.9.2", "@editorjs/inline-code": "^1.5.0", "@editorjs/nested-list": "^1.4.2", "@editorjs/paragraph": "^2.11.3", + "@editorjs/simple-image": "^1.6.0", "chart.js": "^4.4.1", "dayjs": "^1.11.6", "feather-icons": "^4.28.0", diff --git a/frontend/src/components/BatchCard.vue b/frontend/src/components/BatchCard.vue index 84697c51..734950c7 100644 --- a/frontend/src/components/BatchCard.vue +++ b/frontend/src/components/BatchCard.vue @@ -3,6 +3,9 @@ class="flex flex-col shadow hover:bg-gray-100 rounded-md p-4 h-full" style="min-height: 150px" > +
+ {{ batch.title }} +
{{ __('Sold Out') }} -
- {{ batch.title }} -
{{ batch.description }}
@@ -29,23 +29,26 @@
{{ batch.price }}
-
- + -
+
{{ formatTime(batch.start_time) }} - {{ formatTime(batch.end_time) }}
-
- +
+ {{ batch.timezone }} diff --git a/frontend/src/pages/CreateLesson.vue b/frontend/src/pages/CreateLesson.vue index 7e7a47e3..cdd9703a 100644 --- a/frontend/src/pages/CreateLesson.vue +++ b/frontend/src/pages/CreateLesson.vue @@ -43,7 +43,7 @@
@@ -54,7 +54,7 @@
@@ -439,7 +439,8 @@ const pageMeta = computed(() => { updateDocumentTitle(pageMeta)