Commit graph

19071 commits

Author SHA1 Message Date
Szymon Kłos
ed33eb4b81 notebookbar: repair icon should be big when not in 2 rows
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibde05d8f104f25db048b8bb7ba36c29fc4ef887c
2022-10-18 16:25:47 +02:00
Jan Holesovsky
7f96d9276c Implement HideRepairOption in CheckFileInfo
When present and equal to 'true', the 'Repair' button and/or menu entry
is hidden in the UI.

Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: If8075be479551e0d1a5fa03014aa5e4412578c31
2022-10-18 13:02:11 +02:00
Pedro Pinto Silva
765ea170df Disabled menu items are not clickable
Change cursor so to make that clear

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia448e639d98186c3e5eb5ef8ccc9236031ba3774
2022-10-18 12:49:08 +02:00
Pedro Pinto Silva
fb26e95624 Admin settings: do not use duplicate ids
Before this commit we were using a-settings-tablet to try to
target the side menu but it seems we are already using that id
for the header left "Settings" element

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic5a1fa16ef823c935c09307d00fd6848643f0c4c
2022-10-18 09:14:13 +02:00
Pedro Pinto Silva
fd67d683e6 Admin setting: Make shutdown button easier to find
Before this the shutdown button was at the bottom difficult to
find. It also was a but confusing, at first sight it look like
it was a red button that clean or erases the settings options
(since it was a red button at the bottom of option form)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7c05b261b9d164f8fa1194eab5314abd87e9320d
2022-10-18 09:14:13 +02:00
Pedro Pinto Silva
6fd84abbd3 Admin settings: Add tabs, move version to its own place
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I54d4c2fefe4cc4bca534733387e6127020834d09
2022-10-18 09:14:13 +02:00
Pedro Pinto Silva
e6e065a26d Fix missing tab on Admin settings page
Before this commit it was only visible on mobile

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ifc9737d2bcd0014aa7b7d0d05dc0ec356aaf220b
2022-10-18 09:14:13 +02:00
Pedro Pinto Silva
5a7ff0232d Allow top bar to be scroll-able when in tabbed view
Before this commit, some actions were unreachable on tablets,
small screen factor laptops. Basically  when the web browser window
is smaller then the top bar's content.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2e93540fa7b7d7bcf1a9f7e9f6697322528562f7
2022-10-18 09:12:27 +02:00
Aron Budea
0c0776e887 browser: Paste progress bar has double precision
So round the value in the progress bar to integer.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I34058b2b8e04714eb7da60d8274660b06e583702
2022-10-18 01:14:51 +02:00
Aron Budea
3df0b1126a config: HAVE_PPOLL should be 0 by default instead of undefined
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I5ffbe723341fc5a2e4363aaa6abe11e33e262ffa
2022-10-14 13:36:19 +02:00
Tushar
59b564cd80 Replace magic numbers with keycode constants
There are directly provided numbers for key codes in some places.
We can use already defined constant variables.
This makes code more readable and obvious.
Fixes issue #4929 .

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: Iccb2e4e89381a78337a3123543d01b00f9f24e6f

Made all the required changes

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: Ifea5cf1a8bf73fc91a8b541104d23b5e5ec46981

changed keyCodes to keyCode

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I40be65fa5c567ee2f722d78f6c226444546cb207

changed keyCode to this.keyCodes

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I257a55fbd6a64f4e83f04d22892acbc53bca8aae

solved duplicate keys issue

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I5de1e893996ffb626c055295bbc87a8f76cce624

changed return to enter in keyCodes dictionary

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I54c44915c0ebd5b19f82bc699010708b411f3622

line 343 had errors, resolved it

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I29e1556ba9e31fa74bfdb5d84c1ad06fbc39e396

duplicate subtract error, resolved it

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: Ic2b301f28cc9a0ed82df0fee3b215cc77530c86d

line 698, changed num5 to num5[0]

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: Id9aed56375e9d42911ec40267f3662bc783d86be

resolved conflicts related to keymappings

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I8ddacf568eb560d2992b662c96a6a32825726700

 Made capital letters and few other changes

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I477bf4d9b2fb469d7173937ca39b3a7e85f4e118

 Fixed MAC value not used

Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I654854f224ccfef0b5a477c184fa5a797c6a4795

 Fixed left and right window key for MAC
