diff --git a/app/components/common/CrashReportModal.vue b/app/components/common/CrashReportModal.vue deleted file mode 100644 index 881f2417d..000000000 --- a/app/components/common/CrashReportModal.vue +++ /dev/null @@ -1,226 +0,0 @@ - - - - - diff --git a/app/components/common/ShareModal.vue b/app/components/common/ShareModal.vue deleted file mode 100644 index 7dfb0033f..000000000 --- a/app/components/common/ShareModal.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - - diff --git a/app/components/common/detail/BoxRandomQuestion.vue b/app/components/common/boxRandomQuestion.vue similarity index 100% rename from app/components/common/detail/BoxRandomQuestion.vue rename to app/components/common/boxRandomQuestion.vue diff --git a/app/components/common/modal/crashReport.vue b/app/components/common/modal/crashReport.vue new file mode 100644 index 000000000..2b3b07708 --- /dev/null +++ b/app/components/common/modal/crashReport.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/app/components/common/modal/share.vue b/app/components/common/modal/share.vue new file mode 100644 index 000000000..15910c9c7 --- /dev/null +++ b/app/components/common/modal/share.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/app/components/common/detail/RelatedContentCard.vue b/app/components/common/related-content/card.vue similarity index 98% rename from app/components/common/detail/RelatedContentCard.vue rename to app/components/common/related-content/card.vue index 64d3a7ee3..8419ac2a6 100644 --- a/app/components/common/detail/RelatedContentCard.vue +++ b/app/components/common/related-content/card.vue @@ -1,6 +1,5 @@ - - diff --git a/app/pages/paper/[id]/[[slug]].vue b/app/pages/paper/[id]/[[slug]].vue index 230e80eef..6c4afd397 100644 --- a/app/pages/paper/[id]/[[slug]].vue +++ b/app/pages/paper/[id]/[[slug]].vue @@ -29,7 +29,7 @@ md="4" class="d-flex justify-center justify-md-start" > - - + - - + - - - + + + + + title="Share" + > + + diff --git a/app/pages/tutorial/[id]/[[slug]].vue b/app/pages/tutorial/[id]/[[slug]].vue index aea0bb3dd..1341dd195 100644 --- a/app/pages/tutorial/[id]/[[slug]].vue +++ b/app/pages/tutorial/[id]/[[slug]].vue @@ -130,10 +130,10 @@ md:format_list_bulleted - + - - - + + + + + title="Share" + > + + diff --git a/app/types/multimedia/index.ts b/app/types/multimedia/index.ts index 120dcc040..674ea420e 100644 --- a/app/types/multimedia/index.ts +++ b/app/types/multimedia/index.ts @@ -11,6 +11,19 @@ export interface MultimediaCreateDTO { free_available: boolean file: string } +export interface MultimediaEditDTO { + board?: string | number + grade?: string | number + subject?: string | number + topics?: (string | number)[] + title?: string + description?: string + content_type?: string | number + from_page?: string | number + to_page?: string | number + free_available?: boolean + file?: string +} export interface MultimediaCreateResponseDTO { id: number @@ -31,10 +44,11 @@ export interface MultimediaBriefDTO { subdate_jalali: string } +export type TypeFileExtentionMultimedia = 'pptx' | 'pdf' | 'docx' | 'mp4' export interface MultimediaFileInfoDTO { exist: boolean size: string | number - ext: string + ext: TypeFileExtentionMultimedia pages?: number price?: number price_unit?: string @@ -58,6 +72,12 @@ export interface MultimediaCollectionDTO { chapters?: MultimediaCollectionChapterDTO[] } +export interface MultimediaPreviewDataDTO { + type: string + preview: string[] + poster: boolean +} + export interface MultimediaDetailDTO { id: string user_: string @@ -109,7 +129,9 @@ export interface MultimediaDetailDTO { hasMembership: boolean files: MultimediaFileInfoDTO collectionList: MultimediaCollectionDTO[] + previewData: MultimediaPreviewDataDTO } + export interface GetDataParamsMultimedia { page: number pageSize: number diff --git a/app/types/pastpaper/index.ts b/app/types/pastpaper/index.ts index 793458c6d..ddf6695ec 100644 --- a/app/types/pastpaper/index.ts +++ b/app/types/pastpaper/index.ts @@ -61,10 +61,42 @@ export interface ContentItemDTO { test_type: string type_title?: string } +export interface FileRelatedContentDTO { + id: string + title: string + type: string + file_duration: string + file_pages: string + views: string + subdate: string + first_name: string + last_name: string + avatar: string + poster: string + title_url: string + url: string + legacy_url: string + type_title: string + type_title_fa: string + subdate_jalali: string +} +export interface ExamRelatedContentDTO { + id: string + title: string + code: string + tests_num: string + thumb_pic: string + first_name: string + last_name: string + avatar: string + title_url: string + url: string + legacy_url: string +} export interface RelatedContentDTO { - exams: ContentItemDTO[] - files: ContentItemDTO[] + exams: ExamRelatedContentDTO[] + files: FileRelatedContentDTO[] questions: ContentItemDTO[] tests: ContentItemDTO[] tutorials: ContentItemDTO[]