Commit graph

846 commits

Author SHA1 Message Date
Pranav Kant
ee54f2abbb loleaflet: Split admin JS files into multiple
And then combine into one during build for distributing. We would
also want to minify the combined JS file but that is for later.

This come up rather early than anticipated, but good for us.

Change-Id: I74feb4955c5d47f0e9e817b410726ad219add485
2016-03-08 15:12:28 +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
943d9a517e loleaflet: Add total memory, active users, active/open docs
Change-Id: Ie92ca10d9fb892daf45c17edd58b464c9f7cc09b
Reviewed-on: https://gerrit.libreoffice.org/22990
Reviewed-by: pranavk <pranavk@collabora.com>
Tested-by: pranavk <pranavk@collabora.com>
2016-03-08 09:40:58 +00:00
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
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
1ab3caa192 loleaflet: Make SearchSpec work again
This broke after we changed 'searchAll' to 'highlightAll'.

Change-Id: I257b20a458a9ad3334b5e20fc110d0932eb63733
Reviewed-on: https://gerrit.libreoffice.org/22508
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-03-07 10:09:07 +00:00
Pranav Kant
a6f9cd430b loleaflet: Wait for 'partpagerectangles' before starting search
This is required because we want to test on which page search is
found, and we can not do it before we get results for
partpagerectangles.

Change-Id: I6f927ae27b91e62d86a8e46dc9c21ee9aa913894
Reviewed-on: https://gerrit.libreoffice.org/22507
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-03-07 10:07:52 +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
Pranav Kant
ea35385e18 loleaflet: Special handling for Impress docs on state change
State changed event from LOK for impress documents is
prefixed with the template name followed by the style name. Lets
strip the template name for the time being till we support it in
the UI.

Also LOK emits some form of internal names in state change event
which is different from the internal names supplied to us in
intial .uno:StyleApply. For consistency, convert these names to
our original form of internal names.

Change-Id: I95d3d8aa29238fc326887cdfc9b22eb4e429d1bb
Reviewed-on: https://gerrit.libreoffice.org/22814
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-03-04 13:27:16 +00:00
Pranav Kant
9d7aea26b9 loleaflet: Add programmatic -> UI names mapping to l10n framework
Since the data scraped from the LO translation module is a
mapping between the UI names (not internal ones) to different
languages, the plan is to first set the locale explicitly to
'libreoffice' so that l10n framework gives us corresponding UI
names from programmatic names, and then to use the specified locale to
translate these UI names to respective languages.

Change-Id: I64f7c9b4927e5effe328cb7b42582b45d44167d9
Reviewed-on: https://gerrit.libreoffice.org/22813
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-03-04 13:26:43 +00:00
Pranav Kant
87a3b5d3ac loleaflet: Fix JS errors
Change-Id: I9740e0a223c43449ce9f40f91b8c90250d1b7560
2016-03-04 13:17:23 +05:30
Miklos Vajna
7c319aab33 ccu#1573 loleaflet: hide row headers of hidden rows
This is the row equivalent of commit
d14fccb67f (hide column headers of hidden
columns, 2016-02-26).
2016-03-01 13:46:03 +01: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
Tor Lillqvist
70b7ee6d65 Fix typos 2016-02-29 16:46:42 +02:00
Andras Timar
d14fccb67f hide column headers of hidden columns 2016-02-26 15:31:35 +01:00
Andras Timar
2e6f401710 loleaflet: bump version after tarball 2016-02-24 14:10:18 +01:00
Andras Timar
b66a5f7987 loleaflet: bump version before tarball 2016-02-24 14:04:44 +01:00
Ozcan Esen
ded88d5e4c loleaflet: allow manually entered font sizes bccu#1354
Change-Id: I137e6f3ad9fb84de6a9179f9d4e00ca4c10e9469
Reviewed-on: https://gerrit.libreoffice.org/22605
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-02-24 12:56:36 +00:00
Faruk Uzun
02f6f0d6fa loleaflet: bccu#1456 fix spreadsheet tabs
Adds a custom navigation for spreadsheet-tabs

