Commit graph

88 commits

Author SHA1 Message Date
Pranav Kant
95598c9fd3 loleaflet: Use SSL for admin websockets for docs in debug/
Change-Id: I49495fb68076cc2b7e797f1bc5318dc4b464afa0
2016-03-22 01:42:29 +05:30
Pranav Kant
7f371958ae SSL everywhere
Use same port (9989) for all client connections. This includes
admin panel, static file serving and normal client websocket
connections.

Change-Id: Idcfd7dd8925523c36e884717c41a3b6a827f6ff3
2016-03-22 00:05:29 +05:30
Henry Castro
dc129d00cc loleaflet: add WOPISrc parameter 2016-03-16 08:58:07 -04:00
Pranav Kant
8519a6a462 loleaflet: Support for memory subscription
Library for creating graphs: D3.js
License: BSD
Currently only being served by a CDN, not copied into the source
tree.

Change-Id: Ib99ec9011da489fc42799c3610612a8c3c8e5c2b
2016-03-13 19:40:52 +05:30
Pranav Kant
f8a21a783e loleaflet: 'vex'ify
Change-Id: I016817fb5a2429d572e789f2fe5d2f25a9c3c883
2016-03-08 15:12:19 +05:30
Pranav Kant
5cc204ba71 loleaflet: Add support to kill children
Additionally, move jquery <script> tags up because we need jquery
to add context menu to table rows as soon as page is opened
(socket is opened, in this case).

Change-Id: Ic6e28486fb96f119e7d41168fc0039265f15a087
2016-03-08 15:12:12 +05:30
Pranav Kant
7fd206e61e loleaflet: Add jquery to assets/
If CDN doesn't respond, load jquery from dist/

Change-Id: I8073735996d574f652b757d899c191bcefe03a7c
2016-03-08 15:12:06 +05:30
Pranav Kant
cd58f2a491 loleaflet: Better design for Admin console JS files
Lets have a new websocket class for each websocket type we want
in admin console inheriting from single abstract base class.

This, hopefully, would provide us with extensibility and ease of
managing files in future. Right now, there is only one class with
very less complexity, hence all the code is in one file.
As the complexity increases, we would need to separate all these
classes in different files, concat and compress them before moving
to dist/

Also rename dashboard.html to admin.html

Change-Id: I34b9b2817fe4a0e6ee2913c017d2694a17ab978c
Reviewed-on: https://gerrit.libreoffice.org/22904
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-03-07 10:56:59 +00:00
Pranav Kant
10ba772006 loleaflet: Basic template for Admin console
Work based on bootstrap: http://getbootstrap.com/
License: MIT

Change-Id: I6a114e8dd688339c809ff27d97d0065647700971
Reviewed-on: https://gerrit.libreoffice.org/22824
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-03-04 13:28:01 +00:00
Miklos Vajna
33d1e1b888 loleaflet: add comment on how to test transparent tiles 2016-03-01 10:48:29 +01:00
Jan Holesovsky
70a60dbadc loleaflet: Move the contextMenu to dist/. 2016-03-01 10:44:20 +01:00
Jan Holesovsky
0b2bf15ddd loleaflet: Move the scrollbar to dist/. 2016-03-01 10:44:20 +01:00
Ashod Nakashian
d8df19d064 loolwsd: Authentication and Authorization support
An abstract class to request an access token, given
an authorization grant. The class should be
specialized for each authentication/authorization
type we support.

Currently it's not enabled in the code as it's
an early stage in developing an general API.

Change-Id: I4f2efd376d575640bd3e17c7257994020b11bbe8
Reviewed-on: https://gerrit.libreoffice.org/22512
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-02-19 21:44:55 +00:00
Pranav Kant
816a43efb6 loleaflet: Added style translations
Translation of styles for writer, impress and calc
in all languages taken from LibreOffice translation submodule.

Change-Id: Id533463f63523cade53435d66ff85a90fc15736b
Reviewed-on: https://gerrit.libreoffice.org/22353
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-02-17 08:32:14 +00:00
Pranav Kant
78dfb5f3eb loleaflet: Allow adding/removing/renaming spreadsheets
This uses context menus using a jquery plugin:
Project: https://github.com/swisnl/jQuery-contextMenu
License: MIT

