Commit graph

949 commits

Author SHA1 Message Date
Ashod Nakashian
bd005c701d loleaflet: support for logging socket.send
Change-Id: I13ea5c6df6cdcda7d9cbb256de6cd4a34757a244
Reviewed-on: https://gerrit.libreoffice.org/24321
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-23 18:11:49 +00:00
Henry Castro
a3a49e43ff loleaflet: update part previews when undo/redo action 2016-04-23 11:47:10 -04:00
Ashod Nakashian
6789550cd9 No need to send invalidatetiles to the client on becoming active
The invalidatetiles is normally a notification coming from
LOK and it signifies that the tiles in quesion need
rendering anew. Issuing this internally from the Kit
removes TileCache images unnecessarily.

Furthermore, since this message is always sent in response
useractive message, there is no need in issuing it from
WSD when loleaflet is perfectly capable of issuing it
itself (internally).

Change-Id: Ia97de6d803745dca3f6e73100f2d921dbbdf76f6
Reviewed-on: https://gerrit.libreoffice.org/24316
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-23 13:29:07 +00:00
Ashod Nakashian
c37d6720fd loleaflet: remove text selection when inactive
Change-Id: I5e983062a39d50b45435af6f1cc51073f1c31e7e
Reviewed-on: https://gerrit.libreoffice.org/24315
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-23 13:27:39 +00:00
Ashod Nakashian
9e64efe78b loleaflet: don't communicate with WSD when inactive to avoid confusing it
Change-Id: I4c7f252264fba4a46c6be9e9592a2aec165813bd
Reviewed-on: https://gerrit.libreoffice.org/24289
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-22 04:37:57 +00:00
Jan Holesovsky
22e8f8b1fe loleaflet: Group tile requests into rectangular areas, and call tilecombine.
Instead of asking for individual tiles, try to find rectangular areas in the
tile requests, and ask for the large rectangles using tilecombine, instead of
asking for individual tiles.
2016-04-21 12:14:32 +02:00
Jan Holesovsky
4a21e21627 loleaflet: Split the DOM handling from the actual asking for tiles. 2016-04-21 12:14:32 +02:00
Jan Holesovsky
a11aa8565c loleaflet: Change _addTile to _addTiles, and pass the entire queue. 2016-04-21 12:14:32 +02:00
Jan Holesovsky
538c1f571d loleaflet: Don't create the message if not necessary. 2016-04-21 12:14:32 +02:00
Jan Holesovsky
d8741d5ec3 loleaflet: Remove code for prefetching in other parts.
Not that a typical use case I'm afraid, and trying to switch parts for
prefetching was causing trouble in the past anyway.
2016-04-21 12:14:32 +02:00
Ashod Nakashian
b0701733fa loleaflet: leaflet is dimmed after losing focus by 10s and Online notified
Change-Id: I0ed38e89c6dbd4f7325a81cc49b3b37de65c0ea0
Reviewed-on: https://gerrit.libreoffice.org/24271
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-21 05:17:24 +00:00
Pranav Kant
769c0591ed bccu#1656: Scroll when you are at the bottom of the screen
Change-Id: Id78ee3ad75bc2f1f3781c3e8ede9d4262e46a0f9
2016-04-20 20:27:57 +05:30
Pranav Kant
616cb5f451 bccu#1689: Show a popup when non-editlock view tries to edit
Show a popup on 'mousedown' and 'keypress' events for
non-editlock modes.

Change-Id: I3a8a964d6a507549f521f3f831a4c623d202c86c
2016-04-20 16:50:36 +05:30
Pranav Kant
14b672bf5f bccu#1707: Do not mix editlock with permissions
For some reason, text cursor gets stuck making it impossible to
type in the document. This only happens with firefox + owncloud.

Lets keep the editlock state separately in map, and do not yet
mix the permissions with editlock state.

Change-Id: If4193d08b7228cde510321ec5b4c892b8617d8a7
2016-04-20 16:50:36 +05:30
Jan Holesovsky
97342a2817 bccu#1653: Make the .html's, .css's and .js's versioned.
It is still possible to access them directly via loleaflet/dist/<something>,
but such use can lead to unexpected behaviour due to various caching in the
browsers etc.
2016-04-20 12:58:10 +02:00
Andras Timar
af36a3bd13 document --allowlocalstorage and --admincreds 2016-04-20 11:35:31 +02:00
Pranav Kant
4fb1f60e06 Treat minified files as binary files
Helps 'git grep' do its job better.

Change-Id: Ia3c671df471d7ee4545aff3ea96c2bc104d0d025
2016-04-20 14:32:16 +05:30
Pranav Kant
da7dd6f634 loleaflet: Remove bunch of warnings from the console
It is incorrect to add the <div> elements with parent as w2ui
toolbar outside of onRefresh() method because toolbar can
refresh multiple times during its lifetime meaning that all such
added elements will be removed after first refresh breaking the
font/back color feedback javascript code.

Hence, this also fixes the font/back color feedback.

