Commit graph

24557 commits

Author SHA1 Message Date
Attila Szűcs
09e8e1bf79 extract/transform doc structure 2
added format parameter support
added tests

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I1fe6afc583a15eaeedf5da73dbca72569593cae9
2024-07-15 16:41:02 +02:00
Attila Szűcs
ca76c2fc4a convert-to: check if it has transform, before get / encode
Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I5cd2ddb47df4d12c5b9859d98f291d3edab2435a
2024-07-15 16:41:02 +02:00
Szymon Kłos
858b5cb528 Add modification capability for convert-to broker
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I32d8dbd5f776b12f0bcb794488490a41f74ced60
2024-07-15 16:41:02 +02:00
Attila Szűcs
d8f3ff3e6b Extract/Transform Document Structure
Use extract-document-structure to get document structure
Use transform-document-structure to change its content

Example use of Transform:
curl -F "data=@CC.odt" -F "transform={\"Transforms\":{\"ContentControls.ByIndex.1\":{\"content\":\"Short text\"}}}"
 https://localhost:9980/cool/transform-document-structure > out.odt

Note: Please do not use \n (EOL) in transform.

Example output for extract
{
    "DocStructure": {
        "ContentControls.ByIndex.0": {
            "id": 0,
            "tag": "",
            "alias": "",
            "content": "FieldValue1",
            "type": "plain-text"
        },
        "ContentControls.ByIndex.1": {
            "id": 0,
            "tag": "",
            "alias": "",
            "content": "☒",
            "type": "checkbox",
            "Checked": "true"
        }
    }
}

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I4b362376651e9bb5482949529e2bd7720231debf
2024-07-15 16:41:02 +02:00
Pedro Pinto Silva
72dd3dde82 Statusbar: make next, prev icons slimmer
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ief5e2cbcca6debf2e09edf581f8f049a5509e3a9
2024-07-15 15:19:50 +02:00
Pedro Pinto Silva
45bd9c6009 Vertical align dropdown arrows
Before this commit thew triangle was not vertically centered. This was
mostly obvious in the status bar but the same problems was everywhere.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9fe6d30cbe6736da56a73073c460d4a5028e98bf
2024-07-15 15:19:50 +02:00
aarsh21
36f576ef48 fix: unusual spacing between the icons in the mobile view
Signed-off-by: aarsh21 <aarshpersonal21@gmail.com>
Change-Id: Ic3d751e2f781441f0b860183773fac752147972e
2024-07-15 14:35:45 +02:00
Gökay Şatır
ba4165f19a Update cypress test.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I1eda2452534645a48a55b63aead216ae7dedc144
2024-07-15 13:42:40 +02:00
Gökay Şatır
79866238dc Improve custom anchor usage of shapes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ic22f46da6889587d2a2f498b0bf25e2c4e51ea5d
2024-07-15 13:42:40 +02:00
Gökay Şatır
ed5bd32b8b Improve rotation handle usage.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I7aae3abae811920696a5b0a3dc3585f976864d78
2024-07-15 13:42:40 +02:00
Gökay Şatır
41bc3f9ebb Disable map's mouse handling while scaling sections are handling the mouse events.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib7a8e9a43ce8493d23d5b55e355d66c3a24cbba1
2024-07-15 13:42:40 +02:00
Pranam Lashkari
f48fb8ea59 annotation: remove initial comment animation
when entire comment list was imported initially
or after showing hiding changes, animation
was played multiple times which was annoying
and distracting to users

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8a3da3cd551288bef94f5627ca11effd85bf99d0
2024-07-15 13:31:00 +02:00
Darshan-upadhyay1110
de9f5e367a Accessibility: Add ARIA roles for buttons
Changes are based on below points to improve accessibility
- The element that serves as the toolbar container has role toolbar.
- If the toolbar has a visible label, it is referenced by aria-labelledby on the toolbar element. Otherwise, the toolbar element has a label provided by aria-label.
- If the controls are arranged vertically, the toolbar element has aria-orientation set to vertical. The default orientation is horizontal.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I38f234461d4bf7982eec01ffe866c390256f50a0
2024-07-15 13:22:14 +02:00
Michael Meeks
cddc7ff4a4 Warn on low thread count systems.
It pays from a latency perspective to have fewer machines or
containers each with more threads, rather than more of them with
fewer threads.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Id791438d080989ffcf6b079e551f622cf92353e2
2024-07-14 20:10:27 -04:00
Michael Meeks
c65671d02a Tag sockets to be closed on exceptions.
Possibly related to cool#9349

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Iae249bdf50825d0669c801951bfba827ac6e5581
2024-07-13 19:35:14 +01:00
Michael Meeks
5905e21fe2 Provide errors & close connection on missed unexpected requests.
Otherwise we would not respond at all, leaving the socket open;
possibly related to cool#9349

