Commit graph

18246 commits

Author SHA1 Message Date
Jan Holesovsky
3b6c531389 Allow specifying the remote_font_config URI in the remote_config
This way, there is only one entry point for all the remote
configuration, and the remote_font_config does not have to be specified
in coolwsd.xml, in case the remote_config JSON specifies that.

Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: I857bab3d300ddb5c0c3df0a9f62eda20f43c3ff7
2022-05-02 22:00:57 +02:00
Gökay Şatır
e6af40f7fd fix: isVisible is not a function error.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia63a0098b65540462dce32b54cb4910b388f9065
2022-05-02 21:20:50 +03:00
Gökay Şatır
c860303345 increase the dialogue timeout to 10 secs.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I2eb5f22bd9d0f02e605179e4246fcaa89d3ade32
2022-05-02 16:42:28 +03:00
Ayhan Yalçınsoy
b6b1f77c81 Translated using Weblate (Turkish)
Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Co-authored-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
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: I48a3cec58f5b79ea1e69fa92f3b45706014dfb6b
2022-05-02 15:09:48 +02:00
Alexander Gabilondo
353021be37 Translated using Weblate (Basque)
Currently translated at 98.6% (438 of 444 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibc52f414f57843e31c144971ce37264eb5059a1c
2022-05-02 15:09:48 +02:00
Pedro Pinto Silva
9b85bfd7d2 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)

Co-authored-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Co-authored-by: Pedro Silva <pedro.silva@collabora.com>
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: I23cc55c918f72a8cc91429c03fa86f4e101a664c
2022-05-02 15:09:48 +02:00
Nathan
db6125a8df Translated using Weblate (French)
Currently translated at 99.7% (443 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: I56551b4d62d8d2cdb1a19d6b20c4ff26bec498be
2022-05-02 15:09:48 +02:00
Martin Srebotnjak
ad33bfd648 Translated using Weblate (Slovenian)
Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Slovenian)