Change-Id: Ibab544555ace25e4f7816392eb048349f0c4c1e1
Reviewed-on: https://gerrit.libreoffice.org/22279
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-02-15 08:07:51 +00:00
Jan Holesovsky
09e69b17a9 loleaflet: Move the spreadsheet headers / footers css to spreadsheet.css 2016-01-20 12:51:41 +01:00
Jan Holesovsky
95bc0d4ebb loleaflet: Fire 'hyperlinkclicked' when the user clicks hyperlink in the doc. 2016-01-14 22:32:18 +01:00
Miklos Vajna
20488cce86 loleaflet: document border shadow config option 2016-01-08 11:52:33 +01:00
Jan Holesovsky
558e08af58 loleaflet: Introduce a 'webserver' option for the http access to loolwsd.
When proxying, the websocket may be hidden behind another URL, so this allows
an explicit setting.
2016-01-07 12:36:16 +01:00
Ozcan Esen
e78d65c199 loleaflet: add presentation controls
Change-Id: Ied2c8d0700d95ad628ad9634b1736839c90bd313
2015-12-22 14:58:18 +02:00
Mihai Varga
f789928419 loleaflet: specify the toolbar container + don't add empty controls 2015-12-16 19:57:55 +02:00
Mihai Varga
84347b2b2e loleaflet: remove edit/readOnly map init options, add permission
And permission can be 'view', 'edit' or 'readonly'
2015-12-16 18:47:12 +02:00
Mihai Varga
d9d201e74e loleaflet: individual css files for our additions to leaflet 2015-12-15 15:41:15 +02:00
Mihai Varga
35a505d35e loleaflet: allow specifing the document container as a map option 2015-12-11 14:47:46 +02:00
Mihai Varga
7f36d5be8a loleaflet: refactor the row column header
Now it works as a detachable control
2015-12-11 14:47:46 +02:00
Mihai Varga
3b2ee2c0ac don't initialize the tabs control in calc layer 2015-12-11 14:47:45 +02:00
Miklos Vajna
084e470257 loleaflet: send rendering options on load 2015-11-18 18:13:02 +01:00
Mihai Varga
c1efc7c012 Formula bar for calc 2015-11-12 16:55:56 +02:00
Henry Castro
a01d56ed11 loleaflet: move control tabs creation
Create control tabs if and only if spreadsheet document.
2015-11-08 13:22:58 -04:00
Mihai Varga
f03459611a loleaflet: file insert control 2015-10-22 18:40:43 +03:00
Mihai Varga
602e535bb2 loleaflet: fixed the slides preview 2015-10-13 13:41:08 +03:00
Mihai Varga
aeed62cd6b loleaflet: have a 2 layer toolbar 2015-10-13 13:27:45 +03:00
Mihai Varga
87fae7f854 loleaflet: fonts control 2015-09-10 11:26:47 +03:00
Mihai Varga
abe296c0b9 loleaflet: buttons for enabiling editing / selection mode
Use those instead of the checkboxes to save some space in the toolbar
2015-09-09 19:36:11 +03:00
Mihai Varga
bb3f3c758a loleaflet: moved the socket init/communication to core/Socket.js
The socket is now available through the L.Socket object which now also
handles the initial connection and reconnection to the server.
The document (tile layer) is now added automatically in the map
initialization.
2015-09-01 17:53:44 +03:00
Mihai Varga
e46766de19 loleaflet: styles control 2015-08-19 11:48:49 +03:00
Mihai Varga
dc56c97c9e loleaflet: separate parts preview and tabs from the next/prev buttons 2015-08-17 10:41:01 +03:00
Mihai Varga
1379326bcf loleaflet: on error fire 'error' events
Those events are now handled by a removable control
2015-08-06 17:41:56 +03:00
Mihai Varga
35a1ac1d86 loleaflet: rename the global map variable to avoid referencing it
To avoid mistakes like writing 'map.fire' instead of 'this._map.fire'
2015-08-06 16:53:43 +03:00
Jan Holesovsky
527821597f Make the timestamps work also for non-file:// URLs. 2015-08-04 20:39:33 +02:00
Mihai Varga
52baf44298 loleaflet: only send the timestamp when provided 2015-08-04 13:37:18 +03:00
Mihai Varga
f3d5b7c09c loleaflet: UI tweaks 2015-07-29 17:02:32 +03:00
Mihai Varga
53f51a8650 loleaflet: dynamically create the parts preview and tabs divs 2015-07-24 18:13:58 +03:00
Mihai Varga
9b097f376d loleaflet: add the scrollbars as a control to be easily removed 2015-07-24 16:04:38 +03:00
Mihai Varga
75155481ac loleaflet: dynamically create the clipboard div 2015-07-23 17:17:56 +03:00
Mihai Varga
c335bda364 loleaflet: use vex dialog alert 2015-07-16 12:51:07 +03:00
Mihai Varga
6a68d35502 loleaflet: added vex dialog release 2.3.2
Github page: https://github.com/HubSpot/vex
MIT license: https://github.com/HubSpot/vex/blob/master/LICENSE
2015-07-16 12:51:07 +03:00
Mihai Varga
70ff917752 loleaflet: spreadsheet tabs html/css 2015-07-15 15:11:39 +03:00
Mihai Varga
9eedcb9dbe loleaflet: tiles preview container 2015-07-14 18:52:38 +03:00
Mihai Varga
16e3d615fd loleaflet: preview container 2015-07-14 11:06:45 +03:00