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

2834 Коммитов

Автор SHA1 Сообщение Дата
Ivan Sein 82f1795b54
Merge pull request #1275 from nextcloud/emptycontent
Improve design of emptycontent view
2018-12-03 10:23:05 +01:00
Nextcloud bot 8c3fba6f7b
[tx-robot] updated from transifex 2018-12-03 01:35:10 +00:00
Jan-Christoph Borchardt cf6c99f121 Improve design of emptycontent view
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-12-03 01:22:22 +01:00
Daniel Calviño Sánchez 4ae63a1aa6 Fix "removeTabHeader" on Internet Explorer
Internet explorer does not support the "ChildNode.remove()" method, so
the node needs to be removed through its parent (which is also supported
by the rest of browsers).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-02 20:24:49 +01:00
Nextcloud bot a6c1e8e3ea
[tx-robot] updated from transifex 2018-12-02 01:37:14 +00:00
Nextcloud bot 62a110b6fa
[tx-robot] updated from transifex 2018-12-01 01:35:07 +00:00
Daniel Calviño Sánchez 7277141a1e Ignore some operations when the container is hidden
Some operations on the virtual list, like reloading it, updating the
visible elements or scrolling to certain element, require that the
container is visible. Before those operations messed with the state of
the virtual list when called with a hidden container, but now they are
simply ignored.

Adding new elements is still possible while the virtual list is hidden,
but "reload()" must be explicitly called once the container is visible
again for the added elements to be loaded. Like in a regular "reload()",
if the width has not changed there is no need to reload all the
elements; only those that were added while the container was hidden will
be added in that case.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-29 18:35:21 +01:00
Daniel Calviño Sánchez f69ce72d7a Make possible to restore the scroll position to the last known position.
In some cases there is no event to listen to for a change that affects
the chat view, so it is not possible to explicitly save the scroll
position when that change happens. Now the virtual list keeps track of
the last known scroll position, and the chat view allows restoring to an
arbitrary scroll position besides the saved one. This makes possible,
for example, to restore to the last scroll position before the chat view
was hidden (as long as it is possible to detect that the chat view is
shown again, even if it was not possible to detect that it was hidden).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-29 18:35:21 +01:00
Daniel Calviño Sánchez 64aab3d932 Prevent empty "files" room from being removed
Rooms associated to a file are persistent rooms, but they do not have
any persistent participants, not even an owner (participants join and
leave in each session). Thus these rooms should not be removed even if
they are empty.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-29 18:35:21 +01:00
Daniel Calviño Sánchez 3b10351252 Prevent participants without access to the file from joining the room
The rooms associated to a file are public rooms, so anyone could join
them provided she knows its token. Thus, now it is enforced that only
participants with direct access to the file can join the room.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-29 18:35:21 +01:00
Daniel Calviño Sánchez 19e166191b Add end point to get the token of a room associated with a file
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-29 18:35:21 +01:00
Daniel Calviño Sánchez be97a530e1 Add method to get a room by its object
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-29 18:35:21 +01:00
Joas Schilling 1113220307
Merge pull request #1321 from nextcloud/fullscreen-share-firefox
Add support for sharing fullscreen on Firefox.
2018-11-29 17:44:39 +01:00
Joas Schilling 19e7a5fd7b
Fix eslint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-29 17:43:59 +01:00
Joas Schilling b99ac0bd0e
Merge pull request #1320 from nextcloud/fix-room-polling-not-stopped-when-leaving-the-current-room
Fix room polling not stopped when leaving the current room
2018-11-29 17:38:24 +01:00
Joachim Bauch 2dec057b8f
Add support for sharing fullscreen on Firefox.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
2018-11-29 15:27:33 +01:00
Daniel Calviño Sánchez 9c0c1da64a Fix room polling not stopped when leaving the current room
When setting a room in the internal signaling a poller is started that
synchronizes the room data periodically; that poller should be stopped
when the room is left.

