Commit graph

44 commits

Author SHA1 Message Date
Michael Meeks
45f29fd773 Allow debug.html to be passed a WOPISrc for easier debugging.
Change-Id: I3e618dbb9aa6363974e0759e955dfe73e8787824
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-03-26 23:27:00 +00:00
Andras Timar
1db0251dff welcome: fix translation of string with version number variable
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia8d5e89b15017c68fe18ea88b5f29dc79de2e06c
2022-03-12 19:31:34 +01:00
andreas kainz
f2aeb8e042 Use Var colors
shortcut dialog
- use var colors

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ibaa0a3166971378186aeb684ee250340c85df3ad
2022-03-10 09:06:29 +01:00
Alexandru Vlăduţu
dc0b02da4c browser: add option for grouping the download as icons
Signed-off-by: Alexandru Vlăduţu <alexandru.vladutu@1and1.ro>
Change-Id: I3c8c1964879bec8c4e31a85baefb7b442ceae29f
2022-02-24 15:22:22 +01:00
Mert Tumer
9d1b4e95ca android: fix uncaught exception documentSigningUrl
use empty string in mobile app since it is not used

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I699c348c01ad06b7e720499a615e2c9a27bbf630
2022-02-18 17:41:15 +03:00
Pedro Pinto Silva
6a4f634630 PostMessage examples: Improve form formatting
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3bc508600c1ad6531cd88bf5c4ef972d21f10fae
2022-02-18 14:34:46 +01:00
Pedro Pinto Silva
a84f6a96a7 PostMessage examples: Add Insert_Button example
fixes: #4039

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I82e8ec731efd392d720103527e1a3719c8685c63
2022-02-18 14:34:46 +01:00
Gökay Şatır
3002449b59 Set formula bar length.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I6acbba5a6ebe930935a5425a3f5c52ed99992f91
2022-02-08 11:29:04 +03:00
Mert Tumer
ad1d046803 mobile: show go back btn before docload
on ios case, there is no device back button available
so it is impossible to go back before the document load

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ifce5e4777b8dd014cbdc527fb65f0d0be21f2cd2
2022-02-07 18:18:29 +03:00
Henry Castro
bacb3f2df6 browser: catch exception from JSON.parse
Change-Id: I8d498e1b22593c66448ee2f0dead3ce3fc87ab99
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-01-26 16:46:06 +01:00
Henry Castro
18b6b0a1d8 browser: fix typo
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I1c57a11c2a02d036613f24ebadb4de207947963a
2022-01-26 16:46:06 +01:00
Pranam Lashkari
c5f2c5e174 theme: added config flag to switch between integration and cool themes
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I679328e29f2e2297491c73249632627d01a1bf42
2022-01-25 12:09:01 +05:30
Dennis Francis
4f6480ccc4 RTL: incorrect cell selection to mouse clicks...
when we set ui language to ar or any other rtl language via url.

When language is RTL, since the commit:

RTL: Serve html with correct RTL settings
a3c5c71107

The dir attribute of body will be "rtl". The div "document-container"
itself occupies full width of the viewport but one of its children div
with id="map" has to "track" the document area of the canvas
element(canvas element occupies full width). The positioning of "map"
div is done in js assuming an "ltr" case. We could change all that based
on RTL flag, but at the moment a less riskier fix is to set the dir
attribute of "document-container" unconditionally to "ltr".

This also fixes all wrong svg based marker-selections too - for instance
shape/chart selections.

Comment cell hover popups were also affected by the same issue hence
fixed by this commit as well.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5e20474d5b010976de12f7beee40a5c44df1b867
2022-01-18 15:40:36 +01:00
Tor Lillqvist
6b78b03d08 Add clarification about %FOO% and mobile apps
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I1bf6c3279e4d1d07f23973e6742de7618d4141e4
2022-01-18 16:11:47 +02:00
Szymon Kłos
b7bc9ae788 RTL: fix about dialog 2
changed structure to use ltr order for english text with version

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib4e88d59099c3b15bf8db22b4549dd1782b762b4
2022-01-13 14:42:28 +01:00
Szymon Kłos
dce0f00419 RTL: fix about dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie78a5d6e44fe1e2a8f132f070cb114813c1038a7
2022-01-13 14:42:28 +01:00
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