Commit graph

19251 commits

Author SHA1 Message Date
Andras Timar
1cddb21b94 Display build config (configure options) on admin console
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iac66ea99d23416c494b04ff92abc0bfeb646e5be
2022-10-13 11:57:17 +02:00
Rash419
0fdab6e99e wsd: added allow key to locked_hosts section of json to
define whether locked_host is allowed or not from json
only without the need coolwsd.xml value

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I4c20a56afae3b90c29badc1ecbaec5aa37d07cbd
2022-10-12 10:59:19 +02:00
Rash419
fa70614464 wsd: added additional safety checks in fetch methods of remote config poll
updated the log messages

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic9caaed6111adeee6b05e3240afcbef1e919285d
2022-10-12 10:59:19 +02:00
Rash419
4544428aeb wsd: removed fetchWopiHostPatterns
fetchWopiHostPatterns was used to override old <host></host> which is deprecated and replaced
by alias_groups

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic16facffdb40eaca504c47a17024cff6ff241950
2022-10-12 10:59:19 +02:00
Michael Meeks
9e9f7007f3 perf-test: disable SSL for now, and print the right url.
Seemingly rejectUnauthorized doesn't make nodejs happy either
for unknown reasons.

Change-Id: I99299489ba6af98c4088ee7b95c4d55d1291dfc6
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-10-12 07:53:46 +02:00
Rash419
6cc2dc2c98 overriding checkfileinfo using hidden input field
wopi host can add following input field to their html to override checkfileinfo, right now only
DownloadAsPostMessage is supported
<input name="checkfileinfo_override" value="DownloadAsPostMessage=true" type="hidden"/>
This can be usefull when same html is used to load collabora online in both desktop browser and mobile webview

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8ff122f2824694d451724a832d992e08161fb448
2022-10-11 11:34:29 +02:00
Pedro Pinto Silva
52f0c3dd0d Fix multiple line list within feature_lock dialog
Before this commit, list entries with multiple lines where not being
properly aligned.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0ca9861289f471285ace2dc1d39104d608eb8f15
2022-10-11 11:23:42 +02:00
Pranam Lashkari
901e7ca29e fixed read only feature locking popup not working
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id667f4307b30eb38b0ebe0ce4ff6ee71b62020eb
2022-10-11 03:54:34 +05:30
Rash419
b1f3cdbde0 browser: fix: using IME input candidates cannot be selected correctly
don't empty the textArea when typing through IME

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7fac8ddfcdf5eeb3f03fe79bdf538fb52d311cce
2022-10-10 09:52:55 +02:00
Andras Timar
cb51998535 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id6f89f401e21a94716665d8eaef5fbfaf108c500
2022-10-07 17:10:19 +02:00
Andras Timar
f66871cf18 Enable l10n of browser/src/map/handler/Map.Feedback.js
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iceebef11d522be1a964be35dbd6484ed44b699d4
2022-10-07 17:08:00 +02:00
Besnik Bleta
d27f23b3a5 Translated using Weblate (Albanian)
Currently translated at 7.4% (34 of 459 strings)

Translated using Weblate (Albanian)

Currently translated at 14.6% (67 of 457 strings)