Signed-off-by: Tushar <tusharbarman123@gmail.com>
Change-Id: I1d3631099454c4846352fd475307f03f33f2038a
2022-10-14 11:09:46 +02:00
Dennis Francis
5d0dbe8b90 fix for autofilter test-case
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5e631495e0fd08e94249f22d3ed5e9f709537405
2022-10-14 11:55:39 +03:00
Dennis Francis
08f4872e90 remember scroll position on switching tabs
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7e540f08d2d493e449a41c07fe054207bb79f4ac
2022-10-14 11:55:39 +03:00
Dennis Francis
7b534c91cf duplicate sheet-geometry for same sheet...
triggers replay of other messages that disrupt the view restore during
sheet switch.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I76619ed78c78d7df6578fe9de36549e7f3f403f5
2022-10-14 11:55:39 +03:00
Dennis Francis
0939848915 cellCursorXY is expected to be a L.Point elsewhere
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I816631db107adbb4d955d094b81ecba5c8930002
2022-10-14 11:55:39 +03:00
Gülşah Köse
38abc5ca91 Add percentage sign to cell automatically.
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I422f63c6d3963bdf125fc00e7dafc4428883c7ce
2022-10-14 10:18:31 +02:00
Tor Lillqvist
bded36d222 Make 'Missing fonts' translatable
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ia54c53b98f0858533bdec6a61c9b26cbe9422bee
2022-10-13 17:02:08 +03:00
Tor Lillqvist
0a0f309228 Add alternative ways to handle "missing fonts": log, report, or ignore
The default is to log to the coolwsd log file.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I894f8c4b19ee96f7323512e63c8c66372d8516d9
2022-10-13 17:02:08 +03:00
Tor Lillqvist
8bd276976e Downloaded fonts don't need to be visible to Kit processes any longer
After recent changes in core, it is only the ForKit process that opens
such files.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I69ce1c4caf229b34e42799c525a1f1461a1841e0
2022-10-13 17:02:08 +03:00
Tor Lillqvist
48eaa195b7 Handle the callback for missing fonts properly
For now, just display it using an infobar. UI experts, feel free to
change it to something more appropriate.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I0b6e592a51441299cc08d0e42ba3b5c5087b30db
2022-10-13 17:02:08 +03:00
Andras Timar
1cddb21b94 Display build config (configure options) on admin console
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iac66ea99d23416c494b04ff92abc0bfeb646e5be
2022-10-13 11:57:17 +02:00
Rash419
0fdab6e99e wsd: added allow key to locked_hosts section of json to
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
2022-10-12 10:59:19 +02:00
Rash419
fa70614464 wsd: added additional safety checks in fetch methods of remote config poll
updated the log messages

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic9caaed6111adeee6b05e3240afcbef1e919285d
2022-10-12 10:59:19 +02:00
Rash419
4544428aeb wsd: removed fetchWopiHostPatterns
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
2022-10-12 10:59:19 +02:00
Michael Meeks
9e9f7007f3 perf-test: disable SSL for now, and print the right url.
Seemingly rejectUnauthorized doesn't make nodejs happy either
for unknown reasons.

Change-Id: I99299489ba6af98c4088ee7b95c4d55d1291dfc6
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-10-12 07:53:46 +02:00
Rash419
6cc2dc2c98 overriding checkfileinfo using hidden input field
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
2022-10-11 11:34:29 +02:00
Pedro Pinto Silva
52f0c3dd0d Fix multiple line list within feature_lock dialog
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
2022-10-11 11:23:42 +02:00
Pranam Lashkari
901e7ca29e fixed read only feature locking popup not working
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id667f4307b30eb38b0ebe0ce4ff6ee71b62020eb
2022-10-11 03:54:34 +05:30
Rash419
b1f3cdbde0 browser: fix: using IME input candidates cannot be selected correctly
don't empty the textArea when typing through IME

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7fac8ddfcdf5eeb3f03fe79bdf538fb52d311cce
2022-10-10 09:52:55 +02:00
Andras Timar
cb51998535 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id6f89f401e21a94716665d8eaef5fbfaf108c500
2022-10-07 17:10:19 +02:00
Andras Timar
f66871cf18 Enable l10n of browser/src/map/handler/Map.Feedback.js
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iceebef11d522be1a964be35dbd6484ed44b699d4
2022-10-07 17:08:00 +02:00
Besnik Bleta
d27f23b3a5 Translated using Weblate (Albanian)
Currently translated at 7.4% (34 of 459 strings)

