Commit graph

18272 commits

Author SHA1 Message Date
Michael Meeks
b830ca266e perf: don't send endless stream of updates/callbacks to Admin.
Change-Id: Ic4ac1f189706f5a9b409c91e2497e5a37692c333
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-26 19:53:11 -04:00
Michael Meeks
6de4eb865e socket: only wakeup the mainloop on addCallback for the 1st callback.
Change-Id: I96d9f0d46a5557ba464664456ec82605780f7de1
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-26 19:53:11 -04:00
Michael Meeks
92d3435dd1 Admin: improve smaps parsing performance.
We have around ~8k smaps lines for each process, polled regularly.

Change-Id: I7e78b17e52aeaec55fa17c5192a940aa9e44b045
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-26 19:53:11 -04:00
Pedro Pinto da Silva
74f39eb1b2 Fix Insertcontentcontrols strings on tabbed view
Don't use strings coming from uno commands as they include
"Insert":
1. There is no need to say that these actions will "Insert", they
are already in the Insert tab
2. All other actions do not have Insert so it would be not consistent
3. On top of that with Insert in each icon the labels look quite long

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: I286e95187d5df08cdf2d71bd99f3b77a17ef12ad
2022-05-26 11:38:05 +01:00
andreas kainz
6810f57dab btns var color name fixes
btns use var names that didn't exist

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I13f2acbdd91cf05391da81adc721156d125f3de7
2022-05-26 11:20:38 +01:00
Michael Meeks
d3f5ba64c1 deltas: avoid interpreting a keyframe as a delta.
Just apply it and move on.

Change-Id: Ib15d4438f3c3e5c0d6996784a6cd64b061b20e1c
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-25 21:24:20 +01:00
Michael Meeks
6483e1500a Enable deltas by default.
Cleanup some debugging, distinguish wsd/viewport delta fetches from
client-side tilecombines.

Update tests for deltas where they are expected.

Change-Id: I3dca09e4ceb094abf03db2aed2618f19351f3e28
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-25 20:31:06 +01:00
Michael Meeks
ae3ac0e4cd De-compress back-to-back streams using pako.
We concatenate several deflated streams back to back, and need to
decompress and apply each one by one.

Change-Id: Ic31f0eae27906f7817a877c98f4cd1e5ca4ee7f3
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-25 20:31:06 +01:00
Michael Meeks
c130231379 deltas: track, transmit and cache deltas (disabled for now)
Squashed from feature/deltas-expanded.

TileCache changes:
    + add montonic sequence (wid) numbers to TileData
    + account for sizes of TileData with multiple blobs
    + simplify saving and notifying of tiles

Sends updates (via appendChanges) based on the sequence the
right mix of keyframes and/or deltas required as a single
message, and parse and apply those on the JS side.

We continue to use PNG for slide previews and dialogs,
but remove PngCache - used by document tiles only.

Annotates delta: properly as a binary package for the websocket.

Distinguishes between deltas and keyframes we get from
the Kit based on an initial un-compressed prefix
character which we then discard.

kit can be forced to render a keyframe by oldWid=0

Track invalidity on tiles themselves - to keep the keyframe around.

    We need to be able to track that a tile is invalid, and so subscribe
    to the updated version as/when it is ready - but we also want to
    store the keyframe underneath any deltas.

force rendering of a keyframe for an empty slot in the TileCache.

force tile sequence to be zero for combinedtiles - so the client can
always request standalone tiles with explicit combinedtiles, or tile
requests.

move Blob to Common.hpp

use zero size for un-changed tiles.

remove obsolete render-id, and color deltas in debug mode.

cleanup unit tests for non-png tile results.

Change-Id: I987f84ac4e58004758a243c233b19a6f0d60f8c2
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-24 22:16:58 +01:00
Ashod Nakashian
c11fab5b78 wsd: browser: handle 413 Entity Too Large from storage
It seems at least some storage hosts report disk-full
errors via 413. This logic of handling 413 error as
disk-full was introduced in
f8e0b8c11e.

Here we handle 413 as it is defined, as Entity Too Large.