Change-Id: I57d9ef1ff9466c18c9edca849519bbe2af5826ab
Reviewed-on: https://gerrit.libreoffice.org/22610
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-02-23 15:56:44 +00:00
Pranav Kant
98fbc0c4a4 loleaflet: Handle password protected documents
Change-Id: Ife7923869710999de83365dc2c6be33ed42c2f3b
Reviewed-on: https://gerrit.libreoffice.org/21895
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-02-22 20:23:32 +00:00
Marco Cecchetti
05c4a034c3 loleaflet - user view does not follow cell cursor - fixed corner cases
Change-Id: If6497d46c5d4457493864fdea04c28bb917865c0
Reviewed-on: https://gerrit.libreoffice.org/22519
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 27d4b4b75aeaddac550b5c2bdf04fcde744c87fe)
Reviewed-on: https://gerrit.libreoffice.org/22518
2016-02-22 10:47:40 +00: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
Marco Cecchetti
049633a644 loleaflet - user view does not follow the cell cursor
Change-Id: I7e877847de0c2c644948b47daa0bff0e5f7da3a0
Reviewed-on: https://gerrit.libreoffice.org/22489
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2016-02-19 10:21:12 +00:00
Pranav Kant
10fcfdd210 loleaflet: Fix all ESLint errors
And we are now finally in a clean state.

Change-Id: Ifd949d925cc758a007d036e1de9df7dafd911c40
2016-02-19 01:02:55 +05:30
Pranav Kant
5332e3f48c loleaflet: Make tile benchmark test work again
This broke after we introduced 'tilecombine' message.

Change-Id: Id273a859b22cac6b50ba759241d0b36d27829700
2016-02-19 00:32:03 +05:30
Pranav Kant
cfe15bddee loleaflet: Fix incorrect function invocation
Thanks to 'jake lintspec'

Change-Id: Ie6af9e003bcdede5ff65c8aca4b6ab2827908310
2016-02-18 21:55:12 +05:30
Pranav Kant
f8b104b88c loleaflet: Silence ESLint errors
Moral - Run 'jake lint' before committing your code.

Change-Id: I401567360dfdfb16e99dafc3171ac158a90605e4
2016-02-18 21:34:46 +05:30
Andras Timar
d43cea2883 loleaflet: fix Khmer translation 2016-02-17 11:24:14 +01:00
Andras Timar
6c761c297e loleaflet: use absolute URL 2016-02-17 10:38:43 +01:00
Andras Timar
4308d2a745 loleaflet: indentation 2016-02-17 09:41:49 +01:00
Pranav Kant
f6baed14c0 loleaflet: Handle outline levels as special case, for l10n
'Outline' is localized, 'Outline x', where x = number, is not.
Lets treat outline levels as special case so that we could get
their localized form also.

Change-Id: I96d1a0d715e5859f9d0f2da2c00c06232621555b
Reviewed-on: https://gerrit.libreoffice.org/22354
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-02-17 08:33:25 +00:00
Pranav Kant
4947b8feb6 loleaflet: Change to browser language codes
The .po files imported from LO has some codes that browsers don't
recognize. Change them so that browsers recognize them.

Change-Id: Icf37812a579be171af33a62096b2326d6a66e3a4
Reviewed-on: https://gerrit.libreoffice.org/22370
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-02-17 08:32:57 +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
Andras Timar
b9856a7806 loleaflet: enable scrollHandler 2016-02-16 17:31:17 +01:00
Andras Timar
71e283ca9d loleaflet: fix a typo in reference.html 2016-02-15 19:04:23 +01:00
Andras Timar
5cdbe3e837 loleaflet: fix unclosed tags in reference.html 2016-02-15 18:58:06 +01:00
Andras Timar
dbed8b8497 loleaflet: l10n related file renaming 2016-02-15 10:41:28 +01:00
Andras Timar
30cfc3678f loleaflet: enable l10n of insert/delete slide feature 2016-02-15 10:27:33 +01:00
Andras Timar
63cc475ffc loleaflet: enable l10n of socket error messages 2016-02-15 10:06:10 +01:00
Andras Timar
691b40fedc loleaflet: enable l10n of add/remove/rename sheet tab feature 2016-02-15 09:26:01 +01: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
Andras Timar
4d59d91293 typo 2016-02-15 09:06:47 +01:00
Andras Timar
77fbb5d32d loleaflet: bump version after tarball 2016-02-11 21:55:08 +01:00
Andras Timar
6ac228401d loleaflet: bump version before tarball 2016-02-11 21:52:35 +01:00
Jan Holesovsky
f73c0980e2 loleaflet: Allow wss: protocol as a base for the image upload URL too. 2016-02-11 20:26:06 +01:00
Jan Holesovsky
9f96b1716f loleaflet: Init the handlers necessary for initializationcomplete first. 2016-02-11 11:20:45 +01:00