Commit graph

4930 commits

Author SHA1 Message Date
Michael Meeks
5c4981794f Proxy: adapt the path with a serial for each request.
Helps to debug, and avoids the webserver getting unhappy.

Change-Id: I632550f2ad26eef973cd036422f9f1a73d0f0764
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92817
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 20:57:19 +02:00
Michael Meeks
b4feecde2d Proxy: marshal message serial too.
Change-Id: I23a28fe052062a0b98bbb2828b71ab8de6f1459c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92816
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 20:42:05 +02:00
Weblate
af627118a2 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: Id7dd90d22144a5d6dd93d096cc98cc9564a9ed60
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92878
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-24 20:38:27 +02:00
Weblate
2821da89a7 update translations
LibreOffice Online/android-app (Galician)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I9b5e717ade3f21df1aa1cda14a631406cf8ce356

update translations

LibreOffice Online/android-lib (Galician)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I86a8d346678db405581a6631995689f36dc5bff1

update translations

LibreOffice Online/ios (Galician)
Currently translated at 60.0% (3 of 5 strings)

Change-Id: I52fa7b038ecb0282ba02c1c88f8f1b6dbc79346b

update translations

LibreOffice Online/loleaflet-help (Galician)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I100b8f2f59b806bf3b319a4b4bce662193d63e89

update translations

LibreOffice Online/loleaflet-ui (Italian)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: If41b46a9999a9eef5311257557dee32ed5c31ece

update translations

LibreOffice Online/loleaflet-ui (Galician)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: Iad237163cd31b9a9b592f3faac95196495b7edb5

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: I70abc8a2265794892a0e3acef2028f06f066acf8

update translations

LibreOffice Online/loleaflet-ui (Greek)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: Ia14271292a1ea897d5077815bef6b1ef75d6b045

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: I43b64cf2ec1a3c966b01196345213ea0ddb10d40

update translations

LibreOffice Online/loleaflet-ui (Basque)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: Ic9ee7a786368ae854c85fc8e9384b0a80f37951d

update translations

LibreOffice Online/loleaflet-ui (Welsh)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: I434a8069a83fe926e5c235394b409d97b2f8dc94

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 99.7% (295 of 296 strings)

Change-Id: Ibd6e55abb77ac01878008a45f51f1a6e36d9bb12

update translations

LibreOffice Online/ios (French)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I775691e5624dda687ded1ecb8ad27629d4de9ce9

update translations

LibreOffice Online/loleaflet-ui (Portuguese (Brazil))
Currently translated at 100.0% (296 of 296 strings)

Change-Id: I689243dd5a5d6de487ffafc50ed4705f95657d86

update translations

LibreOffice Online/loleaflet-ui (French)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: I5496a3226605398243458d06efaca1483c633393
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92737
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-24 20:38:13 +02:00
Andras Timar
7f6db52d67 loleaflet: updated ui pot
Change-Id: Ifcf9e15db834e277c24db765c19237a3244e83bf
2020-04-24 20:12:31 +02:00
Pranam Lashkari
2a3f5f0fc3 leaflet: removed color name from the title
removed color name from title of slidebackground color/gradient picker in mobile wizard

Change-Id: I92a6b3b5df9e6f826b903951b575c8497f5faf3a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92832
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-24 20:07:13 +02:00
Michael Meeks
6e7977bbb8 Proxy: improve debugging and connection handling.
Change-Id: I1d48c4ec7fb80eaab1aabc83b0c210b7cf138ef2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92815
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 19:55:00 +02:00
Michael Meeks
01519bdc64 Proxy: improve debugging & naming.
Change-Id: Ifba669a33855a67c9a4e968db42ef1a2cb301d63
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92813
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 16:44:55 +02:00
Michael Meeks
8c98b5930f Proxy: poll for output space if we need waking.
Change-Id: I18a5e71bd3342eea7992672d9be1f5518ea008e3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92810
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 16:12:01 +02:00
Michael Meeks
c28fff4cfa Proxy: open four wait sockets concurrently.
Change-Id: I08b85677be528b7aa77272a8527c9bacf3f7c336
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92809
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 15:58:42 +02:00
Michael Meeks
5b9f092748 Proxy: re-write css image URLs to handle the proxy.
Change-Id: I09f3dea2f5e3a51869d5b0aa3f473d8f3ba75f44
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92808
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 15:39:25 +02:00
Tamás Zolnai
98e3994e6a cypress: add an own eslint config for the test code.
This parserOptions was added for cypress test so
move that into the tests' own config:
b2ec95dcfd