Note, however, that the poller should not be stopped when leaving the
current room if it was initialized for a room collection instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-29 14:55:29 +01:00
Joas Schilling 7168c684af
Merge pull request #1316 from nextcloud/rename-commentstabview-to-chatview
Rename "commentsTabView" to "chatView"
2018-11-28 18:01:13 +01:00
Daniel Calviño Sánchez 8396fa51e5 Move "comments.scss" to "chatview.scss"
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 17:46:21 +01:00
Joas Schilling fbcb286694
Merge pull request #1315 from nextcloud/test-again-15-for-now
Test against 15 for now
2018-11-28 16:58:00 +01:00
Daniel Calviño Sánchez 41d28ddf19 Add CSS class to items in the autocomplete list for mentions
The CSS rules specific to the autocomplete list for mentions in the chat
view were applied to any other autocomplete list. In the main Talk UI
this is not a problem, as that is the only autocomplete list, but it
could be when using the Talk chat view in other components, like the
Files app.

The autocomplete list is created as a child of the body element itself,
so to limit the CSS rules only to the chat view it is not possible to
just prepend "#chatView" to the rules. Instead, now each item has a CSS
class (hopefully :-) ) unique to the chat view.

Unfortunately, it does not seem to be possible to ensure that the rules
defined in "autocomplete.scss" will not collide/override rules defined
in other apps, as customizing the CSS classes in ".atwho-view" so the
rules are applied only when it belongs to the chat view does not seem to
be possible (except, maybe, with some hacks).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 15:25:47 +01:00
Daniel Calviño Sánchez ba798aba86 Remove leftover CSS rules from the original import from the Comments app
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 15:25:46 +01:00
Daniel Calviño Sánchez 4e10934e3c Rename "CommentsTabView" to "ChatView"
"CommentsTabView" is a legacy name from the original import of the code
from the Comments app; besides being a better fit, "ChatView" also
ensures that the CSS rules will not conflict with those from the
Comments app when the Talk UI is used in the Files app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 15:25:46 +01:00
Joas Schilling dfab6a7603
Merge pull request #1313 from nextcloud/bugfix/noid/fix-alignment-of-avatars-in-mention-box-2
Fix avatar position in mention box.
2018-11-28 15:21:59 +01:00
Joas Schilling ff39261d56
Merge pull request #1309 from nextcloud/fix-appearance-of-message-list-in-public-share-authentication-page
Fix appearance of message list in public share authentication page
2018-11-28 15:21:25 +01:00
Joas Schilling a74baaed4b
Test against 15 for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-28 15:14:56 +01:00
Joas Schilling fedd0f8b9d
Merge pull request #1314 from nextcloud/extract-view-for-call-button
Extract view for call button
2018-11-28 15:13:24 +01:00
Daniel Calviño Sánchez 40f58f9e26 Move CallButton to precompiled Handlebars templates
In Nextcloud 15 the default Content Security Policy disallows unsafe
eval expressions, so Handlebars templates can no longer be compiled at
runtime.

For the time being that default Content Security Policy was lifted for
Talk so "Handlebars.compile" could still be used. However, this only
applies to Talk itself; when using Talk components in other apps they
must abide to the Content Security Policy of those apps. As CallButton
is going to be used in the Files app it has been moved to precompiled
Handlebars templates (which are still compatible with the regular Talk
UI).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 14:43:17 +01:00
Ivan Sein dafea88aeb Fix avatar position in mention box.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-11-28 14:40:33 +01:00
Daniel Calviño Sánchez 6ecc31d8bf Extract view for call button
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 14:36:29 +01:00
Joas Schilling 9dc40fa2ff
Merge pull request #1310 from nextcloud/move-chatview-and-richobjectstringparser-to-precompiled-handlebars-templates
Move ChatView and RichObjectStringParser to precompiled Handlebars templates
2018-11-28 14:35:10 +01:00
Joas Schilling 0ef9da639f
Initialise the objects correctly
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-28 14:00:10 +01:00
Joas Schilling 0106bd1e02
Use the new Namespace
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-28 12:48:52 +01:00
Joas Schilling 6cd02c8ede
Remove the compile files from the package
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-28 12:48:51 +01:00
Daniel Calviño Sánchez 87297dea17
Move RichObjectStringParser to precompiled Handlebars templates
In Nextcloud 15 the default Content Security Policy disallows unsafe
eval expressions, so Handlebars templates can no longer be compiled at
runtime.

