Commit graph

20169 commits

Author SHA1 Message Date
tygyh
0377763c26 Translated using Weblate (Swedish)
Currently translated at 100.0% (526 of 526 strings)

Co-authored-by: tygyh <jonis9898@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6ca81fb285319885f4bc209c9ae3a05acd1e332a
2023-03-06 13:17:28 +01:00
Matthaiks
183fb277da Translated using Weblate (Polish)
Currently translated at 100.0% (526 of 526 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: I143dc898ea4b227005440bc1b4c9a63511f9fc2b
2023-03-06 13:17:28 +01:00
Sebastiaan Veld
245974c59b Translated using Weblate (Dutch)
Currently translated at 100.0% (526 of 526 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iece61b5e7c39defcad3ad62f1563f492c86f1eb4
2023-03-06 13:17:28 +01:00
Yaron Shahrabani
8a8ad2427a Translated using Weblate (Hebrew)
Currently translated at 100.0% (526 of 526 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: Icdcc964f10a73564ccd39486491f0ecaca0e80ad
2023-03-06 13:17:27 +01:00
gallegonovato
ed4848fe87 Translated using Weblate (Spanish)
Currently translated at 100.0% (526 of 526 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
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: Ieea6f85534d727578af24b6a7be1b2ef79981a80
2023-03-06 13:17:27 +01:00
Stanislav Horáček
324e93afad Translated using Weblate (Czech)
Currently translated at 100.0% (526 of 526 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: I0ee2bf695c4b0a2f8d2eb98f037b1ecdc433bf92
2023-03-06 13:17:27 +01:00
Andras Timar
82aca4dee7 Translated using Weblate (French)
Currently translated at 98.0% (516 of 526 strings)

Translated using Weblate (German)

Currently translated at 100.0% (526 of 526 strings)

Translated using Weblate (Hungarian)

Currently translated at 100.0% (526 of 526 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/fr/
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: I3366752a41e14dbd68a0b7000136eaa36639531f
2023-03-06 13:17:27 +01:00
Gökay Şatır
86e8491707 For .eslintrc change, see: https://github.com/typescript-eslint/typescript-eslint/issues/1824
idle handler is moved into typescript and outside of map variable.

vex dialog of handler is replaced with JDSdialog.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I341c28e9e3f1659987b871a235a50757f42d4d2e
2023-03-06 15:10:10 +03:00
Pedro Pinto Silva
6bcc3c7032 Improving message on TTL expiry handling
when session expires some users might need to login again
in their integrator. Do not exclude those users. Otherwise
they might try to refresh and no session renewal happens.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I305d185fc8e9072e52b668e12e7ea80c55e9b93d
2023-03-06 11:39:59 +01:00
Pranam Lashkari
3694258e99 jsdialog: support toggle event for push buttons
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ibd5a2d6de35c2f7142afe0254f4133746152226d
2023-03-03 17:06:51 +01:00
Szymon Kłos
5457c51d76 jsdialog: send correct id on tab switch
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie098b2f6f2e6333765658e4d27eab6052735bc8f
2023-03-03 19:59:49 +05:30
Szymon Kłos
3dde59c9d7 jsdialog: don't show error on closing busypopup
This is regression from:
a2d666d53a
JSDialog overlay: Use CSS rules for positioning.

When auto-save or save is performed we show busypopup.
We shoudn't send any messages to the server as it is
pure JS dialog.

Parsing error was caused by sending close message:
1677832085616 OUTGOING: control: 'dialog' id:'__DIALOG__' event: 'close' state: 'null'
1677832085617 OUTGOING: dialogevent busypopup {"id":"__DIALOG__", "cmd": "close", "data": "null", "type": "dialog"}
1677832085620 INCOMING: error: cmd=dialogevent kind=syntax
1677832085621 INCOMING: jsdialog: {"id":"busypopup","jsontype":"dialog","type":"modalpopup","action":"fadeout"}
1677832094401 OUTGOING: userinactive

Let's don't send that message for fade out effect we use to close it.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibe430c389ba90f7ec53cc167ff860b24935a2241
2023-03-03 10:32:24 +01:00
Gökay Şatır
fdd039e502 Modify cypress tests for JSDialogues.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I566ddb2c3111d2d1689b91c678ac9aa92e88ab05
2023-03-03 11:38:33 +03:00
Gökay Şatır
e1f1399ace Hide also the wrapper of pushbutton when the button is hidden.
Make the modal helper's ids unique.

Turn vex dialogs in clipboard.js into JSDialogs.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I99b06dafb95a2cf82004141b18012972fde7f836
2023-03-03 11:38:33 +03:00
Gökay Şatır
e116a4d3e8 Use a JSDialog for pasteSpecial dialog.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I70d1c7788afc0c16c679000e78210a255f46461d
2023-03-03 11:38:33 +03:00
Henry Castro
aed7a68ec0 browser: add author data to calc comment
The recent changes in LO Core, when edit a comment
in Calc the author data is not preserved.

Change-Id: I4f26ef2044d28bf55ff6a00a2e585ece79c6eb9b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-03-02 14:56:41 +01:00
Pranam Lashkari
92a7495b4f zotero: fetch citation style when zotero is initialized
when document is loaded zotero may not be initialized,
this caused problem and citation style was never fetched

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I827bf4edf03dc81bbf8e246280ed14370e438494
2023-03-02 13:50:04 +01:00
Pranam Lashkari
428213386a zotero: avoid updating bibliography if no citations
sending requests without citation keys returns bibliography for all the items in library
this causes problem is the document already has some kind of bibliography which is updated unintentionally

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I34976f94bf3cbb6d07fe06e8b1ca974b2ee59ebb
2023-03-02 13:49:39 +01:00
Rash419
0edefdf994 fix: writer: zooming into document with multiple view doesnot work
- msgData is undefined when we get graphicselection: EMPTY message
- "Cannot read properties of undefined" error was stopping the further execution
  therefore the view was not getting updated

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I4fefd9205ae46fee24c91d070e3f3f16c4912aa2
2023-03-02 13:33:49 +01:00
Szymon Kłos
d21155f778 Update jsdialog widgets headers
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I07be0d9e917db3f0e2f924d04ed19cfdcdb23e56
2023-03-02 11:53:44 +00:00
Szymon Kłos
9bdb0692f0 Verify if preview matches currently displayed link
Download time can be longer and user can already switch to
other link. Verify if received and displayed link matches.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I502133d71a0a9032947c6233a0ac2750625b8650
2023-03-02 12:27:45 +01:00
Szymon Kłos
331f510cac Use selected text for link text
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5fe42036bb48a066af4b7f43e36cc1f3b14bc562
2023-03-02 12:27:45 +01:00
Szymon Kłos
29b983ea1c Limit preview height and width
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia6227c7f605bc7c34ae47749ea6896dc55de9038
2023-03-02 12:27:45 +01:00
Szymon Kłos
662979deda Get link preview functionality
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I80c4a15731cc05cc6deb36b5aac7f73c94e94432
2023-03-02 12:27:45 +01:00
Szymon Kłos
07cf933a8c Add Pick Link button
Button is shown when CheckFileInfo contains 'EnableRemoteLinkPicker'.
After press UI_PickLink is send via postMessage.
Action should be finished with sending Action_InsertLink to editor.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I53c61a25d1fab655771742ec6d97dc056192642a
2023-03-02 12:27:45 +01:00
Szymon Kłos
6e2f023664 jsdialog: handle multiple tab controls inside dialog
It was possible to use only one tab control.
Now useSetTabs parameter for builder is introduced
which defines if we want to use custom placement
of tabs handled by the parent container or put
tabs in the place where they are defined in JSON.

Custom placement is needed in mobile-wizard and notebookbar
as for them tabs needs to be placed at the top bar.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6420e303de248058a7a94ead47b6672b717360df
2023-03-02 09:44:23 +01:00
Gökay Şatır
e665b58772 Update vex based tests for about dialogue.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I8d572a1256b51bdce9b5ad4605ab0c0105d75b07
2023-03-02 11:29:58 +03:00
Gökay Şatır
b34d0fe4a6 Turn about dialog into a JSDialog.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I95620ef2dc50af054be4c7a1774516ac4fe8c3ff
2023-03-02 11:29:58 +03:00
Gökay Şatır
a2d666d53a JSDialog overlay: Use CSS rules for positioning.
Set position rule and some others of the overlay to absolute. So we can use it both for popups and documentareapopups.
Set max-height of the pop-up so it doesn't look ugly when the height of the popup is bigger than the window height.
Modify JSDialog for the new behaviour.
I also split the code into functions for easier maintaining while updating.

Add special rule for comments. They are not contained in the container.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia7d12de23bc64d811156f565b076463cb22ee38e

Turn help popup into JSDialogue.

Change-Id: I81b198863f959de1047589fc028ac6c2ce3b1ff1
2023-03-02 11:29:58 +03:00
Rash419
507d0f1a4a js: added localization for jquery-ui datepicker
replaced jquery-ui-dist node_module with jquery-ui
for localization

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I6dd95cb8859cd2e0626195a0b87b496fe44afc49
2023-02-28 15:51:36 +01:00
Gökay Şatır
9d09dccecc Hide sidebar button on readonly mode.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I29a899a1113c6188558e8b85bf9adde5bc9049fe
2023-02-28 11:57:11 +01:00
Miklos Vajna
e4298ccf31 fuuzer, httpresponse: clear state before each run
The max input size is 16384, so in case the input is saved after each
run, then this can allocate ~300MB of memory. This is considerable
amount, given that the upper limit of the fuzzer process is 2GB.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ieedb6a537d5b539255ed8bacd79ff23db3c15e9f
2023-02-28 10:18:41 +01:00
Andras Timar
c05c2692ab Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id54db427bce6a7be1e2aea3d82c550b11867ca8b
2023-02-27 15:10:14 +01:00
Pedro Pinto Silva
a60f38e48f Improve You are leaving editor message (open hyperlink)
- Improves modal title instead of generic 'Open Link'(which is
already used in the button) use instead a more informative
tile: 'External Link'
- Indicate to the user that the web page will open in a new tab
as per request:
  - Fixes: https://github.com/CollaboraOnline/online/issues/5893

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia4770d13ed0e5ef4f33aaa85054b0d21bea9e449
2023-02-27 15:05:41 +01:00
Nathan
6bccfb14d1 Translated using Weblate (French)
Currently translated at 99.2% (516 of 520 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: I71a9a45bc5be1ccc4add82aed45a4474d89d7c45
2023-02-27 14:55:50 +01:00
Adolfo Jayme Barrientos
de48496da7 Translated using Weblate (Asturian)
Currently translated at 50.9% (265 of 520 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4a267786aec23f3443a6d88c5769545e9a7dfb4c
2023-02-27 14:55:50 +01:00
Andika Triwidada
6ad1d6e148 Translated using Weblate (Indonesian)
Currently translated at 100.0% (520 of 520 strings)

Co-authored-by: Andika Triwidada <andika@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/id/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib9605858fa020bdcb3444e5ebc081f2672b46b5a
2023-02-27 14:55:50 +01:00
Pedro Pinto Silva
13b1807a7f Compact view: Do not show translate if the respective op is false
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9d8ae8c4585c86b53eff952a96b1494da7197746
2023-02-27 14:38:38 +01:00
Pedro Pinto Silva
76bb99ca1c Tablet: tabbed view: Allow user to go back to read only mode
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7938f042e3d8a49887bd15e4e5e2331bcfff133c
2023-02-27 11:36:21 +01:00
Szymon Kłos
5e3cf57605 jsdialog: show overlay for all modals
All modals shown with uiManager.showInfoModal should
have overlay which helps to focus on modal dialog.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id6f159bba6c6be289dadf666b25bd610f2df0cc1
2023-02-27 10:52:09 +01:00
Andras Timar
3e6705a3b6 fix include_path with non-system libs in test/Makefile
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic6dfa7086e1b7fc55b007cee679577a584adeee9
2023-02-26 19:19:22 +01:00
Andras Timar
e23bb604b8 add OPENSSL_CFLAGS to include path when SSL is enabled
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1a65f15bd8bfa7a25e368fa54c62fd8f06a3bd8a
2023-02-26 18:50:58 +01:00
Andras Timar
26b6d51d94 Some packages will not be required by coolwsd rpm package
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I87fd9a5d5a6f7e5f6f8a71a279ffb30e74f67298
2023-02-26 17:04:14 +01:00
Jan Holesovsky
1f0135121c File Notices recommendation
Change-Id: I98d5bf92cd1c354b9f448272f397681101b81715
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
2023-02-23 18:45:16 +00:00
Pedro Pinto Silva
b1afc5ae3d Accessiblity checker tabbed item should only exist for text doctype
Since the helptab is shared between different doctypes we need to
make sure that writer's accessibility check doesn't bleed out to
other doctypes

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic4d35fe080cbefc2564db1a250dbf6d62274de69
2023-02-23 14:08:49 +01:00
Ashod Nakashian
c045fc8bea wsd: test: minor cleanup of UnitWopiLock
Change-Id: I66973743c2c84d4f9ad459da323e2db9ba76d5c1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-02-23 07:58:56 -05:00
Ashod Nakashian
d1b1f960aa wsd: test: new test to verify refresh lock behavior
Change-Id: If28ab29c43f638f111169673d9a8ee5651fa6da8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-02-23 07:58:56 -05:00
Ashod Nakashian
104b354f1e wsd: handle errors from locking/unlocking a document
Change-Id: I69e2c26aaa572e5ca215fd8cf3413ed043861f0f
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-02-23 07:58:56 -05:00
Ashod Nakashian
9ab65faee3 wsd: detect unuathorized locking/unlocking response
Change-Id: Ia46ad6859f5ce21e506d8c1f96a28430c5f70954
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-02-23 07:58:56 -05:00
Ashod Nakashian
2da70b1cc0 wsd: avoid function-local static configs in LockContext
The function-local static prevents tests
from changing the value of a config.

Change-Id: I5febdbf029293fab39f18afa6d905fd571d59545
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-02-23 07:58:56 -05:00