Change-Id: I3c565d212409cc01621eca97cd59ae7869d852cc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92857
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-24 14:41:31 +02:00
Michael Meeks
3f9b486903 Proxy: send multiple messages in a single request.
Change-Id: Ic0a303979478801bd23941e8893ce5721cf3e732
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92807
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 14:25:48 +02:00
Michael Meeks
fdc062b488 Proxy protocol bits.
For now very silly: [T|B] + hex length + \n + content + \n

Change-Id: I256b834a23cca975a705da2c569887665ac6be02
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92806
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 13:57:49 +02:00
Michael Meeks
bf0662bda1 Proxy websocket prototype.
Try to read/write avoiding a websocket.

Change-Id: I382039fa88f1030a63df1e47f687df2ee5a6055b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92805
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 13:09:09 +02:00
Michael Meeks
87eac2079b ProxyPrefix: allow the user to specify a custom prefix.
This allows us to re-direct web traffic via a proxy quite simply
during fetch, instead of changing the service root.

Change-Id: I28d348467e48394d581fca4da4c199348a2ca8e0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92804
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-24 12:48:11 +02:00
Andras Timar
c98d2d2b3d Add Insert Fields menus to Impress desktop menus, too, in order to be sync with mobile UI
Change-Id: I1e0a5e309be25a22dbec73e2a74d7498896a4eb7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92761
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 19:35:48 +02:00
Andras Timar
67fca3bdfb Re-add Impress fields to mobile menu
.uno:InsertSlideField, .uno:InsertSlideTitleField, and .uno:InsertSlidesField
cannot be dispatched, they are only 'aliases' to the respective 'Page' commands.

This partially reverts commit e6c880b1af.

Change-Id: Iad6a55a746377912adb7958cf7653fe181553cbb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92760
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 19:35:37 +02:00
mert
d9cbd9d6f6 mobilewizard: fix number format doesn't update properly
Change-Id: I852dd79d9658f676e86b22cb1cb145264c9de2fe
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92762
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 19:35:06 +02:00
Pranam Lashkari
def2368547 leaflet: slide background color/gradient name replaced
color names are replaced with descriptive names
i.e: background color, gradient start, gradient end

Change-Id: I4d8a8bec6f180efa3874275f6ed0aeec33369bb1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92750
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-23 18:09:47 +02:00
Pedro Pinto Silva
8f05c15656 Mobile: mWizard: disabled input fields: make sure both image and spinfield controls do not stay active
And make sure the js listener is only added when the inputfield is enabled (fixing useless callbacks and changes on html)

Change-Id: I4f4f2b4430b1c43143f95ab9d9fe075c8e1f49b8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92763
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-04-23 14:31:31 +02:00
Pranam Lashkari
15c2235d16 leaflet: changed ID of shape fill style
Change-Id: Ib8ad95cf265afbee88f02c3d7746a030e44bbf7c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92743
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-23 13:21:04 +02:00
Pranam Lashkari
313db8a8cd leaflet: resolved impress slide background gradient not changing
Change-Id: If71b380859c202327a533b121af45232682e52df
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92088
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-23 13:19:48 +02:00
Andras Timar
1b46fe47ba Revert "Update translation files"
This reverts commit 7bea44c149.

Reason for revert: it removed good translations

Change-Id: Iccc2a012d4fa6977f2a8e7fdf07ff4c9a0040399
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92542
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 18:55:02 +02:00
Weblate
7bea44c149 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I17e88df1578b17e9beae7e6195b66634cc8b424b
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92710
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 18:53:33 +02:00
Weblate
0880000007 update translations
LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: Iaaa5fc948c142c87f634b75afd2a26812a0f8dca

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (296 of 296 strings)

Change-Id: I8c1c88cf50fe031173900059f8486ac0972dd7a9

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I17e88df1578b17e9beae7e6195b66634cc8b424b
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/

