Commit graph

22870 commits

Author SHA1 Message Date
Software In Interlingua
4a01a28041 Added translation using Weblate (Interlingua)
Added translation using Weblate (Interlingua)

Co-authored-by: Software In Interlingua <softinterlingua@gmail.com>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I441bc6b6cda63560bf6d27b1d759e3af690a8da4
2024-01-24 22:16:14 +01:00
Ayhan Yalçınsoy
2325319a24 Translated using Weblate (Turkish)
Currently translated at 100.0% (467 of 467 strings)

Co-authored-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Co-authored-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tr/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2365cf1126492cd047057850e8746bb6dc00a199
2024-01-24 22:16:14 +01:00
Szymon Kłos
85ff10db7a calc: avoid view jump when using formula wizard
Steps to reproduce problem:
1.    open spreadsheet
2.    open function wizard (Fx icon next to the formulabar)
3.    move dialog so it is outside view partially
4.    select some function and click inside edit field for it's param
5.    click on the sheet content
Result: view jumps and moves everything up

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0555fb72a1dcf6de5e969994229e7a36b7811028
2024-01-24 16:09:30 -04:00
Rash419
fe919ac2af adminClusterOverview: reload page after rmsrv message
- previously after rmsrv the card is deleted but if the postion of the
  card is between the cards and middle card is deteled UI will look odd
- so reload the page after rmsrv event

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I111d6232a0f2b098a144ea642c19994bac71186a
2024-01-24 20:56:07 +05:30
Rash419
971254833b adminClusterOverview: fix: y-axis ticks cut off
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic63cdbd81c93f6491962cb23fa215734b644d92b
2024-01-24 20:56:07 +05:30
Miklos Vajna
59bd6b2854 cool#8023 browser, clipboard: try to use navigator.clipboard only in experimental mode
This is meant to allow getting this in for CODE, but not yet for COOL.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ie4c0f5d1154a1acc6d46efdf8d137bc4f30160c8
2024-01-24 13:24:31 +00:00
Miklos Vajna
11eff9ddcd cool#8023 browser, clipboard: try to use navigator.clipboard for paste special, too
The paste notebookbar button already tried to use
navigator.clipboard.read() in Chrome, but paste special still just told
users to go via Ctrl-V.

Additional complexity is that paste special was differentiated from
paste based on if this nagging dialog is open or not.

Fix the problem by:

- extracing the 3 places where we close the paste special dialog into a
  new _checkAndDisablePasteSpecial() method

- extending _checkAndDisablePasteSpecial() to also handle the case when
  paste special is enabled, even if no dialog is open

- extracing the navigator.clipboard.read() call into a new
  _navigatorClipboardRead() method

- and finally using _navigatorClipboardRead() in filterExecCopyPaste()

The intent is not not change behavior in any way for browsers that don't
support this API, like Firefox.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I6c373a982604c3e934ee4f4f2f76271f0e7cdf3e
2024-01-24 13:24:31 +00:00
Miklos Vajna
62aaafe7b4 cool#8023 browser, clipboard: fix navigator.clipboard for the image case
Pasting images in Chrome worked with Ctrl-V, but not when pressing the
Paste button on the toolbar.

This happened because the old code (not using navigator.clipboard) had a
special-case for images, but the new code lacked something similar.

Bridge the gap by checking for images in
_navigatorClipboardGetTypeCallback() and extracting a new
_pasteTypedBlob() from the old _onFileLoadFunc() to share code.

With this, all of own/external HTML, plain text and image should work
again when using the Paste button and the old popup is no longer shown.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I1162d21498a27b1b79455dd565175a2178d213d3
2024-01-24 13:24:31 +00:00
Miklos Vajna
b49a56f3e3 cool#8023 browser, clipboard: fix navigator.clipboard for the plain text case
Pressing the paste button for the internal HTML case worked in Chrome,
but not for plain text.

If text/html is not on the clipboard, then also try text/plain.

Images still need more work.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ibd5eb8b3a7319763bf2ea638f338c8f213ed48ac
2024-01-24 13:24:31 +00:00
Miklos Vajna
7f790d49dd cool#8023 browser, clipboard: try using navigator.clipboard before showing the paste popup
When pasting with Ctrl-V, paste worked already. When pasting with the
paste button, we just opened a popup, telling the user to do Ctrl-V
instead.

The reason for this is that we used to paste using execCommand('paste'),
which typically fails in modern browsers (reportedly not in IE11).

Use the new navigator.clipboard.read() API (available in Chrome, not in
Firefox) to also actually do a proper HTML paste when using the toolbar
button.