Change-Id: I61297c2fab9de663643336a6eba47949f82d1737
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-24 22:48:37 +03:00
Szymon Kłos
50f2dec7bc formulabar: added expand/collapse button
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I41625adc4d421a4ef0fa9c8ac88cf7f44a0f4787
2022-05-24 12:01:05 +01:00
Ashod Nakashian
dccdf9fafa wds: enable experimental blocks unconditionally
This enables code that was protected with
EnableExperimental in the socket logic (and one
case in DocBroker). These changes are now deemed
safe to enable permanently.

Change-Id: Ie62f5d7bd281ade90f38d654b51b104b8d1f14bc
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-23 17:00:31 +01:00
andreas kainz
0b494b6db9 add icons lc_insertcontentcontrol and lc_insertcheckboxcontentcontrol
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I3b9ffedcbd393c612d4763433736ef6b038e3b97
2022-05-23 11:44:02 +01:00
Gökay Şatır
c009faa205 Remove unused functions.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ifc5a4a5899e3e4ff26530e9b2f1794824e70f660
2022-05-23 11:37:14 +03:00
Andras Timar
7522caa888 typo: Hiddent->Hidden
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I08cae2b79de9c4c7d429e722dc5dbea6d3a9dc70
2022-05-22 17:55:20 +02:00
Gökay Şatır
835b6b10a3 Remove _moved function.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ica771fb38ea6523906d28b10fdc4842ac1d0e33e
2022-05-20 14:49:04 +03:00
Gökay Şatır
c56f73a915 Remove unused ObjectFocusDarkOverlay.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I430d0c4600ee74518e9442099530c754017fe3bb
2022-05-20 14:49:04 +03:00
Dennis Francis
a9b904c2f6 printranges: indicate them with dashed lines in grid
Read the print ranges for the current sheet from
LOK_CALLBACK_PRINT_RANGES message and draw dashed grid lines for the
rows/columns bordering the range.

Caveats:

* Desktop calc does not draw print ranges on document load if there are
print ranges set previously on save. Cool also has the same behaviour.

* If there are multiple print ranges in the same sheet desktop calc does
not show any dashed lines indicating the ranges. Cool also adopts this
behaviour for now.

* Styling of the dashed lines was not investigated much for writing this
patch hence it uses the same drawing style as normal grids.

Signed-off-by: Dennis Francis <dennisfrancis.in@gmail.com>
Change-Id: I318b679a232f2a6834d6e23278b24a9a96b70194
(cherry picked from commit eb94d9a864a37499e21dbd064e78e40fc20b2415)
2022-05-20 13:00:39 +03:00
Dennis Francis
ebf970fc4f calc: new callback LOK_CALLBACK_PRINT_RANGES
Signed-off-by: Dennis Francis <dennisfrancis.in@gmail.com>
Change-Id: Ia136c0675dbba51a53424916910219e8330764ac
(cherry picked from commit 817a4cd3f1f219a0d9caba129cbb3eca4fe31514)
2022-05-20 13:00:39 +03:00
Rash419
82eacd26bc cypress: skipping columns test in impress/table_operation_spec.js
cannot reproduce locally temporarily skipping the test

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2007a2dc643306551be859b1bdcf48982fe4a33d
2022-05-19 13:33:20 +05:30
Rash419
f90fbe23bb cypress: added new function selectCellsInRange
after the jumbo sheet patch selecting entire row and merging all the cells becomes costly and cypress timeouts
therefore select first 100 cells and test the merging functionality

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8568bbdbabdccc55c2938f886619a1d178ae7d22
2022-05-18 19:14:07 +05:30
Miklos Vajna
feb19b588b unit-test: fix crash-on-shutdown
A problem since c6561a99d8 (wsd: test:
correctly stop SocketPoll in UnitTimeout, 2022-04-21), the trouble was
that calling UnitWSD::returnValue() from UnitTimeout::returnValue()
deletes the 'this' pointer, so we need to copy the interesting data
members to the stack before calling the base.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I86583ae516e2b2f367fbf5cb2a9401cc21f1b1cf
2022-05-18 15:41:30 +02:00
Andras Timar
5ee19590f3 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I09271e641fb67c28fe50046d20a67d521151a6f0
2022-05-18 12:30:48 +02:00
Diggaj Upadhyay
8497edbafd Translated using Weblate (Nepali)
Currently translated at 77.2% (17 of 22 strings)