Change-Id: Iba8a29da6ab0263f2545b9495f15e20f37145de0
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-07-13 19:35:14 +01:00
Caolán McNamara
3afcf306cb use buildLocalPathToJail instead of direct JAILED_DOCUMENT_ROOT concat
e.g. download as pdf/save as pdf

move buildLocalPathToJail to FileUtil instead of JailUtil given
that the JailUtil code isn't built on mobile

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I8d727e9cdffc413c027bfb9dc6b0520a7d591b47
2024-07-12 16:23:09 +01:00
Andras Timar
0c38e4c4e6 Fix branding of COOL Lite in Admin Console
I missed this case in the previous commit.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I48829591ce20bcfabb239e510041799c41ea50dc
2024-07-12 15:43:14 +02:00
Caolán McNamara
98ad726425 mount_namespaces option doesn't depend on experimental flag anymore
though it is still off by default

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id332a65523932183bfd0468fa3e3fd8f081a2713
2024-07-12 14:13:52 +01:00
Caolán McNamara
cd61f66935 merge duplicate capability dropping code
and add some explanation for why there is use of linux namespaces in
coolwsd itself

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I5d5687cf095de1b7d5d978dcb6ad6a97f6e9c642
2024-07-12 14:13:52 +01:00
Caolán McNamara
4e28a22dd9 allow logRotateOnOpen but sync archiving to proceed without additional thread
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I34d3cdc6e1753c8d8410db2b760035c75df020b0
2024-07-12 14:13:52 +01:00
Pedro Pinto Silva
6b8b316cfb Redesign close document button
So it's more inline with the rest of the icons. Also fix dark mode.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0b27ecc179a139d34aa574617e0af5c3ef91ae81
2024-07-12 12:25:28 +02:00
Andras Timar
c67997c1e7 Fix branding of COOL Lite when key is not present or expired
regression from 246e87fea2
we've got [ERRFMT].js and [ERRFMT].css

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic59257fedb6d9ae6712f7f9ff16022c01f70112a
2024-07-12 11:51:29 +02:00
Michael Meeks
4a2fbe0c41 Extra trim test for documentation.
Change-Id: I5dbf95be788fd38f4bd117e4bc36cdc14a2fd153
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-07-12 09:23:49 +01:00
Caolán McNamara
04cf51c3e4 Drop all (local namespace) capabilities when done with them
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I7b38f33ce37d9a575d963e2ba95976f3a930f352
2024-07-12 09:14:33 +01:00
Caolán McNamara
9e2504b0d0 use a separate mount namespace for each jail process
create mount namespace with local uid 0 just before we need to do the
mounts and create another with the original uid when done.

The inner orig-uid probably doesn't amount to a whole lot in practice,
but its more reassuring to run as not-0.

Disconnect namespace config option from experimental, but continue to
default off.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ia68c1c1c0bc7a91eb158f5d189453b683fea0ef0
2024-07-12 09:14:33 +01:00
Caolán McNamara
f9a6560391 wip: disable log rotation to suppress that thread to make things simple for now
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id7ed7ad97628558864fee9da43cdc8997d146ae9
2024-07-12 09:14:33 +01:00
Caolán McNamara
ac10c95ed6 use buildLocalPathToJail instead of direct JAILED_DOCUMENT_ROOT concat
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I911a823738a4066de9fdb771e695b717c0cbcde7
2024-07-12 09:14:33 +01:00
Caolán McNamara
1e45a4a5e7 create separate buildLocalPathToJail
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I4850121b809eedfb8dc9c720e952aac4e8924b4a
2024-07-12 09:14:33 +01:00
Caolán McNamara
fb9adff2c7 everything becomes a lot easier if we use where tmp is mounted *from*
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I810fb8ed26f6add662d886b4c45fdadf352e2ea8
(cherry picked from commit 8f2bf8ecc5b4890e67b0c65b12e3f150d0f18b97)
2024-07-12 09:14:33 +01:00
Gökay Şatır
0800c9a45f Adjust the cursor heights a bit more.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iaadc19dc93cd29d2991768ed061b7cdd4b9ab4d8
2024-07-12 10:35:47 +03:00
Gökay Şatır
14d45ca4e0 Add a counter for newly added invalidatios.
Keep only the last created invalidation rectangle.
Set transparency for the rectangles.

