Commit graph

90 commits

Author SHA1 Message Date
Andras Timar
34bc966d68 change product name
Change-Id: Ic34d324c952364442d3f4f9f0758676ab57c8a9a
2020-10-02 14:18:28 +02:00
Pranam Lashkari
8123e4e26f leaflet: menu options gets hidden behinde the statusbar
problems:
the main menu obscures the submenu,
the file name box / pencil obscures the submenu,
the submenu is hidden behind the status bar.

Change-Id: I8c3d08c9291c76c5b487e248ccbaf58410e3b54c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101302
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-07 12:00:45 +02:00
Andras Timar
33000dfded typo fixes in comments and code
Change-Id: I6f31e050aab701e31064e1abc9429dce0a50c279
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92953
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-26 23:19:52 +02:00
Tor Lillqvist
2c7b1a6919 Remove loleaflet/spec which probably hasn't been maintained anyway
Change-Id: I1cb65489c2c58329cbed6329b7014a6c04e13b62
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92247
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-16 08:22:50 +02:00
Henry Castro
5cc7ba2d77 loleaflet: import sanitize-url.js library
The file was imported from node_modules/@braintree/sanitize-url/index.js
the main reason is to analyze the source code, debug and patch
if necessary

To obtain the source code from npm repository

make libs

To bundle the file sanitize-url.js

browserify braintree-sanitize-url/index.js --standalone sanitizeUrl > sanitize-url.js

Change-Id: I7869a1349648ae1f8f2194859ebb398b1a73733e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89055
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-20 13:20:44 +01:00
Henry Castro
8ce1846e5e loleaflet: import l10n.js library
The file was imported from node_modules/l10n-for-node/l10n.js,
the main reason is to analyze the source code, debug and patch
if necessary

To obtain the source code from npm repository

make libs

Change-Id: I7bd4d400c504f57a94566e187c6d26361aed8bd0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89043
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-19 17:32:10 +01:00
Pedro
1292681219 Update info on z-index values
Change-Id: I5bafdb149d9de7255c8c038af6c495706158a7fb
Reviewed-on: https://gerrit.libreoffice.org/81023
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-18 10:45:31 +02:00
Andras Timar
db176ee45b Remove lo_template_path option
It was not very useful to let this setting configurable by the user.
On the other hand, old path in config file caused issues after
upgrade. It is better to decide the location of LOKit core
during compilation. From now on the --with-lo-path configure
option is compulsory.

Change-Id: Icdcbc21bde5dad329fdb6e30ed17efde6b0e73de
Reviewed-on: https://gerrit.libreoffice.org/79943
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2019-10-08 09:36:44 +02:00
Szymon Kłos
d5b906f3d5 Z-index doc, sidebar under menu
Change-Id: Ic9c0dbb326d45c205746e50018906030f7a6fd27
(cherry picked from commit 0d7b28daf8a8bf6f2adc33bbe3d7d5f7f72d6659)
2019-09-03 01:53:12 -04:00
Samuel Mehrbrodt
45aaec3207 No more jake
Change-Id: I21187241142031cd324e63aebf03ce8ca949411d
Reviewed-on: https://gerrit.libreoffice.org/72757
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-22 15:55:21 +02:00
Alexandru Vlăduţu
338563ab45 loleaflet: update shrinkpack
Updated shrinkpack to work with (relatively) new versions of npm: https://github.com/JamieMason/shrinkpack/issues/83

The new version stores the tars in the 'archived-packages' folder and not the 'node_shrinkwrap' one, that's why there are so many files in the diff.

Change-Id: Iebcadaeee0e27f831b7ff16a50819a908e7f05a6
Reviewed-on: https://gerrit.libreoffice.org/69878
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-03-28 09:27:07 +01:00
Szymon Kłos
8a61a53027 Integrate browser-sync
Tool to automatically reload used .css and .js files.
To make it work symlinks are created instead of a copy
if browsersync is enabled.

1. install:
npm install -g browser-sync

2. use configure option: --enable-browsersync

3. remove loleaflet/dist directory

4. run server:
LOOL_SERVE_FROM_FS=1 make run -j10

5. run browsersync:
browser-sync start --config browsersync-config.js

or

make sync-writer

