Commit graph

18179 commits

Author SHA1 Message Date
Michael Meeks
414c36c6f5 Add conditional delta creation back.
Change-Id: I374e4fd0404ee8caa0f81d6de24a55220ae23c91
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-09 16:40:57 +01:00
Michael Meeks
4140bf8741 Bring back the delta application JS from the 6.4 branch.
Change-Id: I13329e1e7ceeb1fc611193ccaa78fc4e799e1869
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-09 16:40:57 +01:00
Henry Castro
df96b97f88 browser: allow cursor jump if text selection is empty
Otherwise, if the user selects all the document,
the clipboard blocks Page Up or Page Down cursor jumps.

Change-Id: Ia9c432646c51063775bb7cca6a998e7d1cdcdbf2
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-09 16:08:14 +03:00
andreas kainz
dd3134d554 .w2ui-button use var color for :hover
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I3b77ba1e99dee24e74f9f839de5590d0a0def939
Signed-off-by: andreas kainz <kainz.a@gmail.com>
2022-05-09 12:54:37 +05:30
Ashod Nakashian
1c07d507ee wsd: do not enqueue messages on closed sessions
Also corrects the counting of number of active
sessions when broadcasting messages.

Change-Id: I5ab5995ed2cbc18b215542d0b2c9568957fd6a3a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-07 14:14:22 +01:00
Ashod Nakashian
a674a0d52e wsd: detect lost upload on exit and dumpState once only
Change-Id: If5a9601d9baa10dcdab38c57bfba82a45d8e5024
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-07 14:13:41 +01:00
Henry Castro
f65afcf5ff browser: fix show feedback dialog
When user click the menu options.

Change-Id: Ia53126b5c2972149839de501214d0a1cb2b5fc6c
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-06 18:50:54 +03:00
Ashod Nakashian
4bf085f195 wsd: correctly set termination and shutdown flag
We should always set the shutdown flag first.
Otherwise, we run afoul of a race condition.

Change-Id: Ic99793d68b3b943496ff932b4bdafd336fef7f82
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 14:45:34 +01:00
Ashod Nakashian
c5e533f943 wsd: forced exit after cleaning up jails
The static instances cause a lot of grief
when they aren't called in the correct order.
Worse, when we are cleaning up, we don't
even initialize some of them (Admin, for one).
This means that a normal exit will destroy
what isn't created, in some cases (Admin) it
will even force creating instances when we
are destroying others.

This avoid all this by simply exiting bluntly.

Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
(cherry picked from commit 231fae4ebd990cb344143759cbdfa19c4f30d4f2)

Change-Id: I6a9443ca5ab999ed6ca1d27314136472cfc6ddb6
2022-05-06 14:45:34 +01:00
Ashod Nakashian
757529aad2 wsd: cosmetics
Change-Id: I85773b4c06c051ee8c52c353e26dd6149c7843de
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 14:45:34 +01:00
Ashod Nakashian
c6561a99d8 wsd: test: correctly stop SocketPoll in UnitTimeout
Change-Id: I97317e8155e5c65d12e985cc837f07bfcf6a56d6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 14:45:34 +01:00
Ashod Nakashian
9a69adf766 wsd: test: always set the test name
Change-Id: Ibce5cf049ad1a1df7b11412ed7160d280ece60f3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 14:45:34 +01:00
Miklos Vajna
cdb92d2237 wsd: add initial protocol documentation for paintwindow and windowpaint:
As Tor noted on IRC, this was forgotten when the actual protocol
commands were introduced.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I548ac73348bceb469484ce934f7548ddb4091b63
2022-05-06 13:56:42 +02:00
Ashod Nakashian
40839e8019 wsd: browser: Reset_Access_Token API to update access-tokens
Change-Id: I92cc424c30824232eaf156ddfe49104932b2ba81
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 11:13:35 +01:00
Ashod Nakashian
bed2c49ab0 wsd: test: prepare for more tests in UnitOAuth
Change-Id: I7c6949af0c87405ee18e445fd7e656cd82a9033c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 11:13:35 +01:00
Ashod Nakashian
3bd45ca339 wsd: test: modernize UnitOAuth
Change-Id: I84f7242997eb0fd8ab297c8fbdb684c2027ae3a0
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 11:13:35 +01:00
Ashod Nakashian
623bcb2948 browser: reuse post helper in framed.doc.html
Change-Id: Iabc310a59a7c4e0522558ea0a15e260d2bf141bd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 11:13:35 +01:00
Pedro Pinto Silva
6cfe2dab5b Notebookbar: fix sidebar icon alignment
Subcontainer `root-container notebookbar` was not able to vertical align
contents even thought it has vertical-align: middle
	- Fix it by removing parents' (notebookbar-options-section) height and
		padding

The alignment is still off due to:
sub cell is inheriting automatic padding (useful in all other places)
	- Fix it by remove padding for the cell under
		.notebookbar-options-section

