Commit graph

17880 commits

Author SHA1 Message Date
Stanislav Horáček
36c54ab235 Translated using Weblate (Czech)
Currently translated at 100.0% (438 of 438 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@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: Iaee7fc101812c092e2dc2986f968ca2cb62f5a62
2022-03-31 10:42:39 +02:00
Gökay Şatır
9771cb25e2 Translated using Weblate (Turkish)
Currently translated at 100.0% (438 of 438 strings)

Co-authored-by: Gökay Şatır <gokaysatir@collabora.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: Ic981cd5244993ada666b12c1ad86934e1bba1581
2022-03-31 10:42:39 +02:00
Sveinn í Felli
7e7db0be56 Translated using Weblate (Icelandic)
Currently translated at 99.7% (437 of 438 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: I22a6ba915ad01048cbb0eb5dcc8744752419f5f1
2022-03-31 10:42:39 +02:00
Andras Timar
076d50f149 Translated using Weblate (Norwegian Bokmål)
Currently translated at 84.0% (368 of 438 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (438 of 438 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nb_NO/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id1868ac0ba3ad474254dde03675152e7022f7efc
2022-03-31 10:42:39 +02:00
Eloy Crespo
6f7057e226 Translated using Weblate (Spanish)
Currently translated at 99.7% (437 of 438 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: I11316a9dc32f66a2ef47521332ef7bbb95ae269d
2022-03-31 10:42:39 +02:00
Weblate
2f12ac128d Added translation using Weblate (Swahili)
Added translation using Weblate (Swahili)

Added translation using Weblate (Swahili)

Added translation using Weblate (Swahili)

Added translation using Weblate (Swahili)

Added translation using Weblate (trug (generated) (trug))

Added translation using Weblate (trug (generated) (trug))

Added translation using Weblate (trug (generated) (trug))

Added translation using Weblate (trug (generated) (trug))

Added translation using Weblate (trug (generated) (trug))

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9360707c54a2cbc36b7b5aaf603ae406a3939ead
2022-03-31 10:42:39 +02:00
SC
5f2adef8be Translated using Weblate (Portuguese)
Currently translated at 100.0% (438 of 438 strings)

Co-authored-by: SC <lalocas@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7964f522a1375c8b6282c004cae579af51fa954e
2022-03-31 10:42:39 +02:00
Ashod Nakashian
099246d67a wsd: unload when no Kit and nothing to upload
When the Kit dies and there is no data saved to
disk to upload, there is nothing to do but unload
DocBroker and log the fact.

With unit-test that simulates the situation by
killing the Kit of a modified document.

Change-Id: I7dcc0583c053d7166935d15d045fcf6624e43b4e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-30 23:18:57 -04:00
Ashod Nakashian
7920656e36 wsd: remove dup entry in dumpState
Change-Id: I1b5e774d33e743dab98781dbe8609dffa8f5cb63
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-30 23:18:57 -04:00
Ashod Nakashian
28b3e165c2 wsd: remove unsed function in DocumentBroker
Change-Id: Ia310cce20b3ca2c95be98d75b13ec7e047cf19b9
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-30 23:18:57 -04:00
Mert Tumer
5dfbaa963d Revert "Improve edit button visibility when infobar, snackbar is present"
This reverts commit 3c1185aca3.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ib9ad6e77d14e9388a0df2d94addc24ad948d463a
2022-03-30 18:44:25 +02:00
Mert Tumer
59607d29f0 welcome dialog: give focus to welcome dialog onshow
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ifc47d5467610f9e42c4ebe2edc22acf78b8be685
2022-03-30 18:44:25 +02:00
Pedro Pinto Silva
ff020f5a25 Close iframeDialogs when pressing escape key
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ief0919048bce1a27bee1c6c263a693d487f9c7f2
2022-03-30 18:43:42 +02:00
Pedro Pinto Silva
c85d4816df Add missing remove bullets for sidebar
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6479f82a0661db2d4495667bd8ab10ab8ded4573
2022-03-30 15:12:52 +02:00
Pranam Lashkari
f0026accbf l10n: if English variant is not specified then choose US as default
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iba4f96c75d69e52044f6460c4e26d0ab1d187d3c
2022-03-30 16:51:56 +05:30
Szymon Kłos
c0b0897aa3 clipboard: notebookbar: show hint with keyboard shortcuts for Paste
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I73ba7d030810ccadbed828bce19e64f0cadbcfe7
2022-03-30 09:29:24 +02:00
Szymon Kłos
f2b1c72ac8 jsdialog: prevent us from unsafe-eval error
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I641237fd5f446a9482f9edec92a29fd948491a60
2022-03-30 09:29:24 +02:00
Szymon Kłos
33ffdcb1e7 clipboard: notebookbar: show Paste Special entry
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I485b70b8063fa6f2660d89ecd22bd72858b7a168
2022-03-30 09:29:24 +02:00
Szymon Kłos
fbe10e41bb clipboard: introduce paste special menu entries
also move paste special popup code to the clipboard.js
so it is easiet to share code

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I86bb1696ff78e3cef5425478cc3fb56cf47916b8
2022-03-30 09:29:24 +02:00
Pedro Pinto Silva
3c1185aca3 Improve edit button visibility when infobar, snackbar is present
Before we were showing edit button only if the snackbar was not present
in the DOM. The goal here was to avoid overlapping elements (bar + FAB).

However and since the infobar can be present in the DOM but set to
display none this would cause another problem: no edit button and no
infobar visible to the user.

Solution:
 - Make use of the existent css class .hidden (which sets it to display
 none) so we can then in the css side show the Edit FAB only after them
 snacbar is dismissed.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I31be2dfeb1bcb08b971074466a24db719320f8f4
2022-03-29 14:31:21 +02:00
Pranam Lashkari
892fa8f835 fixed edit button not appearing in ipads
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I949b3bc6d72541cba18867847cd43f0c6e57a32f
2022-03-29 14:31:21 +02:00
Mert Tumer
aa7eda472b fix trackchange comments are not displayed on docload
fix typo on clearList loop that prevents skipping trackchange
comments from being deleted

Also I removed the line in WriterTileLayer.js containing
clearList because clearList is already called on importComments
function so it was unnecessary

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ic4086a80b126aec62e382078f53d68bc17da8a1c
2022-03-29 13:46:43 +02:00
Rash419
6a1bade376 wsd: handle locked_hosts case where different aliases might have different settings
so now real locked_host settings will be applied if the document accessed with alias

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib76704a4bf2c3da5dc7b83bbad98fe40b5c03316
2022-03-29 12:18:31 +02:00
Rash419
31d8822758 wsd: cleanup: moved all parsing related static methods and containers to HostUtil.cpp
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8555522c6216f893b90ba4c27747314830f7abd2
2022-03-29 12:18:31 +02:00
Pedro Pinto Silva
8d9317daa8 Fix button order on HyperlinkDialog
Follow the same order as anywhere else such as annotations, JSdialog or
even tunneled dialogs:
primary action aligned to the left

Also update cypress test: Do not target button position related classes
instead, rely solely on main classes

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iac209aa343f22ddfdbd5662eba43d7adaa3f0892
2022-03-28 14:15:44 +02:00
Mert Tumer
e0511aa1bd sanitize-url: bump package version to 6.0.0
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I7c58e3a417e7a247b781800a2ec93417d3b7bc8f
2022-03-28 14:38:20 +03:00
Mert Tumer
dc1242ad9b annotation: fix redline compact-selected comments have wrong structure
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I78f80e6e24306629bacbda57106c1c6b41dee09e
2022-03-28 11:06:45 +02:00
Mert Tumer
958b33d82d annotation: fix trackchange comment gets hidden on collapse
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I34c4ff51f72b040ad1c6183519a13d3f45f56545
2022-03-28 11:06:45 +02:00
Ashod Nakashian
71e1e54eb5 wsd: hostname is needed for SSL SNI
Since the hostname argument is passed
to both the base class of SslStreamSocket
and SSL_set_tlsext_host_name, and since
the base class's getter, also called
hostname(), is hidden by the argument,
we cannot move it.

An empty hostname can result in 403 Forbidden
from the server due to missing Server Name
Indication (SNI).

Change-Id: I27990f64f17ec3c81a4dd543a078807629cd0c20
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-27 22:32:38 +02:00
Michael Meeks
45f29fd773 Allow debug.html to be passed a WOPISrc for easier debugging.
Change-Id: I3e618dbb9aa6363974e0759e955dfe73e8787824
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-03-26 23:27:00 +00:00
Szymon Kłos
0227768d7c Notify server about visible slide
Fixes problem with:
- showing wrong slide number in statusbar
- inserting comment at correct page
in pdfs where we see slides in continuous mode.

Sending slide id from online to server is much easier
than calculating based on visible area on the server
where we have to put that data into TabControl widget
which is used in different places.

It updates visible slide on scroll and also when selected
from the previews bar.

Signed-off-by: Szymon Kłos <eszkadev@gmail.com>
Change-Id: I7f8a9458e415e17391a4a249e19fd97f8541debd
2022-03-26 15:12:50 +01:00
Tor Lillqvist
ed8c10dfb1 nftw() does not set errno on failure
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7e768416b5113d71330148227aeceb941013c578
2022-03-25 21:29:53 +01:00
Andras Timar
9752cd0b80 Bump version to 22.05.0.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib17a8e9a26d73c4f20ce9447bb65c75b50348a58
2022-03-25 17:06:14 +01:00
Michael Meeks
9f5c5dcdf4 Show (E) for experimental mode in help->about if present.
Change-Id: I00d6cb861c3050d5b4f80b0cb41e70012d0fe610
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-03-24 17:25:40 +00:00
Pedro Pinto Silva
c89b062aea Fix closebuttonwrapper position on tablet
- Make sure the close button is always place at the last position so even
if integrator adds additional icons the close button should always
appear afterwards and make sure it does get shrunk
- Force closebuttonwrapper to be positioned at the end (far left side)
by grow #userListHeader (even if invisible)
- Avoid positioning closebutton image with background-position
  - Simplify by just fixing the parent and centering the image

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I851744c75c132957b8754ce7a105e57625f986bc
2022-03-24 10:32:12 +01:00
Pedro Pinto Silva
8eaa96840b Allow notebookbar-tabs-container to occupy full width
Remove the now necessary max-width from tablets
- We now have those parent elements being set as flex box
and thus we have now no need to limit the max width of this container
- Plus by limiting the max-width we were hiding more of the tabs while
not gaining anything useful in return

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1ef477902fd95a4751009f8bf08350b6ce88aa97
2022-03-24 10:32:12 +01:00
Mert Tumer
ab0ed2d6f5 annotation: fix layouting problem on selected comments
modify and reply causes relayouting due to expansion of the
commentsections but it is based on whether they are selected or not
currently. If they are already selected we dont relayout them again
and it causes overlapping. To avoid that we can simply unselect
comments just before reply or modify.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ifc2e546504b36b46f98a9b22ce791b4279239457
2022-03-24 10:08:34 +01:00
Dennis Francis
98f9e65948 revert: add edit option in link dialog...
commit eb387cc7b1

At least in current master it is possible to right click on the link and
select 'Edit hyperlink' context menu item and the edit dialog(JS)
appears. So it seems there is no need for this workaround edit button
inside the warning 'JS' dialog box anymore.

Additional reason is that when help button is clicked on any
dialog(tunnelled or not) it shows a warning 'link' dialog that it is
about to open a external url, but this dialog has an unneeded edit
button because of the original commit.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2d8434746c698deefe69b38bf9947202f4f95862
2022-03-24 14:33:01 +05:30
Pedro Pinto Silva
fb83f8e3a5 Switch hover color to a lighter color
We need to use a lighter/ highlight color for hover so we then be able
to use darker backgrounds for disabled status and even pressed status
(active)

Also this automatically fixes the hover status for on/off switchers on
the toolbar (e.g.:sidebar trigger). Now they also react onmouseover

With this change

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5efc41e3e7d13c10cf2d714acefee08f99e6af1a
2022-03-23 23:10:57 +03:00
Pedro Pinto Silva
2ec92b2308 Add missing hover state for primary buttons
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic1fea0b40bbbcbb6b77bfe29b3df1786da53b7e9
2022-03-23 23:10:57 +03:00
Pedro Pinto Silva
aec88d3d01 Refactor commentSection buttons to avoid using multiple css classes
This commit does not change functionality

Add generic 'button-secondary' and 'button-primary' to buttons
- so we don't need to hunt each button from annotations
(cancel, save, reply)

additional plus: targeting any css class that has button-primary allow
to target in the future cases like vex-dialog-button-primary

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie70867e3248ff70afdbe154593e4d02ec24c46df
2022-03-23 23:10:57 +03:00
Pedro Pinto Silva
6e9a11211e Autofilter buttons do not need special css targeting
With bda34c9096 those btns are already
generated with the proper generic classes that hold those styles so,
no need to keep individually targeting them

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I87912913d3f7340b5ed4b06b8c658791eda56d4e
2022-03-23 23:10:57 +03:00
Pedro Pinto Silva
ca316c0f3d Remove duplicated n inactive margin from annotation btns
- Better to keep everything related to buttons in the btn.css file
- Also all margins are already being set in the btn.css file anyhow

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic1d9f7e2b895604367571a93f593ef359659c57c
2022-03-23 23:10:57 +03:00
Andras Timar
0392facc6b Bump packaga version to 21.11.3.3
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I315b7d74bfe09f0820068dc7ca36960d024c492b
2022-03-23 16:42:48 +01:00
Pedro Pinto Silva
142097b340 Fix missing icons by creating iconURL aliases
- add possibility to specify name alias for icons that are
  generated via jsbuilder (sidebar, notebookbar). The goal here is to
  avoid having multiple duplicated icons with different names:
  Example: 2 identical SVG files were being used just because of their
  name.

Context: When unifying icons between sidebar and toolbar PR #4426 ,
9576137df51725b677342c606dcad8749eaf0622 we end up with icons without
images on:
  - Calc: Notebookbar
  - Calc: Sidebar
This happens because even though we want to use the same icons the uno
commands are actually different from ones used in writer and elsewhere
(uno.AlignLeft <> uno.LeftPara)

Note: Since the sidebar uno.commands come from core we really need to
use icon url alias. If that was not the case we could have used here the
newest compatibilityAliases introduced in
7e6f3d5590

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I49647f8a32665d0363259151c09131d8c5063783
2022-03-23 17:01:43 +03:00
Pedro Pinto Silva
4be9e29a86 Update build status links
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib2109fa3149d2f3dfbda1291975aa74a3e33e981
2022-03-23 14:29:51 +01:00
Pedro Pinto Silva
1c6206814b Fix comment reply count color
- Partly revert 7e705fcf09
  - RGB expects rgb values. Hex annotation does not work: renders it
 transparent
- Avoid low contrast between font and background (white with light bg)
  - Use instead primary color

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iad24d6bf30d2e62505254c70b174e9b9971cbeb1
2022-03-23 13:57:35 +01:00
Ashod Nakashian
4d2351e37f wsd: reduce logging noise in socket reads
Change-Id: I4305baf828ccb1ae71d3b3b12fa90a7aeb5e0928
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-03-23 13:31:58 +01:00
Pedro Pinto Silva
5fb8c05f51 Add missing icons for mobile
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I06c24a406eb77ab22cb863ce1b2d071aa07c6582
2022-03-23 09:54:54 +01:00
Rash419
ea35dbe350 wsd: added regex support for alias tag
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2534ea9afa7d3d3bf10f91eeac44f70381acc76a
2022-03-22 14:13:22 +01:00