Note that the new API strips away <meta> tags, so this depends on
previous work to switch to a <div id="meta-origin"
data-coolorigin="...">...</div> marker around the entire HTML. This also
just implements HTML paste, plain text and images still need adding;
paste special is unchanged for now.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I2a9340719e99695131f9caa452b5fbfb53573e6c
2024-01-24 13:24:31 +00:00
Neil Guertin
048cf99814 Add Automated User with queue of tasks
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: If65bf0678301e59a219ad0dd26b40d10737cda03
2024-01-24 06:31:59 +00:00
Ayhan Yalçınsoy
008146e0db Translated using Weblate (Turkish)
Currently translated at 99.5% (465 of 467 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (573 of 573 strings)

Co-authored-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Co-authored-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3499a3c41f6cdf86c6cc6fdce41f96241f07445c
2024-01-23 22:44:06 +01:00
Andras Timar
86788f6781 Translated using Weblate (Hungarian)
Currently translated at 61.8% (289 of 467 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hu/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I33381d8dd91ca8fde2cb883a21a7e41cd48ace62
2024-01-23 22:44:06 +01:00
Ihor Hordiichuk
b0f862db42 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (573 of 573 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: Ifa2a479f51528bf2d171b11d4038ca77559f1bc4
2024-01-23 21:59:02 +01:00
Sebastiaan Veld
73d57a811c Translated using Weblate (Dutch)
Currently translated at 100.0% (573 of 573 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: I14c1986d01410ea20efd8c1f527829718d5c24d5
2024-01-23 21:59:02 +01:00
Seungcheon Seo
1b47ec4e69 Translated using Weblate (Korean)
Currently translated at 24.6% (115 of 467 strings)

Translated using Weblate (Korean)

Currently translated at 73.4% (421 of 573 strings)

Co-authored-by: Seungcheon Seo <seoseungcheon@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ko/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ko/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8f0976c1b6ea3e77ada2d9ee1137b75eaf0ed58a
2024-01-23 21:59:02 +01:00
Сергій
d1456a67a8 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (573 of 573 strings)

Co-authored-by: Сергій <sergiy.goncharuk.1@gmail.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: I82137cf82430a9d59c29d44a9d29c3d2d01fc818
2024-01-23 21:59:02 +01:00
bittin1ddc447d824349b2
5390430722 Translated using Weblate (Swedish)
Currently translated at 100.0% (573 of 573 strings)

Co-authored-by: bittin1ddc447d824349b2 <bittin@reimu.nl>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibcd16eff64984ef319672f73bda872c0f5b466c1
2024-01-23 21:59:02 +01:00
Andika Triwidada
eeadf78007 Translated using Weblate (Indonesian)
Currently translated at 93.1% (534 of 573 strings)

Co-authored-by: Andika Triwidada <andika@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/id/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4337ed0897c64ee6624adfc379244ecd430faafe
2024-01-23 21:59:02 +01:00
Alexander Gabilondo
86faf293c0 Translated using Weblate (Basque)
Currently translated at 95.8% (549 of 573 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
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: I409269f5bd5f0cc0e7f4c30338634e9cff5a3566
2024-01-23 21:59:02 +01:00
Szymon Kłos
01c1b071c1 IdleHandler: close idle mode on hover
Some people say it's annoying that you need to click
to enable the document. This patch makes it automatic
so popup is closed when mouse enters the app area.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic5182c46b0687c4441a58d05fa1b8a644af0ba65
2024-01-23 20:41:51 +01:00
Szymon Kłos
2d7743cb73 sidebar: initialize after recover from idle
After document idle (document become unloaded on the server)
when we click in the popup and document was reloaded - if
sidebar was present previously it should be reinitialized.

Without that it was visible but not interactive and it was not possible
to hide it.

1. To test that use small timeout in the coolwsd.xml:
   per_document.idle_timeout_secs
2. Open sidebar
3. Wait for idle
4. Click in the idle popup

Sidebar should be interactive and it should be possible to hide it.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8d4e970b77860115226dffc4c2b0c585fc091487
2024-01-23 15:30:11 -04:00
Caolán McNamara
20275856ad fix an undefined exception with invalidations on and overlays off
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Iab825c27e618e62dd661fea02e2fb127b1c13cbe
2024-01-23 15:06:40 +00:00
Caolán McNamara
7e0179420e reverse x dimension to get debugging overlays in right place for RTL sheets
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I3f97455c982299d17f06b915c631ee7dc343b356
2024-01-23 15:06:40 +00:00
Caolán McNamara
c48eafafb5 cirrus FreeBSD 13 is failing
with:

Not enough compute credits to prioritize tasks!
Failed to start an instance: INVALID_ARGUMENT: Not Found 404 Not Found

disable until it might work again

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If7c9ac8b8785ff0b13a45f5fb2ae85da9970d8c2
2024-01-23 15:29:08 +01:00
Caolán McNamara
4772c0f6c2 Related: cool#8063 add a debugging metric for 'new tiles %' of all tiles+deltas
https: //github.com/CollaboraOnline/online/pull/8063
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ia754df62b697251e76076f39f4780784b3289dfc
2024-01-23 09:11:31 +00:00
Miklos Vajna
33310613cd wsd: fix reading past the end of the clipboard in postProcessCopyPayload()
Add a way to search with an offset in findInVector() and then we can
avoid strstr() which assumes a null-terminated input, which may not be
the case.

	READ of size 55 at 0x606000068a56 thread T8 (docbroker_001)
	    #0 0x55d0d6718a5a in StrstrCheck(void*, char*, char const*, char const*) /home/abuild/rpmbuild/BUILD/llvm-15.0.7.src/build/../projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:652:5
	    #1 0x55d0d6718882 in __interceptor_strstr /home/abuild/rpmbuild/BUILD/llvm-15.0.7.src/build/../projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:669:5
	    #2 0x55d0d71872c9 in ClientSession::postProcessCopyPayload(std::shared_ptr<Message> const&)::$_4::operator()(std::vector<char, std::allocator<char>>&) const /home/vmiklos/git/collaboraonline/online-23.05-san/wsd/ClientSession.cpp:1631:31

During unit-uno-command.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Id42669d912bab4746d9f7d99a192c4c3f1d175f7
2024-01-23 08:38:26 +00:00
Gülşah Köse
ee708edf0d Set titlebar max width equal to dialog container width
Prevents to overflow when the range name is long in conditinal format dialog

Reproducer steps to see long dialog:
1. Create a conditional format where the range is very long (inserted manually)
2. Home > Conditional formatting
3. Create
4. Scroll and paste the following in the Cell Range > Range:
`N3:AL4,N25:AA25,AC25:AL25,X11:AL11,N6:P7,Q5:AL10,Q12:AL13,N5:N7,O5:P5,N14:AL19,N11:P13,A8:C11,N8:P10,C20:J20,O20:AL20,A20:A27,D27,D10,T21:AL24,A3:K7,A12:K19,H8:K10,H27:K27,A28:K89,N26:AL89,M5,D11:K11,Q11:V11,L3:L89,N21:S22,N24:S24,M23:S23,B21:K26`
5. The title never gets truncated and the dialog is too wide

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ib845bc84a85d90dec87115cdcd10ae8704163081
2024-01-23 09:23:45 +01:00
Bayram Çiçek
0ad2c24f5c Calc: Don't switch tabs when context menu is triggered
- Trying to open context menu from a sheet tab also
changes the active tab. This occurs when right click
on a sheet tab (or long tap on mobile or tablet)

- moveLeft and moveRight of inactive tabs are
implemented.

- added _moveSheetLR and _moveOrCopySheet functions.

Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: I5b25a8cb363b8e04fd6dcec1f500e7ff2982b678
2024-01-22 12:49:38 +01:00
Miklos Vajna
56abb1c760 common: fix 0 read size in FileUtil::readFile()
/usr/bin/../lib64/gcc/x86_64-suse-linux/12/../../../../include/c++/12/bits/stl_vector.h:1124:9: runtime error: reference binding to null pointer of type 'char'
    #0 0x557ce8c06055 in std::vector<char, std::allocator<char>>::operator[](unsigned long) /usr/bin/../lib64/gcc/x86_64-suse-linux/12/../../../../include/c++/12/bits/stl_vector.h:1124:2
    #1 0x557ce8f16e3f in FileUtil::readFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int) /home/vmiklos/git/collaboraonline/online-23.05-san/test/../common/FileUtil.cpp:449:37

While running toplevel 'make'. Both 'st.st_size' and 'off' were 0, so
this is an edge case.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I4899bffa48a761c84b6ee7d42776453b641ff5a7
2024-01-22 09:39:38 +00:00
Andras Timar
125591aff3 Update Helm Chart with new release 23.05.7.5
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie99c37c4d7d318f1d5a077a233f3d188a7800a1f
2024-01-22 09:39:43 +01:00
Rob Pearson
72c065e9d1 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (573 of 573 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (573 of 573 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (573 of 573 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (573 of 573 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20c30eb42a473a06f9c6bb4f20bafcb2e4137a16
2024-01-20 20:20:27 +01:00
Yaron Shahrabani
2e6fda9dfb Translated using Weblate (Hebrew)
Currently translated at 98.0% (562 of 573 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: I15bf026cc6c6225977cd947c4be013fc9b676a87
2024-01-20 20:20:27 +01:00
Caolán McNamara
03ada33e0c add a 'Tile update waste' to the top left as a percentage
make it bold with large text :-)

and move the exact figures back down to the bottom left

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I950ce3db288d63aef201f0a6274f778f2f05bc14
2024-01-20 11:53:40 +00:00
Caolán McNamara
79b376c4bd move tile load counts to top left
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ifc01586209eca7ebbbf2d546adfd7d8095a2e3d4
2024-01-20 11:53:40 +00:00
Caolán McNamara
b4a7acca2d increment global update for an empty delta, as we do for individual tile update
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I031522227bc332ba80df70ea46deb600047127e6
2024-01-20 11:53:40 +00:00
Caolán McNamara
c4be02c2b3 if img was null then we always deref on calling _applyDelta
in practice presumably img can't be null, seeing as currently hasContent
would then be true, then we always deref on calling this._applyDelta

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I48d2466c0a12e4f7084d57a55a963cea469cf2fa
2024-01-20 11:53:40 +00:00
Miklos Vajna
8d5be1286b cool#8023 clipboard: switch marker from outside-html to inside-body
As pointed out at
<https://github.com/CollaboraOnline/online/pull/8041#discussion_r1457933092>,
it's not valid to have a markup like <div><html>...</html></div>.

The old markup was <html><head><meta ...></head>...</html> and that got
stripped away.

Fix the problem by going with <html><body><div ...>...</div></body></html>
which survives browser sanitize and also is a valid HTML.

Both the browser side and the wsd side is updated to go with this
inside-body markup. This also allows simplifying setTextSelectionHTML(),
because the valid HTML means the browser automatically strips the
<style> element whtn converting to plain text. Also remove a leftover
debug code in ClientSession::preProcessSetClipboardPayload() that I
forgot to remove.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Icb0b26a37320ae98237222b450a861ebcb2f0c43
2024-01-19 17:07:34 +00:00
Caolán McNamara
d40acc283b lang ended up as "(null)" and docs from debug.html didn't load
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie007dbdc2d4066c657d2a1cd05c6f4532404495b
2024-01-19 13:01:34 -04:00
Andras Timar
15f49bbb7e Bump version to 23.05.7.5
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7f842b8fa30191424e0b1cce6a14c4056518a54f
2024-01-19 17:45:30 +01:00
Andras Timar
b35aca88c0 Translated using Weblate (German)
Currently translated at 100.0% (573 of 573 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.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: I971289ee755819fb0445dfc64c315df5a7c9c681
2024-01-19 17:43:49 +01:00
Lily Logua
e684f1a291 Translated using Weblate (German)
Currently translated at 99.8% (572 of 573 strings)

Co-authored-by: Lily Logua <lily.logua@collabora.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: Ibdb739b9aa086cc9e9816c63d2e5d8845fd334cd
2024-01-19 17:43:49 +01:00
Szymon Kłos
6546ab4501 Use once to call event handler just one time
Use dedicated option, don't do it manually.

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#once

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2bce09c496ca7dd3267514bbb30308b7f7afe4f9
2024-01-19 14:40:01 +01:00
Szymon Kłos
d331120059 Move document tooltip helper to UIManager
so it is with all other showXXXX helpers

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0f009a1e380c0c5fd4ac8b43d19af74c25e58b40
2024-01-19 14:40:01 +01:00
Henry Castro
1a31a7baa0 browser: add logging token to send to server side
Change-Id: I252665637a3c5079e0c433f0b1a6c8197105e45f
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-01-19 10:54:42 +00:00
Henry Castro
9344c8000b wsd: add logging token javascript errors
The "logging.html" end point was intended to capture
unhandled javascript exceptions from client side,
only corner cases, when websocket is disconnected or
very early errors before websocket is created.
So add a token to restrict access.

Change-Id: I64b7d7f3b3ddd83f044fea21dc07285b4465b3be
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-01-19 10:54:42 +00:00
Henry Castro
fc4a8efefe browser: move function "isLocalStorageAllowed"
The variable initialization does not depend on
the conditional M4 macro expansion.

Change-Id: I39f0079ea668768724e0ca3175070e66dc858b0b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-01-19 10:54:42 +00:00
Henry Castro
28236b2405 browser: move iOS app init event listeners
The iOS app add event listeners is not a
conditional M4 macro expansion, so
move into the global.js file.

Change-Id: I3adb767cc191a73f0d9197af692e22dd72c6ab46
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-01-19 10:54:42 +00:00
Henry Castro
26dd660681 browser: remove unused function "Base64ToArrayBuffer"
Change-Id: Ibcdaf6a9e06b7cb169a1e59e8efc952a1291a6e5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-01-19 10:54:42 +00:00
Henry Castro
1d08877b01 browser: remove unused function "onSlideClick"
Change-Id: I90ef1fda39c52ac231d6407fb14d1bacde9d3a7e
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-01-19 10:54:42 +00:00