Commit graph

19550 commits

Author SHA1 Message Date
Szymon Kłos
1aeeda61ac jsdialog: use unified naming for treeview icons
unified header and no header treeviews
icon shouldn't contain old extension

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0778d49395c084e4ac9adc848b3327529ee37e61
2023-01-04 07:27:20 +01:00
Pedro Pinto Silva
7dcd8a12fc Citations: fix Refresh btn alignment, add json leftaligned property
Move refresh button under a buttonbox so it can automatically inherit
container's offset

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I405eddc56ab806b33404221f64255ea676240134
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
1cc519ccf3 Citations: Fix extra h margins affecting search and locale controls
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5e1bf9cedbce7de1a5ca18c014b30914f9f6f046
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
3f27c6b1bc JSDialog: edit controls (input fields): do not force their width
setting it at 100% was leading to element getting passed their
container. Example of the referred bug:

https://archive.org/download/jsdialog-ui-edit-has-forced-width/jsdialog-ui-edit-has-forced-width.png

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I64a65e3149356f0094d0ce8e2ace8ffd8fba28fd
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
f1a86aedd5 JSdialog: Fix container's padding
Do not set sub container with a margin. This was resulting in
some elements (that are inside of that container) to be properly
contained but all the rest were being set without any surrounding
margins -> leading to misalignment

- Main jsdialog container shouldn't inherit lokdialog padding 0
- We do not need to specifically set `padding: .5em 1 em` because it
- has been already set and inherit from jquery ui CSS rules

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I957c93c099692a5bd202248731b16bc6bf358234
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
5f29c731fb JSDialog: add margin offsets to buttonbox L and R
Fixes the misalignment, before this commit: the safe margin
present in every button was correct but for the cases where
the button is placed to the further left or further right
edge of the dialog -> it looked misaligned

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibadeaf6cf736b07229d60f99b5af72865f26e23f
2023-01-03 17:04:32 +01:00
Tor Lillqvist
49660dbb94 Fix error in conversion from microseconds to whole milliseconds
I had added some extra debugging output to the !MOBILEAPP branch to
log values of timeoutMaxMicroS and timeoutMaxMS and was wondering why
I saw things like:

    timeoutMaxMicroS=5000000 timeoutMaxMS=5009

