Commit graph

114 commits

Author SHA1 Message Date
Pranam Lashkari
bfe0c5e7de annotation: remove obsolete mobile wizard popup code
it was introduced in 13bc532
and it was removed from use in 2f77b3a

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iec401a9505491fe69196cdb1e7192fa499d3d38f
2024-03-04 07:41:16 +01:00
Szymon Kłos
3d56af0ab5 Add KeyboardShortcuts and disable multi-sheet selection
This will be a class for storing keyboard shortcuts in
a unified way. We can easily define shortcuts for different
languages so we don't have to write long if-statements
which can cause problems if done not very carefully.

Added tests protecting from regressions.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4dfa2d757eab4ecc1f21279e68d1ee97ae261dc5
2024-03-01 08:59:36 +01:00
Skyler Grey
97a86549a7 Convert Control.UserList.js to typescript
I'm working on a set of patches to improve the userlist/following UI in
Collabora Online. Using typescript will allow me to be more certain
about the code I'm writing and make my code easier for other people to
understand.

Additionally, as I'm about to make significant changes to this file,
updating it to typescript now won't even damage the ability to blame too
much!

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Iccf64a01a465d895cbc1c24ad107f85665b5fbf3
2024-02-28 16:07:22 +01:00
Patrick Luby
22e341b656 Revert "Remove unused file."
This reverts commit c69e14a5dd.

The above commits causes document loading in the iOS app to
always fail. Even the animated loading graphic never appears.

I don't know why removing that .js file causes this behavior,
but I did see the following in the trace messages in Xcode.

  To Online: load url=null accessibilityState=false lang=en-US

It appears that the JS code is sending a null URL to load.

Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: I7af391c4a4fb0d3d363b7023a27d4fcf92f7a4b5
2024-02-26 10:49:31 -05:00
Andras Timar
cbc32dc38e fix unconditional install-data-hook
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3236d8ebb323b7d682e58c01da4ad8ec01ee943d
2024-02-22 00:26:23 +10:30
Gökay Şatır
c69e14a5dd Remove unused file.
This was added for IE11 compatibility.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I4be5d3199c1354e2e36ac31734c3ed4ffb46cd54
2024-02-16 15:13:33 +01:00
Szymon Kłos
e05881b15d jsdialog: added Util.StateChange
- move listener watching disabled state to separate file
- use also for listboxes, comboboxes, spinfields
- handle state in menubutton

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I841413f17abd6398a7e82496c3f20bdc52ab9514
2024-02-14 13:16:58 +01:00
Michael Meeks
6c9fb23081 refactor: inline CRS.Simple into CRS.
Cleanup un-used wrapping.

