Commit graph

17780 commits

Author SHA1 Message Date
Pedro Pinto Silva
5361456a77 Fix Welcome dialog for mobile when served from outside
Make sure it occupies the whole view

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If492fdca19aac024a749b7273c515047be208d7d
2022-03-16 15:13:49 +01:00
Ashod Nakashian
82933be193 wsd: last modified timestamp of the upload file is not now
When deciding whether the file on disk needs uploading
or not, we compare it with the last modified timestamp.
For this to work they need to be different.

When there is no file to upload (i.e. when there is
nothing new to save), the timestamp we get is
unix-time of 0. This is always different from 'now'.
So we incorrectly think there is data to be uploaded
when there isn't.

Better to initialize the last modified timestamp to
unix-time of 0, so in this case we correctly
conclude that there is nothing to upload.

Change-Id: I545e9021e9c76d009e08758342effaf3e9b964c7
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-16 08:31:54 -04:00
Ashod Nakashian
0c88fd8d6e wsd: gracefully close the document when disconnected from Kit
When disconnecting from Kit we shouldn't bluntly stop
DocBroker, because even though we cannot save, we
can still upload the latest document version from
disk.

What makes this particularly problematic is that
we request to kill Kit when the last client is
disconnected.

This was caught through unit-tests, albeit it was
not very common or easy to reproduce.

This fixes cases where always_save_on_exit
doesn't save/upload.

Change-Id: Ib66281fc68d4c0264602852b0acdc453b6f79963
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-16 08:31:54 -04:00
Ashod Nakashian
9732689668 wsd: stop loading when low on disk space
For some reason the disk-space check wasn't
done for WOPI storage. Here we add the check
and bubble the exception up to stop loading.

UnitStorage has been updated and re-enabled.

Change-Id: I15a093554b662d6c0828da7683ca0190a8225fc9
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-16 08:31:54 -04:00
Ashod Nakashian
e5e67a71d7 wsd: wait longer when restarting forkit
Forkit takes significantly longer to start than
to fork. At the startup of WSD we do wait 4 times
as long for forkit than when forking kits.
Similarly, we should also wait that much when
forkit crashes and we recover.

This stabalizes the forkit crash tests, which
did fail rather frequently (in one example,
2 out of 10 runs had failed locally).

Change-Id: I990c8e595b64c34a8e202933be833c53d7ebfc01
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-16 08:31:54 -04:00
Rash419
d02dd19f33 wsd: use hostname, port and scheme in doc key
This allows us to use multiple hosts using same coolwsd instance.

