Commit graph

6953 commits

Author SHA1 Message Date
Gabriel Masei
609d5563f0 loleaflet: translate hyperlink toolbar button uno command to id
This fixes hyperlink button enabling issue when dynamically changing UI mode to classic.

Signed-off-by: Gabriel Masei <gabriel.masei@1and1.ro>
Change-Id: Ib4494e71c8cedf0818c946abea75e52e1b5ca7ad
2021-04-15 14:12:51 +02:00
Pedro Pinto Silva
5e29b66d4b Fixes #2003 (show paste icon)
Revert c28c6b2c3c

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic63e50fe5c87dea2dc7998a99e739b41e65cad1d
2021-04-15 10:46:38 +02:00
Marco Cecchetti
3317f6fe3e cypress tests for fullscreen presentation
Set up support for performing end-to-end tests on the fullscreen
presentation.

Added 2 tests:

1 - check text fields (slide number, slide name) are correct for the
current slide

2 - check the background for current slide is referenced correctly

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: If8d3cda49254a910aa0c5d2d672834aa5b029e0b
2021-04-14 15:02:48 +02:00
Szymon Kłos
2c82014662 notebookbar: no label for sorting in data tab
Change-Id: I512478b8c29de374b640fdf44f65d65c49b53d2f
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-13 15:00:59 +02:00
Szymon Kłos
b96f73c461 notebookbar: reorganize sheet and data tabs
there was no space in the data tab with some languages

Change-Id: Iaf3105a57b30dbdfc275a6a4a4a5eede0d817c33
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-13 15:00:59 +02:00
Szymon Kłos
01c0e5af69 notebookbar: handle Get_Export_Formats wopi post message
Change-Id: I051826dc50d261e00d084a6ac625ce7cb6f55b1d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-13 15:00:59 +02:00
Szymon Kłos
d8a7d97248 notebookbar: fix alignment in review,format tab
Change-Id: I25f16b730665b329c444b5b0a7504be8403c1c23
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-13 15:00:59 +02:00
Szymon Kłos
a11ad434ee notebookbar: make line spacing smaller
Change-Id: I45c2d2e9d4dafd28e490b7d2b0f50c99a57b2f66
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-13 15:00:59 +02:00
Tor Lillqvist
6778cb439c Add the 'Delete' context menu entry in browser on tablet, too
And not just for browser in mobile phone or mobile app. This is
apparently what we want. See
https://github.com/CollaboraOnline/online/issues/1751 .

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7cc89889899f20286913a1d2136b40dd6930d996
2021-04-13 13:24:45 +03:00
Pranam Lashkari
d3d049d88b leaflet: Removed impress download options from drawing doc
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I282aeaa171081b60633720b4619e0b0f250b501a
2021-04-13 00:21:52 +05:30
Pedro Pinto Silva
2f1eb41842 Writer: Improve table controls (markers)
- Do not use big rectangles as markers
  - it hides surrounding content
	- too intrusive (since it appears every time we select a table)
- Use smaller discreeter elements WHILE maintaining the existing
  active zone size (so it's still easy to click it, no need to be precise)
- Add missing hover status
  - Create new SVG plus add rounded corners
- Treat column and row marker as different elements
  - Use one generic class + add another for each type (element modifier)
	- So we can target each one and have a nice center line
	no matter the disposition (vertical, horizontal)

note: motivated by the reported issue:
https://github.com/CollaboraOnline/online/issues/1297

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4d997864e99582f74411a12c33381a926fd47a05
2021-04-12 17:48:22 +02:00
Pranam Lashkari
24cbf59d2c leaflet: enable comments for PDF in mobile
in addition, allow users to work with comments in read only mode
wizard z index increased to avoid mobile-edit-button overlapping it

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie80f9a808d0234f6c58b768fa27673c9fe50b122
2021-04-12 17:16:16 +05:30
Gökay Şatır
dbb1cd1403 Scroll Section: Adjust scroll bar durations.
Variables are added into initialization for easy management.
Duration is adjusted.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic53a159d708a5f8b0121ec264b229da0141333fa
2021-04-12 14:20:27 +03:00
Pranam Lashkari
ab2eea12cb leaflet: scroll to comments on pressing annotation buttons
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I40a820b932d3891dee9a32d319a4426e77e301d8
2021-04-12 12:24:58 +02:00
Gökay Şatır
696d6c63b1 Server restart follow up. Don't refresh the page if file name is different.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I4174dade3ff334687b485264ed8480ec3509cc4a
2021-04-12 13:04:01 +03:00
Gökay Şatır
c82d614d16 SectionContainer: Remove extra "interactable" check.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I296343dbf24e2daf5131d537d8d87496c0b51842
2021-04-11 16:28:45 +03:00
Gökay Şatır
1b4575483a AutoFillMarkerSection: Fix for splitter point.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I4fb19a52c94fea6c3da13367cc427df3e2ca9cae
2021-04-11 16:28:31 +03:00
Gökay Şatır
2a9ff2e25f CanvasSectionContainer: Update test div upon setting section position.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I99a9ca533293bb520449e12ff92074aec13b28ee
2021-04-11 16:28:31 +03:00
Gökay Şatır
55ec901333 CanvasSectionContainer: Add showSectionProperty.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic9b5636ca6da661d4bb00f35e66764e926cbaef8
2021-04-11 16:28:31 +03:00
Gökay Şatır
1ce3ac86e3 Autofillmarker: Follow up-2.
Set cursor style.
Fix bug related to split panes.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Id469f74077f8897227c84da6821c14d0fa87d269
2021-04-11 16:28:31 +03:00
Gökay Şatır
e5a7962147 CanvasSectionContainer: Add document object feature.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I20023403a2f693cdf0670eb92b5d3d1ee362f415
2021-04-11 16:28:31 +03:00
Gökay Şatır
a6b9d71c22 ScrollSection: Remove unnecessary assignments.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic1257df185d94524f7d6fe4a53cfb949700ba57c
2021-04-11 16:17:25 +03:00
Ashod Nakashian
7b7cc141dd leaflet: make: cleanup timestamp files
Change-Id: Ida77111d78b52653142f15c8866409cb573807bb
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2021-04-11 01:05:20 -04:00
Pranam Lashkari
1b7d34a815 leaflet: set mouse cursor on cursor show
This is absolutely necessary for impress,
if cursor visible state is not changed,
we do not add or remove the cursor,
which handles the mouse cursor

so we explicitly set mouse cursor

i.e: in impress try to edit in one text box,
now click on the text on another text box
the mouse cursor will be incorrectly set

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6adda739dc26fb93857bf8dcf70348b07f8eab33
2021-04-09 22:46:41 +05:30
Pedro Pinto Silva
4fe8619a7a Impress: Fix #presentation-toolbar on chrome
- Make sure width doesn't get above the available space
- Do not force scrollbar when there is no content to scroll
  - use visible (default): implicitly compute to auto

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib7b6b15dcf093d6172a35346679a7985584f4ef9
2021-04-09 12:27:12 +02:00
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