update translations

LibreOffice Online/loleaflet-help (Slovak)
Currently translated at 98.8% (411 of 416 strings)

Change-Id: I20f4c5ce0fa87a26f9f05e75835e3d0cc245f011

update translations

LibreOffice Online/loleaflet-ui (Slovak)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: Ib2c80fa7f5ed5cc748f37d92638095224fb187f3

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 84.9% (353 of 416 strings)

Change-Id: I06008211ffceec01cbb3221eaaa1be784f5345b7

update translations

LibreOffice Online/loleaflet-help (Venetian)
Currently translated at 9.1% (38 of 416 strings)

Change-Id: I14f64e85dd3cfacb5bdd93cb61746fbfca934ae9

update translations

LibreOffice Online/loleaflet-ui (Portuguese)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: Ib164c7193b415e07cc5ab6a3e54236790e56e7a0

update translations

LibreOffice Online/loleaflet-ui (Amharic)
Currently translated at 72.4% (213 of 294 strings)

Change-Id: I2188bc567aa2fa6b85e98daffa16fd8f0f3ddef6

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 40.5% (119 of 294 strings)

Change-Id: I3b871c9aeda5edac643a28e1b0c7a99acc0aa1eb

update translations

LibreOffice Online/loleaflet-help (Czech)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: Ic4268f4bccd2d68f41f3db688e28af60e6d3fe48

update translations

LibreOffice Online/loleaflet-ui (Upper Sorbian)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I1c51dc5c12f6c4e0fc6bc3c190bd612e09321f36

update translations

LibreOffice Online/loleaflet-ui (Basque)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I6d4b2768d17ca951ca5123f97888fc1587ea2d90

update translations

LibreOffice Online/loleaflet-ui (Lower Sorbian)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I0b2e4f1ffcd00eb1514026cd76f7211cd1972b3d

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 99.7% (293 of 294 strings)

Change-Id: I5eb914e253472e3645469166fa00d81a44b20558

update translations

LibreOffice Online/loleaflet-ui (Portuguese (Brazil))
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I5f2d9a3785f94bdaf4cd41b0446ffe51d3938fd2

update translations

LibreOffice Online/loleaflet-ui (Welsh)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I45962b07b3890d49e83b47f6b10193934cb4d6b6

update translations

LibreOffice Online/ios (Dutch)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I17acebfd6380cb5c0822a97d9eb72ffb811a430c

update translations

LibreOffice Online/android-lib (Dutch)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I68896cbc8830521f22c91cf981550adee39cdcf2

update translations

LibreOffice Online/android-app (Dutch)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I13207ecfb48d4493d761ea434503cead9bd5e021

update translations

LibreOffice Online/android-lib (Dutch)
Currently translated at 91.7% (11 of 12 strings)

Change-Id: I95cf32aea3fe06052c72dda9fbc9f53d45e343f3

update translations

LibreOffice Online/loleaflet-ui (Dutch)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I1057bd39dabab7f35f539eb5145b26df9ff3db4a

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I5ad5f88c4c7b845654178ab4fdf8269d5dac68fa

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: Iac1658f04f6ae759d19566338fd761b4842c6f2b

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 39.1% (115 of 294 strings)

Change-Id: I0b4f91e151376158dfb19ba7aa8ae3a1dfd1ee52

update translations

LibreOffice Online/android-app (Norwegian Bokmål)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I893c6ea94dc954667756d076ea54953cd4e18497

update translations

LibreOffice Online/loleaflet-help (Norwegian Bokmål)
Currently translated at 52.6% (219 of 416 strings)

Change-Id: If4ed7f3626e94949ca0bac1d2861a3496aa7fcee

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I135f8b0bf6591637daf8140538037c0b56e428af

update translations

LibreOffice Online/loleaflet-ui (Norwegian Bokmål)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: Ib8d0e3153a719c86820043f206a3ced88d9bf1ae

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I2ab01e8363e023660377ff6172ddea17e6047a2f
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I993555978da571097b4a3f159992ccbd82b3f634

update translations

LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (294 of 294 strings)

