Commit graph

28 commits

Author SHA1 Message Date
Szymon Kłos
a3c5c71107 RTL: Serve html with correct RTL settings
In case of RTL users we want to switch UI to that mode
early so we don't see flipping in the browser.
Setup correct setting at the serving html step.
Using that approach we don't need to extend LOK API.

We detect that using "lang" parameter passed in the request.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iaa2962b01f218cae68a6dfd168bff4dbdae94c8a
2022-01-11 21:40:54 +03:00
Szymon Kłos
f3d2aa4be0 Use correct formatting for string variables
- when reading from config use correct type so SyntaxException
  is thrown when we type non-number into uint field
- handle SyntaxException and send 500 so user will get response
  (previously we left request without response until timeout)
- log about incorrect value in the config
- simplify repeated bool -> string conversion after config read

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1c50de263ffdb1d97eb9381754bc7cf3bd05dbfa
2021-12-11 21:58:34 +01:00
Andras Timar
0429f249e9 Fix logical error wrt. theming
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icd79455ce09727d364d378da6b529fb03c50a38a
2021-12-03 13:57:42 +01:00
Pranam Lashkari
0ccc0e7135 theme: make sure richdocument theme paths are correctly evaluated
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I65043c11909eb15ffbed89478ee1ff644a17deb0
2021-12-01 15:26:41 +01:00
Pedro Pinto Silva
63771b0fcd About dialog: label should not be a main parent elm
Instead of using server label in one row and then
the content itself in another row, just use them both in the same
sentence

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9a2c7af8d4fccd9837370e5ca62842fb845a9307
2021-12-01 15:26:41 +01:00
Pedro Pinto Silva
a0e350dcea About dialog: add spacer
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I58984c64fcc05ff35a0f16584413a5a631e0fffc
2021-12-01 15:26:41 +01:00
Tor Lillqvist
0aca0e0351 Use the branding.js also in the mobile apps
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ia1c5c4fca64762787240398f38de14d5d973ba77
2021-12-01 15:26:41 +01:00
Pedro Pinto Silva
932229a5f1 Welcome dialog: new layout
- Add slider
	- Less content and easier to scan/read
- More clear call to actions
	- But less CAT per screen / slide

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5faf9ac5ef3bfa57f19d1b9f5f2bdcee4c91ecb7
2021-11-24 20:09:49 +01:00
Andras Timar
417dd2e7ca About box: bring back the coolwsd-id and make version labels localizable
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I555e94c4c6a14c08978079beb109854952d5dadc
2021-11-23 21:57:07 +01:00
Luka Trovic
f9e81b187f add avatar list to the top right of the header
Signed-off-by: Luka Trovic <luka@nextcloud.com>
Change-Id: I07bd9271e833c4839d76c6ea73866b2b984d5e14
2021-11-19 19:37:09 +01:00
Julius Härtl
40c8152ee4 browser: Move menubar to a flex-based layout
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: I80fecf7c08b6cc0360fb606bbb7ba3f0171cf52e
2021-11-19 19:37:09 +01:00
Andras Timar
f07ff8c7e0 rename: remaining lool->cool changes
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib7d4e804bebe52dead8d53b0e0bbaed0f08bf3d0
2021-11-18 14:14:11 +01:00
Gökay ŞATIR
f83895d4a6 Impress: Set aria-labelledby attribute for "selectbackground" element.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Ia338ac8dce20cb247a5dc4a87eb292e1a51dcf34
2021-11-18 15:20:12 +03:00
Gökay ŞATIR
ceda5a959b loleaflet.m4: Remove user-scalable and add aria-labelledby.
user-scalable has probably no affect.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Id390c354d22253a8b4282cac41f81b701a383e69
2021-11-18 15:20:12 +03:00
Julius Härtl
111856f289 Extract file_path from debug.html and pass other query parameters
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: I48d22e08f1f312033d49d315489f2404e48e4dd7
2021-11-17 17:46:22 +01:00
Tor Lillqvist
e1ebe87645 s/lool/cool/ here, too
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I6da26b85d7b22fed498269a978762e8b9b5183ae
2021-11-17 12:57:16 +02:00
Henry Castro
8d96481ac8 misc: config: rename 'lool' -> 'cool'
Change-Id: Ib3708c71a8d2d1e4f5343c202f9cef57c76c15e3
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-17 09:17:19 +01:00
Tor Lillqvist
93c1864dd9 For some reson we need more vertical space for the logo in the iOS app
Probably because we don't show the os-info? So use an empty paragraph
instead. Sad that the space for the logo doesn't expand automatically
to make space for it.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I429df1eee32fd454409731612b48f422529cece0
2021-11-16 23:30:57 +02:00
Henry Castro
4784ca2afe browser: rename 'loleafletframe' -> 'coolframe'
in html/debug.html

Change-Id: I7e14bf9deb140090fbb39c8facfaf9360e5a1a7d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-15 12:21:59 +01:00
Pedro Pinto Silva
ba9feca725 About Dialog: Increase structure flexibility
- Allow for dynamic resizing (flex box)
- Set sub elements with id so we can use less background images
in the main parent element and use it directly in its own element
- Also make integrator logo optional and easy to switch on/off via
flex-grow: 1 | 0 respectively

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I837b26d77e0bfa722c6ff3d4a247a36ef8944797
2021-11-12 09:25:28 +01:00
Andras Timar
e1c1946afb more descriptive name of a config setting for debugging: browser_logging
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I175e5256fcae42477cb2c84fc2b4048aca40bed7
2021-11-11 13:26:37 +01:00
Jan Holesovsky
efb1039f53 debug.html: Should point to cool.html too
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: Ic164d7003a508f8d3113311b115e241aa7f1225d
2021-11-10 17:18:56 +01:00
Henry Castro
4f08f0fce3 browser: move location debug.html
after rebase

Change-Id: I95f0bb00e14030e7728d8f53ea6afa1fcab70e54
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
8a4b111e8f rename var LOLEAFLET_LOGGING to
COOL_LOGGING

Change-Id: I155a829b3ad947e03363e5020aa71a104aaa8c00
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
f0b4cd9ef4 browser: rename makefile vars
Change-Id: I883e23d2df6b273db6ba3462d6fc3da77567a976
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
fa69e69306 browser: html: update more files
loleaflet -> browser

Change-Id: I10451676d0686a2c62274a111d66c29ff9589e56
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
7f4433c8be browser: html: update cool.html.m4
rename loleaflet -> browser

Change-Id: Ica87c8edda67f61fa0fde67b6557974499b9f468
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
e5c1d0e637 initial rename loleaflet -> browser
Change-Id: Ief7edfe7e3ff3a0a1ec24b4dc106bdeee5d0f8ff
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00