Commit graph

21959 commits

Author SHA1 Message Date
Andras Timar
af8ba81943 Fix CSS selector: make checkboxes visible in light mode
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6e8194ea456e4af3104754cf9219be22f135c042
2023-10-16 16:56:03 +02:00
Caolán McNamara
8afe3dc922 different tile widths in requestedTiles on switching calc tabs
if we zoom in calc quickly that can result in still unfulfilled requests
for the first set of tiles from the earlier zoom in requestedTiles when
the new requests are compared with the existing one for duplicates, but
they are of different tilewidth/tileheight and shouldn't match as a
duplicate.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ifc3f905c5304feb6c05696835dcb4eaed7f1e546
2023-10-16 14:35:53 +02:00
Caolán McNamara
e95489864b keep quarantine files on SIGABRT too
AdminModel::cleanupResourceConsumingDocs uses SIGABRT as first
attept to kill misbehaving documents, we should give
DocumentBroker a chance to quarantine documents killed off by
SIGABRT as we do SIGSEGV/SIGBUS

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ic3a703572393050379b5a1444a5380bbeafcf2d3
2023-10-16 14:27:27 +02:00
Szymon Kłos
5f9b8cab6c jsdialog: reduce warnings in console for sidebar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibe3c82bde06eb96fe08ea977472c776be4132de1
2023-10-16 10:52:14 +02:00
Szymon Kłos
88b5f508e8 jsdialog: simplify sidebar action code
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I49a5ce3b2667c49475ebbc45d49e00915ad9e4b9
2023-10-16 10:52:14 +02:00
Szymon Kłos
a7ece5d0d6 jsdialog: reduce warnings in console for formulabar
we emit lots of warnings which are not important

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I59027c4d848a98ba3d9e8f4a3feafd3fcb62dec2
2023-10-16 10:52:14 +02:00
Szymon Kłos
1b4883877c jsdialog: move mobile border selector to separate file
to make main JSDialogBuilder shorter and easier to read.
And move handler to mobile builder as control exists only
on mobile.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9a14c7050711658638d22f0fd7b47e038b5952a1
2023-10-16 10:52:14 +02:00
Caolán McNamara
d6c1916cb2 cool#7374 very little delta threading
We only run one task in each thread when run() is called, then complete
the remainder of tasks in the main thread while the other threads wait.

https: //github.com/CollaboraOnline/online/issues/7374
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id4fc0a620d98b0bb55310b495eeff7411a4544b5
2023-10-16 09:26:32 +01:00
Caolán McNamara
724c0ca7a6 cid#318860 Unchecked return value from library
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I765e71d76ff4be8ef7a92b060af026e3c26f669b
2023-10-16 09:37:01 +02:00
Caolán McNamara
960938e000 cid#318957 Unchecked return value from library
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I5bd471f86668d9fbd72cfb050fb67df6d70bdc9f
2023-10-16 09:37:01 +02:00
Caolán McNamara
54c63f6cc1 different 'parts' in requestedTiles on switching calc tabs
if we switch calc tabs quickly that can result in still unfulfilled
requests for the first tab in requestedTiles when the new requests are
compared with the existing one for duplicates.