Translated using Weblate (Albanian)

Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sq/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I455691b982eedd8c88685d788e869d83d2bf05d6
2022-10-07 17:05:55 +02:00
Nathan
cf3e2b2dda Translated using Weblate (French)
Currently translated at 100.0% (459 of 459 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: I26bfc5404b02528567a3edcb3c15f0630753d2f6
2022-10-07 17:05:54 +02:00
HerMin
8f2215706a Translated using Weblate (Korean)
Currently translated at 64.0% (294 of 459 strings)

Co-authored-by: HerMin <jetem@me.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ko/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib11981e72ab56e3d04f2e425ec3628a505340742
2022-10-07 17:05:54 +02:00
Gontzal Manuel Pujana Onaindia
4301a117ca Translated using Weblate (Basque)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@gmail.com>
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: I78831e8cfa8f9be0b66fc153c1cfa4a25c7f45ad
2022-10-07 17:05:54 +02:00
George Kitsoukakis
09061fe50a Translated using Weblate (Greek)
Currently translated at 95.4% (438 of 459 strings)

Co-authored-by: George Kitsoukakis <norhorn@gmail.com>
Co-authored-by: george kitsoukakis <norhorn@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic748ef012368e729298c2e55855c701d8c265721
2022-10-07 17:05:54 +02:00
Sveinn í Felli
8ca8c6bdda Translated using Weblate (Icelandic)
Currently translated at 100.0% (459 of 459 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: I19987c9dc42cad0ebfb15f79130110560b88fc3c
2022-10-07 17:05:54 +02:00
Yaron Shahrabani
34e2390a2a Translated using Weblate (Hebrew)
Currently translated at 100.0% (459 of 459 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: I3381bdd4b9e2d9c62b902649281ac01e93b09513
2022-10-07 17:05:54 +02:00
Jan Holesovsky
4cd2bf1d91 Translated using Weblate (Czech)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Jan Holesovsky <kendy@collabora.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: I5c4fc0fbfb513d2da0f33fe31922a226af74e84c
2022-10-07 17:05:54 +02:00
Adolfo Jayme Barrientos
613c44666d Translated using Weblate (Asturian)
Currently translated at 52.0% (239 of 459 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (459 of 459 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
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: I0172849eeaf1fc2bc611b84e9cae1e86a133c3d5
2022-10-07 17:05:54 +02:00
Ashod Nakashian
237bb46eff wsd: simplify infobar fetching
Since the request is really synchronous,
there is no benefit in firing up a thread
and doing an asynchronous request when
we will block until the result is in.

Luckily, we have a much simpler sync-
request API that avoids threads and
callbacks.

Also, avoid failure logs when no
infobar URL is provided.

Change-Id: I06a2f7fb042c8e8d5599bb06ecee5b1afa51911a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-10-07 11:19:20 +03:00
Gabriel Masei
3aa81e8ba1 add 'Connection: close' header to http responses.
If the connection is closed right after the response was sent
then it's wise to add 'Connection: close' header to the response
so that the client optimizes its behaviour: e.g. does not reuse
the socket for further http requests. Normally  a client should
retry a request if the reuse of an old socket fails and that
should solve the problem but still this is an overhead.

Signed-off-by: Gabriel Masei <gabriel.masei@1and1.ro>
Change-Id: I29f1498610c567024def3beb1ad7014f2c15a232
2022-10-04 13:45:58 +02:00
Rash419
4aaa3f2370 js: added EditPrintArea and AddPrintArea uno commands in classic and NB
updated unocommand.js using unocommand.py

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0d972a16d5e9365af3ce31a39ceb006eb217627f
2022-09-30 13:56:50 +05:30
Szymon Kłos
21c7958549 slidesorter: use correct styles for desktop & selection more visible
Mark as important so will not be overriden by the
mobile-wizard rules.

Use primary color for selection so it will be visible...

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7688f22c4da0121999b7f7675fcab0b0f59f8c11
2022-09-30 10:26:13 +02:00
Pedro Pinto Silva
498eab8da1 Add missing full stop at the end of the error message
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8916172a4c7df9002b6f8d5ac2d508ab2dc6a855
2022-09-29 10:28:18 +03:00
Pedro Pinto Silva
d4c4774a57 Improve infobar's component contrast
Reduce inconsistencies by inherit component properties such as
shadow, border and bg.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia978b229cf4c9616d1d38ccac09644114972b39b
2022-09-29 10:28:18 +03:00
Pedro Pinto Silva
f133aa3ab9 Add button-primary to infobar component
The primary button should inherit styles form our common used
css class

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I923ecc58f5456cba226a35b6f9e180346908febe
2022-09-29 10:28:18 +03:00
Henry Castro
9a51d8ec52 browser: add util function getProduct
Change-Id: I51be33f5e64c716d22c11ddb1f969e9238c18884
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
abfbf4846d wsd: add remote buy product url
Change-Id: I97617ddf8c7a0fc923788477fb077f3baa16fe13
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
3d8cfe87fb wsd: prefix private members (RemoteJSONPoll class)
Change-Id: I19f5d01dc190d23c79a255413ad3d805b032e625
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
b991e6a017 wsd: add buyProductURL
Change-Id: I5ca0a84e7a927496bfe0b314967a2b11b20bd60d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
6487be75e7 wsd: add optional parameter buy_product
Change-Id: I9ec71025c2ae3e0d477a8ede49dfdd96398fbbef
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
bf8539ff9d browser: initial integrator redirection
Change-Id: I6406b6b1dc128cf8d2141626b6f968fa21cdfbf4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Rash419
629b25b27a mention: update the popup with new data and position instead of re-creating the new one
-jsdialog: close the popup when zoom event is fired
-use callback to handle the special key event in treelistbox
-code cleanup

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If46c840d7f751f89898ec1a54ec0a6fcb6811f7a
2022-09-27 14:43:16 +05:30
Rash419
d13d430b58 writer: introducing new mention feature
now you can insert a mention just by starting to type with @
integrator needs to implement UI_Mention postmessage api endpoint on which
online will send request of initial character what user is typing on the basis of
that integrator should send the list of user using Action_Mention postmessage api call
object where each object contains { username: '<username>', profile: '<username profile link> }
for example you can check framed.doc.html

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I38387cd05f1654b0bdb2b4f31cbac633eece5722
2022-09-27 14:43:16 +05:30
Pedro Pinto Silva
b42e916a97 Don't add border nor margin to widget if dialog is a onlyChild popup
When we are in presence of a dialog with just one treeview list
please do not add border around the widget. Container takes care
of it.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0c99f837ac6174fa60031e773c75fbfa1162762d
2022-09-26 16:01:21 +02:00
Pedro Pinto Silva
0d7dfa92dd Fix drop-down marker (form control) size
- Better to don't set hard width or height values via CSS
JS is already setting it initially and updating it when
zoom changes
- Add min width and min height otherwise:
    - The control can become almost impossible to interact with (too
    small if we zoom too far out)
    - The arrow becomes unreadable

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id54f7addbd8899a3e3ca97493e1865aa36b88817
2022-09-26 16:01:21 +02:00
Pedro Pinto Silva
6bf146d4ea Improve drop-down marker cosmetics, form controls
- No need to make it so dark (can be misleading, as if it was
disabled)
- Inherit border radius

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8aaf44758ddea447b2d167d80e73c3a8a8a7e022
2022-09-26 16:01:21 +02:00
Pedro Pinto Silva
3874ab9d81 Fix drop-down marker position, form controls
Before this we were trying to align arrow via bg position
this in turn was leading to problem when the parent control
(drop-down marker) resizes which happens every time we change
document zoom.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iad0479b5db462e5bbe14c8e81f8a41fc024947dc
2022-09-26 16:01:21 +02:00
Szymon Kłos
53190e5058 formulabar: fix selection in multi-line cell
indexOf returns position - do not sum the positions
This fixes not working cursor position change in
formulabar when we had multiple lines.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I306ab461c832bb0a48d760b84f32938e109959fd
2022-09-26 17:53:20 +05:30
Andras Timar
42c05fda66 docker: add 'DOCKER_BUILDKIT=1' to documentation, fixes #5296
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20384c93754b60800ba21a46b58106fa97deb75e
2022-09-25 13:50:08 +02:00
Ashod Nakashian
19c70b89f4 wsd: re-create the jail directory when mounting fails
This guarantees that the jail directory is always
created, especially in case mounting fails and
we cleanup and fallback.

Also, move the directory creation and setting
the perms into a helper, and reuse.

Change-Id: If6e9ef86afa5107638aa27050554e94c0af22b6e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-09-23 16:39:56 +01:00
Gökay Şatır
e200533b5e Remove obsolete css rules for shadow-transparency items.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idd1b71e1b32a1367902a230eb9f43fe18321f856
2022-09-23 14:42:21 +02:00
Pedro Pinto Silva
e1345de673 Fix Online help: buttons are no buttons, also decrease vertical space
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I766076d7819dfb2034134d3cb2a3f67ed0110b2c
2022-09-23 12:24:12 +02:00
Ashod Nakashian
5c7d94206f wsd: disable mounting when unmount fails
It seems that on some systems it is possible
to succeed in mounting, but fail to unmount.

This is proving very problematic and it is
best to detect unmount failures and disable
mount-binding altogether.

Change-Id: I6f708b3a1e585dcbd95cced45c668629410562d6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-09-23 08:53:09 +01:00
Gökay Şatır
9993453714 Make the wrapper's display "fixed" so it doesn't interfere with the window.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I7176a0dbc235f8202cbbd4028ac187293d648d8a
2022-09-21 15:45:50 +02:00
Pranam Lashkari
b9f096a060 updated kubernetes HorizontalPodAutoscaler to V2
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I677dff0deb34a3c505ed0422bb359de7691d4c90
2022-09-21 17:04:28 +05:30
Rash419
1ca521b161 fix: calc: comments in frozen row headers aren't shown after scrolling
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I6eeb716c118778c1a386437c751bda3e9e3a5a24
2022-09-21 13:39:21 +05:30
Andras Timar
cc678b0abb Add libzstd-dev to CodeQL dependencies
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id9e32efa8a0a0ed5d3fa52eaea5208342098e8cb
2022-09-20 08:10:05 +02:00
Aron Budea
384b4ce198 Hide context menu items that don't work on mobile
- Page Style, Paste Special don't work
- Group/Ungroup Sparklines should be hidden when they aren't
  relevant, let's hide completely for now

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Iae7da11719827512307eeeade10caa56e023c8f0
2022-09-19 15:59:24 +02:00