Commit graph

22359 commits

Author SHA1 Message Date
Jan Holesovsky
9d8e00312d Kill some copy/paste
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 1ca42964447b6f25acaa63d754f5f42320bea047)

Change-Id: I30fe4421c2305af0da677ebc3731c682e21dae22
2023-11-27 10:48:44 +00:00
Darshan-upadhyay1110
578dd1e780 Add rename document icon for dark mode
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I6fd72056ffee0d060c3b6d66b4ce70d0ec4bce08
2023-11-25 11:50:25 +05:30
Subham Jena
601352b1f0 Translated using Weblate (Odia)
Currently translated at 11.8% (13 of 110 strings)

Co-authored-by: Subham Jena <subhamjena8465@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/or/
Translation: Collabora Online/Android app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I922df944b00c8be79157b25e079e9a22c7923171
2023-11-24 19:24:20 +01:00
Andras Timar
0ec3b7dae7 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I413eb3ece54d09f4a3defe6eb013e20aa88a84d2
2023-11-24 19:21:53 +01:00
Pranam Lashkari
a2b2b1f9a8 formulabar: select formulas on mouseleave event
problem:
In a spreadsheet, click on a cell with content,
In the formula bar, select the content in a way that the mouse key is lifted outside the edit field
Note how the formula bar doesn't get into edit mode, but you can still edit the content

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ib4f193b897d57e0ffa9c3bfdd598e0c3c4201195
2023-11-24 20:22:50 +05:30
Pranam Lashkari
87a55af7b1 calc: select whole row/column on mouse drag
problem:
In Calc click on a row header and drag the mouse. The selection does not follow the mouse,
selection only appears when you release the mouse button

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I510f35d9f61fca63a619e83c04ff340f9578f5d2
2023-11-24 20:21:48 +05:30
Pranam Lashkari
cfc6874c22 cypress: refector mismatching parameter in function call
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8fa8e4b1e20de0af16368cb23ca641b8d7186bfc
2023-11-24 18:36:26 +05:30
Rash419
ccdedbaab1 chart-releaser: fix 422 Validation Failed
- from the logs Error: error creating GitHub release
helm-collabora-online-1.1.5: POST https://api.github.com/repos/CollaboraOnline/online/releases:
422 Validation Failed [{Resource:Release Field:tag_name Code:already_exists Message:}]

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7b10e972564eae2cd6ad2146470d16fd05401361
2023-11-24 12:14:12 +01:00
Rash419
851ef435cf browser: don't show socket error message if we are reconnecting
- specifically a case where coolwsd is cleaning up the document
  we don't want to give up on clientside and show the error message to
  user

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ie75fa3e19f97ca18acc8e881813d6c617fc9f7b7
2023-11-24 15:51:02 +05:30
Darshan-upadhyay1110
de4fe0dfd8 Fix downlaod options in read only mode
- Allowed downlaod options for PDF/PDF as /EPUB
- PDf/PDF as/EPUB will be downlaod in read only mode
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ic6e0c4a16fa5dffc61e61fd4ece9aeeaec1450b9
2023-11-24 09:26:59 +01:00
Rash419
a398569025 fix helm chart releaser
- from the logs Error: error creating GitHub release
helm-collabora-online-1.1.5: POST https://api.github.com/repos/CollaboraOnline/online/releases:
422 Validation Failed [{Resource:Release Field:tag_name Code:already_exists Message:}]

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I16d0fa54c0dd9ef5bd96b96366c93037ed7de56e
2023-11-24 11:45:43 +05:30
aarsh21
85e5ba4807 fix:navigator hyperlinks line-breaking on chrome and firefox
Signed-off-by: aarsh21 <aarshpersonal21@gmail.com>
Change-Id: Ic91e1cb017b82fd21ba942d54ddc277c9cc7d3cc
2023-11-24 10:21:09 +05:30
Andras Timar
d7a65fb050 welcome: remove version number from image
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3890f0ca051d200c9c557a17930b4745ed29f78b
2023-11-23 17:44:00 +01:00
Hubert Figuière
c56451ee6c notebookbar: handle show/hide button
- We now have a state for hidden buttons in UIManager
- Shortcut bar makes use of it instead of maintaining its own.

