Commit graph

7031 commits

Author SHA1 Message Date
Jan Holesovsky
8928cb0d89 ServiceRoot: Admin console localization.
Change-Id: I6f9a19df8f15a00a816fbb904f23d3911d03b3ed
2018-09-08 00:12:20 +02:00
Jan Holesovsky
c5259eb7b6 ServiceRoot: Add the serviceRoot to various html and js files.
Change-Id: Ibd9093afa3d1f014c70328446ee42189dd0c2117
2018-09-08 00:12:20 +02:00
Jan Holesovsky
9d07230f8a ServiceRoot: Allow prefixing all the URI paths with a given prefix.
For instances that has to run in a deeper path like
https://server/something/blah/loleaflet/HASH/loleaflet.html.

Change-Id: Idacdaf9087d682fd527c3af2ea45d6b51a33908e
2018-09-08 00:12:15 +02:00
Tor Lillqvist
49da3c03a6 Move a few lines of code into the else branch they are relevant for
Change-Id: If0ce5236f1cd0daae6b213ed19d57820d25206e0
2018-09-07 17:37:54 +03:00
Tor Lillqvist
fb7cc57b0f Work in Progress: Check window.ThisIsTheiOSApp and behave accordingly
First steps to modify behaviour in the app case. No query parameters
or WebSocket messages in that case.

Change-Id: I170d46830bb940c5164af3f62b873672373d8f17
2018-09-07 17:37:54 +03:00
Tor Lillqvist
e713d8c323 No l10n in the iOS app for now 2018-09-07 16:43:39 +03:00
Jan Holesovsky
2a2281692c On desktop, focus immediately on startup to get the caret.
Change-Id: Ie33805341740e38bef657fbd7677ef7d0c14cee3
Reviewed-on: https://gerrit.libreoffice.org/60151
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-09-07 15:18:27 +02:00
Andras Timar
0ed8e569e2 loleaflet: don't use timeago, because it's hard to localize, use localized timestamps instead
Change-Id: Iae5cab6fe7f9b92f9098b66be48278c4fb293002
Reviewed-on: https://gerrit.libreoffice.org/60088
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-09-06 15:33:30 +02:00
Andras Timar
392e22e9df loleaflet: better to use short day and short month, long versions don't always fit in the box
Change-Id: I114d67aeca3797dde9eff854ea5b46676e487c08
2018-09-06 11:37:41 +02:00
Andras Timar
a82c2f4401 loleaflet: localize annotation/comment date
Change-Id: If29a3a84bc5a3aab31bf4f259345845cd9004467
Reviewed-on: https://gerrit.libreoffice.org/60076
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-09-06 10:44:47 +02:00
Tamás Zolnai
4b5bc1f202 Code deduplication and comment
Change-Id: I9deb8771b9ecf338fbafaacc41b0ad934ed287fd
2018-09-05 14:31:04 +02:00
Tamás Zolnai
af0a14f034 Reduce code deduplication
Change-Id: I5ed788d37ff8096557423095d3a7751f6d29e91c
2018-09-05 13:40:34 +02:00
Tamás Zolnai
8af096eb63 Reset client visible area members by connection lost / reloading
Change-Id: I28eb32d7c667a1a2b71de4bfcb348f5fab020123
2018-09-05 13:20:56 +02:00
Tor Lillqvist
997503a8d1 Make this file compile for iOS
Again, note that I don't claim this file (or the code-base as such)
would make much sense for iOS as such at the moment. I just want it to
compile for now. Baby steps etc. (And there is no public Xcode project
to compile it even partially.)

Change-Id: I1321d61e9e911c7d97c7309b78aab46d9cecec29
2018-09-04 12:24:48 +03:00
Tor Lillqvist
496bf321a7 Make this file compile for iOS 2018-09-04 12:17:46 +03:00
Tor Lillqvist
10c302f047 Make std::chrono usage more portable
Add a std::chrono::time_point_cast to get it to compile against libc++
(for iOS).
2018-09-04 12:12:35 +03:00
Tor Lillqvist
0e9f5eba96 Make this file compile for iOS
Note that I don't claim this file would make much sense for iOS as
such at the moment. I just want it to compile for now. This holds for
all my other recent commits with the same 'Make this file compile for
iOS' commit message.
2018-09-04 12:04:07 +03:00
Tamás Zolnai
1e0b4928ad Remove this printing line used only for debugging
Change-Id: I482adcac61cf2fa4bec4fb02feec0e23370a3e45
2018-09-03 16:54:12 +02:00
Tamás Zolnai
14537846a8 Handle unset client visible area case while calculating tiles-on-fly limit
Change-Id: I25ea6f1efdc8115304d5449cfccdbb5c0c15fb1f
2018-09-03 16:35:00 +02:00
Tor Lillqvist
1ae4a32067 Factor out loleaflet/dist construction for iOS app building
The idea is that on a Linux box you have a tree of online that you
configure with --enable-iosapp. Then running 'make' there will only
create the stuff in loleaflet/dist. That loleaflet/dist can then be
copied to the Mac where you build the iOS app.

(To me, this approach seemed for now simpler than to get all the
PKG_CONFIG etc stuff working that running configure normally requires,
and run all the node, npm, and associated crack, on a Mac.)

