From 46dd3d65a0d171baf1e4c65300df95a05fa266df Mon Sep 17 00:00:00 2001 From: HAM!DREZA Date: Sun, 23 Jun 2024 11:23:05 +0330 Subject: [PATCH] Completion of APIs except for user progress --- components/about-us/Information.vue | 13 +- components/home-page/Information.vue | 11 +- components/product-page/Attended-course.vue | 200 +++++++++----- .../course-details/Course-information.vue | 9 +- .../product-page/course-details/Headlines.vue | 10 +- layouts/default.vue | 9 +- layouts/profile.vue | 9 +- pages/[product]/index.vue | 68 +++-- pages/account/[product]/index.vue | 244 ------------------ pages/account/index.vue | 23 +- pages/account/profile.vue | 72 ++++-- pages/account/wallet.vue | 6 +- server/api/comments/courseHeadlineReply.js | 22 ++ server/api/comments/sendcomment.js | 4 +- server/api/settings.js | 16 ++ server/api/uploader.js | 49 ++-- server/api/user/update.js | 2 +- 17 files changed, 356 insertions(+), 411 deletions(-) delete mode 100644 pages/account/[product]/index.vue create mode 100644 server/api/comments/courseHeadlineReply.js create mode 100644 server/api/settings.js diff --git a/components/about-us/Information.vue b/components/about-us/Information.vue index d13d6db..3df0346 100644 --- a/components/about-us/Information.vue +++ b/components/about-us/Information.vue @@ -3,21 +3,24 @@ class="flex flex-col md:flex-row justify-between items-center py-[10vw] md:py-0 absolute top-[140vw] md:top-[54.3vw] w-full z-[3] border-y h-[133.846vw] md:h-[9.115vw] text-[#383E43] px-[10vw]" >
-

280

+

{{info.data.value.expertise}}

حوزه تخصصی

-

2,200,000

+

{{ numberFormat(info.data.value.student) }}

دانشجو

-

8,100

+

{{ numberFormat(info.data.value.title) }}

عنوان آموزشی

-

27,000

+

{{ numberFormat(info.data.value.hours) }}

ساعت آموزش

- \ No newline at end of file + + \ No newline at end of file diff --git a/components/home-page/Information.vue b/components/home-page/Information.vue index 5ec6b02..d30ae2d 100644 --- a/components/home-page/Information.vue +++ b/components/home-page/Information.vue @@ -41,7 +41,7 @@
-

+2000

+

{{info.data.value.student}} +

دانشجو

@@ -78,7 +78,7 @@
-

375

+

{{info.data.value.title}}

ویدئوی آموزشی

@@ -120,4 +120,9 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/components/product-page/Attended-course.vue b/components/product-page/Attended-course.vue index 45a9bf4..b284fd3 100644 --- a/components/product-page/Attended-course.vue +++ b/components/product-page/Attended-course.vue @@ -235,28 +235,13 @@ - - - - - - - - - - - - - - - - - - -
+ +
- پرسش و پاسخ + پرسش و پاسخ
-
+
+ profile + + profile + +
+

+ {{ item.user.name ? item.user.name : "کاربر مهمان" }} +

+
+

+ {{ jDate(item.createdAt) }} +

+

+ {{ item.text }} +

+
+
+ + + + + +
+
-
-

علی مصلحی

-

پرسش جدید

+ +
+

+ {{ authUser?.name ? authUser.name : "کاربر مهمان" }} +

+

+ پرسش جدید +

+ {{replyId}}
-
+
- - - - - - - - - - - - - - - - - - - - - - -
@@ -338,7 +380,7 @@
+