diff --git a/frontend/src/components/Activities.vue b/frontend/src/components/Activities.vue deleted file mode 100644 index 8df55c2d..00000000 --- a/frontend/src/components/Activities.vue +++ /dev/null @@ -1,1409 +0,0 @@ - - - - {{ __(title) }} - - - - - - {{ __('New Email') }} - - - - - - {{ __('New Comment') }} - - - - - - {{ __('Make a Call') }} - - - - - - {{ __('New Note') }} - - - - - - {{ __('New Task') }} - - - - - - - - {{ __('New Message') }} - - - - - - - - - {{ __('New') }} - - - - - - - - - - {{ __('Loading...') }} - - - - - - - - - - {{ note.title }} - - - - - - - - - - - {{ getUser(note.owner).full_name }} - - - - - {{ __(timeAgo(note.modified)) }} - - - - - - - - - - - - - - - - - - {{ comment.owner_name }} - - {{ __('added a') }} - - {{ __('comment') }} - - - - - - {{ __(timeAgo(comment.creation)) }} - - - - - - - - - - - - - - - - - - - - {{ task.title }} - - - - - {{ getUser(task.assigned_to).full_name }} - - - - - - - - - {{ dateFormat(task.due_date, 'D MMM, hh:mm a') }} - - - - - - - - - {{ task.priority }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ - call.type == 'Incoming' - ? __('Inbound Call') - : __('Outbound Call') - }} - - - - - {{ __(timeAgo(call.creation)) }} - - - - - - - - {{ __('Duration') }} - - {{ call.duration }} - - - - - - {{ - call.show_recording - ? __('Hide Recording') - : __('Listen to Call') - }} - - - - - - - - - - - - {{ __(call.caller.label) }} - - - {{ call.from }} - - - - - - - {{ __(call.receiver.label) }} - - - {{ call.to }} - - - - - - - - - - - - - - - - - - - - {{ activity.data.sender_full_name }} - · - - - {{ __(timeAgo(activity.creation)) }} - - - - - - - - - - - - - - - - - - - - - - - {{ activity.data.subject }} - - - - {{ __('TO') }}: - - {{ activity.data.recipients }} - , - - {{ __('CC') }}: - - {{ activity.data.cc }} - , - - {{ __('BCC') }}: - - {{ activity.data.bcc }} - - - - - - - - - - - - {{ activity.owner_name }} - - {{ __('added a') }} - - {{ __('comment') }} - - - - - - {{ __(timeAgo(activity.creation)) }} - - - - - - - - - - - - - - - {{ - activity.type == 'Incoming' - ? __('Inbound Call') - : __('Outbound Call') - }} - - - - - {{ __(timeAgo(activity.creation)) }} - - - - - - - - {{ __('Duration') }} - - {{ activity.duration }} - - - - - - {{ - activity.show_recording - ? __('Hide Recording') - : __('Listen to Call') - }} - - - - - - - - - - - - {{ __(activity.caller.label) }} - - - {{ activity.from }} - - - - - - - - - {{ __(activity.receiver.label) }} - - - {{ activity.to }} - - - - - - - - - - {{ activity.owner_name }} - - {{ __(activity.type) }} - - {{ __(activity.data.field_label) }} - - {{ __(activity.value) }} - - - - {{ getUser(activity.data.old_value).full_name }} - - - {{ activity.data.old_value }} - - - {{ __('to') }} - - - - {{ getUser(activity.data.value).full_name }} - - - {{ activity.data.value }} - - - - - - - - {{ __(timeAgo(activity.creation)) }} - - - - - - - - - {{ __(activity.data.field_label) }} - - - - - {{ - startCase(__(activity.type)) - }} - - - - {{ getUser(activity.data.old_value).full_name }} - - - {{ activity.data.old_value }} - - - {{ __('to') }} - - - - {{ getUser(activity.data.value).full_name }} - - - {{ activity.data.value }} - - - - - - - - - {{ __(timeAgo(activity.creation)) }} - - - - - - - - - - - - - - - - - {{ __(emptyText) }} - - - - - - - - - - - sendTemplate(t)" - /> - - - - diff --git a/frontend/src/components/Activities/Activities.vue b/frontend/src/components/Activities/Activities.vue new file mode 100644 index 00000000..d8e66fa5 --- /dev/null +++ b/frontend/src/components/Activities/Activities.vue @@ -0,0 +1,744 @@ + + + + + + {{ __('Loading...') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ activity.show_others ? __('Hide') : __('Show') }} + +{{ activity.other_versions.length + 1 }} + {{ __('changes from') }} + {{ activity.owner_name }} + + + + + + + + + {{ activity.owner_name }} + + {{ __(activity.type) }} + + {{ __(activity.data.field_label) }} + + {{ __(activity.value) }} + + + + {{ getUser(activity.data.old_value).full_name }} + + + {{ activity.data.old_value }} + + + {{ __('to') }} + + + + {{ getUser(activity.data.value).full_name }} + + + {{ activity.data.value }} + + + + + + + + {{ __(timeAgo(activity.creation)) }} + + + + + + + + + {{ __(activity.data.field_label) }} + + + + {{ startCase(__(activity.type)) }} + + + + + {{ getUser(activity.data.old_value).full_name }} + + + {{ activity.data.old_value }} + + + {{ __('to') }} + + + + {{ getUser(activity.data.value).full_name }} + + + {{ activity.data.value }} + + + + + + + + {{ __(timeAgo(activity.creation)) }} + + + + + + + + + + + {{ __(emptyText) }} + + + + + + + + + + + + sendTemplate(t)" + /> + + + diff --git a/frontend/src/components/Activities/ActivityHeader.vue b/frontend/src/components/Activities/ActivityHeader.vue new file mode 100644 index 00000000..60a70898 --- /dev/null +++ b/frontend/src/components/Activities/ActivityHeader.vue @@ -0,0 +1,157 @@ + + + + {{ __(title) }} + + + + + + {{ __('New Email') }} + + + + + + {{ __('New Comment') }} + + + + + + {{ __('Make a Call') }} + + + + + + {{ __('New Note') }} + + + + + + {{ __('New Task') }} + + + + + + + + {{ __('New Message') }} + + + + + + + + + {{ __('New') }} + + + + + + + + + diff --git a/frontend/src/components/Activities/AllModals.vue b/frontend/src/components/Activities/AllModals.vue new file mode 100644 index 00000000..b8b4a2c4 --- /dev/null +++ b/frontend/src/components/Activities/AllModals.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/frontend/src/components/Activities/AudioPlayer.vue b/frontend/src/components/Activities/AudioPlayer.vue new file mode 100644 index 00000000..8ede3c02 --- /dev/null +++ b/frontend/src/components/Activities/AudioPlayer.vue @@ -0,0 +1,233 @@ + + + + + + + + + + + (audio.currentTime = e.target.value)" + /> + + {{ formatTime(currentTime) }} / {{ formatTime(duration) }} + + + + + updateVolumnProgress(e.target.value)" + /> + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/components/Activities/CallArea.vue b/frontend/src/components/Activities/CallArea.vue new file mode 100644 index 00000000..c320ba98 --- /dev/null +++ b/frontend/src/components/Activities/CallArea.vue @@ -0,0 +1,106 @@ + + + + + + + {{ activity.caller.label }} + + {{ + activity.type == 'Incoming' + ? __('has reached out') + : __('has made a call') + }} + + + + + {{ __(timeAgo(activity.creation)) }} + + + + + + + + + {{ + activity.type == 'Incoming' + ? __('Inbound Call') + : __('Outbound Call') + }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/components/Activities/CommentArea.vue b/frontend/src/components/Activities/CommentArea.vue new file mode 100644 index 00000000..0adb51ed --- /dev/null +++ b/frontend/src/components/Activities/CommentArea.vue @@ -0,0 +1,45 @@ + + + + + + + {{ activity.owner_name }} + + {{ __('added a') }} + + {{ __('comment') }} + + + + + + {{ __(timeAgo(activity.creation)) }} + + + + + + + + + + + + + diff --git a/frontend/src/components/Activities/EmailArea.vue b/frontend/src/components/Activities/EmailArea.vue new file mode 100644 index 00000000..55bdc946 --- /dev/null +++ b/frontend/src/components/Activities/EmailArea.vue @@ -0,0 +1,144 @@ + + + + + {{ activity.data.sender_full_name }} + + {{ '<' + activity.data.sender + '>' }} + + + + + + + {{ __(timeAgo(activity.creation)) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ __('To') }}: + {{ activity.data.recipients }} + , + + {{ __('CC') }}: + + {{ activity.data.cc }} + , + + {{ __('BCC') }}: + + {{ activity.data.bcc }} + + + {{ __('Subject') }}: + {{ activity.data.subject }} + + + + + + + + + + diff --git a/frontend/src/components/EmailContent.vue b/frontend/src/components/Activities/EmailContent.vue similarity index 96% rename from frontend/src/components/EmailContent.vue rename to frontend/src/components/Activities/EmailContent.vue index 310a452b..d4466480 100644 --- a/frontend/src/components/EmailContent.vue +++ b/frontend/src/components/Activities/EmailContent.vue @@ -2,15 +2,7 @@ diff --git a/frontend/src/components/Activities/NoteArea.vue b/frontend/src/components/Activities/NoteArea.vue new file mode 100644 index 00000000..64b7293a --- /dev/null +++ b/frontend/src/components/Activities/NoteArea.vue @@ -0,0 +1,73 @@ + + + + + {{ note.title }} + + + + + + + + + + + {{ getUser(note.owner).full_name }} + + + + + {{ __(timeAgo(note.modified)) }} + + + + + + diff --git a/frontend/src/components/Activities/PlaybackSpeedOption.vue b/frontend/src/components/Activities/PlaybackSpeedOption.vue new file mode 100644 index 00000000..85c0418e --- /dev/null +++ b/frontend/src/components/Activities/PlaybackSpeedOption.vue @@ -0,0 +1,21 @@ + + + + + + + + + + diff --git a/frontend/src/components/Activities/TaskArea.vue b/frontend/src/components/Activities/TaskArea.vue new file mode 100644 index 00000000..526271ae --- /dev/null +++ b/frontend/src/components/Activities/TaskArea.vue @@ -0,0 +1,109 @@ + + + + + + + {{ task.title }} + + + + + {{ getUser(task.assigned_to).full_name }} + + + + + + + + + {{ dateFormat(task.due_date, 'D MMM, hh:mm a') }} + + + + + + + + + {{ task.priority }} + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/components/WhatsAppArea.vue b/frontend/src/components/Activities/WhatsAppArea.vue similarity index 100% rename from frontend/src/components/WhatsAppArea.vue rename to frontend/src/components/Activities/WhatsAppArea.vue diff --git a/frontend/src/components/WhatsAppBox.vue b/frontend/src/components/Activities/WhatsAppBox.vue similarity index 96% rename from frontend/src/components/WhatsAppBox.vue rename to frontend/src/components/Activities/WhatsAppBox.vue index 6cc707b4..70f19fa9 100644 --- a/frontend/src/components/WhatsAppBox.vue +++ b/frontend/src/components/Activities/WhatsAppBox.vue @@ -1,7 +1,7 @@ - + uploadFile(file)"> diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue index 6e5e419c..3bab4737 100644 --- a/frontend/src/components/CommunicationArea.vue +++ b/frontend/src/components/CommunicationArea.vue @@ -9,7 +9,7 @@ @click="toggleEmailBox()" > - + - + @@ -169,7 +169,7 @@