From b8985e7f963d67ec50a2c4b0892032b4e82c8ad4 Mon Sep 17 00:00:00 2001 From: Diyar Akhgar Date: Fri, 30 May 2025 19:11:53 +0330 Subject: [PATCH] fix files page --- xroom-dashboard/src/assets/img/Icon6.svg | 5 + .../src/components/AddUserModal.vue | 15 + .../src/components/CreateMeetingModal.vue | 22 + .../src/components/CreateSpaceModal.vue | 9 + .../src/components/EditBillingModal.vue | 15 + .../src/components/FilePreviewDialog.vue | 329 ++++ .../src/components/NewFileDialog.vue | 420 +++++ .../src/components/RoomSelectionModal.vue | 2 +- .../src/components/SidebarMenu.vue | 2 +- .../src/components/TutorialShowModal.vue | 16 + .../src/pages/dashboard/Download.vue | 28 +- .../src/pages/dashboard/Meeting.vue | 34 +- .../src/pages/dashboard/Spaces.vue | 27 +- xroom-dashboard/src/pages/dashboard/files.vue | 1479 +++++------------ xroom-dashboard/src/pages/dashboard/team.vue | 39 +- 15 files changed, 1373 insertions(+), 1069 deletions(-) create mode 100644 xroom-dashboard/src/assets/img/Icon6.svg create mode 100644 xroom-dashboard/src/components/FilePreviewDialog.vue create mode 100644 xroom-dashboard/src/components/NewFileDialog.vue diff --git a/xroom-dashboard/src/assets/img/Icon6.svg b/xroom-dashboard/src/assets/img/Icon6.svg new file mode 100644 index 0000000..c8cd22c --- /dev/null +++ b/xroom-dashboard/src/assets/img/Icon6.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/xroom-dashboard/src/components/AddUserModal.vue b/xroom-dashboard/src/components/AddUserModal.vue index 2bcdda0..7265253 100644 --- a/xroom-dashboard/src/components/AddUserModal.vue +++ b/xroom-dashboard/src/components/AddUserModal.vue @@ -122,7 +122,22 @@ export default { }, }; }, + watch: { + isVisible(newVal) { + if (newVal) { + // غیرفعال کردن اسکرول هنگام باز شدن پاپ‌آپ + document.body.style.overflow = 'hidden'; + } else { + // فعال کردن اسکرول هنگام بسته شدن پاپ‌آپ + document.body.style.overflow = ''; + } + }, + }, methods: { + beforeDestroy() { + // اطمینان از فعال شدن اسکرول هنگام حذف کامپوننت + document.body.style.overflow = ''; + }, close() { this.newUser = { first_name: '', diff --git a/xroom-dashboard/src/components/CreateMeetingModal.vue b/xroom-dashboard/src/components/CreateMeetingModal.vue index 0d7ab24..201e373 100644 --- a/xroom-dashboard/src/components/CreateMeetingModal.vue +++ b/xroom-dashboard/src/components/CreateMeetingModal.vue @@ -418,8 +418,30 @@ export default { const customer = JSON.parse(localStorage.getItem('customer') || '{}'); return customer.profile_img || this.defaultProfileIcon; }, + }, + watch: { + // نظارت بر باز و بسته شدن پاپ‌آپ اصلی + isOpen(newVal) { + if (newVal) { + document.body.style.overflow = 'hidden'; + } else if (!this.isRoomSelectionOpen) { + document.body.style.overflow = ''; + } + }, + // نظارت بر باز و بسته شدن پاپ‌آپ انتخاب اتاق + isRoomSelectionOpen(newVal) { + if (newVal) { + document.body.style.overflow = 'hidden'; + } else if (!this.isOpen) { + document.body.style.overflow = ''; + } + }, }, methods: { + beforeDestroy() { + // اطمینان از فعال شدن اسکرول هنگام حذف کامپوننت + document.body.style.overflow = ''; + }, openRoomSelection() { this.isRoomSelectionOpen = true; }, diff --git a/xroom-dashboard/src/components/CreateSpaceModal.vue b/xroom-dashboard/src/components/CreateSpaceModal.vue index cc6fdf1..5a8af6b 100644 --- a/xroom-dashboard/src/components/CreateSpaceModal.vue +++ b/xroom-dashboard/src/components/CreateSpaceModal.vue @@ -109,6 +109,10 @@ export default { }; }, methods: { + beforeDestroy() { + // اطمینان از فعال شدن اسکرول هنگام حذف کامپوننت + document.body.style.overflow = ''; + }, closeModal() { this.$emit('close'); this.resetForm() @@ -196,7 +200,12 @@ export default { watch: { isVisible(newVal) { if (newVal) { + // غیرفعال کردن اسکرول هنگام باز شدن پاپ‌آپ + document.body.style.overflow = 'hidden'; this.fetchSpaces(); + } else { + // فعال کردن اسکرول هنگام بسته شدن پاپ‌آپ + document.body.style.overflow = ''; } }, }, diff --git a/xroom-dashboard/src/components/EditBillingModal.vue b/xroom-dashboard/src/components/EditBillingModal.vue index 9172096..8a214f4 100644 --- a/xroom-dashboard/src/components/EditBillingModal.vue +++ b/xroom-dashboard/src/components/EditBillingModal.vue @@ -132,7 +132,22 @@ export default { }, }; }, + watch: { + isVisible(newVal) { + if (newVal) { + // غیرفعال کردن اسکرول هنگام باز شدن پاپ‌آپ + document.body.style.overflow = 'hidden'; + } else { + // فعال کردن اسکرول هنگام بسته شدن پاپ‌آپ + document.body.style.overflow = ''; + } + }, + }, methods: { + beforeDestroy() { + // اطمینان از فعال شدن اسکرول هنگام حذف کامپوننت + document.body.style.overflow = ''; + }, handleSubmit() { console.log('اطلاعات صورت حساب:', JSON.stringify(this.form, null, 2)); /* console.log('اطلاعات صورت حساب:', this.form); */ diff --git a/xroom-dashboard/src/components/FilePreviewDialog.vue b/xroom-dashboard/src/components/FilePreviewDialog.vue new file mode 100644 index 0000000..3a21446 --- /dev/null +++ b/xroom-dashboard/src/components/FilePreviewDialog.vue @@ -0,0 +1,329 @@ + + + + + \ No newline at end of file diff --git a/xroom-dashboard/src/components/NewFileDialog.vue b/xroom-dashboard/src/components/NewFileDialog.vue new file mode 100644 index 0000000..c5a3056 --- /dev/null +++ b/xroom-dashboard/src/components/NewFileDialog.vue @@ -0,0 +1,420 @@ + + + + + \ No newline at end of file diff --git a/xroom-dashboard/src/components/RoomSelectionModal.vue b/xroom-dashboard/src/components/RoomSelectionModal.vue index 6ead44e..8dd157e 100644 --- a/xroom-dashboard/src/components/RoomSelectionModal.vue +++ b/xroom-dashboard/src/components/RoomSelectionModal.vue @@ -1,5 +1,5 @@