Jaume Pujantell
002cf9e436
Stop erasing the whole tmp directory after a download
...
Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I805e27df25d3134eb12926f28b6f9ff09b4ed230
2023-03-13 16:18:08 +01:00
Tor Lillqvist
43a8ed3f1c
Rename variables to match meaning and add a few comments
...
It is misleading to use the word "pixel" in a variable name when the
variable specifies a size in twips.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Idc59c3dafd63a9ae73601f9c367b37c495e1593a
2023-03-13 12:33:49 +01:00
Tor Lillqvist
12c22706f9
We aparently want thumbnails to be of size 1200x630 pixels
...
Tweak the "zoom" variabe to be 1 so that with this thumbnail size, for
a typical document we get more of it into the thumbnail.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I419afccbf57eae23062ab4c849dd41293f068f00
2023-03-13 12:33:49 +01:00
Ashod Nakashian
98a0f5d97a
wsd: do not disconnect the last session if saving
...
Previously we only waited if a new auto-save has
been issued at the point of disconnecting the
last session. However, we could have a save in
progress, particularly when it's a slow one,
and we should equally wait for it before
disconnecting the last session.
Failing to do so will exit the kit right after
finishing the save and will rob us of the
ability to upload the just-saved version.
Change-Id: I678689a95211fa8b80bcd3e8d4537de7de5d6632
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-13 08:19:33 +00:00
Rash419
f335d08e09
fix: renaming doesnot work when indirection_endpoint is enabled
...
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic79a0436f87d4ab4697597d15fd60fa148050270
2023-03-13 08:07:16 +01:00
Rash419
58d66fca59
admin: notify routing_rmdoc to subscribers when all views expires
...
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I360b90d2b93ce9e8508f16822a2654e111ba2407
2023-03-13 08:07:16 +01:00
Michael Meeks
d5e95c80ec
quarantine: cleanup.
...
Also handle OOB values of config setting.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ia0d4e2e0475bfd6d487006847ea0622b573569b7
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-03-11 17:42:30 -05:00
Michael Meeks
eb43a27396
locking: avoid spamming warnings in some circumstances.
...
If we have no write-able sessions, we can't lock the document -
fair enough to complain, but not every ~300ms - so defer another
lock period in this case.
Change-Id: I7beb974b3c17fd6ac01a32d8fe50261a54340665
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-03-11 17:42:30 -05:00
Gökay Şatır
7ad8a38a48
Remove vex from confirmation dialogues.
...
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I240e6771ab1f57118cfa263fda1566349a38f8ac
2023-03-11 10:03:07 +03:00
Gökay Şatır
7b205f8821
Rename version check to versionbar.
...
There was a naming conflict with infobar event.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I0b2a80bcb6f6e636980f8acff21f39fec5414174
2023-03-11 10:00:17 +03:00
Gökay Şatır
045df53848
Remove vex dialog from infobar.
...
Remove the control.infobar file.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I57a0be34b318413256d691e636510e0a32403751
2023-03-11 10:00:17 +03:00
Tor Lillqvist
3294030b37
Handle get-thumbnail also for graphic objects
...
I am a bit surprised that this seems to work. Thanks to Szymon Kłos
for pointing me in the right direction.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ie9740a7a281a2b82ac7ca9fdf5f6374a29feec5d
2023-03-10 19:41:16 +00:00
Tor Lillqvist
59051dc5f7
No need for any saveAs when doing a get-thumbnail
...
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I4a7887455ebb5e0c4e9c5fbaf534e5e8a57c963d
2023-03-10 19:41:16 +00:00
Tor Lillqvist
b72edec3b5
There is no separate paintThumbnail() API in LibreOfficeKit any longer
...
It was just a thin wrapper around paintTile() anyway.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7cca1b05b1ded754ae1f50a0e9d434b505247e70
2023-03-10 19:41:16 +00:00
Szymon Kłos
7cb8005df9
Send thumbnail in binary format
...
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iad5aec0cfa699f7e38a28c3c6812426ea345bafb
2023-03-10 19:41:16 +00:00
Szymon Kłos
a8f0263d75
Use http::Response for extract-link-targets and get-thumbnail
...
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ife0d24f9cac487ad08ff18fd9e180222371c70fa
2023-03-10 19:41:16 +00:00
Szymon Kłos
ffb15a2dea
Send BadRequest if parameters missing
...
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2acc4cb22d064994f3fca16b92b7d4528b403044
2023-03-10 19:41:16 +00:00
Szymon Kłos
50b5c06ad7
Scroll to target
...
using URL parameter we setup documents position on load.
example: ...&target=image6.png|graphic
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I855bdb148819966e0d51dde217a94474003a6437
2023-03-10 19:41:16 +00:00
Szymon Kłos
dd4b1239e0
Introduce scrollToPos function
...
This shares code in few places.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9abfb1c3e7859260f568072b6c6f7d1ebcb51ef8
2023-03-10 19:41:16 +00:00
Szymon Kłos
e82aa05293
Handle target in get-thumbnail
...
Using target parameter we move cursor to the desired position.
Thumbnail then is created and sent to the client.
Example target: "image7.png|graphic"
Original author was Mert Tümer.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I170f6af6fd29c420565feca69b8bef034fd91a66
2023-03-10 19:41:16 +00:00
Szymon Kłos
3bec642b02
Add get-thumbnail endpoint
...
Which generates PNG of selected link target in the document
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Icfdca2f0b58ea370ca0125c188759e942aacc2e0
2023-03-10 19:41:16 +00:00
Szymon Kłos
f116a8e619
Merge extract-link-targets and convert-to request handling
...
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0d3787dd33c103f128f4b16bb9b4c1d1195658c0
2023-03-10 19:41:16 +00:00
Szymon Kłos
18e304e87c
Add extract-link-targets endpoint
...
Original author was Mert Tümer.
Example output for: POST http://localhost:9980/cool/extract-link-targets/
{
"Targets": {
"Tables": {
"Table1": "Table1|table"
},
"Frames": {},
"Images": {
"image7.png": "image7.png|graphic"
},
"OLE objects": {},
"Sections": {
"Table of Contents1": "Table of Contents1|region"
},
"Headings": {},
"Bookmarks": {
"_lh2zfxamp5al": "_lh2zfxamp5al"
},
"Drawing objects": {}
}
}
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iab55ec631d78dbe25b2800ed9296bc0cb8997e97
2023-03-10 19:41:16 +00:00
Michael Meeks
7987af35c4
coolmap: accelerate handling large ascii strings without \0 termination.
...
Change-Id: I6831f455da038a20eb611fbbb0902dc495dc31d7
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-03-10 17:08:59 +00:00
Gökay Şatır
9d5155f463
Remove vex dialog from command.js.
...
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I76370dfab1c6c793a76ba14324878c0b656613ba
2023-03-10 16:26:22 +03:00
Szymon Kłos
2ab0304c2b
jsdialog: post process also elements in buttonbox
...
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ice3d0dbdf9c089925219c9b094c55a36136b7cc7
2023-03-10 18:39:11 +05:30
Ashod Nakashian
acdce2e72f
wsd: check if SysTemplate is writable once per update
...
Change-Id: I3bc77eaf42cc84e7e5b6365f7fc446ea38df5dc0
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-10 07:45:12 -05:00
Ashod Nakashian
d0ed6cd3d2
wsd: test: do not start the next test if test is not finished
...
Change-Id: Ibdcf66f9a037f6b4e2e575cb61fe1459c912e44f
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-10 07:45:12 -05:00
Ashod Nakashian
5f0248ef7f
wsd: not an error to not support storage locking
...
Change-Id: I0314a37bbda40808bd7d225540e69b93a1ab18d2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-10 07:45:12 -05:00
Ashod Nakashian
9c39ebad1f
wsd: string::empty() is clearer than size() == 0
...
Change-Id: If2e25d344b5718c35cb9ae7b7519010ee88f0f60
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-10 07:45:12 -05:00
Ashod Nakashian
268aed2f73
wsd: remove always-false conditionals
...
Change-Id: I2b37b91dd6e5ac9517dfac8a777dc8eeec9254c9
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-10 07:45:12 -05:00
Ashod Nakashian
26c27bd738
wsd: initialize ClientSession::_lastStateTime
...
Change-Id: I6c40e1a2464a19978d32d49cfa6fdb77294a2ddd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-10 07:45:12 -05:00
Ashod Nakashian
af504e3384
wsd: make sessions readonly on disk errors
...
Change-Id: I0c59c4fb3c99dee0f6e18850ca795467a9421b33
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-10 07:00:31 -05:00
Gökay Şatır
a3e29e23cf
Remove vex from parts.js.
...
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I85a754f2bb6bd738bd30384c9b40f40104daacc5
2023-03-10 10:49:59 +01:00
Pranam Lashkari
61d8f49e71
jsdialog: use display grid for vertical button box
...
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I288b1c1b013dd0a1395f6f18890b09582f309fbc
2023-03-10 10:06:41 +01:00
Gökay Şatır
b7a0828a73
Remove vex dialogs from alertdialog.js file.
...
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ibc437f14d36594763ddf70639d0c5d3fa2531d72
2023-03-10 09:43:15 +03:00
Michael Meeks
4ca7070ba8
Warn and clamp unreasonable values of max_concurrency.
...
There are costs to many threads, and diminishing returns.
Change-Id: I4d4dc0491c48af303375d09d8eb19ffebedcad83
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-03-10 00:04:11 +01:00
Pedro Pinto Silva
a2202d44ef
Mobile: calc: formulabar element: align to top on expanded part 2
...
fixes wrong value from
Mobile: calc: formulabar element: align to top on expanded
8b378e99653064348fccffd029c66aa378aa8da5
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8b5706957dff007137e3aa1ce677b825ada3e261
2023-03-09 17:43:38 +01:00
Martin Srebotnjak
abca1ce880
Translated using Weblate (Slovenian)
...
Currently translated at 100.0% (525 of 525 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: Ib70db79325a6cccc8d989e37d73f7eff422a4f19
2023-03-09 16:07:46 +01:00
SC
8f39987c33
Translated using Weblate (Portuguese)
...
Currently translated at 100.0% (525 of 525 strings)
Co-authored-by: SC <lalocas@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib7151eb453e87b8e3ee848d12d11e2e1b5f3e94d
2023-03-09 16:07:45 +01:00
Stanislav Horáček
da97ef4911
Translated using Weblate (Czech)
...
Currently translated at 100.0% (525 of 525 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: I8083a17c57f1b7807f5845d5c1e9fcb6c901b965
2023-03-09 16:07:45 +01:00
Joan Montané
db3e8da47b
Translated using Weblate (Catalan)
...
Currently translated at 100.0% (525 of 525 strings)
Co-authored-by: Joan Montané <jmontane@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3000c8500d7e1fc54f14a83a8e53893288a60c29
2023-03-09 16:07:45 +01:00
Ihor Hordiichuk
d37b1a376f
Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (525 of 525 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: Idb44fbb9c4cb8857583ea63c1397cd1e10c56f6b
2023-03-09 16:07:45 +01:00
tygyh
461c132ea3
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (525 of 525 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: I5eb214d82f35d6e885af6d93fdde0a4e3bde8f00
2023-03-09 16:07:45 +01:00
Matthaiks
9a13fc9069
Translated using Weblate (Polish)
...
Currently translated at 100.0% (525 of 525 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: I098012f80357358af03368acd96e8c82535aabec
2023-03-09 16:07:45 +01:00
Sebastiaan Veld
35e63a7dae
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (525 of 525 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: I38c032fd284760d33de10d81d13f41248b0121af
2023-03-09 16:07:45 +01:00
Yaron Shahrabani
fbd47e943c
Translated using Weblate (Hebrew)
...
Currently translated at 100.0% (525 of 525 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: I0448f3dc3ece2f0e627adbadbd6929f4fb07d55d
2023-03-09 16:07:45 +01:00
gallegonovato
7f27cdaea8
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (525 of 525 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: Ic03e6e64b152176058984eb0945643274531a38f
2023-03-09 16:07:45 +01:00
Andi Chandler
682b5b0f6a
Translated using Weblate (English (United Kingdom))
...
Currently translated at 100.0% (525 of 525 strings)
Co-authored-by: Andi Chandler <andi@gowling.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5b80d63f82a42ebdaf9e3ae5f54beaa576da0681
2023-03-09 16:07:45 +01:00
Andras Timar
3678cccc43
Translated using Weblate (Hungarian)
...
Currently translated at 100.0% (525 of 525 strings)
Translated using Weblate (German)
Currently translated at 100.0% (525 of 525 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/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id6726ca8513b8da5ce177bd1db50edbce31cefd1
2023-03-09 16:07:45 +01:00