Display inline seems not be needed here, we can just inherit it.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iafb4f83acfff5ae0923afb972cefe1201080c79e
2022-05-06 13:12:27 +03:00
Szymon Kłos
bca1206e29 feedback: fix in wopi case and ask before
- prevent from multiple onDocLoaded calls
- use snackbar to ask user first before showing main dialog

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1afb67c7bb403aa05c8e33ef48c0d55fa57350dd
2022-05-05 16:26:39 -04:00
Szymon Kłos
54fad26c34 welcome: one place with local URL
so we don't have to change 2 places
also I've noticed only one place had
proxy support

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I64af9dac9bd8449fba0de3b05e0c2102e440788b
2022-05-05 16:26:39 -04:00
Rash419
2163e2f043 wsd: cleanup setting firsthost code
we added AllHosts to give admin the err log that host is not in alias_groups but now as we removed the host list entries from configuration we don't need that log

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8b5e9e6b7df7df59befb496c12966c7ddc60c707
2022-05-05 11:04:22 +05:30
Pedro Pinto Silva
f5f7ad654a Dialogs should have white background
which is the same color as other container elements inside of it. If
we want to use a "neutral" color that can either be light or dark (due
to future plans on dark mode) then better to just create another var
for dialog backgrounds. For now better to fix (so we can avoid dialogs
such as the pivot table to be with multiple background and with less
brightness then the document that seats behind)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I848392e3c1194963273f2950a22022eeaadbe8f0
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
dab56036b6 JSdialog: fix disabled radio buttons border
radio buttons were being render with a border surrounding them, example:
insert pivot table, all disabled radio buttons have a border around it

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I003280ec929b49c8f8f0a1b9a4ca361c87a9224f
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
53e6f7252f Do not add padding too all td jsdialog cells
This was impacting alignments on dialogs. Example Find and replace,
checkbox were being pushed tot he side. Better to rely on parent
padding or table structure

also with 496256a96b -table is no longer
in use

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I60b29f818e8ec53f5c66a2772f4cda82de0011bf
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
b41658a4c1 JSdialog: Don't add margins to multiple inner containers
Example: macro select dialog is getting set with multiple inner margins
- Simplify the CSS so we only target one sub element
- Remove unnecessary code (no need to add exception for sidebar and
formulabar)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibc35e6b8c37badbbe27b411c21986ddda0e27ef3
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
8a4d7d19cd Macro dialog: remove unecessary CSS rules
with 496256a96b we no longer need the
pre fix -table in the ids plus better to just remove any non essential
bits and share more CSS between places

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ica8ef3db2ed52a379cb75437d7b147c8b42bbd7b
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
7c2a63537e JSdialog, p element: Remove #table- from CSS it was removed from JS
from: 496256a96b

- let's not target absent ids on the CSS side
- Also better avoid target boxN (e.g.: box3)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I41bf1540c634dcde8111ae0192a70772153c592b
2022-05-04 15:20:43 +03:00
Miklos Vajna
aeea180e7f wsd: fix log message typo in COOLWSD::innerMain()
This went wrong when the forward-port of commit
b96e8b7c77 (wsd: correct use the exit code
from UnitWSD, 2021-11-29) didn't adapt the string to the updated
filename.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ica8047dc05dedf9e075663f405dea89913cf789a
2022-05-04 09:05:48 +02:00
Rash419
3e095928aa fix:cypress: abort without error in CI
Identified the faulty test, on heavy load the test gets stuck on waitUntil command
skipped the test for now

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia4b7ca081098e7e5b6f15135304131521629e524
2022-05-04 11:13:14 +05:30
andreas kainz
592d27a409 Add color-scheme-dark.css support
@media (prefers-color-scheme: dark) setting
is available by use color-scheme-dark.css
instead of color-scheme.css

sure the scheme need some update
but there are other open points like
use dark color for document
use dark colibre icons

this is only the .css change
so no full dark mode update

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I5c2adcbb75583a952f419af507d7cfe5c1343e3c
2022-05-03 10:40:35 +02:00
andreas kainz
b3a88dd7bc writer notebookbar stylesview previews no padding
remove padding-top: 5px so there is no scrolling
needed for two rows.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I9a0450074cc55486d0f7de8a39b7edff8e66c752
2022-05-03 09:58:07 +02:00
andreas kainz
96bea09485 Sidebar RTL fixes
border on left and right so it work also for RTL languages

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ic973cfee4c8fd563008477ab38a9e4e3e69c8300
Signed-off-by: andreas kainz <kainz.a@gmail.com>
2022-05-03 09:50:02 +02:00
Jan Holesovsky
8bc02b71e8 Improve error reporting related to remote config
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: Ie458464d60bf8e939c1408e1b0feb91090d080e4
2022-05-02 22:00:57 +02:00
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