Граф коммитов

5325 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling 9a38b71fd7
Merge pull request #2712 from nextcloud/bugfix/noid/spell-checking
Spell checking
2020-01-10 10:45:02 +01:00
Joas Schilling 9e900b1c9c
Spell checking
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-10 10:40:12 +01:00
Joas Schilling 9b6f9d2d7a
Alpha 5
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-10 10:31:34 +01:00
Joas Schilling 0d006641c2
Merge pull request #2669 from nextcloud/add-call-view-to-sidebar-in-files-app
Add call view to sidebar in Files app
2020-01-10 10:31:06 +01:00
Joas Schilling 2adb03af99
Merge pull request #2710 from nextcloud/fix-autocompletion-issues
Increase the max height of the mention suggestion to 4.5 mentions ins…
2020-01-10 10:13:36 +01:00
Joas Schilling e4000792a2
Release alpha4
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-10 10:01:50 +01:00
Joas Schilling 54e87ddf49
Merge pull request #2703 from nextcloud/followup/2698/combine-empty-sources-in-rightsidebar-and-filter-there-aswell
Unification of participant selections
2020-01-10 10:00:49 +01:00
Joas Schilling d4ecf7b07f
Merge pull request #2694 from nextcloud/bugfix/2676/allow-logged-in-users-to-join-public-conversations
Allow logged in users to join public conversations
2020-01-10 09:52:25 +01:00
Joas Schilling 58d7618e34
Fix loading the avatar of users with a space in their id
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-10 09:47:17 +01:00
Joas Schilling 0ef29e1616
Re-enable mentions for other things as its only broken in dev mode
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-10 09:44:55 +01:00
Joas Schilling c5619be74e
Increase the max height of the mention suggestion to 4.5 mentions instead of 3
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-10 09:26:11 +01:00
Joas Schilling 53b2583480
Merge pull request #2709 from nextcloud/fix-autocompletion-issues
Fix autocompletion issues
2020-01-10 09:17:51 +01:00
Joas Schilling 60acb45a33
Override more colors with theming and dark mode
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-10 09:16:55 +01:00
Daniel Calviño Sánchez a1d02c2f3e Override conflicting rules from comments tab in Files app
Although the CSS rules for the candidate mentions of Talk no longer
mess with other elements, some too broad rules of other elements still
mess with the candidate mentions of Talk, so they need to be explicitly
overriden.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 06:29:46 +01:00
Daniel Calviño Sánchez e27cfb5cee Move dark theme fixes for the autocompletion panel to At.scss
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 06:23:32 +01:00
Daniel Calviño Sánchez 1bbc90d77b Replace default vue-at style sheet with a wrapped version
The wrapped version roots all the rules of the default style sheet on
".talk.candidate-mentions", so the rules affect only the candidate
mentions of Talk. Otherwise, as the default rules are too broad (as they
use just ".atwho-XXX") they could mess with the autocompletion of other
elements (like the comments tab in the Files app).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 06:22:51 +01:00
Daniel Calviño Sánchez 8d4a28610f Make possible to set extra CSS classes to the vue-at panel
This will be needed to limit the style applied only to the vue-at panel
created by Talk, as by default it uses "atwho-XXX" classes, which clash
for example with the autocompletion in the comments tab of the Files
app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:46:22 +01:00
Daniel Calviño Sánchez c5e86fdb56 Fix indentation
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:30:48 +01:00
Daniel Calviño Sánchez c6a3816902 Fix check for previously added style sheet
Although it is possible to use the "title" attribute of a style sheet as
an ID that is totally wrong and a complete misuse of the attribute.
Moreover, that only works when only a single style sheet has a title
set.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:25:21 +01:00
Daniel Calviño Sánchez e48c75913d Fix wrong property being unset
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:22:20 +01:00
Nextcloud bot c9de16a22a
[tx-robot] updated from transifex 2020-01-10 03:03:29 +00:00
Daniel Calviño Sánchez b9e8a9a3da Force restoring the sidebar header contents on file changes
If the sidebar is opened in a different file during a call the sidebar
header contents may not be properly restored due to the order in which
the updates are handled, so it needs to be executed again when the
FileInfo has been set and it does not match the current conversation.

Otherwise the call view could be a child of the header instead of the
header actions, so if a call is started again "hidden-by-call" will be
set to the call view too, hiding it during the call.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:02:37 +01:00
Daniel Calviño Sánchez d204b09fe0 Fix frozen video after closing and opening the sidebar during a call
When a video element is removed from the DOM and then added again it
will be frozen in its last frame until its "srcObject" is set again
(even overwriting itself with
"videoElement.srcObject = videoElement.srcObject" would be enough).
Closing and opening the sidebar removes it from and adds it back to the
DOM, but as "srcObject" is only set when the stream changes the video
element was frozen after opening the sidebar again.

