Commit graph

13308 commits

Author SHA1 Message Date
Henry Castro
5a65a06a0a mobilewizard: warn children data type check
Occurs when using the latest LO master branch
the mobile wizard fails:

Util.js:107 Uncaught RangeError: Maximum call stack size exceeded
    at String.split (<anonymous>)
    at Object.splitWords (Util.js:107)
    at NewClass.on (Events.js:20)
    at Function.listenNumericChanges (Control.JSDialogBuilder.js:124)
    at _formattedfieldControl (Control.JSDialogBuilder.js:1312)
    at NewClass.build (Control.MobileWizardBuilder.js:145)
    at NewClass.build (Control.MobileWizardBuilder.js:150)
    at NewClass.build (Control.MobileWizardBuilder.js:150)
    at NewClass.build (Control.MobileWizardBuilder.js:150)
    at NewClass.build (Control.MobileWizardBuilder.js:150)

The builder recursive looks like an infinity loop,
and the cause is that the server is not sending the array children
data type.

Change-Id: I298c239b6018a457d3825be886ea22cb984f13cc
Signed-off-by: Henry Castro <hcastro@collabora.com>
2020-12-08 09:19:55 -04:00
Tamás Zolnai
d7bb312776 cypress: use moveCursor() helper method in table tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic24458ca4aa32c3a883e6cfc018ca0429071cb43
2020-12-08 13:46:40 +01:00
Tamás Zolnai
550f04f94d cypress: remove this workaround.
The related issue was fixed in:
dc18239d07

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id0770d11fcaf8eb385b60ddf4286e804127999ca
2020-12-08 13:46:40 +01:00
Tamás Zolnai
35fe0b9541 cypress: remove these useless lines of code.
It does not actually do anything. Font size is not
stored as a 'font-color' attribute.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8e39a7c1064bce386c85ff21811fc6f95253adc0
2020-12-08 13:46:40 +01:00
Gökay Şatır
012d32b9ef Admin console: Make button sizes flexible.
This is needed for localization.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I19b648f94ca83ef7ee9f1ff8679926e6bb4afbb3
2020-12-08 12:22:44 +01:00
Andras Timar
21f8fca6b0 l10n of "Font Color" and "Highlight Color" on mobile UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic70841f2bfdb92a8aaa12c57aa274d7eac280cdb
2020-12-08 12:11:03 +01:00
Ashod Nakashian
ba4e52e7b9 wsd: log: overload chrono duration to simplify logging
Also, makes the logging of units much less error prone.

The overloaded streaming operators are temporary as
they are provided in C++20. The ones here (though
incomplete) are fashioned after the C++20 specs.

Change-Id: Ieb499282ccb6e63fa939ba07bed3e5a4fbef1bd0
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-08 09:26:41 +00:00
Ashod Nakashian
47630f826e wsd: use steady_clock for measuring time interval
chrono::system_clock can go back in time.
For time interval measurements, where we don't
care about the local time, a monotonic clock
should be used.

This avoids the server uptime jumping around
with daylight saving (or indeed by regular
synchronization with an atomic clock), among
other cases.

Change-Id: I09f9b24c82d19439348a2e66cad9e9de7d755208
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-08 09:26:41 +00:00
Ashod Nakashian
4cd460e239 wsd: avoid chrono::duration<double>
While chrono supports double as a datatype, it
is opaque and doesn't lend itself to any obvious
units of time (presumably seconds). Using
chrono::milliseconds is much more readable and
also safe when converting from seconds or any
other units. Ultimately, we typically convert
to milliseconds anyway, mostly for logging.
There is but one exception where we convert
in seconds, and now that case is documented.

Change-Id: Ide98f45f2ad8da8225d41ae870bbc4bc09a2a0b5
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-08 09:26:41 +00:00
Ashod Nakashian
90f79998fb wsd: convert limitLifeSeconds from int to chrono
No advantage in using int when chrono handles
conversion and comparisons transparently for us.

Change-Id: Idc942e7a2557ef979d876f378cf6bb84d3e657cd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-08 09:26:41 +00:00
Ashod Nakashian
6574fbd881 wsd: use chrono datatypes as much as possible
std::chrono handles unit conversion handsomely
and where there could be logical errors, the
compiler errors out. We only ever need to
use raw integer or double values to interface
C functions and possibly for IO.

Change-Id: I5c2b43c36bd69840f1a4172e9898666c4d68c567
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-08 09:26:41 +00:00
Gökay Şatır
8b937cfc14 Rename _channelName to channelName.
Change-Id: Ib0fe1f7cfcff4747cd8c0a520204fcf36410d546
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2020-12-07 17:30:51 -05:00
Gökay Şatır
cdd10066df AdminConsole: Additional changes based on reviews.
Change-Id: I277d9179a84dc34aae9770a07a3a72d35a24a0a6
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2020-12-07 17:30:51 -05:00
Gökay Şatır
b51413c0a0 Admin console: Cosmetic changes and documentation.
Change-Id: I977b5bc56f44c44b8bedf9f9bd710e7050fe67ff
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2020-12-07 17:30:51 -05:00
Gökay Şatır
ace1c23a99 Admin console log levels.
Now chosen log level is propagated to forkit and kits.
Also, admin console users can filter logs according to their channel names on client side.

