Commit graph

20712 commits

Author SHA1 Message Date
Szymon Kłos
82628571d8 jsdialog: position autofilter popup correctly in RTL mode
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0e06dac7a7bed611b0117eada7b23bfa33f2dfb0
2023-05-24 20:57:26 +02:00
Darshan-upadhyay1110
fcfacd5081 removed An unknown button appears on top right of a document in android
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I6c0f1d62a19ecb55228012bef48373b97991461a
2023-05-24 14:00:20 +02:00
Szymon Kłos
476db83791 jsdialog: add class to treview icons #6417
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie3a965164445a2163db3378e374b5496b8de00cd
2023-05-24 13:46:30 +02:00
Pedro Pinto Silva
262669a237 Dark mode: fix shadow color
Use dark shadow

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0f8bc58470d3c0e5842a4bd293920775da187399
2023-05-24 10:29:29 +02:00
Pedro Pinto Silva
fffa61337a Fix menubutton tooltip, pos and style
- Do not appear above color
- Re-use tooltip styles

This fixes https://github.com/CollaboraOnline/online/issues/6293

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idf67c23b2263e5eeabc70a7128087333856aa465
2023-05-24 10:29:29 +02:00
Pedro Pinto Silva
e0c752b4f8 Tooltip: increase text color contrast
Follow up from 1ffb35d18d

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I203b4af8818f282bf18c405790e016fd4a6369fe
2023-05-24 10:29:29 +02:00
Pedro Pinto Silva
71c4bb392d Fix borderless buttons on desktop
It seems the following commit
be04111173
had a typo 0px should have been 1px

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibf3b92964efd8a1a147abc853042fd70a406abaf
2023-05-24 10:29:29 +02:00
Pranam Lashkari
1f2367f563 wsd: const parameters
follow up for 25efeea0d8
missing const in modified function caused build error

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ic0f4ae39476e16a9a49904e06b44f26d2a5d4fe7
2023-05-24 15:20:17 +07:00
andreas kainz
1bfbdf8072 Sidebar calc Alignment fix button size of align icons
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I954c7885946dfd4e13261622673d1b97ef59001c
2023-05-24 09:41:47 +02:00
andreas kainz
a65de18694 Improve Dialow Window border and box-shadow
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ib9c9d83424791d2e3961fb49c276c7a2c014f208
2023-05-24 09:19:38 +02:00
Darshan-upadhyay1110
5d16564832 fix missing navigator icon path
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I3f6ee046d0dc972fb4d00a237103529eff226235
2023-05-23 16:16:00 +02:00
andreas kainz
1ffb35d18d Dark Mode: box-shadow tooltip fix
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ic8addda2167be038d7e435d424448824be73127a
2023-05-23 16:04:29 +02:00
andreas kainz
cccdf9db69 ColorScheme Adjustments of UI elements
Sidebar use toolbar color

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I3dc401e30e0b43664847f25d21ab0b6f027df372
2023-05-23 16:01:14 +02:00
Gülşah Köse
51dba6c293 Make dialog button style to specific that dialog #6275
In tabbed view when we open help or keyboard shortcts dialog
"button" style of cool-help.html overrides the button.ui-tab.notebookbar.
So all buttons (even in notebook bar) uses dialog buttons'
text-decoration: underline ans pad padding:0

Here we make the dialog's button style to specific that dialogs.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Iacaab42efa527fc5c6ada21fd007e4a352912b60
2023-05-23 08:43:51 +02:00
Michael Meeks
7548420b64 perf-test: remove socket overrides; new websocket doesn't grok imgs.
Profiling suggests this is not needed, and we should get closer to
the normal code paths to measure.

Change-Id: I433a06812f17e642c9ad9e7f8be4c0505f5174e0
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-05-22 20:21:15 +01:00
Michael Meeks
f9eda6c5d0 perf-test: type for a minute or so, with more text.
Change-Id: I90ee29ed1c69cda0c9db2d4375f7417ab2142b5e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-05-22 20:21:13 +01:00
Michael Meeks
c80641f5ef perf-test: when using trace - break, so we can debug early start.
Change-Id: Id8c64450874f71543827f1633181adfd8551096d
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-05-22 20:21:11 +01:00
Michael Meeks
29fedecd21 perf-test: disable SSL mode, with self-signed local certs it fails.
Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
    at TLSSocket.emit (node:events:526:28)
    at TLSSocket._finishInit (node:_tls_wrap:944:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)
    at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
Change-Id: I27462802a6b1cfaed683277d111a480ca474cd7e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-05-22 20:21:10 +01:00
Michael Meeks
02bfa00f50 perf-test: re-work to fix window.app changes, and include WebSocket.
Change-Id: Ib000443310cf37d8f7553fe11fc7944384a0fc2b
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-05-22 20:21:08 +01:00
Michael Meeks
f56debebb3 perf-test: expand variable substitution to the latest set of vars.
Change-Id: Id1c4ed71cb5c3911131e9edceb21a9b5d89413ad
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-05-22 20:21:05 +01:00
Ashod Nakashian
004d0c66b2 wsd: simplified initialization of WOPIFileInfo
Reduced duplication.

Change-Id: I2b97d84a0c132c02a833bfbf78957d8f9765129d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
08908a6a0e wsd: WOPIFileInfo inherits FileInfo
Change-Id: I2a40e0b6c7d260c6377b13250cd13681156b5ff1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
7af95798df wsd: cleaner modification of private members
Now StorageBase::getFileInfo() is strictly
used for reading.

