From 6c3bb3480ea157f6b25052ee8e1143dc74253012 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 4 Dec 2024 17:02:03 +0530 Subject: [PATCH] feat: generate bulk certificates for batch students --- frontend/package.json | 3 +- .../components/Modals/BulkCertificates.vue | 132 + frontend/src/components/SettingDetails.vue | 2 +- frontend/src/pages/Batch.vue | 29 +- frontend/yarn.lock | 1139 ++-- .../lms_certificate/lms_certificate.json | 2 +- yarn.lock | 4726 ----------------- 7 files changed, 742 insertions(+), 5291 deletions(-) create mode 100644 frontend/src/components/Modals/BulkCertificates.vue delete mode 100644 yarn.lock diff --git a/frontend/package.json b/frontend/package.json index d872c1645..0fc71fa32 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -24,12 +24,13 @@ "codemirror-editor-vue3": "^2.8.0", "dayjs": "^1.11.6", "feather-icons": "^4.28.0", - "frappe-ui": "^0.1.72", + "frappe-ui": "^0.1.89", "lucide-vue-next": "^0.383.0", "markdown-it": "^14.0.0", "pinia": "^2.0.33", "socket.io-client": "^4.7.2", "tailwindcss": "^3.3.3", + "typescript": "^5.7.2", "vue": "^3.4.23", "vue-chartjs": "^5.3.0", "vue-draggable-next": "^2.2.1", diff --git a/frontend/src/components/Modals/BulkCertificates.vue b/frontend/src/components/Modals/BulkCertificates.vue new file mode 100644 index 000000000..f816a6862 --- /dev/null +++ b/frontend/src/components/Modals/BulkCertificates.vue @@ -0,0 +1,132 @@ + + diff --git a/frontend/src/components/SettingDetails.vue b/frontend/src/components/SettingDetails.vue index d90b1c4c8..9d4e3c45c 100644 --- a/frontend/src/components/SettingDetails.vue +++ b/frontend/src/components/SettingDetails.vue @@ -59,7 +59,7 @@ const update = () => { {}, { onError(err) { - showToast('Error', err.messages?.[0] || err, 'x') + showToast(__('Error'), err.messages?.[0] || err, 'x') }, } ) diff --git a/frontend/src/pages/Batch.vue b/frontend/src/pages/Batch.vue index 5f1fb2b6f..5c0dc8b54 100644 --- a/frontend/src/pages/Batch.vue +++ b/frontend/src/pages/Batch.vue @@ -4,21 +4,29 @@ class="sticky top-0 z-10 flex items-center justify-between border-b bg-white px-3 py-2.5 sm:px-5" > - +
+ + +