Change-Id: I9016c2d1954c4c6e43d6dae83683f8aa782798b2

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I89e25cc20f4d2e75b0b77ba7c00fb2fdda368434
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92369
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 18:46:09 +02:00
Michael Meeks
ce54304a34 Tolerate missing WOPI parameters.
Change-Id: Ic938b835aadeb299e06682b2f384db323eca0a91
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92699
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-04-22 17:56:30 +02:00
Andras Timar
b6c354cbed loleaflet: update UI pot
Change-Id: I84e0216361e2ccc37051cdf00816caa4a48d8eae
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92706
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-22 16:59:34 +02:00
Pedro Pinto Silva
80848ea8e9 Mobile: mobilewizard: inputspinner: fix disabled state
Change-Id: I5e6ef1572b578c3f34e52f0e4795dc4dfc71865c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92639
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-04-22 14:34:47 +02:00
Tamás Zolnai
ba86534c43 cypress: introduce a data attribute for acceptInput
So we can use cypress calls to wait on the tested state
using cypress' retry functionality. It's also useful to
have the acceptInput state in the DOM, so we can check
it in the interactive test runner.

Change-Id: I17cd8f88b270f7a329d35e77dec4eedd7aa1c2a3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92682
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-22 13:35:35 +02:00
Tamás Zolnai
9d9ea65529 cypress: introduce a better way to check the selected text.
We can use cypress methods on #copy-paste-container and so
we don't need to use explicit wait() method here. The added
cypress call will do the waiting more effectively.

Change-Id: Ib15ffb1d72e422ef303f9e0e17b29d740cd4e7f6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92678
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-22 12:31:22 +02:00
Tomaž Vajngerl
288d99847e loleaflet: decrease min zoom to 1 => 20%
In some cases on tablets in impress we want even smaller document
sizes as otherwise the document doesn't fit on the screen.

Change-Id: Ice00f122bae1401755c5094c23202a208468fe50
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92640
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-04-22 11:47:19 +02:00
Szymon Kłos
829a0c7fa3 Move toolbars resizing to the internal implementation
Change-Id: I7afa916f03c4d6d4dd4b863d6ff65b1936fe32f0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92671
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-22 10:20:15 +02:00
Szymon Kłos
799235eb38 Move command state updates handler to toolbar implementations
Change-Id: I3b9b4a7c05a0c6f40f86f6a69ea8873a1120180c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92670
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-22 10:06:18 +02:00
Szymon Kłos
43f19fa57e Move DocumentNameInput to separate file
Change-Id: I20b5620269b46902a612d2b43346d3b02c3636cd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92622
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-22 09:36:03 +02:00
Henry Castro
40b0e084be android: change dependency to generate assets
According to gradle graph tasks, add a dependecy
to generate loleaflet assets

Change-Id: I5b528989c645903840eae44b7770b7d2425bb921
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92662
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-22 00:49:43 +02:00
Henry Castro
e3b0c05733 android: add gradle task copyBrandTheme
Change-Id: Ide4a58551fad9befe3e81ab727be283e438dcae3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92661
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 23:43:15 +02:00
Henry Castro
8b593d94c1 android: add gradle task copyBrandFiles
The gradle build system can do the job

Change-Id: Ife8f080726ca61540201bd00acb7fab97efbba85
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92659
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 23:01:07 +02:00
Tamás Zolnai
49edc462b7 cypress: assign selection data to clipboard container as soon as it arrives.
So we don't need to trigger a fake copying to get the
content. It will make things easier.

Change-Id: I0964fe697602d77078f10792355fbda23879c7c9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92645
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-21 20:31:42 +02:00
Tamás Zolnai
57e225bb9b mobile: fix 'enable property of undefined' error.
Caught by cypress tests.
We don't have 'presentation-toolbar' on mobile.

Change-Id: I95440dbd505202183f936fc3e4f962c6a0199257
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92646
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-21 19:35:46 +02:00
Henry Castro
d8f8e12358 android: parameterize the Dist folder
Now, It is possible to build lolealfet to assets
folder directly