Change-Id: I0d412e7ef6e502ae8b1864131b6f174e44343273
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
804bfa2e4e wsd: move PostMessageOrigin into WOPIFileInfo
This moves the logic to update the PostMessageOrigin
field in WOPIFileInfo to be done in the constructor.
And now getPostMessageOrigin() returns a const&.

Change-Id: I88936441edb58deb65d901db4baaf6311be3bdd1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
6d2f3605b3 wsd: const parameters for WOPIFileInfo ctor
Change-Id: I9a742d988f3a2817e2f56a0012df38b71a6e0d4e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
9e798e9c12 wsd: wopifileinfo -> wopiFileInfo
For consistency.

Change-Id: Ia30b4e3c95e25691bb32d5007729a22f1eb05344
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
7bc0d2ec76 wsd: exact-match JSON entries first
Normally, we do a fuzzy-match for the keys
in JSON (presumably, there has been typos
and minor differences in the spelling of
keys in the past).

However, this can be wrong if there are
two rather similar keys. In that case,
we should always prefer the exact match.
Also, the exact match is faster, since
it's a map lookup (logarithmic) rather
than a linear search with Levenshtein
distance algorithm on each entry,
which is quadratic.

Change-Id: If88d13a305a0c67cc00c3f3f22c7dc472666a1ff
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
c62e39a27d wsd: cleanup findJSONValue
Remove unused bRemove parameter.
Use Util::toLower.

Change-Id: I9991090a42231f614a5c3762e225b58ef341aac3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
68200eccff wsd: WOPIFileInfo needs not the call duration
The call duration is already logged elsewhere.
No need to pass it around and log again.

Change-Id: Icef50b9a8a48dcecc78a6b99c6311fc0d5b2a676
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
25efeea0d8 wsd: const parameters
Change-Id: Idff04bde8f67905309fffb62eaef351730c3e2e1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
155bc06e24 wsd: de-duplicate assertCorrectThread
This merges multiple implementations of
assertCorrectThread and simplifies its
usage.

Change-Id: I7be5dea62c6046fb0412d7f885fcbcc4b66e3fd9
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
3b8f297669 wsd: test: testname in UnitSession
Change-Id: I0c9585fe83c72d0601712bcbf685f716787c13eb
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
685e2fb0b8 wsd: http: return const& from const response getter
Change-Id: I5dc5282938a472148148d1dd6d009261bc09c7d6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
0aefa70347 wsd: merge StorageBase::validate with ::create
Change-Id: I55ce50301cdf9ed415d30da1fb030abc0e8dfdcb
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
6530834155 wsd: make URI validation independent of Storage creation
Change-Id: Id8213d23d04fc717683361397d511cbd8300136d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
7ce18c8a13 wsd: http: cosmetic and log
Change-Id: I984ad71601b92b8042dc7984e7339f0804c8083b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
9d07402bea killpoco: reuse URI encoding
Change-Id: If9bb48973c61ba56860aac273534fa4db67c9e6f
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
ddefe7a3bd wsd: logging
Change-Id: I0aa2345891c29bd97cd43cfcd2c5ecf0e4cfd2c4
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
47f5d86dc4 wsd: simplify uploadToStorage calls
Change-Id: I5ed3ce09dae8b6176d806d0bb5994e56c182ac8b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
9bc4b5c500 wsd: whitespace formatting
Change-Id: Id50baf8d1c539d047ba8142bfab93b445187d658
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Gülşah Köse
0f8a0762d8 Fix huge dropdown arrow of form control and missing button border
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I752691d09195e0fc6e502736a5b809fe8d92aa50
2023-05-21 15:47:10 +02:00
Szymon Kłos
aa440636a8 jsdialog: position dialogs correctly in RTL mode
test with eg. &lang=he

after position of a dialog was changed to absolute position we
had regression causing the dialogs to appear outside view in
RTL mode. this patch uses margin-inline-start instead of margin-left
what is more generic

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3e70ced1b790d4af751f34d54c880135a3af21bb
2023-05-21 15:43:12 +02:00
Andras Timar
099c70e3c8 Updated UNO command translations
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I91281dea298d30b5bc83e891fdf0380bd470c3e3
2023-05-21 12:57:51 +02:00
Andras Timar
eb203b55a6 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0d9a28ab036181ce7c8068a533b19447ebd7fa55
2023-05-21 12:52:27 +02:00
Andras Timar
41f3f2eb5e CODE release notes url for 23.05
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idebcc7742e17282820f6ce54198cd83b258627e2
2023-05-21 12:48:10 +02:00
Jörg S
a100d91a39 Translated using Weblate (German)
Currently translated at 99.5% (497 of 499 strings)

Co-authored-by: Jörg S <joerg.schwerdtfeger@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If052fb9050111efbab4a23bcbbf974f2c24f7b59
2023-05-21 12:44:59 +02:00
Martin Srebotnjak
6fb567c1bd Translated using Weblate (Slovenian)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id504eb423ecd9f19817339b7ae10964398931444
2023-05-21 12:44:59 +02:00
Roman Kirilenko
052a7d1982 Translated using Weblate (Russian)
Currently translated at 99.7% (498 of 499 strings)

Co-authored-by: Roman Kirilenko <rkirilenko@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I433c6f6f8fbe0040f75ca6ed541a4daf721bc1f8
2023-05-21 12:44:59 +02:00
Sebastiaan Veld
f6fc8a9149 Translated using Weblate (Dutch)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I89a4db0969db463ab88ebf2cf892ec86d4271ae9
2023-05-21 12:44:59 +02:00
Ihor Hordiichuk
ba5a48d48d Translated using Weblate (Ukrainian)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7aceadea190702c0daaad5a5a331a34c687c781d
2023-05-21 12:44:59 +02:00