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

72 Коммитов

Автор SHA1 Сообщение Дата
Roeland Jago Douma 1722388f4f
Select2 is in the main dist file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-05-09 20:36:11 +02:00
Daniel Calviño Sánchez a8e0b83242 Extract initial state of view for a local participant in a call
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-25 16:13:19 +01:00
Daniel Calviño Sánchez bbad46ee16 Remove unused element
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-25 16:13:19 +01:00
Joas Schilling 005342492c
Merge pull request #1485 from nextcloud/bugfix/noid/black-call-icons-in-dark-mode
Fix icons for incall scene when dark mode is enabled
2019-01-30 11:09:25 +01:00
Joas Schilling 339b1dfc05
Fix icons for .incall scene when dark mode is enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-29 14:48:10 +01:00
Joas Schilling 713828afde Reduce the number of loaded scripts
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-29 13:30:39 +01:00
Daniel Calviño Sánchez 8942baf9f3 Add full Handlebars library
In Nextcloud 16 the Handlebars library shipped in the server is no
longer the full Handlebars library, but a trimmed down version that does
not support compiling Handlebars templates at runtime.

Currently Talk still needs to compile Handlebars templates at runtime,
so for the time being the full Handlebars library that was included
before in the server is now included in Talk.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-11 20:02:50 +01:00
Daniel Calviño Sánchez c4c047a3c1 Extract view for media controls
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-06 12:08:46 +01:00
Daniel Calviño Sánchez ac0ceed2d6 Extract CSS styles for videos
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-05 19:12:03 +01:00
Daniel Calviño Sánchez 76a30595cc Extract view for the main empty content message
The main empty content message is kept in the templates generated by the
server to be able to show something to the user while the rest of the UI
is loading.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-05 10:59:57 +01:00
Daniel Calviño Sánchez 457ca3606b Merge methods to set empty content message when alone in the call
The additional message with the URL of the room is now shown also for
guests; the icon shown to guests is also fixed (now the link icon is
shown instead of the contacts icon, which is the one used for group
rooms).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-05 10:46:09 +01:00
Joas Schilling a6d5c6f629
Merge pull request #1327 from nextcloud/firefox-screensharing-options
Fix wording and icons for screensharing options
2018-12-04 13:55:09 +01:00
Ivan Sein 6ed1428e05 Fix wording.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-12-03 15:43:44 +01:00
Ivan Sein bb38d02177 Create specific button to show your screen.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-12-03 12:16:48 +01:00
Ivan Sein f0b94d8b82 Change text and icon for screensharing options in Firefox.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-12-03 10:48:15 +01: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
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 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
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
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
Daniel Calviño Sánchez e96d9d19d9 Use VirtualList for the message list in the chat view
The virtual list requires that its internal wrappers use an absolute
position. Due to that absolute position the padding of the container
does not affect the wrappers, so the desired padding must be applied
through its left and right position.

As the virtual list keeps only a subset of its elements in the DOM the
":first-child" pseudo-selector no longer refers to the actual first
child element, but to the first one currently in the DOM; it would be
necessary to apply the CSS rules using a specific CSS class set only in
the desired element. However, as the first comment always includes the
date separator, which already has a top margin, the top padding is not
really needed in the first comment, so it was simply removed.

Moving the message list between the main view and the sidebar changes
its size, and thus it is necessary to reload the virtual list; when the
virtual list is reloaded it is ensured that the last visible element
will still be visible after the reload, so the chat view no longer needs
to explicitly handle that.

In a similar way, the message list also needs to be reloaded when the
window is resized, or when the chat view is in the main view and the
sidebar is opened or closed, as those actions change the size of the
main view.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-20 12:18:15 +01:00
Joas Schilling 016dfd9d72 Display the participant panel for guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-10-04 01:13:28 +02:00
Daniel Calviño Sánchez 29ed255814 Remove the notification container
The notification container is now provided by the public layout
template in the server.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-07-31 20:38:00 +02:00
Daniel Calviño Sánchez 1f7c097bec Adjust public layout for guest users to changes in server
Until now the public layout for guest users was based on the "base"
layout of the server, which was almost empty, and the "index-public"
template had to provide all the elements mimicking those used for public
pages in the server. The recent layout changes in the server have
introduced some structure changes in that base layout, which is now more
cumbersome to use with Talk.

Fortunately, in Nextcloud 14 a standard layout for public pages was
introduced, so now the public layout for guest users is based on that
public layout of the server instead. Therefore, it is no longer needed
to provide a header in the template, and the CSS rules used for the main
layout can be reused for the public layout.

There is a drawback, though; as the header is no longer a descendant of
"#app-content" it is no longer possible to make it transparent based on
the ".participants-XXX" classes set for that element. For now, and until
it is addressed, the header will still be visible during calls in guest
pages.