Change-Id: Ie5f7de65bcd4d6e4ab5df2b2697b4c02cbbbef67
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92597
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 16:52:23 +02:00
Jan Holesovsky
e49e394ae5 android: Copying drawer_header.png is not needed any more.
Change-Id: I4bf707ac1e04a62122d3e999602e00815f8db758
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92632
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-21 14:41:46 +02:00
Pranam Lashkari
f07f29080a leaflet: resolved impress slide background color not changing
Change-Id: Ia55a9c1f9bc5a51e6599755bfaf37d9788c9f7c3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91943
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2020-04-21 12:17:17 +02:00
Muhammet Kara
fca73e16b9 Welcome: Add the dismiss/accept button
Now that we have the value of window.enableWelcomeMessageButton
coming from the loolwsd.xml, we can optionally enable/disable
the dismiss/accept button.

Using vex.dialog.open instead of vex.open to be able to
have the 'buttons' option.

Because the vex-dialog-message class displays the message
all-bold (very ugly) on mobile, we change it to vex-content,
just after opening the dialog.

We also limit the max height of the dialog to avoid double
scroll-bars.

Change-Id: I0c4d1cba303da49d23342a74538c7f340c4bcf1b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92465
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-04-21 00:23:32 +02:00
Henry Castro
15fe4b8dca android: fix "AAPT : error: resource drawable/writer not found."
Adding an empty image using the command "touch", generate a weird error
when merging resources:

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing
com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
    android/app/src/main/res/layout/activity_document_browser.xml:163:
AAPT: error: resource drawable/writer (akaorg.libreoffice.androidapp.debug:drawable/writer) not found.

android/app/src/main/res/layout/activity_document_browser.xml:229:
AAPT: error: resource drawable/calc (akaorg.libreoffice.androidapp.debug:drawable/calc) not found.

android/sid/android/app/src/main/res/layout/file_explorer_grid_item.xml:49:
AAPT: error: resource drawable/ic_more_vert_black_24dp
(aka org.libreoffice.androidapp.debug:drawable/ic_more_vert_black_24dp) not found.

android/app/src/main/res/layout/file_list_item.xml:58:
AAPT: error: resource drawable/ic_more_vert_black_24dp
(aka org.libreoffice.androidapp.debug:drawable/ic_more_vert_black_24dp) not found.

android/sid/android/app/src/main/res/layout/fragment_directory_browser.xml:13:
AAPT: error: resource drawable/ic_menu_back
(aka org.libreoffice.androidapp.debug:drawable/ic_menu_back) not found.

android/sid/android/app/src/main/res/menu/view_menu.xml:5:
AAPT: error: resource drawable/ic_folder_black_24dp
(aka org.libreoffice.androidapp.debug:drawable/ic_folder_black_24dp) not found.

Change-Id: I99b0857941687846e90ad53f30cac6a7ef83beaa
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92594
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-20 22:58:34 +02:00
Henry Castro
c9cc637cd5 android: fix create-l10n-all-js.pl paths
builddir != srcdir

Change-Id: I42668bec84efeefae445416eac03321ca02b5aba
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91862
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-04-20 21:17:57 +02:00
Muhammet Kara
f507302993 Welcome: Add config for enabling the dismiss button
Change-Id: Ia2fbf066493d91a2b10866e66d11332b5cfc10fa
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92593
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-04-20 20:35:08 +02:00
Pedro Pinto Silva
55a985dc73 Add missing latest updates icons
Change-Id: I41fa30979a121672516cea06905e071ff8486297
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92586
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-04-20 20:10:15 +02:00
Pedro Pinto Silva
411ba06ea3 Mobile: Calc: Adding CSS rules for when #formulabar has inputbar_multiline as a css class
meaning adding css rules for when the inputbar is in the multiline mode (expanded)

Change-Id: Ib8557f1e502c06e50a26b0a94ccab793b44feda0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92570
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-04-20 16:38:57 +02:00
Muhammet Kara
1c296d5947 Welcome: Prevent a million cookies during development
By default, cookies are stored with full path of
the web app, and we have an extension made of the
hash of the build. So each new commit means a new
web app for the browser, causing many cookies stored,
and the welcome dialog being shown after each commit.

From now on, we will be storing our cookies to the
'/loleaflet' path.

Change-Id: I4cb25ab0a53c4743cb929a7f6c20ab019da29409
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92575
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-04-20 16:36:04 +02:00