Translated using Weblate (Albanian)

Currently translated at 14.6% (67 of 457 strings)

Translated using Weblate (Albanian)

Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sq/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I455691b982eedd8c88685d788e869d83d2bf05d6
2022-10-07 17:05:55 +02:00
Nathan
cf3e2b2dda Translated using Weblate (French)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Nathan <bonnemainsnathan@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I26bfc5404b02528567a3edcb3c15f0630753d2f6
2022-10-07 17:05:54 +02:00
HerMin
8f2215706a Translated using Weblate (Korean)
Currently translated at 64.0% (294 of 459 strings)

Co-authored-by: HerMin <jetem@me.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ko/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib11981e72ab56e3d04f2e425ec3628a505340742
2022-10-07 17:05:54 +02:00
Gontzal Manuel Pujana Onaindia
4301a117ca Translated using Weblate (Basque)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I78831e8cfa8f9be0b66fc153c1cfa4a25c7f45ad
2022-10-07 17:05:54 +02:00
George Kitsoukakis
09061fe50a Translated using Weblate (Greek)
Currently translated at 95.4% (438 of 459 strings)

Co-authored-by: George Kitsoukakis <norhorn@gmail.com>
Co-authored-by: george kitsoukakis <norhorn@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic748ef012368e729298c2e55855c701d8c265721
2022-10-07 17:05:54 +02:00
Sveinn í Felli
8ca8c6bdda Translated using Weblate (Icelandic)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/is/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I19987c9dc42cad0ebfb15f79130110560b88fc3c
2022-10-07 17:05:54 +02:00
Yaron Shahrabani
34e2390a2a Translated using Weblate (Hebrew)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3381bdd4b9e2d9c62b902649281ac01e93b09513
2022-10-07 17:05:54 +02:00
Jan Holesovsky
4cd2bf1d91 Translated using Weblate (Czech)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Jan Holesovsky <kendy@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5c4fc0fbfb513d2da0f33fe31922a226af74e84c
2022-10-07 17:05:54 +02:00
Adolfo Jayme Barrientos
613c44666d Translated using Weblate (Asturian)
Currently translated at 52.0% (239 of 459 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (459 of 459 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0172849eeaf1fc2bc611b84e9cae1e86a133c3d5
2022-10-07 17:05:54 +02:00
Ashod Nakashian
237bb46eff wsd: simplify infobar fetching
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>
2022-10-07 11:19:20 +03:00
Gabriel Masei
3aa81e8ba1 add 'Connection: close' header to http responses.
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
2022-10-04 13:45:58 +02:00
Rash419
4aaa3f2370 js: added EditPrintArea and AddPrintArea uno commands in classic and NB
updated unocommand.js using unocommand.py

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0d972a16d5e9365af3ce31a39ceb006eb217627f
2022-09-30 13:56:50 +05:30
Szymon Kłos
21c7958549 slidesorter: use correct styles for desktop & selection more visible
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
2022-09-30 10:26:13 +02:00
Pedro Pinto Silva
498eab8da1 Add missing full stop at the end of the error message
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8916172a4c7df9002b6f8d5ac2d508ab2dc6a855
2022-09-29 10:28:18 +03:00
Pedro Pinto Silva
d4c4774a57 Improve infobar's component contrast
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
2022-09-29 10:28:18 +03:00
Pedro Pinto Silva
f133aa3ab9 Add button-primary to infobar component
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
2022-09-29 10:28:18 +03:00
Henry Castro
9a51d8ec52 browser: add util function getProduct
Change-Id: I51be33f5e64c716d22c11ddb1f969e9238c18884
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
abfbf4846d wsd: add remote buy product url
Change-Id: I97617ddf8c7a0fc923788477fb077f3baa16fe13
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
3d8cfe87fb wsd: prefix private members (RemoteJSONPoll class)
Change-Id: I19f5d01dc190d23c79a255413ad3d805b032e625
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00