Change-Id: Iebee1cc0b9a03bc866954ff33e3cb8a10b48e0af
2019-02-21 09:23:47 +01:00
Andras Timar
2bf384cac0 Convert wsd/reference.txt to Markdown format
Change-Id: I393a74337293e376b6458a9cc05ba1d8b748e0d3
2018-11-07 21:25:25 +01:00
Mike Kaganski
4c8a58db0e loolwsd -> wsd
Change-Id: I2e5fa1d9729e21dbbfea4853d57c68d9dfa16f8d
Reviewed-on: https://gerrit.libreoffice.org/52920
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-05-16 06:43:10 +02:00
Andras Timar
7a199b9703 typo: tets -> tests
Change-Id: I8cd938c99c9087ebf2db85e361fecfa916d3adbe
2018-03-07 12:08:55 +01:00
Samuel Mehrbrodt
4c9872188f Add non-obtrusive notification method (infobar-alike)
This reuses the vex dialogs and pushes notifications to the bottom right area.
Converted the limit reached notification to this new type.

Change-Id: I20f0c1202eecde028e70156f02ba31497ef2f9b9
2018-02-22 14:28:09 +01:00
Pranav Kant
dbadff5551 loleaflet: Be more specific in README instructions regarding update
An `npm update` on my local tries to update all the modules to latest
version; surely we don't want it everytime only one module update is
required.

Change-Id: I2f79e77ae23edb9b8f8248ac7535e014b7b3218d
2017-08-04 17:44:57 +05:30
Ashod Nakashian
5cac95e6a9 loleaflet: remove pagepartrectangles request and handling in loleaflet
Change-Id: Ib83e7c0ca05a7d7d1a3d30675ef3cf5804f5ac4c
2017-02-05 21:59:22 -05:00
Samuel Mehrbrodt
1f2d04a5e4 Online, not on-line
Change-Id: I93a8322dceca7c1ed95449c6aeb4ae854b982957
Reviewed-on: https://gerrit.libreoffice.org/33886
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-03 13:47:30 +00:00
Pranav Kant
582bfbeb7f Update path
Change-Id: Ic0654f64ee5ba9e4678cca42ceea4a5958a01c66
2017-01-13 20:33:45 +05:30
Tor Lillqvist
8fe58df759 An updated preview of a slide should be broadcast to all document clients
Amazingly, this (my third attempt) seems to work.

Add a boolean 'forAllClients' parameter to the loleafget getPreview()
function, and pass it as true in the location where a new preview of
an edited slide is requested.

Add a parameter 'broadcast' to the 'tile' (request) message. Set to
'yes' in the above case. When subscribing to a such tile rendering,
subscribe all sessions of the document.

While at it, drop the default values for the parameters of the
TileDesc constructor. I dislike default values...

Change-Id: Idb438f11c953d791fafe4c890e0497d8dfbaa733
Reviewed-on: https://gerrit.libreoffice.org/29591
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-11-21 07:07:18 +00:00
Tor Lillqvist
c99379d67f The 'invalidatepreview' event handling seems to be unimplemented
No need to fire it if nothing happens. Just confuses a reader of the
code.