Currently translated at 99.7% (443 of 444 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: Ie519a835e45d5308e3dac9eb19b879f19dc1b726
2022-05-02 15:09:48 +02:00
Adolfo Jayme Barrientos
a54ffd9c32 Translated using Weblate (Asturian)
Currently translated at 10.9% (50 of 457 strings)

Translated using Weblate (Asturian)

Currently translated at 10.9% (50 of 457 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ast/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6707e1c208d3d669bd5535ca61110b8ac2467778
2022-05-02 15:09:47 +02:00
Ihor Hordiichuk
4a529ce6c7 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (444 of 444 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: Id48bcc47729d6deb8dac79e5b3461ebcd8fa34be
2022-05-02 15:09:47 +02:00
Matthaiks
fe3e67a717 Translated using Weblate (Polish)
Currently translated at 100.0% (444 of 444 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: I354f7531d6b9833632621e141515ca2d81ce7fbe
2022-05-02 15:09:47 +02:00
Sebastiaan Veld
9a4925cae0 Translated using Weblate (Dutch)
Currently translated at 68.4% (313 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 67.6% (309 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Co-authored-by: sebastiaanveld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5690268d76c984a1920fc232c5b405b7e02a9806
2022-05-02 15:09:47 +02:00
Sveinn í Felli
e4416b1c27 Translated using Weblate (Icelandic)
Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/is/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I031d23fee8a424def9ef4fda111ea346d7edb495
2022-05-02 15:09:47 +02:00
Yaron Shahrabani
97f64cc908 Translated using Weblate (Hebrew)
Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0f7a8cde5b6eb9d4fdef446fc43fb8024ec15709
2022-05-02 15:09:47 +02:00
Andras Timar
005177ba14 Translated using Weblate (Spanish)
Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Hungarian)

Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (German)

Currently translated at 100.0% (444 of 444 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/es/
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: Ibbe81647634c4d95f75385659f3618e65de5424d
2022-05-02 15:09:47 +02:00
Ashod Nakashian
6458e00bc4 wsd: return status from writeOutgoingData
Without knowing whether the write succeeded
or failed, we cannot trust errno has our
error or some earlier and unrelated error.

This was caught when there were two sockets,
one of which disconnected. The write to the
disconnected one returned -1 and set errno
to ECONNRESET. We subsequently wrote to the
second socket, which succeeded. However,
because errno wasn't reset, and since
writeOutgoingData didn't return anything
to indicate the success, errno's ECONNRESET
value meant the second socket was also
disconnected, which was incorrect.

writeOutgoingData now returns the last return
value from writeData so we can make informed
decision as to whether to check errno or not.

Also, to avoid incorrecly propagating errno,
we now capture errno only when readData and
writeData return -1. This has the nice
side-effect that we reset errno to 0 when
no errors occur during our call.

Change-Id: I911b31390f37cc71938bc4a6ae75393dbf24bb9d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-04-30 20:41:26 +01:00
Gökay Şatır
880877a6df Filter update-check messages.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib4526168fda8aac0cfac1cdf67b13f2485f6183b
2022-04-30 21:24:08 +03:00
Gökay Şatır
b713340f24 Improve section existence check for wizard.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I4125a8fb36358e127d9ba4212debf4c9374066dd
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2022-04-30 21:24:08 +03:00
Gökay Şatır
efe1ba3c5e Revert "Prevent errors on load when section may be missing"
This reverts commit 3db9ba06d1.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2022-04-30 21:24:08 +03:00
Szymon Kłos
bef3556a1f formulabar: fix focus also on mobile
- also hide autosum button - it was hidden before conversion

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I68e9301a1b3a1b3710ca4da940152839bdc80c18
2022-04-29 12:36:02 +02:00
Szymon Kłos
318bca236f notebookbar: don't show error on language menu hover
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibe3277dadfba51606b590d8b33b2afa372356cab
2022-04-29 10:52:04 +02:00
Szymon Kłos
c213992462 formulabar: add missing buttons
- sum dropdown
- equals / start formula

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I604e72388d0d1891fbadc675e47b6fe03a5f80cb
2022-04-29 10:52:04 +02:00
Szymon Kłos
475b62cdb1 formulabar: use uno command not key input to accept formula
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9c4d5b12df70579adf54e0bf833048315ec98f6e
2022-04-29 10:52:04 +02:00
Szymon Kłos
3db9ba06d1 Prevent errors on load when section may be missing
In the past I've seen very often that for example
commentList section was missing but used without any
check.

This commit checks if section exists before use and
warns if it doesn't so we can see that in the console
logs.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idca23c5327f5b36277479fcd3f44b92920466474
2022-04-28 14:16:18 +03:00
Szymon Kłos
fc6411bd18 Remove console.error with notebookbar state
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie482c399fc029e0dac835af990aeb0a9d716f02c
2022-04-28 14:16:18 +03:00
Pedro Pinto Silva
ac61c52dfc Listbox: remove unnecessary margin and fix padding
The additional margin was affecting the surrounding elements in some
browsers in the sidebar

Better to not call padding-right or padding-left specifically:
  - Better to use shorthand and make sure how the final padding will be
  - Better for RTL

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia61d670580258187f9fd538dcc2f2a2e20be3bdf
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
1e1e8c3284 Listbox: do not multiple font-size
use the same font-size for listox no matter where it's placeholder
  - Multiplying would make it look too big in some places

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6436baea5ed3018e4c4cad6078fdb51bfa0d068e
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
2d3105b839 Listbox: reduce height
with refactoring from 2da8de38df1660b205392391ebada7759ee8e2d6
and with the code now in onw place we can now use the 28px height that
was used only in the sidebar to have the same visual component be that
on a dialog or on the sidebar
 - Reduce from 32px to 28px (the opposite would make the component too
 big in the sidebar)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4d11f74219e55a2a05e0f1c9f70ff9a8c4a88c54
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
2384e3eff2 Refactoring and generalize listbox, menubutton: share more CSS
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4c91ea032a50df0490fe11b26cdded10074dc03a
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
4ccfdd598b Refactoring and generalize spinfield: share more CSS
Avoid to place rules within jssidebar.css that should be global
(it should affect any jsdialog class) and let jssidebar-only exceptions
in jssidebar file

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib950f5c13522f3d91139d8eac52b5b4daa22fe05
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
fadc3fb3b5 Fix sidebar select (dropdown) alignments
When using position relative the elements will still occupy and affect
space around. This was flagrant when using chromium.

https://archive.org/download/t-34772-writer-selected-img/T34772-relative-shouldbe-absolute.png
as you can see dropdown with arrow are being dragged outside

Also use margin-block-start to add vertical start margin (e.g. top) to
element depending on the element's writing mode, directionality,
and text orientation.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If580fba061d8cb274a60ad5f780882c772059162
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
ca10b8bbdf Fix sidebar spinner units alignments
When using position relative the elements will still occupy and affect
space around. This was flagrant when using chromium.

https://archive.org/download/t-34772-writer-selected-img/T34772-relative-shouldbe-absolute.png
as you can see the spinner with units are being dragged outside of the
screen

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I292f83dc4840ceb1e12923a9aaf1fe56dbe14131
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
10029f58fa Fix sidebar alignments when image is selected
Remove additional margins and right positions that were affecting FF
https://archive.org/download/t-34772-writer-selected-img/T34772-writer-selected-img.png

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7d822d3bb05f4d476f6a066c28d686ad4e701c81
2022-04-28 11:07:02 +02:00
Henry Castro
455532c218 wsd: admin: fix typo
Change-Id: Ia9714fbadf7cdafa84fd58354e1b72dc36084ad3
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
c000f119b3 browser: test: explicitly convert to number
Change-Id: I2dbecafcc1148aa69010eee822ee0fa30a5e6307
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
28c1fa2844 browser:test: ensure to write the stats to stderr
Change-Id: I5761e7567c306b964fd41eaa49d9fdcd41caea9d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
a48024ca78 browser:test: fix exception http or https protocol
Change-Id: Ia62833fb0cb448370b6fdf422d12e6b0ebbcff55
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
6f3c90c8a9 browser:test: exit process if uncaugth signal
Change-Id: I971e100cfbb5c428c6ee88d8b9f5413398250c50
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
cdb72ca762 browser:test: add function serverReady
When the coolwsd server is ready, begin to
fork the load.js process to start the tile tests

Change-Id: I7846ce013b729eab54e5fd3ab81ce396406bcf0b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
6bfe68ea93 wsd: add parameter --signal
To signal SIGUSR2 to parent to notify
that the server is ready to accept connections,
and begin the tests.

Change-Id: Ie936217243aa7a2e836f3d45cb508ede13fae8c5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
16e6494a21 browser: test: fix stdio pipes
Ignore stdio pipes if no debug is set

Change-Id: I8b77a32324d77a87577759b878f612dfbca586f7
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
3879f8720f browser: test: fix missing 'DOCUMENT_SIGNING_URL'
Change-Id: Iac91872bdec8b89174ae900c9e388681dcf27da0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
6c7d031d61 browser: test: replace GROUP_DOWNLOAD_AS variable
Change-Id: Id20d476bc04167fd40b9524625bc389344a3f60b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
12f7022f69 browser: test: add process env NODE_PATH
if builddir != srcdir

Change-Id: I5bdec438aff67d3c70aceafbff0d3a4445d865c6
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Tor Lillqvist
8ff5f1c57c Restart ForKit when a downloaded font has been updated or removed
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I62b53bb4ff16eac3e122f9b6d702c69d2355595d
2022-04-26 17:26:20 +01:00
Szymon Kłos
a465bc267f notebookbar: fix ui mode switch
previously without data in localstorage it started with
compact mode always

- reduce calls to local storage
- unify local storage entry name (no doctype)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2bf4776a6296d2c35ac974b3d108bce5e77a7614
2022-04-26 15:39:52 +02:00
Ashod Nakashian
0d027a9a56 wsd: test: disable verifySignature test with openssl 3
This is a temprorary patch until we can properly
migrate the verification code to openSSL 3.x.

Change-Id: I676ae3b5a1e0d27ef1d253dba2275f7de5fc08ff
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-04-26 14:08:48 +02:00
Tor Lillqvist
97a18768d7 Avoid using only "real" paths for the tmpfont thing
If I have used a path with symlinks in it when changing directory to
my build directory, what gets put in config.status as ac_pwd is that
path, not a realpath version. That then propagates to
ac_abs_to_builddir and to SYSTEMPLATE_PATH, which is what Makefile.am
passes for the --o:sys_template_path option to coolwsd.

To be on the safe side, do the tmpfonts dance both for the systemplate
path that might include symlinks and for one that has been realpathed.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7575120090986e6207497c5ce740aedd6075e48f
2022-04-26 13:59:29 +03:00
Pranam Lashkari
45c119ff21 draw: make sure page settings do not use term "slide"
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8831f0a1edcbbe8e8ea08ad691f86c7a422a89aa
2022-04-26 15:58:09 +05:30
Pranam Lashkari
138a98385a wsd: do not set default close reason
we preserve original reason,
so setting default reason means always using default reason
and ignoring any other reason

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I837a13a129aa759a319406affc6e89425bf31361
2022-04-26 15:57:51 +05:30