diff --git a/frontend/package.json b/frontend/package.json index 4a7937b0..93dca331 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -53,10 +53,12 @@ }, "devDependencies": { "@vitejs/plugin-vue": "5.0.3", + "@vitejs/plugin-vue-jsx": "^5.1.2", "autoprefixer": "10.4.2", "postcss": "8.4.5", - "vite": "5.0.11", "tailwindcss": "^3.4.15", + "unplugin-auto-import": "^20.3.0", + "vite": "5.0.11", "vite-plugin-pwa": "0.15.0" }, "resolutions": { diff --git a/frontend/src/components/Modals/EditProfile.vue b/frontend/src/components/Modals/EditProfile.vue index eaf85bd7..64f22348 100644 --- a/frontend/src/components/Modals/EditProfile.vue +++ b/frontend/src/components/Modals/EditProfile.vue @@ -13,13 +13,8 @@ }" > diff --git a/frontend/src/pages/CertifiedParticipants.vue b/frontend/src/pages/CertifiedParticipants.vue index 10230c3c..4e717f48 100644 --- a/frontend/src/pages/CertifiedParticipants.vue +++ b/frontend/src/pages/CertifiedParticipants.vue @@ -50,12 +50,8 @@ class="flex sm:rounded px-3 py-2 sm:h-15 hover:bg-surface-gray-2" >
- + +
@@ -115,6 +111,7 @@ import { computed, inject, onMounted, ref } from 'vue' import { GraduationCap } from 'lucide-vue-next' import { sessionStore } from '../stores/session' import EmptyState from '@/components/EmptyState.vue' +import UserAvatar from '@/components/UserAvatar.vue' const currentCategory = ref('') const filters = ref({}) @@ -156,6 +153,7 @@ const categories = createListResource({ }) const updateParticipants = () => { + console.log('updating participants') updateFilters() getMemberCount() setQueryParams() @@ -167,6 +165,7 @@ const updateParticipants = () => { } const updateFilters = () => { + console.log(currentCategory.value) if (currentCategory.value) { filters.value.category = currentCategory.value } else { diff --git a/frontend/src/pages/Lesson.vue b/frontend/src/pages/Lesson.vue index 23e0249a..1322f156 100644 --- a/frontend/src/pages/Lesson.vue +++ b/frontend/src/pages/Lesson.vue @@ -342,6 +342,7 @@ import { TabButtons, Tooltip, usePageMeta, + toast, } from 'frappe-ui' import { computed, @@ -798,6 +799,10 @@ const enrollStudent = () => { onSuccess() { window.location.reload() }, + onError(err) { + toast.error(__(err.messages?.[0] || err)) + console.error(err) + }, } ) } diff --git a/frontend/src/pages/Profile.vue b/frontend/src/pages/Profile.vue index 346bf021..956f8c8c 100644 --- a/frontend/src/pages/Profile.vue +++ b/frontend/src/pages/Profile.vue @@ -50,24 +50,51 @@
- - +
+ + +
+
+ +
+
+
+
-
-

+
+

{{ profile.data.full_name }}

-
+
{{ profile.data.headline }}
+
+ + + +
-
+
{ }) } +const navigateTo = (url) => { + window.open(url, '_blank') +} + const breadcrumbs = computed(() => { let crumbs = [ { diff --git a/frontend/src/pages/ProfileAbout.vue b/frontend/src/pages/ProfileAbout.vue index 47477d38..f6497645 100644 --- a/frontend/src/pages/ProfileAbout.vue +++ b/frontend/src/pages/ProfileAbout.vue @@ -56,11 +56,13 @@