Change-Id: Iacd4f8a5c8ebb64e5bba5e7f05ceef8b77051534
2016-04-19 22:13:36 +05:30
Pranav Kant
79b21598d5 admin console: Handle spaces in filenames
Change-Id: Id63189e5a58e023669304438784d30c6ec48a1c2
2016-04-19 16:38:08 +05:30
Jan Holesovsky
aa158331fc Move css stuff from loleaflet.htms to the appropriate .css files. 2016-04-19 10:23:06 +02:00
Jan Holesovsky
5e96e32b56 bccu#1699: Use 256 pixels at 96dpi as the TWIPs size (3840 TWIPs). 2016-04-18 14:42:25 +02:00
Henry Castro
e50495811f loleaflet: update to WebSocketErrorMessageException 2016-04-17 09:05:34 -04:00
Ashod Nakashian
8eedd9dfd3 loleaflet: gitignore branding files
Change-Id: I78df82004999938e2c9b7aa9935896fd8c195318
Reviewed-on: https://gerrit.libreoffice.org/24128
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-16 17:24:50 +00:00
Pranav Kant
61914208bc loleaflet: Adapt to new changes in admin console
Change-Id: I0761bd6c5b3650795a318a077eb50d0a8bd161da
2016-04-15 13:28:42 +05:30
Henry Castro
8fac7d59b4 loleaflet: friendly messages when socket is closed 2016-04-15 00:10:43 -04:00
Pranav Kant
0597a1873d loleaflet: Disable toolbar buttons without editlock
Change-Id: I18b067e99ff04073a4065536534fdb0db00285dd
2016-04-14 21:04:56 +05:30
Pranav Kant
c56ef84129 loleaflet: Disable (graphic)selection markers without editlock
Only session with 'edit' permission can move selection handles
and graphic selection handles.

Change-Id: Idc5cf634a13e201016eb4e4135392b917b622ad5
2016-04-14 20:53:54 +05:30
Andras Timar
8f93a5f526 merge loleaflet and loolwsd rpm packages 2016-04-14 17:08:52 +02:00
Pranav Kant
d8c9128d35 loleaflet: Let simple 'make' build and install plugins in dist/
... and 'make dist' just copy that over to its package directory.

Change-Id: Ifb3d59c3cdfde23f14bc64b5a358565279a57575
2016-04-14 15:08:01 +05:30
Pranav Kant
95b9674022 loleaflet: Remove leftover code for enable editing/selection
Buttons are removed in e228817a8c

Change-Id: I3a4994d8e3c34ac49c466434d62264e86e11c3a1
2016-04-14 15:08:01 +05:30
Pranav Kant
171aeee0b7 loleaflet: .gitattributes to ignore minified js files
Otherwise these show up in 'git grep'

Change-Id: I82224673978c63b523750a2ec8b34ca248f4e309
2016-04-14 11:33:32 +05:30
Henry Castro
87eeac808b loleaflet: show "Connecting..." before websocket is ready 2016-04-13 16:30:21 -04:00
Henry Castro
0c6f9b06ed loleaflet: fix js lint errors 2016-04-13 15:34:12 -04:00
Jan Holesovsky
b09b6eab89 Only the access_token (and _ttl) is supposed to be passed via the form post. 2016-04-13 18:32:00 +02:00
Andras Timar
07b68b37a9 loleaflet: put everything we use to dist/ and package only dist/ 2016-04-13 16:55:46 +02:00
Pranav Kant
68b3a2c81e Always save irrespective of nature of socket close
Do not distinguish between normal shutdown or abnormal shutdown.
Also remove 'disconnect' frame to indicate normal shutdown.

Change-Id: I98fd9f5a219feb1097c57302dba14e08ad9bf143
2016-04-13 17:35:10 +05:30
Pranav Kant
8f9d812806 loleaflet: We do not use underscores in identifier names
Change-Id: Ic466bb3067353c9d271ea264a323502a03ed2c2b
2016-04-13 11:47:22 +05:30
Pranav Kant
df0315f317 loleaflet: Change message on status bar when document is saved
... and empty the status bar when document is modified and not
yet saved on server.

Change-Id: I976405783f744b875b9f6ee7e700006bddf5bc6f
2016-04-13 11:45:56 +05:30
Pranav Kant
ef2638298a loleaflet: listen to composition events
Treat 'compositionend' event as 'keypress' event with composited
data.

Change-Id: Ia1d35e3ce2c583259dc6b6179741050ed173fe64
2016-04-11 15:38:19 +05:30
Andras Timar
39203290d8 bump version number, because we branched off 1.5.x 2016-04-10 12:53:06 +02:00
Pranav Kant
9469021f74 consistency, server -> client messages ends with a colon
Change-Id: Ia2154603bf0b9432beeaae970f68daa1ea7f7ebd
2016-04-09 01:46:03 +05:30
Jan Holesovsky
b76140cb7b loleaflet: Trigger locontextmenu event with the context menu structure. 2016-04-08 19:15:08 +02:00
Andras Timar
3f0d5a7521 loleaflet: allow HTTP-only mode for testing/trial 2016-04-08 13:16:49 +02:00
Henry Castro
b6aeee816c loleaflet: restore default example title 2016-04-07 17:35:00 -04:00
Henry Castro
dd96c6a4de loolwsd: handle a POST request in loleaflet 2016-04-07 17:20:45 -04:00
Michael Meeks
72a0926b4a Hush - update gitignores. 2016-04-07 19:38:33 +01:00
Henry Castro
cec63101c5 loleaflet: progress bar for document loading, saving, etc. 2016-04-06 20:48:12 -04:00
Henry Castro
a06974e2b3 loleaflet: add loading spinner to slide show 2016-04-06 15:54:55 -04:00
Henry Castro
b6dc37fadf loleaflet: fix slide show when it is used "file://" scheme 2016-04-06 10:15:41 -04:00
Henry Castro
ab0429622e loleflet: rework progress bar 2016-04-06 09:14:54 -04:00