Commit graph

6928 commits

Author SHA1 Message Date
Tor Lillqvist
435ec0941f Add "Delete" to the context menu for graphic selection in the mobile apps, too
This should fix https://github.com/CollaboraOnline/online/issues/1751

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2f61c43b310a32f5b5d883610b169d2ab47d554d
2021-04-08 16:36:29 +03:00
Dennis Francis
fe2783af07 fix: tiles not rendered on calls from setZoom()
where we set "zoomChanged". So we should have another state variable
waitForTiles to wait for tiles instead of re-using zoomChanged.

Conflicts:
	loleaflet/src/layer/tile/CanvasTileLayer.js

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3bd71fb97694a56be5f49a9e7b7ac7b9c49caa88
(cherry picked from commit c9d6d9f569fcee3516a55d3f3a8719b7338687a4)
2021-04-08 17:35:53 +05:30
Dennis Francis
47bc41d734 avoid vscode errors in tsconfig.json...
by moving allowJs and checkJs out of tsconfig as vscode assumes default
outDir and rootDir which we can set only via cli call to tsc as they are
makefile configurables.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3ba3bc98018c6d738c8767ff9f4affc3c33602c3
2021-04-08 14:05:54 +05:30
Dennis Francis
c6f2e2211d typescript: do project level compilation for ts files in src/
There may be warnings on first run after application of this patch due
to ts->js files present src/ due to previous per file compilation.
Cleaning those files will get rid of the warnings.  These are removed
from .gitignore files to avoid confusion.

Now we rely on tsc to do the incremental builds so it is much faster.
Checking of js files is disabled for now as it reports a lot of type
errors.