Co-authored-by: Diggaj Upadhyay <dcozupadhyay@duck.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ne/
Translation: Collabora Online/Android lib
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I21f80d2369de1d5c10c287ca2ec230744a422c39
2022-05-18 12:25:18 +02:00
Weblate
f9d6cd978a Added translation using Weblate (Nepali)
Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib859e1f9352e9fb4b1131a7417291cfdd98b4982
2022-05-18 12:25:18 +02:00
Diggaj Upadhyay
08311b4e80 Translated using Weblate (Nepali)
Currently translated at 1.8% (2 of 110 strings)

Translated using Weblate (Nepali)

Currently translated at 44.8% (205 of 457 strings)

Added translation using Weblate (Nepali)

Co-authored-by: Diggaj Upadhyay <dcozupadhyay@duck.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ne/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ne/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20cfee897e603d4701b2a495823989bfbf4ae888
2022-05-18 12:25:18 +02:00
Mikhail Pershin
fc17bd110e Translated using Weblate (Russian)
Currently translated at 59.9% (274 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 59.7% (273 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 58.8% (269 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 58.2% (266 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.9% (265 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.7% (264 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.3% (262 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.1% (261 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.1% (261 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 56.8% (260 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Mikhail Pershin <mikhail@frcdr.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I301ef881c66e494d98bfc113af731797bb824bf0
2022-05-18 12:25:18 +02:00
Alexander Gabilondo
7af62ac67e Translated using Weblate (Basque)
Currently translated at 96.9% (443 of 457 strings)

Translated using Weblate (Basque)

Currently translated at 93.2% (426 of 457 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/eu/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If3e9602bbdcd5e5a6c82f7770b77f99bfab7ccf5
2022-05-18 12:25:18 +02:00
Leif-Jöran Olsson
f155148e00 Translated using Weblate (Swedish)
Currently translated at 100.0% (444 of 444 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: If5be1127996813e07f1efcfeb588e227cc868104
2022-05-18 12:25:17 +02:00
Adolfo Jayme Barrientos
e07387539f Translated using Weblate (Vietnamese)
Currently translated at 95.7% (425 of 444 strings)

Translated using Weblate (Uzbek)

Currently translated at 22.2% (99 of 444 strings)

Translated using Weblate (Russian)

Currently translated at 98.6% (438 of 444 strings)

Translated using Weblate (Romanian)

Currently translated at 20.7% (92 of 444 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Indonesian)

Currently translated at 98.1% (436 of 444 strings)

Translated using Weblate (Galician)

Currently translated at 73.1% (325 of 444 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Asturian)

Currently translated at 15.0% (69 of 457 strings)

Translated using Weblate (Greek)

Currently translated at 97.7% (434 of 444 strings)

Translated using Weblate (Catalan)

Currently translated at 99.7% (443 of 444 strings)

Translated using Weblate (Bulgarian)

Currently translated at 73.4% (326 of 444 strings)

Translated using Weblate (Belarusian)

Currently translated at 0.4% (2 of 444 strings)

Translated using Weblate (Asturian)

Currently translated at 49.7% (221 of 444 strings)

Translated using Weblate (Afrikaans)

Currently translated at 29.2% (130 of 444 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/af/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/be/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/bg/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/gl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ro/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uz/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/vi/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5fd5bb78227077cc6763ed4329670e66a454c11f
2022-05-18 12:25:17 +02:00
Nathan
c0eab14c06 Translated using Weblate (French)
Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Nathan <bonnemainsnathan@gmail.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: Ia13d2e61d3e55a29c7c27a7a53732b6e59bafde8
2022-05-18 12:25:17 +02:00
Luboš Luňák
b999f12500 make cypress tests work also with 16384 columns
Some places tested for AMJ being the last column, but with 16k
columns it's XFD. Without this those tests run in an endless
loop when run with Calc set to 16k columns.

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>
Change-Id: I6249e0ec975634b60aaf3291e021b74b4aa3cc5d
2022-05-18 06:59:08 +02:00
Gökay Şatır
a4885396bb Remove unused divOverlay parts.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I98ea380037e1653cc4635f895d472825df413c73
2022-05-16 21:52:09 +03:00
Gökay Şatır
04a049922a Remove unused boxzoom related parts.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I6ce90e4ec020f2c96ad72b54ea5c5d2182c91bc1
2022-05-16 21:51:56 +03:00
andreas kainz
fee024f739 colibre-dark icons
as subfolder at images/dark

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I720cb82715760661faa74b7a9acb96ad97808ab5
2022-05-16 13:10:20 +02:00
Rash419
d6f055d36d contentcontrol: expose checkbox unocommmand
added checkbox in mobile,classic and notebookbar

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0bed99094c2c4bacd50529dbd00891d39cb40c13
2022-05-13 17:57:53 +03:00
Rash419
c9b9a6589e introduce content control in online
added unocommand to enter rich text in classic, NB and mobile
created a new section to draw rich text rectangles
handle the callback for content control

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If9912b3598729c26014519c4e1c3c65000b973a4
2022-05-13 17:57:53 +03:00
andreas kainz
df57005ae2 w2ui-scroll use var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0908c446ea5eb02c5fcd82f9fe0e2ac1af491dcb
2022-05-13 18:47:23 +05:30
andreas kainz
55d9724999 jquery-ui-lightness/ui-icons_ for dark mode
switch to ffffff instead of 222222 when the prefers-color-scheme is dark

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I3e3c68879c6b6a831d5fbf095597ddae6eb51f77
2022-05-13 18:30:10 +05:30
Rash419
2e186514f4 framed.doc.html: fix: cannot change UI view
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ifa842f64ed70137f06ebdfc053fa5a3afd2f4185
2022-05-13 17:28:04 +05:30
Miklos Vajna
bfb8b4431f CI: codeql-analysis: work with core co-22.05 assets
Otherwise we fail to find new callbacks, see e.g.
<https://github.com/CollaboraOnline/online/runs/6365091834?check_suite_focus=true>.

And a similar blind fix for the freebsd CI job.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I820823d0307d0a4a5d8c51b944c01b2b9ba6632a
2022-05-13 10:43:03 +02:00
Henry Castro
c802d65d82 infobar: enable info bar handler to check ...
the latest version available

Change-Id: Iff89895757fdd2ae83eb34401480253967234bbe
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
a3d0920e18 wsd: infobar: clean up unused code
No longer used.

Change-Id: Ifdaaabc49df1b9af0fb4d436ffe2437446f5926a
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
78e277b764 wsd: infobar: send latest version to the client side
Change-Id: I565d9d30c86ec12e7ee96df55ac8adc2e718626a
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
7ed475f25c wsd: infobar: fetch and save the latest version data
Change-Id: I7988fc69d4eaa35a26463cf180c26c6fd9b083e1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
59ca7a1a28 wsd: infobar: add config value "fetch_update_check"
Every number hours will fetch the latest version data.

Change-Id: I082d9ebb674058c6509dbd33537f24ec7cd9228b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
994e3213f7 infobar: fire 'infobar' message
JSON data contains latest version.

Change-Id: I86e581a5a148f32178d6665425e3105d38e04127
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
0912d5d83d infobar: clean up unused code
The infobar div is no longer used.

Change-Id: Ic184bf1d0b6259ba7b349aca68edf4692d06e849
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
ea9421c330 infobar: show a snackbar message
When data is received from the server.

Change-Id: I53b888acb7624d1ea909bf6fe9eadbf1948dc6b9
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
79562d0e17 infobar: remove unused functions
Change-Id: Ic45acc0e627b29ddcd714b74d62aaf82c95df846
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00