Commit graph

19152 commits

Author SHA1 Message Date
Pedro Pinto Silva
657b193eb9 Tabbed view: Add "Tap to collapse/expand" tooltip
Make the possibility to collapse/expand tabs more discoverable
by adding tooltip to the:
- selected notebookbar tab when collapsed
- selected nb tab when expanded

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib75fc15fed6400557f6413a0d21be5c155fe8571
2022-09-12 17:07:49 +02:00
Pedro Pinto Silva
09abc4159d Tabbed view: center document name in the toolbar
Allow tabs container to grow and shrink as needed so
document name is centered in between that container
and the next element

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8d252478a4ddfdb9362555db6797205369dab57f
2022-09-12 17:07:49 +02:00
Pedro Pinto Silva
e6f407075b Add margin to tabbed view: tabs
This seems quite necessary to avoid missed-clicks between save icon and
File tab and also for white-space needs.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id2bd0e7bc2478684e1cb920cdb917dd43c9acc8f
2022-09-12 17:07:49 +02:00
Pedro Pinto Silva
d0436fb67c Remove notebookbar tab indicators on tablet
These used to make sense in the past, when we had completely
different look and feel. Plus even back then this was not super
elegant way of showing that the tab container is draggable.
Furthermore, currently, the tab container is quite distinguishable
form its parent making it visible that the notebookbar-tabs-container
has more content to show.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6e4c0d5b3bc5e0e21d6cd470446d13b9811846ab
2022-09-12 17:07:49 +02:00
Yunusemre Şentürk
b382fd722c Revert "Attempt to solve FreeBSD issue" and fix freebsd check
canvas module is needed for make check. --disable-werror is
required, because npm canvas module is not available as a
binary package on all target platforms, and it does not
compile without warnings from source.

Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Change-Id: I03e1d72d96ec0d6863ccd6236223a87ee481eb09
2022-09-12 15:24:37 +03:00
Andras Timar
26746773b9 Bump package version to 22.05.6.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icf883f86bb84b5ad9442a639996070ac30f06022
2022-09-11 23:06:47 +02:00
Eric
fc322523f7 Translated using Weblate (Chinese (Simplified))
Currently translated at 69.3% (317 of 457 strings)

Co-authored-by: Eric <hamburger1024@firemail.cc>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hans/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ieec42f1d03d8d4748264ad9daa4d1a3b26515be1
2022-09-11 22:28:24 +02:00
Jason Clermont
34026fc507 Translated using Weblate (Chinese (Simplified))
Currently translated at 69.3% (317 of 457 strings)