Instead of notifying the child views that they were shown again (as it
does not seem to be possible to detect it from the child views
themselves) so they can refresh the "srcObjects", for simplicity now the
CallView is fully rendered again when the sidebar is opened after being
closed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:02:37 +01:00
Daniel Calviño Sánchez 0cb5519588 Extract function to update data based on CallViewParticipantModels
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:02:37 +01:00
Daniel Calviño Sánchez 678c1b0de0 Add a "constrained layout" for call view to be used in the sidebar
Currently this mimics the layout used in Talk 7 when the call view was
shown in the Files app sidebar (smaller avatars, videos and paddings, no
screensharing button...), but even once the call view is moved to the
new layout a special handling will be needed when the space is limited.

Ideally the call view should automatically change between layouts based
on its size (probably using something like
ResizeObserver/MutationObserver), but for the time being it is
explicitly enabled when the call view is shown in the Files app sidebar.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:02:37 +01:00
Daniel Calviño Sánchez 1459983a5f Replace placeholder with actual call view
As the call view has a black background the close button of the sidebar
is forced to white during calls to make it visible.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:02:37 +01:00
Daniel Calviño Sánchez c133d5ed50 Replace sidebar header contents with call view during calls
During calls the call view is now moved from the header actions to the
header itself, and all the other elements in the header (except the
close button) are hidden. This is done by setting a special CSS class,
"hidden-by-call", which is defined in a style sheet added dynamically.

When the file is changed the sidebar is cleared until the new file is
loaded. However, "setFileInfo" is called once the new file has loaded,
so the call view can not be hidden based on when a new fileInfo is set,
as that would keep the call view shown while the sidebar only shows the
loading spinner. However, "OCA.Talk.fileInfo" is cleared by
"FilesSidebarTab" when the tab is destroyed, which happens when the rest
of the sidebar is cleared, so that fileInfo is the one used to show and
hide the call view.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-10 04:02:21 +01:00
Joas Schilling 8a398dc1e9
Merge pull request #2704 from nextcloud/bugfix/noid/fix-chat-tab-scroll-2
Fix chat tab autoscroll to bottom
2020-01-09 21:54:24 +01:00
Marco Ambrosini 0b46115795
Fix chat tab autoscroll to bottom
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2020-01-09 21:49:46 +01:00
Daniel Calviño Sánchez 3eb801d16c Add dummy call view to the Files sidebar
Currently the dummy call view is simply shown when the user is in the
call and hidden otherwise.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-09 21:45:22 +01:00
Daniel Calviño Sánchez 397bbd5500 Generalize names to encompass both the chat tab and the call view
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-09 21:45:22 +01:00
Daniel Calviño Sánchez c3a7f1b8d7 Refresh current conversation periodically
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-09 21:45:22 +01:00
Daniel Calviño Sánchez ed8ef2dd76 Replace placeholder with actual call button
The CallButton component uses the current conversation and participant
from the Vuex store to set its state. When changing to a different
conversation and joining a previous conversation again the CallButton
may be shown before the conversation and participants have been fetched
again, so they need to be removed when the conversation is left.
Otherwise the CallButton may show a wrong state for a while (like being
in a call if the user changed to a different conversation while being in
a call) when joining the conversation again.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-09 21:45:22 +01:00
Daniel Calviño Sánchez b685361a34 Add action store to delete a conversation by token
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-09 21:45:22 +01:00
Joas Schilling ec9f82de44
Use a different icon for email addresses
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:21 +01:00
Joas Schilling a2f05ac3ca
Simplify the icon code
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:20 +01:00
Joas Schilling abd38309f3
Also add the ContactsList with avatars to it
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:20 +01:00
Joas Schilling 405ee8daef
Replace the duplicated OptionsLists with it
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:20 +01:00
Joas Schilling 8079051b67
Allow to add emails to existing conversations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:20 +01:00
Joas Schilling 9673991e67
Deduplicate the methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:20 +01:00
Joas Schilling fbfbc3c0e8
Move the participant tab options to the dedicated lists
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:20 +01:00
Joas Schilling 499371806f
Extract the actions from the components so they can be reused
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:19 +01:00
Joas Schilling aa197ed2ed
Use the token to pre-filter the list of potential options
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:19 +01:00
Joas Schilling 0419f84308
Add a header for the participants like in hte left sidebar
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:19 +01:00
Joas Schilling 68d0187f3e
Also filter the list of participants
Otherwise in long participant lists you don't see the option for adding new people

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:19 +01:00
Joas Schilling fd7670aea4
Combine empty sources in the right sidebar as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:39:19 +01:00
Joas Schilling 19ed07e749
Merge pull request #2691 from nextcloud/add-autocompletion-for-mentions
Add autocompletion for mentions
2020-01-09 21:38:18 +01:00
Joas Schilling 003207b68e
Dark theme fixes for vue-at
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 21:34:10 +01:00
Daniel Calviño Sánchez f0b1297060
Merge pull request #2705 from nextcloud/fix-getting-messages-in-messageslist-in-talk-sidebar
Fix getting messages in MessagesList in Talk sidebar
2020-01-09 20:51:58 +01:00
Joas Schilling afad3154a4
Show also matches by id not only display name
The vue-at library only searches in the display name by default.
But luckily our server responds already only with matching items,
so we just filter none and show them all.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-09 20:41:08 +01:00