and

    timeoutMaxMicroS=0 timeoutMaxMS=9

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Iac8599ce5b00ef90d62eabc29c5d92858e276bb6
2023-01-03 11:54:17 +00:00
Szymon Kłos
ba3aa1b4c4 Zotero: refresh insert note dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idbb7dfe88072fb2071e75efd961317b4184ddcae
2023-01-03 10:19:12 +01:00
Szymon Kłos
130433f8d5 Zotero: don't duplicate notes on insert
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I586e83b05d7757df11dac263b8ed3317efd58575
2023-01-02 20:51:37 +01:00
Szymon Kłos
c3f98060d6 Zotero: show notes from groups
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id24ee1282703f2cb1eea15f828c134151b11352d
2023-01-02 20:51:37 +01:00
Szymon Kłos
c49ae2a78f Zoteor: don't shorten the note
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I452eaf484fd91ad8f3e2d88d0a1270b85f17be99
2023-01-02 20:51:37 +01:00
Szymon Kłos
8d86da3c43 Zotero: show all notes
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I42a9686b275f42615a36d0e02519f2037a0d129b
2023-01-02 20:51:37 +01:00
Szymon Kłos
7d8c7ede3d jsdialog: don't use deprecated string color parameter
There was a bug in the core with duplicated filds, also
we can use original numeric argument to pass colori (tdf#150339).
Let's don't use string color so we can remove that
from the core in the future.

Related core commit: https://gerrit.libreoffice.org/c/core/+/144866
Resolves: tdf#150339 two arguments called "Color"

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I880552b7af4408e568db878dc862e548e901124d
2023-01-02 16:26:25 +01:00
Henry Castro
857e3f35a6 browser: menu: ignore menu item with empty text
if command "None" and empty item text, there is
an unhandled exception, and no grammar suggestions are shown.

Change-Id: Ie2c832a2a3ff7fe9944024fa003370819b16a432
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-01-02 11:14:31 +03:00
Henry Castro
03365b3aeb config: add REST API Protocol to LanguageTool
Change-Id: I0e05ed89d02a9b467e1707db1638fc9ee554586a
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-01-02 11:14:15 +03:00
Pranam Lashkari
f7968b4fc1 zotero: fix locale drop down showing incorrect language
user was allowed to select language without selecting the style,
if style is not selected language data will also be not written in the doc.

force user to select style too if want to set the language.

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie323b19189858e601f3fa979d747d7c688e4baf1
2022-12-30 12:03:27 +01:00
Pranam Lashkari
852d12960f zotero: in style dialog show selected style
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I420c5f22f8b4aa880f202fe8b0d981f091c1dfa7
2022-12-30 12:02:57 +01:00
Rash419
3f8f3dcf55 updated helm chart
- now works with default configuration
- updated readme
- fixed unknown field "spec.terminationGracePeriodSeconds" in deployment.yaml
  error. This field should be defined in pod spec not in deployment spec
- improved how aliasgroups are defined in helm chart
- change default to kubernetes "Deployment" instead of "StatefulSet"
- added support for kubernetes hostAliases

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ief1e2b3f0ea130425853babbd28462d48e50280f
2022-12-29 21:52:30 +05:30
Andras Timar
652eb4f16f zotero: localized bibliography
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2df13cbc1b818ab26551161f18673e9e1a4770d3
2022-12-29 11:48:23 +01:00
Pranam Lashkari
1c7987b87e zotero: fixed broken item query function
fixed regression form 9529215

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id375958bd17b528dee7e9000d056ca60da064133
2022-12-28 06:19:50 +05:30
Pranam Lashkari
60ac1e18b2 zotero: fetch and set locale language from doc if set
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I5a003d065b062d9631c00ade65e969b21db121ce
2022-12-27 22:46:22 +01:00
Pranam Lashkari
e045552ab0 zotero: added language selection support
some style may differ in languages
i.e: in APA style a citation may appears as (Abrikosov, n.d.) like "no date". When I switch language to Hungarian, it becomes (Abrikosov, é. n.) like "évszám nélkül".

language can be selected in document preference dialog

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ida1cd91b189fc468e0205e9f1e332238f3ebbe7b
2022-12-27 22:46:22 +01:00
Pranam Lashkari
952921577d zotero: extract repeated query in a separate function
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I27db5073fcd46f0853e947c4cf9a246477271d84
2022-12-27 22:46:22 +01:00
Andras Timar
ef1cf7cf49 #5609 add '# syntax=docker/dockerfile:1.2' to dockerfiles that use --mount option
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I57600aa071c9f190ded05867bffc3bad7d54da1d
2022-12-23 10:07:21 +01:00
Szymon Kłos
1480df81d2 Zotero: add note
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3696bd1115ac996c2f5d163ddcb0238036436aac
2022-12-22 21:31:07 +01:00
Szymon Kłos
aa7503c03c Zotero: unify command naming
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib2b6cda94817e544d2fe37181d4aae105f2ea201
2022-12-22 21:31:07 +01:00
Szymon Kłos
dde1057ac2 Zotero: fix broken requests
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6dd1e198e6870c62a53bdca141b55c69a9d4a47a
2022-12-22 12:40:16 +01:00
Pranam Lashkari
b7db80cfb4 zotero: insert bibliography
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If6d1f2189eb27785cd2bb2d15a50ee01c4735afc
2022-12-22 12:40:16 +01:00
Szymon Kłos
84c68b7ef9 Calc: show cursors from others
avoid comparison with undefined for mode param

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifdcd46ae2d10aa2f203b377e7daf30aee8715802
2022-12-22 11:39:04 +01:00
Ashod Nakashian
b929f01a84 wsd: correctly clear the stream caches in TileCache
It seems we were inadvertently clearing copies
of the stream caches rather than the real ones.

Change-Id: I3fcce77850e0a8f082bdb926f85ab173148c15db
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-22 10:10:08 +01:00
Ashod Nakashian
1b80a7b722 protocol: minor documentation fixup
Change-Id: I0f178d7753e5cc787680314c2e5ff0f50ff52b39
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-22 10:10:08 +01:00
Ashod Nakashian
629ff27992 wsd: minor log improvements
Change-Id: I6dba0540310bb9cafc31a63e92da306eeff8953d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-22 10:10:08 +01:00
Ashod Nakashian
50fe137140 wsd: log number of unremoved sessions when destroying DocBroker
Change-Id: Ib3a172915d304b529081ada35b6ced719c757147
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-22 10:10:08 +01:00
Ashod Nakashian
e99af3a932 wsd: correctly log the time since upload request
Change-Id: I66661d5cdc1cd5efcfb86732d86d2a7a6053f2ba
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-22 10:10:08 +01:00
Pranam Lashkari
80de048866 zotero: store the style property in doc in chunk of 255 char
following the standerd zotero convention, reason is unknown

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie7d3167906cdce7be22dc9a201d6a1d20e880a2c
2022-12-22 09:58:46 +01:00
Pranam Lashkari
444dab1648 zotero: set document preference before performing any action
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8c6e3c7c7b75fad59cf09a2c827bcb66a57e012b
2022-12-22 09:58:46 +01:00
Pranam Lashkari
1e0c89c956 zotero: fetch existing style from the document on load
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I377ba844fcbc6881a306668022bfa776b1916293
2022-12-22 09:58:46 +01:00
Pranam Lashkari
3e66d205f4 zotero: set citation style
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ib29683c96bb4037a1084baee282fb4b066018d38
2022-12-22 09:58:46 +01:00
Ashod Nakashian
edd9850664 wsd: test: cleanup redundant wakupWorld after sending a command
WSD_CMD already wakes up the poll threads, so
there is no need to do so again.

Change-Id: If67df1a704582a5ecf321f089c43d0249a2546ff
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
b644904448 wsd: asyncRequest needs only wakeup its own poll thread
Apparently it woke up the world unnecessarily.

Change-Id: Iad65215da898b017860e7d7b803771f657a3e1ab
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
53f8317e47 wsd: do not warn when waking up dead poll-thread at shutdown
When shutting down, SocketPoll threads asynchronously
stop and exit. This fundamental race means the warning
is useless and noisy.

Change-Id: I3ca9044c9a68689abb7e8f692fffd10509eadab6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
77cf644f28 wsd: smarter warnings and errors on kit disconnection
Change-Id: I10cba42a407296a909cde1d7e091b48f124e7fdb
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
a163ef6c82 wsd: do not send duplicate 'disconnect' to the Kit
ClientSession::disconnectFromKit() already sends
a 'disconnect' message to the Kit. There is no
point in sending the same message again right
after calling disconnectFromKit().

Change-Id: I03aafc33f85220b53c5ff024601f83132b7046f6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
2e01170920 wsd: request Kit termination early when unloading
DocBroker now requests the Kit process to terminate
earlier than before to give it time to disconnect
while we (DocBroker) are still around. In turn,
upon disconnection, PrisonerRequestDispatcher can
query whether we are unloading or not, to detect
unexpected disconnections.

Change-Id: Ifa102e018e32bb252a0c169b0a3df691bca4ab0c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
55ed57dce2 wsd: support flushing control in WSProcess::sendFrame
Change-Id: Iba1b3869a5c0aa816f78bdf59347b6e9408e8f97
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
ed82e1b18c wsd: do not warn of expected DocBroker disconnection
We avoid logging warnings when the Kit disconnects
from a DocBroker that is unloading.

Also, since the PrisonerRequestDispatcher is the
default WebSocketHandler, for ForKit we replace it
before it gets a DocBroker associated with it.
When replacing (which deletes the instance) we
no longer complain that we are disconnecting an
unknown DocBroker.

Change-Id: I94c3aec8578c66c50623196087c4cd157ba85c27
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
206de871fb wsd: send WS close frame only when we have a socket
sendCloseFrame does check for the socket to be
there, but it logs an error if it isn't because
it assumes we expect to have a socket.

Since we are shutting down, this code could
be triggered on destruction when we no
longer have the socket.

Change-Id: I622a24394632159aa71c1c21c33c0f8a2d5c6250
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
cd980c9ba6 wsd: wait InitialPingDelayMicroS before first ping
It seems we were always pinging immediately on a
newly created WebSocket, even before upgrading to
WS, which logged a warning. That was because we
create the WebSocketHandler instance with a
timed-out lastPingSentTime.

Here we correctly set lastPingSentTime such that
it times out *after* InitialPingDelayMicroS has
elapsed. This gives it time to upgrade the
socket to WS and avoid the warning.

Change-Id: I6004348b9b4bd29f614d9e010fb7649da2bca338
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
1b059bca0f wsd: better log levels
We no longer emit a fatal (FTL) log when
forced-exiting successfully.

Also, improved are some other logs to
better reflect the severity of the issue.

Change-Id: I22e79f685825f7ecd47cec76c9be9683deff2d55
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Ashod Nakashian
6abd8d114a wsd: preserve close reason when disconnected from Kit
If we already have a closeReason, we should preserve
it upon disconnecting from the Kit instance. For
example when unloading, we request the disconnection
ourselves, so no need to clobber the real reason
for closing in that case.

Change-Id: Ie71faed5a4051659b426e3ba6bbf30950d21c328
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00