define whether locked_host is allowed or not from json
only without the need coolwsd.xml value
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I4c20a56afae3b90c29badc1ecbaec5aa37d07cbd
fetchWopiHostPatterns was used to override old <host></host> which is deprecated and replaced
by alias_groups
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic16facffdb40eaca504c47a17024cff6ff241950
Seemingly rejectUnauthorized doesn't make nodejs happy either
for unknown reasons.
Change-Id: I99299489ba6af98c4088ee7b95c4d55d1291dfc6
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
wopi host can add following input field to their html to override checkfileinfo, right now only
DownloadAsPostMessage is supported
<input name="checkfileinfo_override" value="DownloadAsPostMessage=true" type="hidden"/>
This can be usefull when same html is used to load collabora online in both desktop browser and mobile webview
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8ff122f2824694d451724a832d992e08161fb448
Before this commit, list entries with multiple lines where not being
properly aligned.
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0ca9861289f471285ace2dc1d39104d608eb8f15
don't empty the textArea when typing through IME
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7fac8ddfcdf5eeb3f03fe79bdf538fb52d311cce
Since the request is really synchronous,
there is no benefit in firing up a thread
and doing an asynchronous request when
we will block until the result is in.
Luckily, we have a much simpler sync-
request API that avoids threads and
callbacks.
Also, avoid failure logs when no
infobar URL is provided.
Change-Id: I06a2f7fb042c8e8d5599bb06ecee5b1afa51911a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
If the connection is closed right after the response was sent
then it's wise to add 'Connection: close' header to the response
so that the client optimizes its behaviour: e.g. does not reuse
the socket for further http requests. Normally a client should
retry a request if the reuse of an old socket fails and that
should solve the problem but still this is an overhead.
Signed-off-by: Gabriel Masei <gabriel.masei@1and1.ro>
Change-Id: I29f1498610c567024def3beb1ad7014f2c15a232
Mark as important so will not be overriden by the
mobile-wizard rules.
Use primary color for selection so it will be visible...
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7688f22c4da0121999b7f7675fcab0b0f59f8c11
Reduce inconsistencies by inherit component properties such as
shadow, border and bg.
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia978b229cf4c9616d1d38ccac09644114972b39b
The primary button should inherit styles form our common used
css class
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I923ecc58f5456cba226a35b6f9e180346908febe
-jsdialog: close the popup when zoom event is fired
-use callback to handle the special key event in treelistbox
-code cleanup
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If46c840d7f751f89898ec1a54ec0a6fcb6811f7a
now you can insert a mention just by starting to type with @
integrator needs to implement UI_Mention postmessage api endpoint on which
online will send request of initial character what user is typing on the basis of
that integrator should send the list of user using Action_Mention postmessage api call
object where each object contains { username: '<username>', profile: '<username profile link> }
for example you can check framed.doc.html
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I38387cd05f1654b0bdb2b4f31cbac633eece5722
When we are in presence of a dialog with just one treeview list
please do not add border around the widget. Container takes care
of it.
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0c99f837ac6174fa60031e773c75fbfa1162762d
- Better to don't set hard width or height values via CSS
JS is already setting it initially and updating it when
zoom changes
- Add min width and min height otherwise:
- The control can become almost impossible to interact with (too
small if we zoom too far out)
- The arrow becomes unreadable
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id54f7addbd8899a3e3ca97493e1865aa36b88817
- No need to make it so dark (can be misleading, as if it was
disabled)
- Inherit border radius
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8aaf44758ddea447b2d167d80e73c3a8a8a7e022
Before this we were trying to align arrow via bg position
this in turn was leading to problem when the parent control
(drop-down marker) resizes which happens every time we change
document zoom.
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iad0479b5db462e5bbe14c8e81f8a41fc024947dc
indexOf returns position - do not sum the positions
This fixes not working cursor position change in
formulabar when we had multiple lines.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I306ab461c832bb0a48d760b84f32938e109959fd
This guarantees that the jail directory is always
created, especially in case mounting fails and
we cleanup and fallback.
Also, move the directory creation and setting
the perms into a helper, and reuse.
Change-Id: If6e9ef86afa5107638aa27050554e94c0af22b6e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
It seems that on some systems it is possible
to succeed in mounting, but fail to unmount.
This is proving very problematic and it is
best to detect unmount failures and disable
mount-binding altogether.
Change-Id: I6f708b3a1e585dcbd95cced45c668629410562d6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
- Page Style, Paste Special don't work
- Group/Ungroup Sparklines should be hidden when they aren't
relevant, let's hide completely for now
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Iae7da11719827512307eeeade10caa56e023c8f0