Change-Id: Ife15a6148ed87533b81e9d63da252c633e74e559
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2020-12-07 17:30:51 -05:00
Michael Meeks
c069f72c4d Socket - re-work disposition to ensure we transfer sockets.
A number of call-sites, eg. clipboard, or admin-ws were
writing to sockets assuming they could return all the data
in a single series of writes, without needing to poll. As
such they failed to addSocketToPoll on the new poll - eg.
the docBroker. Unfortunately this meant that on EAGAIN
writes, the socket would be closed and the last parts
of a message lost.

Browsers would give net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

The situation is/was intermittent, so painful to debug.
On under-loaded developer machines, socket buffers are larger,
so this was seldom seen.

The re-factor forces a transfer to another SocketPoll via
the disposition, except for a couple of corner cases.

Change-Id: I2f1b2f99f179c4fda84464c9241fe434fa527725
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2020-12-07 14:32:43 +00:00
Szymon Kłos
16a0c6f5de jsdialog: Add headers support for treelistbox
Change-Id: I2d7972a8bde1108648f867a3a5c4e65a98472556
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-07 13:58:09 +01:00
Andras Timar
0dcb2f8951 typo fixes
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I509861239300ad169a640c174197829e403fa69a
2020-12-06 19:08:20 +01:00
Milo Ivir
859fb5e681 Translated using Weblate (Croatian)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Croatian)

