Commit graph

3445 commits

Author SHA1 Message Date
Ihor Hordiichuk
ff18c36b3a Translated using Weblate (Ukrainian)
Currently translated at 100.0% (525 of 525 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: Ibe42ae7af50b9ab3065396cb5c4e5c9e0b136555
2023-10-19 11:20:40 +02:00
Milo Ivir
a03e751e31 Translated using Weblate (Croatian)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7e33a3c85fb8ae3f0844ced131edc2e56d6471fa
2023-10-19 11:20:40 +02:00
Szymon Kłos
5927fe1773 Avoid using undefine in custom button insertion
If postmessage to insert custom button will arrive
early before we initialized notebookbar it could
fail in insertion into compact mode toolbar due to
not existing toolbar.

This prevents us from that error. It will be not added
at the time of postmessage execution
but we remember all the custom buttons in special
array, so when UI will be initialized it will be added there.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I07d86db49a50be70b0c091a66cf5e4be049211ce
2023-10-19 10:44:38 +02:00
Szymon Kłos
7df4101713 postmessage: add more logging for debugging issues
Without that integrator doesn't know what happened.
We were silently ignoring messages.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I897a95b343a1b436745816ccbef7656f30981112
2023-10-19 10:43:40 +02:00
Pranam Lashkari
31d207f520 UI: Prefill rename dialog with the current document name
resolves: #7468

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Icb6563f76cc0f9c7d81eac96fedc6e476dfdad46
2023-10-19 03:55:50 +07:00
Gökay Şatır
d5cda35530 Fixed the name of the new comment.
With this fix, user can open a new commen popup without closing a previous new comment popup.

Without this, a new comment section lingers at the background and new comment command fails until user refreshes page.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: If7f151eb11d3f5d26dae2ca6331eb5dc0dfd9881
2023-10-18 18:38:08 +03:00
Darshan-upadhyay1110
9c994882f1 Fix Format Cell broken with custom text
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I27cf86972e70d956b9005fc1ea0b65a622e898d7
2023-10-18 17:08:28 +05:30
Darshan-upadhyay1110
90cfa44b55 Fix spinfield doesn't adjust the value
- Condition modified for getPrecision.
    - it was not handling the cases for dot value less then 0.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I740f86e9477656d371ba3b8793bff99671444d7c
2023-10-18 17:08:06 +05:30
Szymon Kłos
707a577c56 jsdialog: make mobile border style control compatible
- jsdialog requires to create in the handler single root node
  with id of the widget
- remove old style update by _refreshSidebar

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8ce6e832b2d27d25f54e9bf636572b8c97d3a7c1
2023-10-18 12:17:48 +02:00
Gökay Şatır
6ecdcf557b Fix JS error on translations.
queryselectorall('something').queryselectorall('something else') fails.

^ This JS error is fixed.

Also we don't have specific images for German help page. So we removed the "de" from that language list.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I69b56e8f4bd2b92835c4aca9c2284750f3df9455
2023-10-18 12:50:37 +03:00
Szymon Kłos
bde5ee533f Enable duplicate checker
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If08ceb5dd6ca83b6c1bd5e8bd1d8028a61f4296f
2023-10-18 11:47:02 +02:00
Rash419
20f1429896 browser: fix white document background on reconnect with darkmode
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic853ba5108a1f6f9db2a7f8ab5310fe77357b07c
2023-10-18 14:00:03 +05:30
Szymon Kłos
f78fed8165 notebookbar: we use core widgets in all apps
for font selector and font size...
this makes us sure we initialize everything in Impress and Draw
too in case of reconnect

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I67ee15f470fa43965f6fbd91ae45cd330ea449aa
2023-10-18 13:52:16 +05:30
Szymon Kłos
f861ac7056 notebookbar: encapsulate _isNotebookbarLoadedOnCore
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3328b7bcc5036ed81dc757398dfabe71ba861044
2023-10-18 13:52:16 +05:30
Pranam Lashkari
93b5bdfd79 feature-locking: send lock/restriction status from client session
problem:
earlier restriction/lock status was sent to kit via browser,
now client session send this status directily to the kit.
this design will require less communication between server and browser

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6b830f30fb326a5e6637e345250893cbba101de6
2023-10-18 03:05:40 +07:00
Szymon Kłos
0b2b048620 jsdialog: fix error in frame label getter
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idbdb8bc8b895e800450b0f8b7b4b564627c99890
2023-10-17 16:30:23 +03:00
Szymon Kłos
9730d473b5 jsdialog: avoid error when container is missing
TypeError was noticed where container was undefined.
This was case where snackbar was closed.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id465723e01bc2cec2e20056103a918e53abf6d09
2023-10-17 16:30:23 +03:00
Pranam Lashkari
a373b6e121 annotation: make sure comment list is fetched correctly
problem:
this caused problem in autosaved comments,
when comment list is empty autosaved comments may be closed when focus is lost

partial fix: #7421
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1fc2d087828ce44495001f97b5323dffb8adb2ef
2023-10-17 18:25:03 +07:00
AIlkiv
b2e87c4f45 Shortcuts for different keyboard layouts
Signed-off-by: Andrii Ilkiv <a.ilkiv.ye@gmail.com>
Change-Id: I27d7478e234f06edbf53fd2cee6fd800230bcb0e
2023-10-17 09:36:36 +02:00
Gökay Şatır
d3d5bdf269 Hide the newly added comment.
Also add a check for failed attempts of new comments.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I50a9981cf51475d6008e936e6e28573156a8383a
2023-10-17 05:33:31 +07:00
Gökay Şatır
84cc6dc329 Add guard for applyDrawingOrders function.
It's required only for spreadsheets.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Iae3694cca16cb51d4e3e9b20f3a337fd2e0a4c12
2023-10-17 05:33:31 +07:00
Marco Cecchetti
5680f3dc6e a11y: accessible description to describe how to turn on accessible mode
Set up accessible text through aria-description for describing how to
enable accessibility support for text content when it is disabled.

The description is reported by the screen reader on document load and
on explicit request to read current text content.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I439b7703c15d3b38c39181d27c11da438834c414
2023-10-16 19:09:54 +02:00
Andras Timar
41fce2572b restore the original install-data-hook in case of debug builds
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I45dc86b7473babba723a873e4a21c8021797fb07
2023-10-16 17:21:56 +02:00
Andras Timar
af8ba81943 Fix CSS selector: make checkboxes visible in light mode
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6e8194ea456e4af3104754cf9219be22f135c042
2023-10-16 16:56:03 +02:00
Szymon Kłos
5f9b8cab6c jsdialog: reduce warnings in console for sidebar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibe3c82bde06eb96fe08ea977472c776be4132de1
2023-10-16 10:52:14 +02:00
Szymon Kłos
88b5f508e8 jsdialog: simplify sidebar action code
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I49a5ce3b2667c49475ebbc45d49e00915ad9e4b9
2023-10-16 10:52:14 +02:00
Szymon Kłos
a7ece5d0d6 jsdialog: reduce warnings in console for formulabar
we emit lots of warnings which are not important

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I59027c4d848a98ba3d9e8f4a3feafd3fcb62dec2
2023-10-16 10:52:14 +02:00
Szymon Kłos
1b4883877c jsdialog: move mobile border selector to separate file
to make main JSDialogBuilder shorter and easier to read.
And move handler to mobile builder as control exists only
on mobile.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9a14c7050711658638d22f0fd7b47e038b5952a1
2023-10-16 10:52:14 +02:00
Andras Timar
db553e3edf Remove ellipsis (…) char at the end of notebookbar button labels
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie110bc895d7a639266affb9ba3129a5a831d6e2c
2023-10-15 16:35:28 +02:00
Szymon Kłos
b35c4f5a1d jsdialog: move frame handler to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I36640680eb2e0594eb336353deba6c34d1d933e7
2023-10-15 11:43:07 +02:00
Pranam Lashkari
9be1e9261d jsdialog: make sure all elements in frame are displayed
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie0b949c8dcd820de380f9ee6b497631e594114f3
2023-10-15 11:43:07 +02:00
Pedro Pinto Silva
a1b2091ae6 JSDialog: Dialogs shouldn't be taller than viewport
Don't allow dialogs to grow taller than the web browser's viewport
instead,
 - Set (for dialog's content) a max of 90% of the View height and subtract the dialog's
header. This way the header with the close button stays always visible
 - Set overflow accordingly so it can be  scrollable
   - Needs to have !important because it seems we need by default
   "overflow: hidden;" set to every  ".jsdialog-container
   .lokdialog.ui-dialog-content.ui-widget-content"
      - introduced in afbf052bb5
      possibly due to hidden elements that are part of DOM

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I61a2a41d8b1198fe00b939427cde43d247dc08bb
2023-10-13 13:52:11 +02:00
Szymon Kłos
ede848b2b3 Update file headers in jsdialog related components
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I347ebde789495d852c091cefb1c84ab9f1c7ebdb
2023-10-13 10:01:31 +01:00
Marco Cecchetti
da59a84935 followup: no copy event is emitted by hitting CTRL+C with no selection
This is still occurring also in Firefox 118.
Anyway it seems to never occur on Windows.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I0e5c643912f2276c60bdba1b2ad1ed801785193f
2023-10-12 17:25:52 +02:00
Caolán McNamara
dffef0e99b reduce onStatusMsg retry timeout to 10ms
https: //github.com/CollaboraOnline/online/pull/7390#discussion_r1351943503
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I0a32933d54fa44486c6807c4d0b01e2029700271
2023-10-12 09:09:25 +01:00
Darshan-upadhyay1110
2586e04148 Fix export as options on android app
Some of the options seems to not working on mobile app
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I934e446dfeeab46f26e95898522cb0b7c1cc64a2
2023-10-12 07:33:26 +02:00
Pranam Lashkari
b39a0bba79 browser: notify user for unsupported video
detect if video is able to play via checking if any frames are decoded,
in other cases(i.e: file not found or corrupted file) check for the errors in source and video

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I22bfc836a98ec0eb2caa58b89332b2531d69d18f
2023-10-11 20:23:37 +02:00
Cosmin Humeniuc
4fca649079 Re-set id of 'selectbackground' to 'layout-selectbackground'
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro>
Change-Id: Ifdb843b3337ddc1ad64191485335bdcf0ac79478
2023-10-11 18:30:36 +02:00
Cosmin Humeniuc
89db8cf5d4 Enable "Set Background Image" button in tabbed view
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro>
Change-Id: I9e6c5f3070683e1949d66355d8e0cf832580b912
2023-10-11 18:30:36 +02:00
Skyler Grey
237d9c084a safari: workaround SVG position bug
This commit fixes videos rendering in the wrong place on Safari (and all
iOS browsers). Note that it will still need the server fixes contained
in https://github.com/CollaboraOnline/online/pull/7367 for Safari to
play video

To reproduce, load a document with an mp4 video in Safari (this may also
work with other formats, but we know of unrelated bugs with non-mp4
videos) and click on the place where the video should be.

Before this commit, you will see a white rectangle where the video
should appear. After this commit, you will see the video. If you have
this commit but not #7367 you will see a play button with a "broken
video" strikethrough. In non-Safari/iOS browsers you will see the video
both before and after this commit.

This commit does not include detection for the upcoming Layer-Based SVG
engine <https://wpewebkit.org/blog/05-new-svg-engine.html>. This means
that this commit will *break* video if this is enabled in Safari debug
mode.  If this commit is merged as-is we need to make a followup to fix
this as soon as possible or we will end up with a similar-but-opposite
bug when that flag is toggled on by default.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I205e692e7027ad917bd6f29aa96b0ac70a4c9e04
2023-10-11 16:25:47 +00:00
Oğuz Ersen
99b83417d1 Translated using Weblate (Turkish)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie2db76bce482a3557f790a2e7a5392f75692e077
2023-10-11 18:24:02 +02:00
Leif-Jöran Olsson
03f0d80d8a Translated using Weblate (Swedish)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Leif-Jöran Olsson <info@friprogramvarusyndikatet.se>
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: Ifb2674e4a0f0b3dbf5d466734558d00292d1396a
2023-10-11 18:24:02 +02:00
Matthaiks
6754c74991 Translated using Weblate (Polish)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id708a7b627d80f9783ed36e0f2f98a07d0dfb11a
2023-10-11 18:24:02 +02:00
Sebastiaan Veld
f1b703bf10 Translated using Weblate (Dutch)
Currently translated at 100.0% (525 of 525 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: Iccba3f92080bb0c0a626491636ce214441e22684
2023-10-11 18:24:02 +02:00
Andras Timar
0608b3e808 Translated using Weblate (Hungarian)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icdaa800456e29f7f923b65d4a39346f6d8e3ab0b
2023-10-11 18:24:02 +02:00
Milo Ivir
01922e6c55 Translated using Weblate (Croatian)
Currently translated at 99.8% (524 of 525 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6ce5be9af96f7298f48a88c6e22ed46cc22e87df
2023-10-11 18:24:02 +02:00
gallegonovato
0626607d9e Translated using Weblate (Spanish)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
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: If739719ada0d1ef7ca67c75c2b54ace9b07a91f0
2023-10-11 18:24:02 +02:00
Pedro Pinto Silva
54348fb2ca Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (French)

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Pedro Silva <pedro.silva@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7834a95d77c55037d72b4afee337eb831df6c09e
2023-10-11 18:24:02 +02:00
Andras Timar
0cfdb87362 exclude debug/dev files from production packages
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic9b49a401b63af65f4e53e3eb2584b8258575c2a
2023-10-11 16:45:26 +02:00
Rash419
762ce28e22 browser: make reconnnect experience smoother
- don't invalidate the tiles
- don't reload the document if serverId changes
- writer: fix cursor jumps to top the document

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ie42850e77f9011cd1c820115919f10283407f216
2023-10-11 16:54:06 +05:30