Co-authored-by: Jason Clermont <lunme1008@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hans/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idd85400af6572efd845cc632e90538755dcab461
2022-09-11 22:28:24 +02:00
Rob Pearson
a7c75f17c7 Translated using Weblate (English (Australia))
Currently translated at 100.0% (463 of 463 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifd66b8274768cd777ecbffca0c704fec2b877923
2022-09-11 22:28:24 +02:00
Joan Montané
88133048ef Translated using Weblate (Catalan)
Currently translated at 100.0% (463 of 463 strings)

Co-authored-by: Joan Montané <jmontane@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iac63e27a1fb3f1e677dace45424592f984b593d9
2022-09-11 22:28:24 +02:00
Yunusemre Şentürk
62ee441543 Revert "Attempt to fix FreeBSD node convas module not found error"
This reverts commit 869f7f73af.

Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Change-Id: I1b7c95ace5fc2ba754cc62081b4a71e1d5e73c88
2022-09-09 16:36:09 +03:00
Pedro Pinto Silva
8f3ea93d4b Mobile: Fix missing icon on lists within mobilewizard panels
Reuse createIconURL so it runs through the iconURLAliases before
inserting image url

Example: Chart icon

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia87b064c967df00c796d36fee577f4fd0f260a6f
2022-09-09 09:07:10 +02:00
genofire
c121f5a842 fix(remote_config_pull): nullpointer if alieses not defined in host groups json
Change-Id: c94f0c69d9b31f54c755d10ac964ae8cadc5d4dc

Signed-off-by: genofire <geno+dev@fireorbit.de>
2022-09-08 19:54:32 -04:00
Pedro Pinto Silva
de003ebf08 Add background to all tabs and add space in between them
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I03b8e0dc6298ddc18bad33afa3fef470f8cbe059
2022-09-08 17:10:24 +02:00
Pedro Pinto Silva
ae816b000a Make tabs shorter
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9e787c52c3ea0373eb97453cc7fc3217a87b251b
2022-09-08 17:10:24 +02:00
Pedro Pinto Silva
690be877b4 Remove tab's repositioning
Adding a margin to the first child only when it is selected is not
smart and causes tabs to move horizontally

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I89cb0c0e96cbb990ecdfb633f186ab5ea1c54078
2022-09-08 17:10:24 +02:00
Pedro Pinto Silva
389c747157 Remove hover effect on selected tabs
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3e74899804700f20613597bc48e0669fe09e882a
2022-09-08 17:10:24 +02:00
Yunusemre Şentürk
b83e3dac69 Refresh badge icon links in README.md
Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Change-Id: I5721491ac1aa31039a017702c5787c10ec90abf6
2022-09-08 17:47:51 +03:00
Yunusemre Şentürk
869f7f73af Attempt to fix FreeBSD node convas module not found error
Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Change-Id: Idfb32befd2dedd687554bab20607da99e3ab5aa3
2022-09-08 17:39:02 +03:00
Andras Timar
b755a175df Embed images to exported HTML
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0e42bf2efcc2aa6ecf3f6705aab621cc1ea18774
2022-09-08 16:21:22 +02:00
Gökay Şatır
b412d61ca8 Attempt to solve FreeBSD issue.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I8d3e85ab0b1d590a130569dd74d3c45cade708f5
2022-09-08 10:53:47 +02:00
genofire
d2b707e838 prometheus: labels are always strings
Change-Id: 4192b04373567e5470c03a984a9e40366a8c1f4d

Signed-off-by: genofire <geno+dev@fireorbit.de>
2022-09-08 08:40:41 +01:00
Skyler Grey
fd0c49a0be Make the repair document dialog into a JSDialog
- The repair document dialog is a leaflet dialog
- As this dialog is online-side only, I'll use the JSDialog builder
  directly rather than writing a UI file
- Most of the code to build the dialogs is already very adaptable from
  looking at the protocol of existing JSDialogs that come from the
  server & where the code goes, however a small change had to be made to
  dialog modifications to allow us a callback function, as otherwise we
  would send off to the server whenever we pressed on a list item
- Finally, if there's no list to show, we'll show a bit of text saying
  that there's nothing, as otherwise it looks like an empty/broken dialog
- If we're on mobile, we'll need to use the alternative helper (the one
  that handles mobile wizard building)
- Fix a cypress test for writer (although impress and calc seem to have
  tests for this too that aren't implemented: this should be handled in
  a follow-up PR)
- Fix mobile tests

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Iab9e943a428e66b05e28819c2ee1001a2deffd2c
2022-09-08 12:52:19 +05:30
Yunusemre Şentürk
796925d5d7 ios: Rule out LIBO_VERSION checking on master
Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Change-Id: I28cdba1b82d391cf4d847c6e2e40f8e08d928519
2022-09-08 09:30:24 +03:00
Aron Budea
64b0355f64 wsd: Cache result of disk space check, too
...when it's requested.

Previously always an empty string was returned on subsequent
calls, and the error message was only shown once.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I7645c7770e3e1712c8ef1b3ad145daec14530fb0
2022-09-08 05:48:28 +02:00
Michael Meeks
c7dece621c Update tag-line.
Change-Id: I6a3f70195b8487a4180b37a24338a6df615d8399
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-09-07 17:52:35 +01:00
Mike Kaganski
d2f06e078c Drop Control.Notebookbar.lastContext
The event object in onContextChange has oldContext

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: Ic405edad4c52e51294d5fdfa5e91afa858d0bba7
2022-09-07 14:04:40 +03:00
Mike Kaganski
f018beefa7 notebookbar: sidebar decks in Math
Math is activated in-place, so we need to replace current elements with
Math-specific ones temporarily, on context switch. Application ID is
required for that.

Having previous context in the event itself would allow to drop storing
it in Control.Notebookbar eventually.

For now, only have Elements deck exposed for Math, because Options deck
needs either re-implementation to host everything in itself, or JS-weld
of Math dialogs.

lc_sidebar.svg images were used for .uno:SidebarDeck.ElementsDeck as a
temporary icon, until there's a dedicated image. See also tdf#149144.

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: I37dcda962a2a6ff60e301182033384c56615a24e
2022-09-07 14:04:40 +03:00
Mike Kaganski
106cb9b158 Deduplicate getOptionsSectionData
Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: Ibb33ddbfa39e22e34de6fccd220da53a4b79b354
2022-09-07 14:04:40 +03:00
Tor Lillqvist
93b4d0db81 Use the name "lok" for the iOS app Webkit message handler here, too
Follow-up to 616e9200d1.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I4d9a77d34c3ae3f45df6bce9afad5c99b2142358
2022-09-07 11:14:25 +02:00
Michael Meeks
29d68aa033 prometheus: don't export string values.
continue to use the pid as a short-ish label to disambiguate metrics,
but also define the pid with more labels in the 1st instance.

doc_pid{host="localhost",key="https://localhost:9980/.../hello-world.odt",filename="hello-world.odt"} 1261609
doc_views{pid=1261609} 2
doc_views_active{pid=1261609} 2
doc_is_modified{pid=1261609} 1
...

Change-Id: I573f6d5c8ceb9a7daee83d1f2ee9f42b8e0cd089
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-09-06 21:18:29 +01:00
Miklos Vajna
616e9200d1 ios: register our script message handler as 'lok', not 'cool'
core.git supports both since commit
4063dcdc7305177b167bd20b009b1dfede8b25ec (Revert naming back to lool to
fix break with LibreOffice Online, 2022-08-26), let's go with the API
name, not with the product name.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I204c4728628579edeb23d5ba76af4bb878130203
2022-09-06 20:30:25 +03:00
Pedro Pinto Silva
e8fd0168c0 Primary button goes last
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I640d72aef88914d7c045c630dbc2a592ab4c17c3
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
191a012559 Improve 3btn dialogs: don't allow btn to have 0 height
Particularly visible when on mobile and the conflict
dialog appears. Without this change primary button can shrunk.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id27761b53a425d16ab4bd2ef2a801890d899ee69
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
3dd88b5af6 Cypress: Force click zoomin and zoomout plus wait before check value
Form tests seems to be a bit unreliable due to toolbar down items
- Not be visible sometimes
- And when the zoom check up is too fast

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4319db1a833335300780d052555f33afc976f33a
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
8896ad25b5 Cypress: Scroll before attempting access StateTableCellMenu
Before scrollbar-right would get in the way making it impossible
to click in the desired element

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6a00dfe8cddf503d39d8e7207b46bba1588f9b96
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
2e863c37ee Don't load btn hover status CSS rules when on mobile
Better to make sure we only use those on desktop. Otherwise,
a tap can trigger undesirable rules (changing bg etc)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I838328a55ee8943eccbbe8d69b99f76640fb3a69
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
11cff31803 Fix button order on newAnnotationVex
Submit button should be last so to conform with the current order
used anywhere else.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id794a608621b88076a80cc7ae8dda1e69512ca4f
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
7be4219d3b Add mobile-wizard-titlebar-btn and remove hard coded rules
No need to target #insert_comment solely
- Add generic class so it can be reused
- Do not absolute position etc
  - Use flexbox

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibeb1c517c5fd45b7a7774203cfa5e2a5210678ea
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
45341ab31e Remove master slides sidebar's btn CSS declarations
Better to inherit from button.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4dacfefa1f551c67e1b00910f25393897f7ccae9
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
1a29f1004a Don't use vex btn default btn CSS classes (rename)
By Renaming .vex-dialog-button-primary -> .button-primary and
.vex-dialog-button-secondary -> .button-secondary

- So we can remove duplicity on CSS buttons
- Easier to set vex primary and secondary button to use our css classes
- This way there is no need to hunt those specific cases down.
- Update cypress tests

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I82f4b33560367805eeeeb5aec9af8d1abd313788
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
e2f15a6888 Reduce CSS selectors targeting buttons
You can now, since 1db5e39ef7 got merged,
rely solely on button-primary and button-secondary class.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic0eb08b443ab6c523d69e50df197eb0d3850fbd4
2022-09-06 17:01:21 +02:00
Aron Budea
b5f6205053 Bump package version to 22.05.5.4
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ida3aeac18a52236833bdc96122e67c6a8c19cc64
2022-09-06 12:26:44 +02:00
Pedro Pinto Silva
53e6bdd62a Set group_download_as to true as default
There are now too many download options to have each format as
an individual icon on the tabbed view. Plus with improvements
introduced in cbf5f1ad71
we can now safely set group_download_as to true as the default
value. Of course, it can still be switched to false if so
desired.

Notes:
Ideally, and if no one objects to it, we can later on and after
a period of testing remove this option and have only one way of
implementing/showing download options (as dropdown).

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1130684ec2ec54832f5a13648754d29ac71b9d35
2022-09-06 09:36:41 +02:00
Aron Budea
6910653a8c Temporarily disable unit-tiletest
Due to this error:
[ coolwsd ] TST  testTileProcessed  [testTileProcessed] (+12566ms):
ERROR: Assertion failure: Expected exactly the requested number of
tiles Expected arrivedTile == [25] but got [28]
| TileCacheTests.cpp:1580

Probably since 2cc955f9109c0fc8443c9f93c1bf6bd317043cb5 (core)

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ie854a57e4241f2c8fbf8e3d769aba8a19981feb1
2022-09-05 22:00:18 +02:00
Aron Budea
c4975d01e5 Split config.h into separate headers to avoid extensive rebuild
Eg. if only the version was changed, config.h was updated, and
everything was recompiled.

New structure, maintain these manually:
config.h.in - for configured variables that are stable if
              configuration parameters are unchanged
config_version.h.in - for version/hash related variables

----
config_unused.h.in - still generated by autoheader with all
                     variables, don't use it

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Id9a50a9f1e798a3b3814778d8683b7d7cb57bb29
2022-09-05 12:32:49 +01:00
Michael Meeks
3a1deab1d4 Prometheus - log per-document details for getMetrics.
This should perform and still be reasonably compact even
for large numbers of documents.

Change-Id: I3820af6c23806d569c23a893bd8db040dfb351e8
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-09-05 12:31:33 +01:00
Andras Timar
f3f849c153 add coolstress to rpm package
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7b98533dbbec01112b3c5b1a354178aec5e7d926
2022-09-01 21:44:51 +02:00
Michael Meeks
0ff45bd461 coolstress: remove redundant load.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I2656fb58a0fb9ce566a47656b2080a07d980869d
2022-09-01 13:33:20 +01:00
Michael Meeks
1407aedf1f coolstress: add man-page, cleanup somewhat and document a little.
Change-Id: I57b6bb7bde6e0fa8ffd9a08cf5b9d8c8b4759bf2
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-09-01 13:33:20 +01:00