Currently translated at 70.7% (295 of 417 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8bdf35100f46c48e4a2ea1d687de48d65343e7b4
2020-12-06 18:37:30 +01:00
Eloy Crespo
a4d58e6268 Translated using Weblate (Spanish)
Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: Eloy Crespo <eloy.crespo@collabora.com>
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: I4bfa2f01c11bb17672c2aa1dd5864a8bd8b45f89
2020-12-06 18:37:29 +01:00
Marc Rodrigues
2167c9ce00 Translated using Weblate (German)
Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: Marc Rodrigues <marc.rodrigues@collabora.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: I3029d0544a046cf3e1377d1a652722281bcf0b35
2020-12-06 18:37:28 +01:00
Pedro Silva
2b11f6ab79 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (363 of 363 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: Pedro Silva <pedro.silva@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I33cc0fdd31453d4c8c4190e38ce1dc709faaff35
2020-12-06 18:37:26 +01:00
Jan Holesovsky
3b6072b703 Translated using Weblate (Czech)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: Jan Holesovsky <kendy@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4285cb95fda091f0b68db90fdb9b778b0e90f0c7
2020-12-06 18:37:24 +01:00
Rob Pearson
68f5cbe98d Translated using Weblate (English (New Zealand))
Currently translated at 100.0% (363 of 363 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (363 of 363 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (363 of 363 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (363 of 363 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: I5cb95611b4c855b633189cf3a77198541f38ae6c
2020-12-06 18:37:23 +01:00
Ihor Hordiichuk
46fd80c91b Translated using Weblate (Ukrainian)
Currently translated at 100.0% (363 of 363 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: I8ec27e65b8fd5cbea99163c077c49b04ba6119fe
2020-12-06 18:37:22 +01:00
Oğuz Ersen
6b63eb7483 Translated using Weblate (Turkish)
Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
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: I6b338b7a540a3c0f00cd701448b6859c91a5edf9
2020-12-06 18:37:20 +01:00
Matthaiks
a1986cdb7e Translated using Weblate (Polish)
Currently translated at 100.0% (363 of 363 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: Ibead2062a9d481a4b29708f7b28374d7fbf9ce31
2020-12-06 18:37:19 +01:00
Andras Timar
09cee35566 Translated using Weblate (German)
Currently translated at 100.0% (363 of 363 strings)

Translated using Weblate (Hungarian)

Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
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: I410d55571afd1d247bd7fd0b383092ff251824c6
2020-12-06 18:37:18 +01:00
J. Lavoie
ddc1185e21 Translated using Weblate (French)
Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
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: I13d5cdba261c1ba932e8dde0ac7115fe5f258d36
2020-12-06 18:37:17 +01:00
Joan Montané
26c6e15fd3 Translated using Weblate (Catalan)
Currently translated at 100.0% (363 of 363 strings)

Co-authored-by: Joan Montané <joan@montane.cat>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I279dbb44582e0327c7f1f49744d4f9c2f9d011ab
2020-12-06 18:37:15 +01:00
Daniel de Souza Melo
0eb7e73790 Translated using Weblate (Portuguese (Brazil))
Currently translated at 60.0% (3 of 5 strings)

Co-authored-by: Daniel de Souza Melo <jxzk@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/pt_BR/
Translation: Collabora Online/CODE welcome text
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idd9c512623920fee31582f92cc068d7cc231efcb
2020-12-06 18:37:13 +01:00
Weblate
a4f0c8cb46 Added translation using Weblate (Croatian)
Added translation using Weblate (Czech)

Added translation using Weblate (Portuguese (Brazil))

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I560ba28b6d3ba40446a6dfe30a5af49568f6db35
2020-12-06 18:37:05 +01:00
Tamás Zolnai
4950ca4197 Revert "cypress: use moveCursor() helper method in table tests."
This reverts commit e1ed5d3c299f2664d108375a5ea3cb90814556a4.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I9684921837ed6f55a74fb45750bff6c890996a59
2020-12-04 23:10:56 +01:00
Ashod Nakashian
cf965fe4e3 wsd: do not decode already decoded fields
The different attributes of a document/user
are decoded when the kit receives them.
Decoding them a second time is usually harmless,
unless, that is, they contain '%'.

After the first decoding the '%' character might
not be escaping anything valid (depending on what
follows it). So a second attempt at decoding
might very well fail and throw, since the escape
code is invalid.

Change-Id: I73d56ce995b0237140a54b6c06bd36bde8b387bd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-04 22:21:08 +01:00
Andras Timar
d8bda129d7 docker: narrow down permission changes, binaries in systemplate should be owned by root
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I371c8445c12a10d52c4645a460d626a8a0e0e33b
2020-12-04 21:23:11 +01:00
Henry Castro
226a3116e0 loleaflet: sort the packages in package.json
I am using the "npm" version 7.0.12, and after
bundling the "loleaflet", the "package.json" is modified.

Let's sort permanently so I cannot get contaminated with
something that I did not touch in my source directory files.

Change-Id: I6a1e6d6b3f1b2898288f06de85fc0307b62cbbeb
Signed-off-by: Henry Castro <hcastro@collabora.com>
2020-12-04 15:54:04 -04:00
Gökay Şatır
19fed3e255 CalcTileLayer: Rename _corePixelsPerCssPixel to _dpiScale
Remove unused CanvasDPIScale functions.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I46eb68494a956f4d3696b769a5e513b24251bfad
2020-12-04 20:03:18 +03:00
Gökay Şatır
9253f96a6c CalcTileLayer: DPIScale is set everywhere, used only once.
Remove unnecessary usages.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ifd3d9a668a0553fe171d96b20bb4d2cc6674c3a2
2020-12-04 20:03:18 +03:00
Gökay Şatır
14b1e5a277 CanvasTileLayer: Refactor debugging grid.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I245ad2b5a39b329c4a02e04f926a4b75470b6654
2020-12-04 20:03:18 +03:00
Gökay Şatır
37fb84754f Calc: Remove canvas scaling from header entry drawings.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I8b858f73cff33889c08f6d312a93cc0bc8d1a6ba
2020-12-04 20:03:18 +03:00
Gökay Şatır
4e5b178feb Calc: Remove scaling from corner canvas.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iba16ec7aeca977af890a841ad445de688fa84e52
2020-12-04 20:03:18 +03:00
Gökay Şatır
67cbe36e7c Calc: Remove CanvasDPIScale function. Introduce _dpiScale variable.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idbe569b3a7c3144bab960f6eb9a9bd32b4477b2b
2020-12-04 20:03:18 +03:00
Gökay Şatır
84b1b8b531 Calc: use pixel coordinates for pane sizing.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I7442f69d7653b2eb95ec60b281d4b61533dbf2ff
2020-12-04 20:03:18 +03:00
Tamás Zolnai
337e570d1c cypress: use moveCursor() helper method in table tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iace8fab305bba260c19d8fc7086caa24d20f6782
2020-12-04 16:33:26 +01:00
Tamás Zolnai
77dc334325 cypress: generalize mobile interference tests for Impress.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Idcccd74d0c58f768189b488f85158e225130c41b
2020-12-04 16:33:26 +01:00
Tamás Zolnai
4502711166 Fix 'Cannot read property 'project' of null' error.
Triggered by cypress tests.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Icb8b859547b907eb9b742121a7a06833026d7966
2020-12-04 16:33:26 +01:00
Tamás Zolnai
9b181385b1 update cypress: 5.5.0 -> 5.6.0.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I6a290e8520311a89d2c5e214152be58bd7e2904e
2020-12-04 16:33:26 +01:00
Pedro Silva
582f4c3568 Update colibre icons (jsdialog, autofilter)
Signed-off-by: Pedro Silva <pedro.silva@collabora.com>
Change-Id: Iaf6d259aa6e0372bc5344388a03494848e2cb722
2020-12-04 15:22:59 +01:00
Szymon Kłos
2819b72dd5 autofilter: hide submenu if created before main window
Change-Id: I314b1ba8bd45e6b8c5b75085b7292ce112efd53f
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-04 15:16:22 +01:00
Szymon Kłos
25816601bc Add Pivot Table entries in menu/notebookbar
Change-Id: If989a7ed3f894750497d7145fd31a0feb1e99b53
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-04 15:16:22 +01:00