Commit graph

23451 commits

Author SHA1 Message Date
Szymon Kłos
41e151a03a user-list: center name vertically, avatar ratio
- avoid resized avatar due to text padding

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3d7b48b3981303096a42a1d8901012cec8a64be9
2024-04-01 11:26:51 +02:00
Szymon Kłos
5cdb826829 remove-w2ui: use JSDialog dropdown for user list
- reuse JSDialog Dropdown
- remove hack with overflow which was needed to show
  any popup above notebookbar
- fixes scrollbar visible above compact toolbar when
  switching from notebookbar mode

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0366dbd68df20991d5fb26d116c38fb657e64c6d
2024-04-01 11:26:51 +02:00
Szymon Kłos
91701db744 jsdialog: css: put toolbuttons rules in btns.css
- put in single place with other button rules
- apply also to .jsdialog case (selected, hover)
  so it will be used in new toolbars

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic04e1939908e0030e710902d38846ba50954fe23
2024-04-01 11:20:36 +02:00
Szymon Kłos
7b1acd8684 remove-w2ui: update toolbar item status
- toolbar had it's own status updates
- adjust the old code to use new toolbar functions

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6da6b75b40678ed8d32500151b7c1e2c436a8cfe
2024-04-01 11:20:36 +02:00
Rashesh Padia
f4696be0ca helm: update README
- added recommendation for resource values for production enviroment

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: Ia9a4b730bb7fd4c990d8c34531230b04c3a7f250
2024-04-01 12:37:20 +05:30
Aron Budea
47fcdd0cbc browser: Add Accept / Reject and Move to Next to tabbed bar and menu
Also fix Accept / Reject, which didn't show up.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ia27b19d640fb59e24b4f7ccabc0df7f2d1fa2498
2024-03-31 13:32:33 +10:30
Flavio F. M
506e489d5e Translated using Weblate (Portuguese (Brazil))
Currently translated at 90.9% (20 of 22 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 98.1% (108 of 110 strings)

Co-authored-by: Flavio F. M <flavius_androiduser@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/pt_BR/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibc54266fea67e85ff6151b88d6b759f630171718
2024-03-30 15:30:15 +01:00
Besnik Bleta
04c175daaf Translated using Weblate (Albanian)
Currently translated at 98.2% (572 of 582 strings)

Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sq/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8e683218df997cdf83acf44f9fa692f6d7f843f0
2024-03-30 15:30:15 +01:00
Méven Car
3b2b186615 Translated using Weblate (French)
Currently translated at 96.7% (563 of 582 strings)

Co-authored-by: Méven Car <meven.car@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia991b53cfc8bf5a5fc6407e35fc9e84f1151f0b1
2024-03-30 15:30:15 +01:00
Ihor Hordiichuk
b858c394fc Translated using Weblate (Ukrainian)
Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I52812d299e3157891c22daaaa72b3c50eeffef27
2024-03-30 15:30:15 +01:00
CloneWith
4453775650 Translated using Weblate (Chinese (Simplified))
Currently translated at 68.6% (328 of 478 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: CloneWith <clonewith@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hans/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie34a044632accf268ebf1236a45a7b8087f0a47e
2024-03-30 15:30:15 +01:00
Sebastiaan Veld
4878b1cdc9 Translated using Weblate (Dutch)
Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I10db544bfb6808fe767f82b461cd0c354cb91ee8
2024-03-30 15:30:15 +01:00
Software In Interlingua
124fd6de2e Added translation using Weblate (Interlingua)
Co-authored-by: Software In Interlingua <softinterlingua@gmail.com>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8ca386465e76aed5447944c1a4c068c0d31821a0
2024-03-30 15:30:15 +01:00
Oğuz Ersen
7a5c747217 Translated using Weblate (Turkish)
Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idacb6fdea2712f03dfc1cd2896fbdc0abff8fd61
2024-03-30 15:30:15 +01:00
Martin Srebotnjak
fa2110ced8 Translated using Weblate (Slovenian)
Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie03460b4acd12838566a724a6b4079ad9c3d7d35
2024-03-30 15:30:15 +01:00
gallegonovato
37acc6aa78 Translated using Weblate (Spanish)
Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I12cb02927c656a2309b8d57677731a4536d8a8a6
2024-03-30 15:30:15 +01:00
Rob Pearson
c72605a41b Translated using Weblate (English (South Africa))
Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib171b43b524cc71888d3b4bdd4e36c8d3d453ca9
2024-03-30 15:30:15 +01:00
Ettore Atalan
2eaefcd52d Translated using Weblate (German)
Currently translated at 99.3% (578 of 582 strings)

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I83d2fe41d3c83737e12588212368322796c9ed34
2024-03-30 15:30:15 +01:00
Szymon Kłos
f2e9dee701 cypress: fix multiuser tests after w2ui removing
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I53c5ed04a3ba3f63ebbca8f2322e34cf8f707a04
2024-03-29 21:55:23 +01:00
Szymon Kłos
d9dd67e0f9 cypress: skip failing Enable/Disable autofilter
it has problem with opening menu

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I72900aeee7a0d4548ae5281ff2ea3c16090ec736
2024-03-29 21:55:23 +01:00
Szymon Kłos
cc30bb1935 remove-w2ui: handle postmessagge insert/show/hide button
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I67c65e48faf467c1d3e4b478e66b8b8e0dc312b4
2024-03-29 21:55:23 +01:00
Szymon Kłos
9f6ae3bf54 cypress: be more tolerant for scroll ranges
so we will not fail with some themes used
also not fail when we didn't show sidebar switch
on the toolbar

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id511004176dcf91b553417a74cb3b71c239873eb
2024-03-29 21:55:23 +01:00
Szymon Kłos
ae20224fa7 Improve accuracy of Util.ScrollableBar
- remove jQuery where possible

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8aeb4284e62cd81fea8c51c7281fbffffc3d9986
2024-03-29 21:55:23 +01:00
Szymon Kłos
ebff222073 remove-w2ui: convert TopToolbar to JSDialog
- reuse old code as much as possible
- font, fontsize, style are managed by old select2 wrapper
- move some commands to dispatcher

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2fd1820b36f3c63a5fdcc482afbcc5ffe04e299f
2024-03-29 21:55:23 +01:00
Szymon Kłos
46b49afc2a jsdialog: avoid duplicated uno command execution in dropdowns
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id74f2149d2dac2c5c70f9c74b8eedb27b377d5eb
2024-03-29 21:55:23 +01:00
Szymon Kłos
3444b0b940 jsdialog: allow to execute action on menubuttons with menuId
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibbb7d6043e0e22c9c3edb9c295e190e6a72dfde5
2024-03-29 21:55:23 +01:00
Szymon Kłos
be1184eef1 notebookbar: correctly add and remove callbacks
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia798e12f06372e839ef8565d4c32626a44b44658
2024-03-29 21:55:23 +01:00
Szymon Kłos
76540bed81 jsdialog: allow separators in menubutton menu
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1d2e2e9485de1100faf3693d828036e21dbd7b06
2024-03-29 21:55:23 +01:00
Szymon Kłos
ad760e4d2c jsdialog: make toolbar styling shared
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id33cfcf9d91fbfe4a2180e945dd32439d4d5999e
2024-03-29 21:55:23 +01:00
Parth Raiyani
c9ef8c3015 Removed Group download as option from coolwsd.xml
Signed-off-by: Parth Raiyani <pmr642001@gmail.com>
Change-Id: I47c07ed88d68de5fc65b2e5e1e0896bc2a082131
2024-03-29 15:07:07 +01:00
Michael Meeks
9e0cef08c2 Websocket: allow a hard shutdown after flushing data.
Don't wait for the other end to acknowledge closing the socket.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: If5e4bb6d9c5148c0e0c61d59c233f6cf5594c577
2024-03-29 13:04:09 +00:00
Michael Meeks
df343fc5fa Watchdog: joinThread should tolerate not having a thread yet.
Change-Id: I9a0fe85d22dbe62c9be492e1c71dbb41f9253303
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-03-29 13:04:09 +00:00
Michael Meeks
425c01f284 Socket: allow re-creation of wakeup pipes.
Before spawning a child thread we want to close wakeups and
remove them from our global list to avoid the child waking the
parent.

However - if we are re-using a SocketPoll in a forked child,
we need to be able to create new wakeup sockets, so factor
out for re-use.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I06b088e02127482a65cd9666114ca9a93fd5ca7b
2024-03-29 13:04:09 +00:00
Michael Meeks
0a9a454c96 Socket: allow disabling of 'shutdown' on a socket.
shutdown closes a socket in both the parent and the child process,
which is not what we want when forking a bgsave process - and
certainly not for the socketpair we communicate down.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I10418e9c7f5edca60f257a60f11ba396984d39b2
2024-03-29 13:04:09 +00:00
Michael Meeks
80eeabb1a6 Watchdog: expose global watchdog thread.
This will enable thread joining before fork for bgsave.

Change-Id: I68c7c53f892f5edef861137c48759c7ccb8532ab
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-03-29 13:04:09 +00:00
Skyler Grey
b378a0fd77 calc: pinch-zoom: fix hard edge when zoom-panning
Previously we clamped the pinch so it could not go outside the bounds of
the initial zoom pane (presumably this was intended to avoid you going
outside the map with your pinch).

Unfortunately, this is the initial bounds, causing a nasty edge when you
panned around too much, which is particularly noticable with the
improved zoom-pan ergonomics.

I decided to remove this altogether rather than scaling it correctly, as
I don't believe that a check to make sure you're not going outside the
map feels particularly natural when pinch-zooming around the document,
particularly as only the center of your pinch is checked.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ib98ca91e82bbe7f2bb9986595fc5f7928e2206c9
2024-03-29 13:44:32 +01:00
Skyler Grey
6912edc5de calc: pinch-zoom: Fix zoom end position
Previously the new zoom did not correctly calculate where the end of the
zoom should be centered, causing the zoom to jump when it finished.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ic6c1eb032c66af764da4efca3f015af895e75600
2024-03-29 13:44:32 +01:00
Skyler Grey
f897c3fccc calc: pinch-zoom: stop cursor offset
Previously, overlayed elements such as the cursor did not properly
follow the new zoom as they were separately calculated. To fix this, we
can use the _getZoomDocPos function to calculate where these should be
drawn

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I39d6c926895e72be03ad33e6a9221a4f740e9b50
2024-03-29 13:44:32 +01:00
Skyler Grey
96e18f48a8 calc: pinch-zoom: Recognize zoom start position
Previously, the document would not always properly follow your finger
when you tried to pan while in a pinch-zoom. In particular, we would
sometimes get this disatrously wrong (e.g. at some zoom levels we would
move our fingers one way and have the document go the other!).

I have rewritten the _getZoomDocPos function to avoid this, in
particular by adding a parameter to keep track of where our zoom started
from which lets us know where we need to zoom around. In the
mouse/button zoom case this doesn't change, but in the touchscreen zoom
case it informs us how much the viewport should have been moved.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ia87d941651da43eb5c16c8ce10a2493e7214252a
2024-03-29 13:44:32 +01:00
Skyler Grey
3ba8257c64 Stop a leftover swipe action preventing a zoom
Previously if we were in animation from the end of a swipe and we started
a zoom, we would cut the animation but not continue to start a zoom. This
made surprising behavior when you could put down two fingers to stop the
ongoing movement but could not then zoom with them.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ib4c6e686caaf78b3637563da6fcc914c06f3055a
2024-03-29 13:44:32 +01:00
Michael Meeks
588aabb7c3 Watchdog: re-direct USR2 when enabled to snapshot a late thread.
By tracking the thread-id, we can deliver a SIGUSR2 to the right
thread at the right time; this avoids perf polling our uninteresting
watchdog thread.

In that thread use Caolan's suitably obscure futimestat system-call,
so that we can record based on that to see only slow things:

perf record -e syscalls:sys_enter_futimesat -ag --call-graph dwarf,65528

Change-Id: Iad05d8589fdc9541a7d0599f63625d2cde5fdf89
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-03-29 10:35:32 +00:00
Szymon Kłos
026ac909c1 remove-w2ui: disable search next/prev buttons on init
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I520d495dc8f00288a451cc73eeca327d1fdcd02f
2024-03-29 01:40:29 +01:00
Szymon Kłos
35c13792ca remove-w2ui: add tooltips for statusbar buttons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifd8994e78947b38dd27a3382b8af15c1c7745c78
2024-03-29 01:40:29 +01:00
Szymon Kłos
2f42cbeb63 remove-w2ui: hide some statusbar items in readonly mode
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If8ed7efc5d8eec6d28366d8e25d801a31895c9b9
2024-03-29 01:40:29 +01:00
Szymon Kłos
a0c0e1601e remove-w2ui: permission mode indicator without hover effect
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibd540c00a7aaf53b0a831847ae0eb57137e418c4
2024-03-29 01:40:29 +01:00
Szymon Kłos
6a452d9023 remove-w2ui: convert status bar to JSDialog
- move plain html controls into HTMLContent widget
- reuse scrollable bar from notebookbar
- use dynamically loaded menu entries in MenuButton
- allow to update MenuButton which contains menu id in the id

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2b77479520c03420fefeb32dd09d6b34279e5686
2024-03-29 01:40:29 +01:00
Szymon Kłos
a091d1970c remove-w2ui: reuse user list from notebookbar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id3bb9615385e9951dd53d591f71389975fa8ace9
2024-03-29 01:40:29 +01:00
Henry Castro
652d52f7df browser: fix scroll tab when loading document
If the element 'spreadsheet-tab-scroll' does not exist
when loads document, then scroll to the selected tab.

Change-Id: Iec86225f7ea97a149d455210921daaf91a4e761a
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-29 01:43:39 +05:30
Gökay Şatır
b6a1df0c9d Show cursor in readonly mode.
Add a guard for potentially undefined functions in scroll section.
Allow arrow and home, end keys in readonly mode.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ie695ebf2cd14f49fbb4db2b9ba8f81df5b289591
2024-03-28 12:44:53 +03:00
Szymon Kłos
6f44bbc600 Fix error on hide tooltip
Tooltip can be modified only when was already initialized.
Sometimes we tried to hide it without initilization.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6f4a18acef6be2d3c00548f8b4408c7876d6bdfa
2024-03-28 07:51:42 +01:00