Change-Id: Id2e495d0521922d0666fdab5fdcb5fcd460136f1
2018-09-03 17:10:19 +03:00
Tamás Zolnai
8085b112dc Add some test for the new tile rendering code
Change-Id: I92e925740e67a62cd69e8c8135484c10d74dabc8
2018-08-30 18:43:43 +02:00
Tamás Zolnai
dce6c18fb4 Calculate tiles-on-fly limit a bit more precisely
Change-Id: Id012a83d6ccd226d1b66e3cd48a9caeafd849fc5
2018-08-30 18:42:55 +02:00
Tamás Zolnai
ab7943edd6 Make tilerendering working again after connection lost 2018-08-29 23:34:05 +02:00
Tor Lillqvist
d07f686b28 Make this file compile for iOS 2018-08-29 20:56:59 +03:00
Tor Lillqvist
39072dbae5 Make this file compile for iOS 2018-08-29 20:41:16 +03:00
Tor Lillqvist
7d850bfa6e Make this file compile for iOS
Change-Id: I1d82fed408818a6945cbf2b7743ffcdbe67f6079
2018-08-29 20:41:07 +03:00
Tor Lillqvist
d3f0179c96 Make this file compile for iOS 2018-08-29 20:39:26 +03:00
Tor Lillqvist
8209d6cd0e Make this file compile for iOS 2018-08-29 20:38:40 +03:00
Tor Lillqvist
3131dc9d10 Add manually created config.h for iOS 2018-08-29 20:34:34 +03:00
Tor Lillqvist
d7dea2ea51 Need to include <string> here 2018-08-29 19:57:58 +03:00
Tor Lillqvist
c184270934 Bin some unneeded #includes
Change-Id: I5957417b5f81cb373299f3386d509e475bed2b6e
2018-08-29 18:44:35 +03:00
Tor Lillqvist
57326ae27c Third parameter to prefix() is a bool
Passing syscall(SYS_gettid) as a bool is equivalent to passing true,
as far as I understand.

Change-Id: I31bb15000a9e6c95b657d58bc78df4f3da0fe687
2018-08-29 18:36:16 +03:00
Miklos Vajna
9a4626ae0d test: no need to copy testname 2018-08-27 09:10:10 +02:00
Henry Castro
c3db4078cb loleaflet: mobile: add control to handle events cut/copy/paste
Change-Id: I8f500b17d9479a846afd59c42775e11d3f298248
2018-08-26 14:30:31 -04:00
Henry Castro
62c5c2ff20 loleaflet: remove unused corner control
Change-Id: Iea7003a6542d704cdd8ec54e8e5f6b8fb3b275ad
2018-08-26 14:28:47 -04:00
Henry Castro
4d5fa8f833 loleaflet: mobile: disable scroll bars
Change-Id: I82b3872b7354717937e9adc4c8ae5e8d582834ea
2018-08-26 14:26:10 -04:00
Henry Castro
6d2ba49f9e loleaflet: mobile: enable context menu
Change-Id: If6d24d05cc59274b49059b9e05f91dcc0f6cdc6b
2018-08-26 14:23:21 -04:00
Henry Castro
ccb20d551e loleaflet: mobile: remove more invalid focus
Change-Id: I10dd64d388dcf640ee2c2a7744408b13834ef044
2018-08-26 14:20:00 -04:00
Henry Castro
a6d505ad45 loleaflet: encapsulate activeElement
Change-Id: I21326c075c7a40b96ac946daaf70d488e0d633f9
2018-08-26 14:17:51 -04:00
Henry Castro
66f2be060a loleaflet: fix npm-shrinkwrap.json
Change-Id: I9e0d792bbe91c175f39a3bbd85dc530f616d0eaa
2018-08-26 14:14:45 -04:00
Tamás Zolnai
9473908d45 loleaflet: Request invalid tiles too by view change
Change-Id: I43c65ce025d3b18bd664d2ad16107cf828bab300
2018-08-26 06:52:21 +02:00
Tamás Zolnai
1b01af3605 First forward invalidation to client and request tiles after 2018-08-26 06:49:34 +02:00
Tamás Zolnai
185b933353 Go back using list for tilesOnFly
It can handle duplicates which we need to have.

Change-Id: Ia4cd813dd173bc538dd27953c4886d460b5b1c49
2018-08-23 13:44:39 +02:00
Tamás Zolnai
3bd7c6b508 Fix previous commit
Change-Id: I7d3bce0132d124e52f7885c8cb3c26acc6f7b41d
2018-08-23 13:04:48 +02:00
Tamás Zolnai
759d1fe722 Drop too old tileID's from tiles-on-fly list
So we can avoid that tile sending stop working because server is
waiting for tileprocessed messages which will not arrive.

Change-Id: I545346c50d49340999608aadac32b5190ede43c5
2018-08-23 12:47:52 +02:00
Martin Srebotnjak
ed9cafa0eb Updated Slovenian translation
Change-Id: Ic9f9d07d16d02903871e0d184cfc135f2aebe54c
2018-08-23 11:39:41 +02:00
Andras Timar
148f7deaf8 loleaflet: updated UI pot file
Change-Id: Ic330e0a6996055956ebcd293950723ed1668b653
2018-08-23 10:05:32 +02:00
Andras Timar
948e2fa44a leaflet: enable l10n of IE11 connection limit message
Change-Id: I4799c448fd7c843a5cae5eef2eac0bb096f1395f
(cherry picked from commit 259db2527721caa4df8d6084e902136493e4e7dc)
2018-08-23 10:01:27 +02:00
Ashod Nakashian
d42fbcbe91 leaflet: update IE11 connection limit message
Change-Id: I7299867873fb00cf2a500f17a559106f52c8ba6f
Reviewed-on: https://gerrit.libreoffice.org/57709
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 6ee2f90d4a448717bf73c4e4e4186b74b3ce6558)
2018-08-23 10:01:20 +02:00
Ashod Nakashian
b95bf8dc66 leaflet: update IE11 connection limit message
Change-Id: I7299867873fb00cf2a500f17a559106f52c8ba6f
Reviewed-on: https://gerrit.libreoffice.org/57709
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit e17f6b9e7aabf66db43874a7852fa5d23a0b9100)
2018-08-23 10:01:13 +02:00