It doesn't make sense to replace a request for a new tile with an old
request from a different part. But tilecombines are intended to share a
'part', so a single tilecombine shouldn't be synthesized from multiple
requests for different parts.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id8d40f0a7e7f9d32fed67a415756284d7f6a53d4
2023-10-15 19:28:43 +01:00
Andras Timar
db553e3edf Remove ellipsis (…) char at the end of notebookbar button labels
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie110bc895d7a639266affb9ba3129a5a831d6e2c
2023-10-15 16:35:28 +02:00
Szymon Kłos
b35c4f5a1d jsdialog: move frame handler to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I36640680eb2e0594eb336353deba6c34d1d933e7
2023-10-15 11:43:07 +02:00
Pranam Lashkari
9be1e9261d jsdialog: make sure all elements in frame are displayed
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie0b949c8dcd820de380f9ee6b497631e594114f3
2023-10-15 11:43:07 +02:00
Szymon Kłos
1d48bff888 Disable failing impress/editable_area_spec.js
this was failing on CI recently

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0332a1ea47298059ba2dac4fcc7af70738431a5c
2023-10-14 19:29:19 +02:00
Caolán McNamara
8d42849156 ProcSMapsFile might not be a valid file descriptor
in which case don't send it, which then implies we might have
an empty shareFDs which we can treat the same as a nonexisting
shareFDs

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I80a78a01c69dbee5ee28a64442a5069a6c2b4dbe
2023-10-14 12:56:15 +01:00
Pedro Pinto Silva
a1b2091ae6 JSDialog: Dialogs shouldn't be taller than viewport
Don't allow dialogs to grow taller than the web browser's viewport
instead,
 - Set (for dialog's content) a max of 90% of the View height and subtract the dialog's
header. This way the header with the close button stays always visible
 - Set overflow accordingly so it can be  scrollable
   - Needs to have !important because it seems we need by default
   "overflow: hidden;" set to every  ".jsdialog-container
   .lokdialog.ui-dialog-content.ui-widget-content"
      - introduced in afbf052bb5
      possibly due to hidden elements that are part of DOM

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I61a2a41d8b1198fe00b939427cde43d247dc08bb
2023-10-13 13:52:11 +02:00
Szymon Kłos
ede848b2b3 Update file headers in jsdialog related components
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I347ebde789495d852c091cefb1c84ab9f1c7ebdb
2023-10-13 10:01:31 +01:00
Marco Cecchetti
da59a84935 followup: no copy event is emitted by hitting CTRL+C with no selection
This is still occurring also in Firefox 118.
Anyway it seems to never occur on Windows.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I0e5c643912f2276c60bdba1b2ad1ed801785193f
2023-10-12 17:25:52 +02:00
Caolán McNamara
dffef0e99b reduce onStatusMsg retry timeout to 10ms
https: //github.com/CollaboraOnline/online/pull/7390#discussion_r1351943503
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I0a32933d54fa44486c6807c4d0b01e2029700271
2023-10-12 09:09:25 +01:00
Darshan-upadhyay1110
2586e04148 Fix export as options on android app
Some of the options seems to not working on mobile app
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I934e446dfeeab46f26e95898522cb0b7c1cc64a2
2023-10-12 07:33:26 +02:00
Andras Timar
1fea2274fb Bump version to 23.05.5.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I54981e3b8ff71be9d47f5ce39ec435ea7a382ab3
2023-10-11 20:29:43 +02:00
Pranam Lashkari
b39a0bba79 browser: notify user for unsupported video
detect if video is able to play via checking if any frames are decoded,
in other cases(i.e: file not found or corrupted file) check for the errors in source and video

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I22bfc836a98ec0eb2caa58b89332b2531d69d18f
2023-10-11 20:23:37 +02:00
Cosmin Humeniuc
4fca649079 Re-set id of 'selectbackground' to 'layout-selectbackground'
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro>
Change-Id: Ifdb843b3337ddc1ad64191485335bdcf0ac79478
2023-10-11 18:30:36 +02:00
Cosmin Humeniuc
89db8cf5d4 Enable "Set Background Image" button in tabbed view
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro>
Change-Id: I9e6c5f3070683e1949d66355d8e0cf832580b912
2023-10-11 18:30:36 +02:00
Skyler Grey
237d9c084a safari: workaround SVG position bug
This commit fixes videos rendering in the wrong place on Safari (and all
iOS browsers). Note that it will still need the server fixes contained
in https://github.com/CollaboraOnline/online/pull/7367 for Safari to
play video

To reproduce, load a document with an mp4 video in Safari (this may also
work with other formats, but we know of unrelated bugs with non-mp4
videos) and click on the place where the video should be.

Before this commit, you will see a white rectangle where the video
should appear. After this commit, you will see the video. If you have
this commit but not #7367 you will see a play button with a "broken
video" strikethrough. In non-Safari/iOS browsers you will see the video
both before and after this commit.

This commit does not include detection for the upcoming Layer-Based SVG
engine <https://wpewebkit.org/blog/05-new-svg-engine.html>. This means
that this commit will *break* video if this is enabled in Safari debug
mode.  If this commit is merged as-is we need to make a followup to fix
this as soon as possible or we will end up with a similar-but-opposite
bug when that flag is toggled on by default.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I205e692e7027ad917bd6f29aa96b0ac70a4c9e04
2023-10-11 16:25:47 +00:00
Oğuz Ersen
99b83417d1 Translated using Weblate (Turkish)
Currently translated at 100.0% (525 of 525 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: Ie2db76bce482a3557f790a2e7a5392f75692e077
2023-10-11 18:24:02 +02:00
Leif-Jöran Olsson
03f0d80d8a Translated using Weblate (Swedish)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Leif-Jöran Olsson <info@friprogramvarusyndikatet.se>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifb2674e4a0f0b3dbf5d466734558d00292d1396a
2023-10-11 18:24:02 +02:00
Matthaiks
6754c74991 Translated using Weblate (Polish)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id708a7b627d80f9783ed36e0f2f98a07d0dfb11a
2023-10-11 18:24:02 +02:00
Sebastiaan Veld
f1b703bf10 Translated using Weblate (Dutch)
Currently translated at 100.0% (525 of 525 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: Iccba3f92080bb0c0a626491636ce214441e22684
2023-10-11 18:24:02 +02:00
Andras Timar
0608b3e808 Translated using Weblate (Hungarian)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icdaa800456e29f7f923b65d4a39346f6d8e3ab0b
2023-10-11 18:24:02 +02:00
Milo Ivir
01922e6c55 Translated using Weblate (Croatian)
Currently translated at 99.8% (524 of 525 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6ce5be9af96f7298f48a88c6e22ed46cc22e87df
2023-10-11 18:24:02 +02:00
gallegonovato
0626607d9e Translated using Weblate (Spanish)
Currently translated at 100.0% (525 of 525 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: If739719ada0d1ef7ca67c75c2b54ace9b07a91f0
2023-10-11 18:24:02 +02:00
Pedro Pinto Silva
54348fb2ca Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (French)

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Pedro Silva <pedro.silva@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7834a95d77c55037d72b4afee337eb831df6c09e
2023-10-11 18:24:02 +02:00
Skyler Grey
2666063040 Allow http Range header for media files
The range header allows a client to specify that they would like only
part of a file, e.g. only the first 1000 bytes of a video. When playing
video on Apple devices (Macs, iPads, iPhones etc.) this is required to
avoid Safari rejecting the video as broken. This is the first part of a
fix to embedded videos on Safari.

This commit does not implement specifying multiple ranges at once (e.g.
bytes=0-9,-100 to get the first 10 and last 100 bytes).

This feature is necessary to play video on Apple devices, but it is not
sufficient. In particular, I believe some further client-side fixes will
be needed to make the video play properly.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Id89a06d374b7d0efbf2b3184d8618df61684dcb6
2023-10-11 15:09:15 +00:00
Andras Timar
0cfdb87362 exclude debug/dev files from production packages
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic9b49a401b63af65f4e53e3eb2584b8258575c2a
2023-10-11 16:45:26 +02:00
Rash419
762ce28e22 browser: make reconnnect experience smoother
- don't invalidate the tiles
- don't reload the document if serverId changes
- writer: fix cursor jumps to top the document

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ie42850e77f9011cd1c820115919f10283407f216
2023-10-11 16:54:06 +05:30
Andras Timar
6eb60acffd Change the local storage setting name 'CompactMode' to 'compactMode'
We want to re-force the choice, i.e. people who mistakenly set
their UI to compact mode, now will get tabbed mode and can
decide, if they like it better or not.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic5810321abf2cbc3996478816fe153d848c66c71
2023-10-11 11:54:06 +01:00
Marco Cecchetti
022e32e5d2 a11y: impress: screen reader support for text shape editing
Now accessibility support can be enabled in Impress.
Created cypress tests for editable area in Impress

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Ia2fd4e55bce3785320ec0cc9f31a6d7550ca3a82
2023-10-11 10:18:46 +02:00
Pranam Lashkari
dda49b0af6 annotation: fixed autosaved comment cannot be closed
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I504df4738054076b35e36b878d8f8651af4543eb
2023-10-11 08:44:57 +02:00
Pedro Pinto Silva
9a6b877190 Snackbar hasProgress: Set to double column grid
Use new id for snackbar with progress and style it

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I24a1647f0f629b7b079aa65601f4309c339a06e8
2023-10-11 08:29:43 +02:00
Pedro Pinto Silva
37bc01a730 Snackbar: fix pushbutton padding
Before this, the padding-right was being set to 0 (probably to save up
space) but this is not the way to do it. It looks weird when the focus
is set to that button.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib60b32cd9d0f5f42444cadef121be32c15941483
2023-10-11 08:29:43 +02:00
Szymon Kłos
8f188a543a clipboard: show 100% progressbbar on completed download
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I55762e03a31ceca379514f422c8100b5ac1edd9d
2023-10-11 08:29:43 +02:00
Szymon Kłos
a3c841236b clipboard: update messages
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I247e5e802265aef6d423e5049a3b4a43ac03618c
2023-10-11 08:29:43 +02:00
Szymon Kłos
5aac0203c5 clipboard: don't show full warning on paste
if complex selection was copied in one window
then we try to paste in other document, then
the same dialog appeared. this commit shows
only progressbar step for "paste" operation
as we don't need to do anything else.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id9c33261dbdfb282d142cdfdf2217b30111263b1
2023-10-11 08:29:43 +02:00
Szymon Kłos
c247b20509 snackbar: make progress visible
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3f1022c4680d749f80116b7480e58e14e2bce5b1
2023-10-11 08:29:43 +02:00
Szymon Kłos
27c72ca4d0 clipboard: set equal width for progress dialogs
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib0dde8d856c0358d9c5ec7ecb128b458221bb70f
2023-10-11 08:29:43 +02:00
Szymon Kłos
9d65a03e5b clipboard: complete dialog shows 100% progressbar
Reusing progressbar dialog allows us to show it's the
same process for the user. So even if it is instant he
will see 100% progressbar and that button become enabled.

Create new file for functions which manipulate existing
modal dialogs.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I765483b940f47bdfbcf8a488ea7d0ab9569ccda9
2023-10-11 08:29:43 +02:00
Szymon Kłos
a451cc4de8 clipboard: make dialogs more unified
- use the same id so we can apply common styling

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0fb567fd5b77e3ca57b5ba5cd8d6e1fa29e46fc1
2023-10-11 08:29:43 +02:00
Szymon Kłos
c1d0ec909c snackbar: use ESC to dismiss sidebar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8f198ec3fd1ce459f9f9cce02755548224e5c721
2023-10-11 08:29:43 +02:00