I don't really understand JavsScript events etc, so if I have
misunderstood something, feel free to revert.
2016-10-06 15:43:41 +03:00
Pranav Kant
93c114d0f4 Update README 2016-08-16 11:17:00 +05:30
Pranav Kant
af36ebeae2 loleaflet: Update README regarding source-maps and .gitignore 2016-08-11 16:39:54 +05:30
Pranav Kant
a08f05e938 loleaflet: Port to new API based build process; remove older ones 2016-08-11 14:55:23 +05:30
Pranav Kant
9b9e5199e0 loleaflet: Update README 2016-08-09 20:28:10 +05:30
Ashod Nakashian
045f0b6388 loleaflet: npm requirement and upgrade instructions added
Change-Id: Id769931cfef8c6c1cc291b12ed399484f6b19f97
Reviewed-on: https://gerrit.libreoffice.org/27972
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:54:06 +00:00
Pranav Kant
b99d51616c loleaflet: Update README for updating dependencies 2016-08-03 15:45:01 +05:30
Pranav Kant
5b6df600a7 loleaflet: Modularize all of the js; use browserify
Don't include each third party script in a separate <script> tag,
rather have one single main.js file require'ing these different
scripts. Then `browserify' on main.js which bundles everything
into a single bundle.js containing all of the dependencies.

Also add these 3rd party scripts such as jquery, jquery-ui,
select2 etc. using npm, rather than manually downloading their
files from the internet. This should ease the process of managing
these front-end dependencies; upgrade process should be very easy
now.
2016-08-03 15:45:01 +05:30
Pranav Kant
efbd0a4940 loleaflet: Fix incorrect info in README 2016-08-03 15:45:01 +05:30
Andras Timar
f540fb087c loolwsd: document new command line options in READMEs 2016-06-27 09:41:41 +02:00
Pranav Kant
b230dcb26f loleaflet: Kill modules.zip
... and save ~3MB of space.

Change-Id: Iaa5cb62936d66044b657e6a507237a90f1d0a537
2016-06-06 16:28:57 +05:30
Andras Timar
af36a3bd13 document --allowlocalstorage and --admincreds 2016-04-20 11:35:31 +02:00
Pranav Kant
06bc5cf33e Update READMEs for SSL and Admin panel
Change-Id: I7b511071ab286474b35f40f40839aa2c44fa53f1
2016-03-22 16:09:22 +05:30
Tor Lillqvist
e96629b371 It is apparently intended that one uses the mocha built here, not a system one
On many/some distros, the system mocha is a much (?) older version,
which uses a wildly different output format, which is confusing.
2016-03-07 13:04:42 +02:00
Tor Lillqvist
70b7ee6d65 Fix typos 2016-02-29 16:46:42 +02:00
Jan Holesovsky
0bb8d0f1c3 loleaflet: Rename searchAll() to highlightAll() for clarity.
The previous work changed the behaviour of searchAll so that it does not
create a real selection, but instead adds additional mean of highlight, so
that it is possible to show all the results, and travel them at the same time.

The usage is now:

* call once the highlightAll()
* and then traverse the results using search()
2016-01-25 22:42:38 +01:00
Mihai Varga
7e44e639d8 loleaflet: better document the unit tests 2015-12-21 17:18:59 +02:00
Andras Timar
7be69dde9e typos 2015-11-11 15:58:24 +01:00
Jan Holesovsky
b068d9622c loleaflet: Add 'commandresult' event.
It's the loleaflet equivalent of the LOK_CALLBACK_UNO_COMMAND_RESULT callback.
2015-11-04 13:27:23 +01:00
Miklos Vajna
71ce604adb loolwsd: add initial reference.txt to document HTTP POST API 2015-10-20 18:10:40 +02:00
Mihai Varga
62184cffb4 loleaflet: documented the print event 2015-10-19 11:31:20 +03:00
Mihai Varga
ed35ac63f6 loleaflet: searchAll method 2015-10-19 10:44:54 +03:00
Mihai Varga
1588dd5f5d loleaflet: map.getPageSizes - returns the size of each page
In twips and pixels
2015-10-15 19:33:37 +03:00
Mihai Varga
3ba0bd6aeb loleaflet: mention reference.html in README 2015-10-15 19:33:37 +03:00
Mihai Varga
113a312023 loleaflet: we now have getPreview and getCustomPreview methods
getPreview can be used to request a preview of a page or a part while
getCustomPreview can be used to get a preview of a user defined section
of the document
2015-10-15 19:33:37 +03:00
Mihai Varga
cf089ccf2a tdf#94607 downloadAs command handler
We use a hidden iframe to download the document. Once we have the url
for it, we set iframr.src = url
Also added map.downloadAs(name, format, options) method
2015-10-09 16:14:38 +03:00
Mihai Varga
07a305df80 loleaflet: partpagerectangles command integration
An event is fired with the page dimensions.
Also the current page number is updated based on which page contains
the current view's center
2015-09-30 13:29:10 +03:00
Mihai Varga
fc5d617737 loleaflet: renamed remaining currentPart to selectedPart 2015-09-15 17:53:27 +03:00
Mihai Varga
bc72dcc329 loleaflet: renamed unoCmd to commandName 2015-09-15 11:52:55 +03:00