Caveat: Compilation of mocha tests, admin (those outside src/) are still
using the file by file compilation.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic22b265de0b111165224885c4736486fffa016d8
2021-04-08 14:05:54 +05:30
Dennis Francis
d2780e9317 update typescript version
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I539b23b9006022b053e8c21484e6f200be66e25a
2021-04-08 14:05:54 +05:30
Yaron Shahrabani
aa670eb72c Translated using Weblate (Hebrew)
Currently translated at 61.6% (259 of 420 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5099dd5ef414f8bcbc932ca237a39313aeca766a
2021-04-07 19:50:47 +02:00
Gökay Şatır
84e003fdd6 Calc: Filter with split panes improvement.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I866edb95f55d8b16a6ce3ba4e0cb4bbaa79e182d
2021-04-07 11:38:50 +03:00
Dennis Francis
40ff6989fe lint typescript files too
Fix some issues it found and disable the following checks for now. Some
of them needs module support to work and some of them needs project
compilation using tsc rather than per file compilation.

cypress_test/ extends loleaflet's eslintrc so, its package.json needs to
have the typescript lint plugin as well.

Disabled checks:

@typescript-eslint/no-unused-vars // This can be enabled after fixing
all places it finds.

@typescript-eslint/no-inferrable-types // Lets do explicit typing
whenever we can.

no-var  // This needs a lot of conversion of var to let.

@typescript-eslint/no-explicit-any

@typescript-eslint/no-namespace // ES5 has no module support

no-inner-declarations // ,,

no-constant-condition // This is sometimes useful

@typescript-eslint/triple-slash-reference // ES5 no module support.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib4fd8b4fcee42216d4322fd043a1873302db375a
2021-04-07 14:03:42 +05:30
Dennis Francis
4b2a6b98e8 fix: grid lines spill to adjacent tile area
Ensure grid lines drawn for specified area confines to that.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9b294db3e9cdf4721717b695aead35bce5333c08
2021-04-07 13:59:06 +05:30
Dennis Francis
1e2001db3a client-side-grid: force white canvas bg for Calc
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia84d5ab66b3a7b06b4874193479b585a9f11c464
2021-04-07 13:59:06 +05:30
Pedro Pinto Silva
3a87f57ede Loleaflet: postmessage-api: update documentation
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9af5dc9d20fe90b4a9b289d214c7209adf606ea0
2021-04-07 09:42:55 +02:00
Szymon Kłos
1219851b0d notebookbar: disable change tracking in calc
Change-Id: Ib510f00666f4bf5af9d7780327b9f97c0f8964bd
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 16:33:21 +02:00
Szymon Kłos
781191bb85 Blinking cursor only when window is focused
use window instead of document.
now it works also in chrome.
always show curos on add.

Change-Id: Id58b8810fb6a8d5ba00369308cce1dd201b7340a
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 16:33:21 +02:00
Szymon Kłos
48d30fcf4a ObjectFocusDarkOverlay showing all pieces
When Points were created with floating point numbers
the overlay wasn't shown on the right side of the chart.

Change-Id: I069927c5e6a97a7155878bdd8f4645b11dbe8493
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 16:33:21 +02:00
Pedro Pinto Silva
bcc0df4b78 Draw and Impress: fix slide sorter
- Fix positions and backgrounds
- Draw: no need to hide presentation controls anymore (was affecting position)
- Make sure scroll bar is not getting different styles from browser thus affecting position
  - happening on FF

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I479cf7d01023ffc611a3cfa6a5fb90fb0dbda1d7
2021-04-06 15:40:18 +02:00
Yaron Shahrabani
b82c63a4b0 Translated using Weblate (Hebrew)
Currently translated at 59.7% (251 of 420 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I698c39e5328c7944309824bc95f2fc511365a627
2021-04-06 13:03:23 +02:00
bruh
bd98b397dd Translated using Weblate (Vietnamese)
Currently translated at 100.0% (371 of 371 strings)

Co-authored-by: bruh <quangtrung02hn16@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/vi/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3885d33a813479389e5b113e0261f4c2d9d05e0c
2021-04-06 13:03:23 +02:00
Besnik Bleta
fca5352c0f Translated using Weblate (Albanian)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Albanian)

Currently translated at 60.0% (3 of 5 strings)

Translated using Weblate (Albanian)

Currently translated at 8.8% (33 of 371 strings)

Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sq/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I09d0b90a402c72e619d9718549a739483ea859a8
2021-04-06 13:03:23 +02:00
Gontzal Manuel Pujana Onaindia
d05671be28 Translated using Weblate (Basque)
Currently translated at 40.0% (2 of 5 strings)

Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/eu/
Translation: Collabora Online/CODE welcome text
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic996d8e31e0e2b3b82449a1b44360a55e45ae8b7
2021-04-06 13:03:23 +02:00
wxf26054
46f5296897 Translated using Weblate (Chinese (Simplified))
Currently translated at 98.6% (366 of 371 strings)

Co-authored-by: wxf26054 <wxf26054@live.cn>
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: I57bf071fb5d8ee1116fe8c93ddf5facb608858cf
2021-04-06 13:03:22 +02:00
Ihor Hordiichuk
d983360135 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (371 of 371 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/ui/uk/
Translation: Collabora Online/Android app
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia7eb2240f304d55b7b9aed89b92a8b3c13f309c8
2021-04-06 13:03:22 +02:00
Ron Stephen Mathew
2df8581a55 Translated using Weblate (Malayalam)
Currently translated at 6.9% (26 of 372 strings)

Translated using Weblate (Malayalam)

Currently translated at 40.0% (2 of 5 strings)

Co-authored-by: Ron Stephen Mathew <ronstephenmathew@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/ml/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ml/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I086eb775b52118a37a426e1300bc46108062add9
2021-04-06 13:03:22 +02:00
Weblate
82ec7b4ccc Added translation using Weblate (Basque)
Added translation using Weblate (Malayalam)

Added translation using Weblate (Malayalam)

Added translation using Weblate (Malayalam)

Added translation using Weblate (Malayalam)

Added translation using Weblate (Malayalam)

Added translation using Weblate (Malayalam)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I300d751a4a4a38f4d0108ec389bec7d45ce0aa06
2021-04-06 13:03:22 +02:00
Milo Ivir
7d7d5ded3e Translated using Weblate (Croatian)
Currently translated at 100.0% (18 of 18 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (371 of 371 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Android lib
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iba4e8d10d6fa0298da7c6e33cae9f589dd750b36
2021-04-06 13:03:22 +02:00
Adolfo Jayme Barrientos
2597543f15 Translated using Weblate (Galician)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Aragonese)

Currently translated at 80.0% (4 of 5 strings)

Translated using Weblate (Galician)

Currently translated at 95.3% (102 of 107 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (371 of 371 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (371 of 371 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/gl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/an/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/gl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8e6a7f237c675e275e391c5f1f005886050672d3
2021-04-06 13:03:22 +02:00
Nguyen Tuan Anh
c372a8073b Translated using Weblate (Vietnamese)
Currently translated at 99.7% (419 of 420 strings)

Co-authored-by: Nguyen Tuan Anh <anhnt633@viettel.com.vn>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/vi/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I195e4de5540eccdcb3318a41ba00cc97157c8674
2021-04-06 13:03:22 +02:00
Gontzal Manuel Pujana Onaindia
877ba11248 Translated using Weblate (Basque)
Currently translated at 100.0% (18 of 18 strings)

Translated using Weblate (Basque)

Currently translated at 100.0% (420 of 420 strings)

Translated using Weblate (Basque)

Currently translated at 77.7% (14 of 18 strings)

Translated using Weblate (Basque)

Currently translated at 100.0% (371 of 371 strings)

Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I03404b92f62f11b8bbbc6d549a3370873a5461bb
2021-04-06 13:03:22 +02:00
Andras Timar
5e10aa795a Translated using Weblate (German)
Currently translated at 100.0% (420 of 420 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/de/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib37b3564f3630b7ef8028a042e0979c1795c4d16
2021-04-06 13:03:22 +02:00
Martin Srebotnjak
87d02c0b7f Translated using Weblate (Slovenian)
Currently translated at 100.0% (18 of 18 strings)

Translated using Weblate (Slovenian)

Currently translated at 100.0% (371 of 371 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/sl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/Android lib
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I039afe669f4ee98a0e79ab6233117324937290ac
2021-04-06 13:03:22 +02:00
Szymon Kłos
84771d4ba5 notebookbar: fix alignment in insert,layout,file,help tabs
Change-Id: Ia0699ffa749e6be2e943460c0b4398d6f3689fa3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 12:01:02 +02:00
Szymon Kłos
e6b12a5741 notebookbar: refresh font list when is updated
Change-Id: I9139fccf47dd16c0e6729886b6e6da68a05f5d02
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
e6850dc9f7 notebookbar: show context tabs if needed
Change-Id: I4deb132600ef34654dba665683a248691691e03d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
bed804309a notebookbar: use full JSON only once
Load full JSON on the beginning and later don't
rebuild on switching tabs.

Change-Id: I0b63c3f3dfa43a7b5cd4f580ab542e9f5022a5ec
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
9d2ac7f89d notebookbar: minify home tab for impress
Change-Id: If9f4affa2eff1364ee16bdee45f9a9092702753f
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
c303db11de notebookbar: minify home tab for calc
Change-Id: Iab61f19f4ba2cd1a13e4787762afcdd0e24365dc
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
853121b841 notebookbar: minify home tab for writer
Change-Id: I2f8ce6f1305dc13546efef23dded6a531691e2b9
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 10:37:51 +02:00
Szymon Kłos
4a218d656e mobile-wizard: listbox prepared for partial updates
Change-Id: I778f7d46de1fc3c9c2eb61daaee690e8438d57d6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 09:30:15 +02:00
Szymon Kłos
f5af8e3395 mobile-wizard: prepare radiobutton for partial updates
Change-Id: Iddb1d57b0de1cc984f57793dfcdcfaee26737f71
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 09:30:15 +02:00
Szymon Kłos
8183e37f65 notebookbar: unify single tab code in tabcontrol
this will allow to use toolboxes without id

Change-Id: Ic5eb5ac249b9d1317fccc2143f10af292f564b52
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 09:30:15 +02:00
Dennis Francis
a13d18538c zoomanim: show markers/svg-overlays only at the end
Conflicts:
	loleaflet/src/layer/tile/CanvasTileLayer.js

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2163918a721db540cc02a73e0d75753dbccc9996
2021-04-05 18:20:24 +05:30
Dennis Francis
4e0f7459da zoomanim: avoid infinite setInterval loop
In Writer the tiles wont be sent for margin areas so waiting for all
tiles will hang forever. This is more apparent in low zoom levels where
the page margins are visible. So lets put a cap on waiting time instead
and hope the tiles would have arrived by then. If not it will cause a
flicker, but this is better than the document freezing due to infinite
loop.

Conflicts:
	loleaflet/src/layer/tile/CanvasTileLayer.js

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5f2fe5bac7e20cb0cc1417df078a1722b55cd08a
2021-04-05 18:20:24 +05:30
Dennis Francis
4765c7a315 zoomanim: fix: swipe action never finishes sometimes
Cancel the swipe's autoscroll animation frame as soon as we enter pinch
zoom and don't leak it.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5ae4ffc00c426fdb4f30bae5e759c77ecc88e5a3
2021-04-05 18:20:24 +05:30
Dennis Francis
505e8e9bda zoomanim: avoid flicker: wait till we have all tiles
Conflicts:
	loleaflet/src/layer/tile/CanvasTileLayer.js

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9089ec3adf1982e19f1ff08acffed73859f75752
2021-04-05 18:20:24 +05:30
Dennis Francis
09d235fb58 fix: pinch-zoom after swipe: overlays out of sync with tiles
The fix is to avoid pinch zoom when swipe action has not finished yet.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6cc9bf01ed3411f3dceea10326c4be7a6f0914d4
2021-04-05 18:20:24 +05:30
Dennis Francis
813afa18f4 fix: overlay line width gets thicker on zoom out
Keep the lineWidth constant and equal to the 100% zoom value during zoom
animation.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7a35654cc563eead7f58f4545dca3a307fa31422
2021-04-05 18:20:24 +05:30
Dennis Francis
f6f270c8c8 client-side-grid: draw grid in offscreen canvas properly
When the canvas to draw the tiles is offscreen, always clear background
and draw grids. When drawing grids for offscreen canvas, use the correct
paneOffset as offscreen canvas has a extended pane area (meant to handle
zoom out).

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I202c6cd8540f0d3e501c6290412bf511ee28176b
2021-04-05 18:20:24 +05:30
Dennis Francis
bc3887b5c6 client-side-grid: use the right canvas context for clearing and grid
Earlier it used the main canvas context for clearing and drawing grid
always. This breaks the offscreen canvas contents and overwrites the
main canvas when trying to update offscreen canvas.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6fe21bd20b1862f32a1e06828b22567b566809bf
2021-04-05 18:20:24 +05:30
Dennis Francis
50078e4161 client-side-grid: draw grid before drawing async tiles
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic0d814cd0c64dcccd6d1d65b719829f4eed560aa
2021-04-05 18:20:24 +05:30
Dennis Francis
4ebdb4feb3 client-side-grid: clear tile background for Calc too
Tile section is already cleared if call arised from requestRedraw(). So
do per tile pre-clearing for async tiles painting.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I406f6cf2a9c77f81237a1be5a9e6dcf0b600a1de
2021-04-05 18:20:24 +05:30
Gökay Şatır
30a4c726c4 Calc: Fix error when filter is active.
RowColSelCount is used for 2 different states.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ia5f68ca15881102a42016e80ea0b947c0e4d9106
2021-04-05 12:39:34 +03:00