Delete the others with the counter.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iee379afb62bcde519b8cde0bd8405e511344b3fa
2024-07-12 00:08:13 +03:00
Gökay Şatır
38b20a9c1c Remove unused layer.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3723dd4b660fe53e1faae38c6d9cb7870b5195f5
2024-07-12 00:08:13 +03:00
Gökay Şatır
1ada8c9b8e Use a small section for rendering invalidation rectangles.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I837b71bab42070d744f6a61f463c315c9d4c413c
2024-07-12 00:08:13 +03:00
Michael Meeks
0e8d674617 Trim URIs if necessary, and test that.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I4f8cef1fb05a6f8fa8f85010adbf8b0ccd8af9e9
2024-07-11 12:52:30 +01:00
Szymon Kłos
719d8d7b11 following: remove unused old code
we do that in the keyboard handler

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0e2facc86f1dcd63e512665b9eb5046b82afca47
2024-07-11 11:56:01 +02:00
Szymon Kłos
ca5976db0e following: detect key event as soon as possible
it can happen that we will early return from the keyboard handler
and we will not mark we want to stop following

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I28ce533b7f3c1d8c189434d0f51e727ca74cb57f
2024-07-11 11:56:01 +02:00
Gökay Şatır
04d15a170e Beautify shape handles.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3ddac8339bfa967e82571d5306a1d27f835a7828
2024-07-11 12:54:25 +03:00
Gökay Şatır
9932ad7516 Remove unused files, variables and functions.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I2a3d802905705775ce58266a57d0d50149cf3bfa
2024-07-11 12:54:25 +03:00
Szymon Kłos
c55d429f9d following: instant jump to followed user
When we decide to follow someone - don't wait for the interaction.
Just jump to the followed cursor.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3b28164d90211dc15330d73d266e035ba49751ff
2024-07-11 09:35:48 +02:00
Jaume Pujantell
301437c27f calc: fix edit and remove hypelink outside of edit mode
Right now .uno:EditHyperlink and .uno:RemoveHyperlink only work on
edit mode or inside a draw object, but LOK_CALLBACK_HYPERLINK_CLICKED
is dispatched outside of edit mode.

Since there is no text cursor, the position of the hyperlink is
needed to discriminate the correct field.

Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I8499b430d5e62b904caba5bb5c7c34e784a8b850
2024-07-11 08:47:48 +02:00
Darshan Upadhyay
69d8e29980 Translated using Weblate (Hindi)
Currently translated at 25.4% (155 of 610 strings)

Co-authored-by: Darshan Upadhyay <darshan.upadhyay1188@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hi/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie76d578c5163daba67b26f6baf61f6d91db58a90
2024-07-10 18:14:12 +02:00
Rob Pearson
a63cb67bb4 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (610 of 610 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (610 of 610 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (610 of 610 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
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/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I547c95395b4d9aba3d33fbd49b2cfc1eb8e547e3
2024-07-10 18:14:12 +02:00
iwonder
dbb82e6ea6 Translated using Weblate (German)
Currently translated at 99.5% (607 of 610 strings)

Co-authored-by: iwonder <iwonder@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0805faadc93972be91ccaa311f21274dd5e94d2b
2024-07-10 18:14:12 +02:00
Sebastiaan Veld
556ac9d147 Translated using Weblate (Dutch)
Currently translated at 100.0% (610 of 610 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: I0152d8d76cd20df4920358f89d14166507ca1fd6
2024-07-10 18:14:12 +02:00
Andi Chandler
47d47ef02a Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (610 of 610 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Andi Chandler <andi@gowling.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translation: Collabora Online/Android app
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia141401c873569951400c8ae6c2c27920017c2c2
2024-07-10 18:14:12 +02:00
TY Wong
d1ff3b1121 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (610 of 610 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 99.5% (607 of 610 strings)

Co-authored-by: TY Wong <wongty@peoplewarehk.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hant/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id108f73319a7a04a899b578562aff626e380d574
2024-07-10 18:14:11 +02:00
Cyan Ling
cc3d5201c9 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (610 of 610 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 99.5% (607 of 610 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 97.0% (592 of 610 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 24.0% (115 of 478 strings)

Translated using Weblate (Chinese (Traditional))

Currently translated at 96.7% (590 of 610 strings)

Co-authored-by: Cyan Ling <stepbystep.jl@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hant/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I93dde8bdec63c721373973580ef96fcfb41d9374
2024-07-10 18:14:11 +02:00
gallegonovato
acd30d2913 Translated using Weblate (Spanish)
Currently translated at 100.0% (610 of 610 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: I1e62c01b7ea457234506219d45d50ab6f98e1a5f
2024-07-10 18:14:11 +02:00
Ihor Hordiichuk
70c0add507 Translated using Weblate (Ukrainian)
Currently translated at 94.4% (576 of 610 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/Android app
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9201cee111136d70a486403974fbaa782f056fd2
2024-07-10 18:14:11 +02:00