added aliases configuration to coolwsd.xml to avoid
possibility of opening the same file as two if the
WOPI host is accessed using different aliases

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I32913015c15fd396cecc702b76e0dcaa8bcafad3
2022-03-16 11:32:59 +03:00
Andras Timar
4bd6b39f71 Bump package version to 21.11.3.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id6f82770ecc91c17d9e1df3002150f090ad67575
2022-03-15 18:45:10 +01:00
Martin Srebotnjak
a878b83f26 Translated using Weblate (Slovenian)
Currently translated at 100.0% (438 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icec61949668e03a1e02ae2282cd557f5fb3c131a
2022-03-15 17:56:39 +01:00
Yaron Shahrabani
435ac3a346 Translated using Weblate (Hebrew)
Currently translated at 100.0% (438 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id421f50b620da5d3ba4c11e27c1bbabe3ce83994
2022-03-15 17:56:39 +01:00
Nathan
de79985def Translated using Weblate (French)
Currently translated at 99.7% (437 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie4ee014ee9bbca6013d70e4f9da0b2f856da4d5d
2022-03-15 17:56:39 +01:00
Marc Rodrigues
eeba89f91d Translated using Weblate (German)
Currently translated at 100.0% (457 of 457 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/de/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4ef99404580061d72de245f57ae57031698250cb
2022-03-15 17:56:39 +01:00
Marc Rodrigues
8323ecea13 Translated using Weblate (German)
Currently translated at 100.0% (438 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I750bbd366dfc25526c4471be7d619c1ae6a6d3a0
2022-03-15 17:56:39 +01:00
Adolfo Jayme Barrientos
8d8972b8a7 Translated using Weblate (Catalan)
Currently translated at 100.0% (438 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iad1a9173d7c77cc822c4f473eea1061c4db18e5c
2022-03-15 17:56:39 +01:00
Ihor Hordiichuk
8bd77049e8 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (438 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I37454484741d46a38523dba25cb89ceecdf8561c
2022-03-15 17:56:39 +01:00
Yaron Shahrabani
50d1a64ac6 Translated using Weblate (Hebrew)
Currently translated at 69.3% (317 of 457 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I84c05604ec0436d27456b54939060c4495ac63c9
2022-03-15 17:56:39 +01:00
Sveinn í Felli
4aac40e326 Translated using Weblate (Icelandic)
Currently translated at 99.3% (435 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/is/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ief8904c52f30d5028fdb9b66dbedf211418044ab
2022-03-15 17:56:39 +01:00
Adolfo Jayme Barrientos
b8491a9638 Translated using Weblate (Spanish)
Currently translated at 100.0% (438 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I28a9f641bf0867df1042ce945137b62617c22796
2022-03-15 17:56:39 +01:00
Adolfo Jayme Barrientos
459b7e4e7e Translated using Weblate (Catalan)
Currently translated at 100.0% (457 of 457 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic771fee3ce09b39f8a5fdb9bd0e6051cb134b6c4
2022-03-15 17:56:39 +01:00
Adolfo Jayme Barrientos
fe4d2c451d Translated using Weblate (Catalan)
Currently translated at 99.3% (435 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I539f8d6dc7d33d163aae417c00bd330e99e7678c
2022-03-15 17:56:39 +01:00
Adolfo Jayme Barrientos
be26a7f67d Translated using Weblate (Asturian)
Currently translated at 48.4% (212 of 438 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If9f282d89a8309e14cadd6be2568c2d024d2f4d2
2022-03-15 17:56:39 +01:00
Adolfo Jayme Barrientos
ca33a10b44 Translated using Weblate (Catalan)
Currently translated at 100.0% (110 of 110 strings)

Translation: Collabora Online/Android app
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ca/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4c9c2ead6a8b3f39ec2fbc4400bba1fceaa10403
2022-03-15 17:56:39 +01:00
Omar Macías Molina
783832be01 Translated using Weblate (Catalan)
Currently translated at 98.8% (433 of 438 strings)

Co-authored-by: Omar Macías Molina <omar.maciasmolina@gmail.com>
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: I9480681148d8b84bdf602dd80a17bb661e59c914
2022-03-15 17:56:39 +01:00
Adolfo Jayme Barrientos
f82ae10d37 Translated using Weblate (Catalan)
Currently translated at 98.8% (433 of 438 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
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: Ic38fb6cec95c5598cf7e4561866cfa17e9d18590
2022-03-15 17:56:38 +01:00
Mert Tumer
c26c05349a calc: fix cells become empty after closing sidebar
this patch not only fixes the issue in the title
also fixes similar problems such as lets say the
browser page is not maximized and then it is decided
to be maximized. This operation normally does trigger redrawing
but it only draws tiles that are in the cache already and does not
trigger tile invalidation and cells can stay empty until something
retriggers tile invalidation again

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I5981aa36c77a87626809c92e72e1cd6263826953
2022-03-15 17:25:16 +03:00
Andras Timar
b8d836f108 Disable export of template files
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3c5c7da5d1cad6fe7e6703d0941f250e91a5f552
2022-03-15 14:05:30 +01:00
Rash419
23f0790413 cypress: change template files tests to assert readOnly
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib557424de7407346ca947bfe06289b772ec46d10
2022-03-15 14:05:12 +01:00
Andras Timar
a6456a1294 Editing of document templates does not work well currently
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I67c57be272f3b4818f9bcd3a9b3b6df61846cbdb
2022-03-15 14:05:12 +01:00
Henry Castro
68876cdf71 browser: fix to show cursor blinking
When an image is inserted, the cursor is not shown.

Change-Id: Iea305a9a666bf06c68e7407eac3252f7faab627a
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-03-15 16:43:08 +05:30
andreas kainz
e87351ba7f Sidebar fixes desktop only css rules
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iec66fb657654b770e6b47d30ee9df98609d6f9ae
2022-03-15 11:47:02 +01:00
andreas kainz
a6ff172aaa Mobile Button use color-primary as background color
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I8a80c91f1358c83fe6d4309da91f1bbf539c5f2c
2022-03-15 11:47:02 +01:00
andreas kainz
a42efeacc9 Mobile Sidebar Fontwork fix
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Icdf017c2d130f81db3af7122d2b45f77bcc12741
2022-03-15 11:47:02 +01:00
andreas kainz
bf717ba8e5 Desktop Sidebar specific fixes only for desktop not mobile
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iad7ccd3b61a532b5ff922e862b808e3c0a8fd8eb
2022-03-15 11:47:02 +01:00
andreas kainz
f066a2ce74 Mobile Sidebar fix alignments
header-left use max-width instead of min-widt

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iebadf80864fb70e723bde9269a89d61ec43a2845
2022-03-15 11:47:02 +01:00
Rash419
42204db587 cypress: removed repeated tests and enabled notebookbar tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2c31b7433559d776dbde179c2659e23d8b104d59
2022-03-15 15:57:18 +05:30
Michael Meeks
4e9d58b0b3 signal handling: print code, and relevant address too.
Change-Id: I8e975886800ce02cb12e840ad36a818145c1112a
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-03-14 16:34:42 +00:00
Dennis Francis
bb1035e49a calcRTL: chart selection's svg does not match the tile
The svg sent from core does not exactly match the corresponding contents
in tile of the shape - especially the legend texts. This commit does not
attempt to fix that.

Before the commit e64ff372fc, the svg
embedded image was always hidden when a shape/chart/ole is merely
selected and it is only shown while the shape is being resized or moved.
Because of the strict inequality used with getAttribute('opacity') this
condition is always true at least in Chrome as getAttribute() returns a
string.  Comparing the parsed integer version of that results in the
intended behaviour and also hides the svg preview when chart/shape is
not dragged or resized.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0aef873e392b0959e93057e6399e8f77cf70042c
2022-03-14 18:36:14 +03:00
Pedro Pinto Silva
881d9feb1d JS btn: fix disabled status
With changes from 76121778ca
- We started to overwrite default user agent styles and with it
decreasing the difference between disabled and enabled buttons making it
very difficult to distinguish between the two.
- Also border width was set to different values (disabled btn getting it
from our stylesheet and enabled from browsers styles) causing the btn to
"jump" in size and position when changing between states

Fix those and add new css vars for btns so to avoid mistakes
in the future

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3ec865ecbbff44c90357d1d6de44a2e6f633bc3f
2022-03-14 15:22:13 +01:00
Dennis Francis
feb6723924 test: fail on subsequent error message
This is to guard against 'faileddocloading' or other error message(s)
sent after the correct 'passwordrequired:to-view' message when a
protected document is loaded without providing password.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I13b1d4a805916fc7a209464f63cb2ecf883b11c4
2022-03-14 12:56:20 +00:00
Dennis Francis
8af039251d kit: can't open password-protected files
Reproduction:
Opening a password protected document gives an error corresponding to
'faileddocloading' and then a blank file is displayed.

Fix:
Since 0b76383346, when Document::load()
fails without any exception, onLoad() sends

"error: cmd=load kind=faileddocloading"

to the client. This is a problem when load() fails just because the
client did not provide password for a password protected document.
Besides for all "exception free cases" load() already sends the correct
error message(s) to the client. So this patch also avoids sending
duplicate error messages.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I422740ab8855ed772461c23f42a5443afb729bb5
2022-03-14 12:56:20 +00:00
Pedro Pinto Silva
5709b49386 JS Dialogs: Fix regressions background and overlay color
- Make sure overlay stays an overlay and not a solid opaque color
- Make sure dialogs' background is white and not gray
  - Since they appear above the content they shouldn't be darker
- Also make sure Welcome dialog is not gray

related:
6f2be29ab7
4a5b3b6465
08a500e938

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4fbaa3f79f7fb1c348b5fe0ef87e98f9007ce007
2022-03-14 12:21:40 +01:00
Gökay Şatır
7410e2ff85 Enable translations for paragraphs containing links.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9b66f7b301487cf345c9a136943a6148827a2d49
2022-03-14 08:32:27 +01:00
andreas kainz
31130d50ea Remove all gray colors with var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Id57e01587ad2f78ca5d8d46f6b8f42e3563ed874
2022-03-14 00:03:30 +01:00
andreas kainz
3afd168e8c Remove all white colors with var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I1018fad2739d5bd54d63843983b65d44e8f6a2ab
2022-03-14 00:03:30 +01:00
andreas kainz
4654b2f77a Use Var colors
replace white with var's
autofilter-container use var colors

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: If724c88829c0c69d09be4a29b218593542693add
2022-03-14 00:03:30 +01:00
andreas kainz
479e8c5bcb Savemodified placement of the box-shadow was misaligned
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I583502733a9fd7053a67b8cd3445896fb56c74a8
2022-03-13 23:40:25 +01:00
Andras Timar
1db0251dff welcome: fix translation of string with version number variable
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia8d5e89b15017c68fe18ea88b5f29dc79de2e06c
2022-03-12 19:31:34 +01:00
Oğuz Ersen
17258e67d4 Translated using Weblate (Turkish)
Currently translated at 100.0% (438 of 438 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: I873f5290273f42d618ca315fd0854ee985ec04f9
2022-03-12 19:31:34 +01:00
Matthaiks
ea65be0a1c Translated using Weblate (Polish)
Currently translated at 100.0% (438 of 438 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: I0a3873959db58a503dc61aa67a58b76a5049365f
2022-03-12 19:31:34 +01:00
Yaron Shahrabani
1607b16cce Translated using Weblate (Hebrew)
Currently translated at 98.8% (433 of 438 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: If40c52ed944e2e42d3772fa4f4216f8f3dc3076d
2022-03-12 19:31:34 +01:00
Pavel Borecki
1da0c3acc3 Translated using Weblate (Czech)
Currently translated at 100.0% (438 of 438 strings)

Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3caf61550ee9b623e1e170eb027636be93856a7a
2022-03-12 19:31:34 +01:00