For the time being that default Content Security Policy was lifted for
Talk so "Handlebars.compile" could still be used. However, this only
applies to Talk itself; when using Talk components in other apps they
must abide to the Content Security Policy of those apps. As the
RichObjectStringParser is going to be used in the Files app it has been
moved to precompiled Handlebars templates (which are still compatible
with the regular Talk UI).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 12:48:51 +01:00
Daniel Calviño Sánchez f63ab0355c
Move RichObjectStringParser into the views folder
Although the RichObjectStringParser is not a view as such its
functionality is closedly tied to views, so the views folder is a better
place to live in.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 12:48:51 +01:00
Daniel Calviño Sánchez 252c53e780
Move ChatView to precompiled Handlebars templates
In Nextcloud 15 the default Content Security Policy disallows unsafe
eval expressions, so Handlebars templates can no longer be compiled at
runtime.

For the time being that default Content Security Policy was lifted for
Talk so "Handlebars.compile" could still be used. However, this only
applies to Talk itself; when using Talk components in other apps they
must abide to the Content Security Policy of those apps. As ChatView is
going to be used in the Files app it has been moved to precompiled
Handlebars templates (which are still compatible with the regular Talk
UI).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-28 12:48:51 +01:00
Nextcloud bot da13fd1d8f
[tx-robot] updated from transifex 2018-11-28 01:37:14 +00:00
Daniel Calviño Sánchez 7d8a80279e Fix appearance of message list in public share authentication page
"guest.scss" in server sets the "width" and "margin-top" properties of
".wrapper" elements to position the main content of the public share
authentication page. However, as the selector used in the rule is too
broad it is also applied to the internal wrapper of the virtual list, so
the properties need to be reset in that case.

Besides that, the padding of the message list is ignored when using the
virtual list, so that padding needs to be applied through the "left" and
"right" properties of the internal wrapper of the virtual list.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-27 11:23:18 +01:00
Nextcloud bot dd9f31b4bb
[tx-robot] updated from transifex 2018-11-27 01:36:54 +00:00
Nextcloud bot 1d7544f845
[tx-robot] updated from transifex 2018-11-26 01:35:32 +00:00
Ivan Sein 443f335fee
Merge pull request #1261 from nextcloud/show-again-participants-without-streams-in-a-call
Show again participants without streams in a call
2018-11-23 17:35:56 +01:00
Nextcloud bot 9bd3f1c44e
[tx-robot] updated from transifex 2018-11-23 02:41:18 +00:00
Joas Schilling 49fd15f47a
Merge pull request #1307 from nextcloud/bugfix/noid/missing-rightbar-menu-handle
Fix missing rightside bar menu handle
2018-11-21 17:26:43 +01:00
Joas Schilling 957dc442ec
Also use the method for the no-password icon
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-21 17:11:40 +01:00
Joas Schilling f9a7975212
Fix the name of the variable for the black image
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-21 17:09:06 +01:00
Joas Schilling 1d7639bae1
Merge pull request #1306 from nextcloud/add-drone-step-to-check-handlebars-templates
Add Drone step to check Handlebars templates
2018-11-21 13:36:55 +01:00
Daniel Calviño Sánchez e629363dea Add Drone step to check the Handlebars templates
Now if the source templates were modified but their compiled versions
were not updated the Drone job will fail.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-21 12:02:39 +01:00
Daniel Calviño Sánchez 970a22f9ce Extract compilation of Handlebars templates to its own script
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-21 11:49:34 +01:00
Daniel Calviño Sánchez 241dda266c Add Handlebars to the development dependencies
Dependencies declared in "package.json" are installed locally, so the
call to the handlebars script must be updated accordingly.

To ensure that Handlebars is installed before using it the Make step to
compile the templates now depends on the step to setup the development
environment.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-21 11:25:41 +01:00