Also note that the public layout of the server does not provide at this
time a notification container, so that element must be kept.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-07-27 22:26:09 +02:00
Joas Schilling 85cd8181e5 Add basic UI for autocompletion
CSS styles were directly copied from
"apps/comments/css/autocomplete.scss".

JavaScript code in the chat view
was slightly simplified from "apps/comments/js/commentstabview.js".

Currently mentions are not formatted when a message is being composed;
"@" followed by the user name is added to the message so it can be
directly sent without further processing. Formatted mentions will be
introduced in another commit.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:49:24 +02:00
Daniel Calviño Sánchez f1691c06bf Format rich messages in chat frontend
The RichObjectStringParser was copied from the Notifications app and
adapted to be used in the chat (support for file references was removed,
"-" is taken into account too in parameter IDs, only local users are
taken into account, and if the display name of a mention is empty the
user ID is used instead).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-24 17:47:18 +02:00
Joas Schilling 3a65ce98a2
Add a shortcut for fullscreen
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-28 15:01:12 +02:00
Joas Schilling 9654ca510f
Add shortcut hint to video toggle
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-28 15:01:12 +02:00
Joas Schilling 0ae0424ffe
Move audio mute to (m)
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-28 15:01:11 +02:00
Joas Schilling 606a230fa4
Update the chat message models when the guest name changes
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-19 18:20:26 +01:00
Joas Schilling e805bfd025
Fix empty content message and correctly hide the video input until it is loaded
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-16 11:22:14 +01:00
Joas Schilling fe04d506fa
Rename calls to connection and remove static-ness
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-15 13:21:18 +01:00
Daniel Calviño Sánchez 9f6ee0bbd1 Use #app-content-wrapper also in public page
This makes the markup more consistent for logged in users and for guest
users.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-08 12:59:49 +01:00
Marin Treselj e48bea92e9 Update templates with new .icon-white and .icon-shadow classes
Signed-off-by: Marin Treselj <marin.treselj@forlagshuset.no>
2017-11-28 10:31:48 +01:00
Marin Treselj 340dac504a Give audio-white and audio-off-white shadow via CSS
Signed-off-by: Marin Treselj <marin.treselj@forlagshuset.no>
2017-11-22 14:21:02 +01:00
Daniel Calviño Sánchez 5744c494ea
Align the header markup with the one used in user pages
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-15 12:10:42 +01:00
Daniel Calviño Sánchez 936b071fea
Fix logo not shown on public page
Since commit 3470d0a44ea2b7a477af407b3d9abee81de071e3 in Nextcloud
server the HTML element for the logo must include the "logo" CSS class
to be shown.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-15 12:10:42 +01:00
Daniel Calviño Sánchez 4c2b2ce7df Add chat view to sidebar tab
The CSS was copied from the Comments app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-11-03 11:49:56 +01:00
Joachim Bauch e083e72256
Pass all signaling-related settings as JSON object to frontend.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
2017-11-02 11:23:10 +01:00
Joachim Bauch 547c69c91c
Add frontend support for the standalone signaling server.
See #339 for a description of the API.

Signed-off-by: Joachim Bauch <bauch@struktur.de>
2017-11-02 11:23:09 +01:00
Daniel Calviño Sánchez 2d6a5a7d47 Move guest name from header to right sidebar
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-10-30 13:57:55 +01:00
Daniel Calviño Sánchez 39db4c8883 Replace custom code with LocalStorageModel for guest name
Only the code related to getting and setting the guest name in the UI
was modified to use the LocalStorageModel; direct calls to localStorage
to simply get the value in other areas were kept (and this change does
not affect their behaviour).

As "maxlength" in the guest name input field is set to "20" there is no
need to check the length of the new nick before setting it; if some
validation of the nick was needed before setting it it would have to be
done by using "validate" from Backbone on the model (and
EditableTextLabel would have to be extended too to provide feedback to
the user in that case).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-10-30 13:57:55 +01:00
Daniel Calviño Sánchez b89d385046 Replace custom code with EditableTextLabel for room name
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-10-30 06:14:02 +01:00
Daniel Calviño Sánchez b5ce9061e6 Replace custom code with SidebarView
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-10-13 17:13:59 +02:00
Joachim Bauch a147201ca3
Further differentiate between room and call and move signaling code to central class. 2017-07-18 15:57:10 +02:00
Joachim Bauch bff7cd5229
Move signaling code to single class.
This makes it easier to support different implementations in the future.
With this change also removed redundant message handling code from webrtc.js
that was also present in simplewebrtc.js.

Signed-off-by: Joachim Bauch <bauch@struktur.de>
2017-07-06 09:05:47 +02:00
Jan-Christoph Borchardt c1a430d1dc Open header link of public call page in new tab to not throw people out of call 2017-05-22 15:00:33 +02:00
Joas Schilling b106fce792
Fix spaces
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-04-11 11:58:32 +02:00
Ivan Sein bf00a79b69 Add own screensharing options menu.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2017-03-30 12:45:52 +02:00