Change-Id: I510f8244e51f2d6f56fdb0aee4046ebfd894c9e1
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-02-07 17:13:48 +00:00
Hubert Figuière
adbe12783f Fix warning for unocommands.py
This resolves the following Python warning.
unocommands.py:319: SyntaxWarning: invalid escape sequence '\('
  f.write('''};

Also make sure the output depends on the script

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I11f1e028c9c132f4afc66f9b5a6137b478f00774
2024-02-06 17:50:09 -05:00
Méven Car
b3f487b5d9 widgets: Add a time field
Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I9e3e280db4a0b1f3e3a9df5fe8b6e0bfd97ddaa5
2024-01-30 21:24:49 +01:00
Neil Guertin
c4e7693ed3 Extract debug tools to new file Debug.js
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I20f42d24a6af91bdcf79dc7fe19e1cf25f90bd89
2024-01-26 11:55:17 -05:00
Rash419
1fbbae0934 admin: add about page for indirection server
- show full license

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia51012b5277e6666733fc83441754276a79759da
2024-01-18 16:15:42 +05:30
Andras Timar
efb34a3c5e src/map/handler/Map.SlideShow.js contains localisable strings
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id97b3f6e2f049e7a8075f3b7e8fde2894ca58de1
2024-01-17 14:32:36 +01:00
Michael Meeks
df5cf10002 drop pako dependency.
Unused in the package since:

    commit 2def6dc3d5
    Date:   Sat Aug 27 17:49:50 2022 +0100

    Switch to zstd image compression.

Change-Id: I785ad2c1522721ed34cf89a1922ee06d5e2507e4
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-16 22:28:10 -04:00
Caolán McNamara
d32785cdbb tsc can report an error but create js output, so 2nd make's 'succeed'
so on failure remove the output so a second attempt doesn't appear
to succeed

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ibc1f7d46c2946cdc6a4dbcd6181872fb12e19fb6
2024-01-15 16:20:00 +00:00
Szymon Kłos
bfc4b1599d IdleHandler: move message strings inside
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I91da2fda73967d11673f59a4c29fb94f2e12f5a0
2024-01-09 15:28:35 +01:00
Andras Timar
93e937fd51 Add src/control/Control.UIManager.js to list of localizable files
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifb6795647332b6f2dfb208e9b426f788759e325a
2024-01-05 13:03:55 +01:00
Michael Meeks
b3a2d55194 remove unused code.
Change-Id: I328cf6783deae0a9be3aab10634b8d76e7efe965
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-04 09:26:55 +01:00
Andras Timar
b9153c63ef js/global.js contains localizable strings
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3c4317a7766ad179cf38e4d0d972e6a5c4adab11
2023-12-13 13:03:29 +01:00
Caolán McNamara
9daba64dc1 use of gseparate-dwarf can block some optimizations
with in in place the sizes are

-Os for core and online
  du -h online.wasm 155M

-Oz for core and online
  du -h online.wasm 145M

and a warning of:

em++: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations]

without gseparate-dwarf the sizes are:

-Os for core and online without -gseparate-dwarf
  du -h online.wasm 133M

-Oz for core and online without -gseparate-dwarf
  du -h online.wasm 119M

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I91586abe0e52f6de20d0f04636bb5a2be93d92be
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-06 12:39:46 +01:00
Michael Meeks
2b3088ee52 wasm: don't try to package obsolete and/or renamed online.data
presumably a regression from 158fe2f93:

    Trying to init LOKit cause mysterious runtime error...

Change-Id: I28603a98a7c9015afc76d46a302a23ccf4ece261
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-11-16 19:30:48 +00:00
Andras Timar
ee48dc7451 src/docstate.js contains localizable UI strings
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3a09891900ff0c22e9f133d9032a2625ef47e6a8
2023-11-09 13:19:44 +01:00
Ashod Nakashian
8728cd5ea1 wsd: config cleanup and warning fixes
Change-Id: Idb66227d98f8fcca35307c3598a1fcc6b69e38c6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-26 20:31:45 -04:00
Szymon Kłos
4c98fe54f0 jsdialog: move dropdown to separate util
so it can be reused

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9f7940bd9f25a837d673dce20b5ded3a70d134ad
2023-10-26 09:19:24 +02: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
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
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
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
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
Szymon Kłos
9d65a03e5b clipboard: complete dialog shows 100% progressbar
Reusing progressbar dialog allows us to show it's the
same process for the user. So even if it is instant he
will see 100% progressbar and that button become enabled.

Create new file for functions which manipulate existing
modal dialogs.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I765483b940f47bdfbcf8a488ea7d0ab9569ccda9
2023-10-11 08:29:43 +02:00
Szymon Kłos
8c7b638bb8 jsdialog: move progressbar widget to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3a489340df101d7a672762a7a259cd92514f5f53
2023-10-11 08:29:43 +02:00
Gökay Şatır
e309e0ffee Update packages.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I4d90323dade99f325a9c3b6d46fd3b595030d1ce
2023-09-19 14:21:06 +02:00
Szymon Kłos
76f0b11551 Detect code duplicates in make-check run
It uses jscpd project by invoking it using npm script
"duplication". For now set minimum lines to report
as 26, because we have some 25 line duplicates.
Later we can reduce that number.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I20e0ba9a07528e15a65f01d2247420da33339749
2023-09-14 12:26:53 +02:00
Szymon Kłos
4082e1e570 jsdialogs: custom combobox
Combobox will be real combobox (edit field + dropdown).
Adjust styling from old .select2 rules to our combobox.
Remove old code for select2 comboboxes in notebookbar.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id3ea16bcb004675cb7d5743f394ac432e74918cf
2023-08-31 12:56:10 +02:00
Szymon Kłos
6e5852eb78 jsdialog: move IconView widget to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I812ca4f1b0db65078fc676fddce6b7a55b17676d
2023-08-25 08:48:15 +02:00
Rash419
944f269926 admin: added new cluster overview page
- added DlgLoading class to show loading modal dialog
- upgraded the d3

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8bd99bbadaa59a7de1e83bebde8db0dce920705d
2023-08-05 14:28:29 +05:30
Szymon Kłos
a58c802d5b Create util for doing tab focus cycle inside container
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I25b44ebd1954301de4be0a4b4d22286f026a62fe
2023-07-14 10:32:34 +02:00
Szymon Kłos
ee3935a997 jsdialog: calendar control
can be tested in Writer -> Review -> Manage -> Filter (date dropdown)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I63b052ae29ac45b9ded66d1ca75195c58f3d7e13
2023-07-11 12:48:28 +02:00
Gökay Şatır
3e40f3fbe4 Add functionality for notebookbar accessibility keys.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I97476d05559444fe895cd6bf4e040f43350a6706
2023-06-23 20:06:35 +03:00
Attila Szűcs
7414f0b1c1 navigator: explaining text in case of empty contenttree
Add a TR with the text:
"Headings and objects that you add to the document will appear here."
if the navigator is empty.

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: Iff944df90b921e6f6415d2a3bee462b86e5a5eb4
2023-06-09 07:28:35 +02:00
Marco Cecchetti
b9f9cef60a a11y: populating editable area with focused paragraph
We handle notification from core about currently focused paragraph:
content, caret position, text selection start/end.
Notifications are sent on any text changes, even when the text has
been modified in another view.
Moreover we can request such info to core at any time.
That allows AT software to read focused paragraph and selected text.
All that keeping editing still working.
A set of new cypress tests for checking clipboard content has been
developed.

failing cpp unit test:
- HTTPWSTest::testInactiveClient
'unexpected message' assertion was failing since an idle client can
receive an a11yfocuschanged message when the same paragraph has focus
in both view and the active view is editing the paragraph.

failing cypress tests:
desktop
- calc/autofilter_spec.js
  - added more wait time before performing clickOnFirstCell
- impress/undo_redo_spec.js
  - Repair Document was broken
    - we need to select 'Hello world' in order to overwrite it

mobile
- impress/spellchecking_spec.js
  - Apply suggestion
    - better use selectTextOfShape instead of Ctrl-A

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I070d390543fa66fe786c4a0661fa09f891b9883e
2023-05-31 22:43:51 +02: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
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
Henry Castro
107509260b browser: fix bundle exceptions
builddir != srcdir

Change-Id: I0c129d2bc9ea11fc0d46b37a72faa6a32a69b002
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-05-14 14:40:24 +02:00
Gökay Şatır
9d6296e4b3 Remove unused document signing code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I30cf381d1fa282cf222ab5abc676374ab7eefb6c
2023-05-08 21:51:47 +03:00
Gökay Şatır
aa47a9f0a9 Remove json-js and stylelint-config-standart packages.
We don't need the first one and we don't use the latter one.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I1f48ff5487621781eb38dd8e4e8e2a389a3059d6
2023-04-01 11:30:07 +03:00
Gökay Şatır
260cbed5d3 Remove vex from code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I054977b5c71364c59c7f1fdd1f5d691380951ebb
2023-03-25 07:03:05 +03:00
Pedro Pinto Silva
585a438944 Revert "Revert "Add color-scheme-dark.css support""
This reverts commit a864d41c09.
Because we can now work in this WIP feature in its dedicated
feature branch.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2023-03-17 17:34:05 +00:00
Szymon Kłos
0e385ef2ec jsdialog: move menubutton to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifd314f884e7a96b76a74dcc19922746938e885b5
2023-03-16 09:25:06 +01:00
Szymon Kłos
dae1f7438a jsdialog: move Drawing Area to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id659d7e2fc9b50d43d66fb48d78c1f1dede4b23f
2023-03-16 09:25:06 +01:00