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

33 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling 6d4189348a
feat(initial-state): Add own user groups to initial state
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-03 20:02:58 +02:00
Joas Schilling c1970caef4
chore(CS): Unify construct() calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-13 14:28:41 +02:00
Joas Schilling f3ff4a8820
automated: Apply CS fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-13 13:17:49 +02:00
Grigorii Shartsev 2c88576f55 fix: remove import of deleted `At.css`
Signed-off-by: Grigorii Shartsev <grigorii.shartsev@nextcloud.com>
2023-02-22 09:55:17 +01:00
Joas Schilling 63bd1f4673
Specify template event class
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-12-12 09:45:57 +01:00
Joas Schilling 6b00177540
Transform conversation icons to CSS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-12 15:50:36 +02:00
Joas Schilling 1067cf001a
Move publicshare files to CSS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-12 12:18:57 +02:00
Joas Schilling d4519ebe55
Move At.scss to At.css
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-07-12 12:18:57 +02:00
Joas Schilling 91cad65d0e
Initial state service is deprecated
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-01-21 11:47:31 +01:00
Vincent Petry 25a6ba6c53
Remove request password button when verif disabled
Whenever the video verification has not been set for a share, do not
display the button "Request password" in the public link page.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-12-16 10:50:43 +01:00
Joas Schilling 79a97a9db2
Use new BeforeTemplateRenderedEvent for share template loading
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-07-16 11:36:35 +02:00
Joas Schilling 84d42604e6
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-05-12 15:04:42 +02:00
Joas Schilling bbcb75c589
Require a distributed MemCache
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-05-12 10:40:20 +02:00
Joas Schilling 9ea0f5bcfa
Create the initialState in a single location
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-27 22:49:15 +02:00
Daniel Calviño Sánchez 51e0ed85d0 Fix missing element for Chromium screensharing extension
In Chromium < 72 an extension is needed to share the screen
(https://github.com/nextcloud/spreed-screensharing-chrome-extension).
Once installed, the extension enables itself only in those pages that
contain an element with id "app" and class
"nc-enable-screensharing-extension" when the document is loaded.

As the element can not be added after the document has loaded and the
screen sharing should work also when Talk is enabled in other apps a
(hacky and very likely not compliant) meta element is added in the
header element to be found by the extension whenever Talk is used.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-04-06 21:05:39 +02:00
Daniel Calviño Sánchez 833d96a8f5 Add dummy Talk sidebar to public share auth page
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-01-14 19:06:24 +01:00
Joas Schilling 0e1d2b39b9
Typed events for Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-04 08:36:59 +01:00
Joas Schilling d4fc586f1a
Bye Spreed, hello Talk!
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-09-05 14:29:09 +02:00
Joas Schilling 57d04a562e
Do not load unnecessary classes in Application
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-14 08:50:37 +01:00
Joas Schilling fb90a74231
Make all classes strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-12 16:07:59 +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 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
Daniel Calviño Sánchez c1840244e1 Fix initializing the app twice
When Talk is embedded in the public share authentication page the app is
explicitly initialized in "publicshareauth.js" (as some special setup
for the settings will be needed in that case); "init.js" should be used
only for the regular Talk app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-05 11:04:42 +01:00
Joas Schilling e6678362b4 Rename the Listener and register it like we register new listeners
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-08-08 10:24:49 +02:00
Daniel Calviño Sánchez 7190c2086f Load additional scripts in public share auth page when needed
Before the public share auth page is rendered an event is dispatched
that can be used by apps to load additional scripts. This event is now
used to load the scripts that, when run on the browser, will inject the
Talk UI as needed in the page generated by the server.

The scripts will be loaded only when the share has the "send password by
Talk" option enabled; they add a button to the page that, when pressed,
creates a new public share auth room with the sharer and shows, in a
sidebar, the Talk UI for that room.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-08 10:24:49 +02:00