https: //github.com/CollaboraOnline/online/issues/5957
https: //github.com/CollaboraOnline/online/issues/7517

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I719f27063f01e4d76742358189b080087881ab7c
2023-11-23 09:36:17 -05:00
Andras Timar
3a439c4e27 add missing css class to dark mode icon in Calc
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic5f69b64221ca9890794b1b3dcb5dbe069992459
2023-11-23 14:32:28 +01:00
Andras Timar
70e960b564 disable spell check for document name input field
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I23e03ba381aa320511aacf24196aba1ff934fc52
2023-11-23 14:32:13 +01:00
Andras Timar
af8ad8a9d6 Translated using Weblate (German)
Currently translated at 100.0% (539 of 539 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5a545aeca500bcc3e42b72080d91c3abfc289eb5
2023-11-23 11:24:18 +01:00
Alexander Gabilondo
9758c06b44 Translated using Weblate (Basque)
Currently translated at 100.0% (539 of 539 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1593b50502563882090f0b70a7557fa00ee2c063
2023-11-23 11:24:18 +01:00
TUCAOEVER5023416dba724da7
7fb051eb44 Translated using Weblate (Chinese (Simplified))
Currently translated at 67.8% (317 of 467 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hans/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ief9b5abeb8a15c3a72c06955d4b1f01bacfdce5d
2023-11-23 11:24:18 +01:00
SC
aae7aab14c Translated using Weblate (Portuguese)
Currently translated at 100.0% (467 of 467 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8b1e8a997d280e4d6ef757394908a6449ff294be
2023-11-23 11:24:18 +01:00
TUCAOEVER5023416dba724da7
5d3fd13114 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (539 of 539 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hans/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I010f3c207300eae6af999a034de54de8a9546a15
2023-11-23 11:24:17 +01:00
SC
880e666111 Translated using Weblate (Portuguese)
Currently translated at 100.0% (539 of 539 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2501232f08b7fec026a9fb32e69a2ca052d32f08
2023-11-23 11:24:17 +01:00
Sebastiaan Veld
e478c678ae Translated using Weblate (Dutch)
Currently translated at 100.0% (539 of 539 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: I5aeee8a88ad3555a393360e226c2423ea74d1c10
2023-11-23 11:24:17 +01:00
poi
b5ab6c738e Translated using Weblate (Chinese (Simplified))
Currently translated at 93.8% (506 of 539 strings)

Co-authored-by: poi <erbaotao@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hans/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ief1316fa94dca848e75c79076907d98743f891a7
2023-11-23 11:24:17 +01:00
TUCAOEVER5023416dba724da7
85be492f54 Translated using Weblate (Chinese (Simplified))
Currently translated at 93.8% (506 of 539 strings)

Co-authored-by: TUCAOEVER5023416dba724da7 <814697582@qq.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hans/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I18b7c342a98ebed0a3c01697812c3bfc61ebf7ef
2023-11-23 11:24:17 +01:00
Adolfo Jayme Barrientos
f35daa8e85 Translated using Weblate (Spanish)
Currently translated at 100.0% (539 of 539 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.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: I5810366702cbc76331f5c1d03c985ed88e2cc4f5
2023-11-23 11:24:17 +01:00
meshari alnaim
c13bdf8042 Translated using Weblate (Arabic)
Currently translated at 95.9% (517 of 539 strings)

Co-authored-by: meshari alnaim <malnaim@safedecision.com.sa>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ar/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I087488a76839bb345c3bec088d5308ea3c7bd0b3
2023-11-23 11:24:17 +01:00
Stanislav Horáček
dc61238a73 Translated using Weblate (Czech)
Currently translated at 100.0% (539 of 539 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: I33526610a67b2ba6d158ae1c162bd8a0cc8b5150
2023-11-23 11:24:17 +01:00
Oğuz Ersen
395a0af638 Translated using Weblate (Turkish)
Currently translated at 100.0% (539 of 539 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
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: Ida10517c927eb1d450cd49f7521c18b43a2ac8d6
2023-11-23 11:24:17 +01:00
bittin1ddc447d824349b2
86a2067241 Translated using Weblate (Swedish)
Currently translated at 100.0% (539 of 539 strings)

Co-authored-by: bittin1ddc447d824349b2 <bittin@reimu.nl>
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: I4d9352a99f93f5119e0521f505c61530e955682f
2023-11-23 11:24:17 +01:00
Martin Srebotnjak
2a10075cdd Translated using Weblate (Slovenian)
Currently translated at 100.0% (539 of 539 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: I57f8540054f0e0283a47342c72aec3fc6390961f
2023-11-23 11:24:17 +01:00
Rob Pearson
656bd25b70 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (467 of 467 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (539 of 539 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (539 of 539 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (539 of 539 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (539 of 539 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_ZA/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I49b5d5a9c068554e5896eba1a42c9dad40786e45
2023-11-23 11:24:17 +01:00
Darshan-upadhyay1110
3f46c1db44 kit-in-process: pure re-factor to a run-time function to flag this.
Avoids a number of compile time conditionals and adds flexibility.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Iff6b294b504526e70715e436ad33d47c8df4752c
2023-11-22 17:06:29 +00:00
Michael Meeks
e9f5f04dad config loading: avoid using the process name to find the config file.
This enables the kit-in-process re-factor.

Change-Id: I93eb0a721945fb7b03e145b6c9d037ef3ce62589
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-11-22 17:06:29 +00:00
Skyler Grey
e817f03785 Unify touchscreen handling, remove L.Browser.touch
L.Browser.touch is sometimes nice, but it's ultimately a flawed concept
to use it for input events. Using L.Browser.touch for input handicaps
people with mice if it's too liberal in what it classes as touchscreens,
and handicaps people with touchscreens if it's too conservative. There's
also no sweet spot: it's impossible to choose correctly if someone is
using both a touchscreen and a pointer device, as there's no right
option!

Previously many of our event handlers and some of our UI was gated
behind L.Browser.touch. This commit adds a new "window.touch" property
which is used instead. It has functions to help with event detection,
allowing you to easily make event handlers that work for only the input
devices they are designed for, without gating them behind feature
detection. This has the added bonus that - as you register all the
events - switching between a touchscreen and pointer is now not only
possible but already implemented!

For cases which don't have reasonable events to tag onto (e.g. the
teardrop for cursor movement) this commit adds "hasPrimaryTouchscreen"
and "hasAnyTouchscreen" which use the CSS media queries to detect if
there's a touchscreen attached to your device (either as the primary
input mechanism or at all). This works a lot more similarly to
L.Browser.mode, but being dynamically updated allows you to effectively
swich between touchscreen and not at-will. This still has all of the
disadvantages that L.Browser.touch did when used to register event
handlers, so my advice would be to avoid using it with events.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I9016fc15ad3ccb3664af348fdcdca006495b0778
2023-11-22 15:48:06 +01:00
Pranam Lashkari
ab064bacc7 annotation: make sure parent-child relation is established
problem:
some times we order comments before parent-child relation is established,
this caused reply count not being updated correctly for other users

steps to reproduce:
User A open ODT, let us say already with comment or add one, and keep Sidebar open so that comments are short.
user B opens the same ODT with full comments. adds reply
User A does not update ticket number, does not have +1

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If3360c8dd938c6bd177764d3c1383d7f3f845990
2023-11-22 15:24:10 +05:30
Miklos Vajna
d73d716dea context menu: allow unfloat table for Writer text frames
This is safe to do as it's not interactive, so it happens synchronously.
The matching uno command was added on core.git co-23.05 in commit
1f5c20352725cd6133e68e80e8523d865006161f (sw floattable, delete UI: add
an uno command to unfloat frame from context menu, 2023-11-17).

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I74736c7d589c2062a8e9255a42f81bf790b7d3e3
2023-11-22 09:39:45 +00:00
Henry Castro
8b89b5271a cypress: add popup dialog unit test
Change-Id: Ieab263deaca67c7e473e028b01d9eac1c4eaafcc
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-11-21 20:28:57 +01:00
Henry Castro
a55244c547 jsdialog: check if "map" var is not undefined
Change-Id: I7ae6b557ab035b9f66bcb65e1c85ac9da0b993e7
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-11-21 20:28:57 +01:00
Henry Castro
a23adac78c browser: fix undefined property 'isPopup'
The PopUp dialog is not closed, and side effects
are unresponsive key input

Change-Id: Id72ef0c6d081aa73acb39a07eb3e8b33d0e8dc85
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-11-21 20:28:57 +01:00
Rash419
34f3dd4a62 wsd: disable ctrl+s when HideSaveOption is true
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I190a03abcf80176cc2da77fd32190c683852b9a7
2023-11-21 16:13:52 +05:30
Pranam Lashkari
3c1ac04b0e annotation: reset comment id if autosave is cancelled
problem:
User A writes Comment 1 and saves
User A replies to himself, write something, click away to autosave, Cancel
user A modifies Comment 1 and OK - comment disappears, although it is there, seen after reload, but without modification.

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I5d83936f26939b5a05a0ce3099c01923a55c9606
2023-11-21 10:20:24 +05:30
Michael Meeks
6a32adcfe8 delta: fix threading gotcha when working.
The ThreadPool::work function can get its condition signalled -very- late.

With bad timing, this can occur after all the work is done, and when the
next batch of work is being fed into the pool.

This can mean that it takes work from the queue, and subverts the:

        bool useThreads = _threads.size() > 1 && _work.size() > 1;

check in ThreadPool::run - which can believe we are in a single
threaded, single tile mode - and not wait for this thread to complete.

That's not good [!] so ensure that threads are only runnable during
ThreadPool::run.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ifebb0f15cbb4c22ef33ffba06e7c6c87493818be
2023-11-20 19:24:13 +00:00
Michael Meeks
b45f4b8f93 spdx: improve machine and human readability of headers.
Change-Id: I71f1421debf31b8c6cd0fd75c0cb45e2563b8a5a
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-11-20 14:30:02 +00:00
genofire
7c7e667f5a fix(helm): bump version where doc_info exists (next release)
Signed-off-by: genofire <geno+dev@fireorbit.de>
Change-Id: Ic70706dee56ca1a13e36b3007a5ea4fca01e1dab
2023-11-20 12:40:30 +05:30
genofire
765433fcc8 chore(ci): update to official released helm-release version
Signed-off-by: genofire <geno+dev@fireorbit.de>
Change-Id: Ic7cfcaaf6888bc64763d0e44c3ad32a203bc3a7f
Signed-off-by: genofire <geno+dev@fireorbit.de>
2023-11-20 12:40:30 +05:30
genofire
cc8a0c7ea3 fix: improve prometheus-rules
Signed-off-by: genofire <geno+dev@fireorbit.de>
Change-Id: I5076c74c3beeada0978d5b29dcc4e531cfce9241
2023-11-20 12:40:30 +05:30
genofire
2c63cf62d8 fix: rename metric from doc_pid to doc_info
Change-Id: d03c077629b343e9b4cefd5914e74f89
Signed-off-by: genofire <geno+dev@fireorbit.de>
2023-11-18 14:12:53 +00:00
genofire
e4ac11756a fix: metrics doc_pid use pid as label
so it would be use on the other metrics for lookup with promql group_left

Change-Id: eaba5e26f99b4cb0843c16f6f5b840c6
Signed-off-by: genofire <geno+dev@fireorbit.de>
2023-11-18 14:12:53 +00:00
Caolán McNamara
e8e3a2ccdb _debugLoadUpdate isn't set, _debugUpdates isn't read
in:

commit 24f0819337
Date:   Wed Jul 12 10:09:10 2023 +0100

    tile debug: render updates as well as deltas in the tile.

one is typo for the other

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I9cb27d7912aa86373b8ef399fca442f85cfd69fb
2023-11-17 18:03:54 +00:00