Commit graph

19132 commits

Author SHA1 Message Date
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
Aron Budea
58cd55efe0 Fix missing delete comment icon on mobile
Regression from 4e075146b9.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I72375d5a784f9905f6a36ba805d2368c3d45900d
2022-09-19 15:59:24 +02:00
Szymon Kłos
7043365475 masterpage: get & set optional mode parameter for tiles (server side)
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I756e3d515c86a635cfa9db81106848ee3dcf684a
2022-09-19 15:18:23 +02:00
Szymon Kłos
06fbc53c9d masterpage: get & set optional mode parameter for tiles
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ied50985f85db385fb38cfb9c4006e3b87119e9fc
2022-09-19 15:18:23 +02:00
Szymon Kłos
8f84e6acff masterpage: ignore cursors and selections from other modes
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I55f82032dc5d21300abb3870c8ba660efb795249
2022-09-19 15:18:23 +02:00
Szymon Kłos
2e401a4d1b masterpage: add _selectedMode to the TileLayer
_selectedMode will be used to store current EditMode
(Page / MasterPage in Impress)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie3ff5c2e6d8f122fb5b6e6a6e69363bdd3a51403
2022-09-19 15:18:23 +02:00
Pedro Pinto Silva
41495bb602 Fix annotation btns tooltips discrepancies
These tooltips were not getting styled as the other ones.
Annotation btn tooltips were missing:
- padding (as seen in .ui-tooltip)
- font-size and line-height (as seen in the ones that get styles
from jquery ui css by default)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ief46d294e36dfa0926cf668cd9a9f89589c6da40
2022-09-19 13:14:02 +02:00
Pedro Pinto Silva
587674560c Enforce annotation icons' style
currently it was getting styles from generic buttons

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I05e798cc1ba14dcd36607c6b4ec8a27dc33e585a
2022-09-19 13:14:02 +02:00
Tor Lillqvist
5f7ae4f5a4 Add a dummy handler (for now) for LOK_CALLBACK_FONTS_MISSING
Avoids logging an ERR.

Proper handling of that functionality is still a work in progress.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Id6bd985ee62e6cb76641d6f866f6318868b9b2b3
2022-09-19 12:17:30 +02:00
Pedro Pinto Silva
e66dfb7706 Add icons to save as drop down menu
Reuse download format icons

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic7824159913ae2d4f02413fee000f2e1daf86238
2022-09-19 10:56:08 +02:00
Mert Tumer
c74ee86262 added option to group save-as
We can provide doctype extensions for save-as much like downloadAs
but this will load the new file in the integration. instead of downloading

To achive this, args: {format: '<extension>' } parameter needs to be
sent inside UI_SaveAs postmessage. Because the integration provides
dialog with filename, there the extension will be set after the
filename. Our save-as work flow already handles the rest.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I6005846047fc0b26ea07e8eeea965965ed1b87e7
2022-09-19 10:56:08 +02:00
Andras Timar
08741ed9e4 docker: fix install script for ppc64
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic4217880ec52061601d3e0e3403da707fd10a844
2022-09-18 21:22:41 +02:00
Andras Timar
ba847a7f58 docker: support ppc64le
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie3ba247471aec999a1af09e5a7140cf70b45ac03
2022-09-18 21:03:43 +02:00
Andras Timar
b4e6fe82c7 docker: better handling of customer repo URL
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4f750a8679e193ede399ae51d9b8b8cff5502f4d
2022-09-18 19:34:26 +02:00
Andras Timar
4e05ca3012 Bump version to 22.05.7.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1d8f08aebd8abc49173a94c511d3b0f2d6b7a28f
2022-09-18 12:15:38 +02:00
Andras Timar
83dc7eef8f Bump version to 22.05.6.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic95ca7bfb1932ac611e955faab456941abbfd324
2022-09-18 12:14:02 +02:00
Ihor Hordiichuk
610b80a7e4 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (459 of 459 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: If874c2c0fddc1d21f1cb8a9aa87b15248d9b4146
2022-09-18 10:01:54 +02:00
Gökay Şatır
0b78ad3a0d Translated using Weblate (Turkish)
Currently translated at 100.0% (459 of 459 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: I5048ff671ff28d7bd4d55123005b9a36252bfd3e
2022-09-18 10:01:54 +02:00
Martin Srebotnjak
e2da50a9e0 Translated using Weblate (Slovenian)
Currently translated at 100.0% (459 of 459 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: I3aaa50b11a78d13d8edcfc54398cd775a3570352
2022-09-18 10:01:53 +02:00
Mike Kaganski
fa284ae09a Translated using Weblate (Russian)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Mike Kaganski <mikekaganski@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icf6d149dfd1c6b025d28eedc3d31c26959db55e2
2022-09-18 10:01:53 +02:00