Commit graph

16769 commits

Author SHA1 Message Date
Andras Timar
e6dcb98d1d docker: online master branch is buildable with code distro/collabora/co-2021 branch
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I274b4fe636bdb19c45c32b4ec7af1c4e7b711522
2021-11-22 14:24:44 +01:00
Pranam Lashkari
4aeaafee98 quarantine: quarantine file on loading
additionals:
make sure quarantine does not fail on the exit

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8843ba7e72dc3703c1168b57c9927598bfa5d1f7
2021-11-22 17:31:53 +05:30
Szymon Kłos
2c6846270e Hyperlink dialog: use textarea to handle line breaks
Related to:
https://github.com/CollaboraOnline/online/issues/3645

When we select text with multiple lines - line break
is ignered in the result. Paragraphs will be concatenated.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia7545bbee334a44517c416260f3dd911e0ae8eec
2021-11-22 09:58:36 +01:00
Pedro Pinto Silva
9f1bbfd627 Comments: make textarea re-sizable again
What was introduced in 263c8e8e89
didn't work anymore and instead active comments (simply focuses,
not editing nor replying) were getting those css changes making them
auto width (result: super long width)

Fix that, by adding CSS classes to the container and making sure only
annotations with those textareas can be re-sizable

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I109867505eba3aa4193d342a0a53d48dd772f807
2021-11-22 09:55:33 +01:00
Pedro Pinto Silva
639c70bf13 Comments: bubbles: avatars with different sizes
Make sure .cool-annotation-img does get inherit default padding
so both .cool-annotation-collapsed and .cool-annotation-img have the
same size

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib0fd5cfd3b8eb124d39e3f7f36ad3e834b908b78
2021-11-22 09:55:24 +01:00
Szymon Kłos
3145400e30 comments: don't show bubble preview on typing above
When comments were present in the document and collapsed into bubbles
- when user pressed "enter" above comment's target so paragraph position
was changed - bubble preview was shown.

After the patch we don't show preview in that case.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3693d20360a93a78732bc864eb79720c0b173e38
2021-11-22 07:01:43 +01:00
Andras Timar
c95afc5fc0 Bump version to 21.11.0.2 (RC2)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5923ded1e1ae35172268fddbaff94966858c036e
2021-11-19 21:29:51 +01:00
Andras Timar
f459d23462 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0f7f56ac651c3c79fe575824f9ea93058b9eb1b4
2021-11-19 21:21:53 +01:00
Ihor Hordiichuk
939e365867 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (419 of 419 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: Iac719ca1bd5858e4dad8da6dfd4dd7781a08c357
2021-11-19 21:19:19 +01:00
Oğuz Ersen
037e8720e8 Translated using Weblate (Turkish)
Currently translated at 100.0% (419 of 419 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
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: I1d66fbdc6e138e9322b8f56bcaad73ba3dc06d81
2021-11-19 21:19:19 +01:00
Matthaiks
1b66740580 Translated using Weblate (Polish)
Currently translated at 100.0% (419 of 419 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: If1615994a419d1df14133c8ca8062b4f2613169a
2021-11-19 21:19:19 +01:00
Sveinn í Felli
d3c9d70b7e Translated using Weblate (Icelandic)
Currently translated at 100.0% (419 of 419 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/is/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia25af7ea9214fed4130e88b0799ca4ddccf521f0
2021-11-19 21:19:19 +01:00
Yaron Shahrabani
127abfb9c9 Translated using Weblate (Hebrew)
Currently translated at 100.0% (419 of 419 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: I80f3cca7ec9d92640bdf3dec347f8728126fcdf1
2021-11-19 21:19:19 +01:00
Nathan
00624dd5e2 Translated using Weblate (French)
Currently translated at 99.0% (415 of 419 strings)

Co-authored-by: Nathan <bonnemainsnathan@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id9b9e59e403e0ffb5842a898f3d1983c8cb9309c
2021-11-19 21:19:19 +01:00
Andras Timar
9c55ee4020 Translated using Weblate (Hungarian)
Currently translated at 99.7% (418 of 419 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: I3322266a815cb0ba5e6025ced9d42efa28f4a273
2021-11-19 21:19:19 +01:00
Jan Holesovsky
dbe05b2d48 Cleanup the old binaries
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: I16375c3d1c55cf7bda690a3c71dd5c996cd8be5a
2021-11-19 21:16:32 +01:00
Henry Castro
48de06037f feedback: show only to the main user in a multi-user document
case.

Change-Id: Ia779d95cba6aec69207239420012f926a3ba93ad
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-19 19:37:44 +01:00
Henry Castro
8aa27d4789 feedback: increase a day when "later" button is pushed
Change-Id: Ie6cba7f5582cc23aa50398d39964d1559895cbdf
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-19 19:37:32 +01:00
Julius Härtl
32265b7c61 browser: Only apply header avatars for desktop
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: I1609f0dba93bc44fa4a21685129bfdce136ec04e
2021-11-19 19:37:09 +01:00
Julius Härtl
0ccbb5704a browser: cleanup header avatar handling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: Ia75ac01fdee25765b458fe799e797f553f289048
2021-11-19 19:37:09 +01:00
Julius Härtl
b31bb2c08a browser: Adjust header avatars to fit default theme
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: I2a73639fb0250da4d56f1f251ec41d4f59247fe5
2021-11-19 19:37:09 +01:00
Luka Trovic
f9e81b187f add avatar list to the top right of the header
Signed-off-by: Luka Trovic <luka@nextcloud.com>
Change-Id: I07bd9271e833c4839d76c6ea73866b2b984d5e14
2021-11-19 19:37:09 +01:00
Julius Härtl
40c8152ee4 browser: Move menubar to a flex-based layout
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: I80fecf7c08b6cc0360fb606bbb7ba3f0171cf52e
2021-11-19 19:37:09 +01:00
Szymon Kłos
342e4415a2 Fix reconnecting after rename
Regression from f92e85dacc
Ensure that options are always initialized.

Socket.js code expects that access_token and other params
are under map.options.docParams not map.options.options.docParams.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie6d7055c3865e6fce1754bce5272cee7f4973b68
2021-11-19 19:35:55 +01:00
Jan Holesovsky
b4f588ea3c Add a value "default" for the user interface
To be able to override it by a new package version, if necessary.

Also, when explicitly configuring the "classic" or "notebookbar", make
it override what is provide in UiMode.

Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: I4b9764b32ce712d8bfd46ef90d9c8538fcaf921b
2021-11-19 16:08:44 +00:00
Aron Budea
14d28ca8b6 Make Notebookbar the default
Remove all occurrences of USER_INTERFACE_MODE configure
variable.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I398d97fa975a0c52391547d2e791ff17e7effde6
2021-11-19 16:08:44 +00:00
Gökay ŞATIR
f631404ad2 PDF View: Solve native scroll bar flickering and don't set part while zooming.
Previews' scroll bar was going up & down rapidly while zooming in & out.

Selected part was being changed while zooming in & out.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I8dcc0973f3822ad6af7a710ae0c073ea95732e4b
2021-11-19 18:32:29 +03:00
Gökay ŞATIR
f7dbf01cf6 FileBasedView: Check existence of pages before drawing backgrounds.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I8619e2ecb65c0ece2807af87de3fd83bbc57b500
2021-11-19 18:32:29 +03:00
Gökay ŞATIR
6b5686b0b2 Revert "PDF View: Add a redraw after setting the selected part."
This reverts commit 29299650ac5a9b2b7e227ede0e6eff5eb0013623.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I56a5ba2bed4e5352570e0f250ad531dd3deabdd7
2021-11-19 18:32:29 +03:00
Gökay ŞATIR
086bdbe826 Use clicked point of the scroll bar
instead of a constant.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I9f8b905ce69f5ea5a21eb8e3236768cfaf6257d0
2021-11-19 18:32:18 +03:00
Gökay ŞATIR
ec2fefa843 Scroll bars won't move when pointer position is not parallel.
This improves user experience.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Ia1706610727015a2fd8f35c42c1cc9583883fd45
2021-11-19 18:32:18 +03:00
Szymon Kłos
f47ffb5365 mobile-wizard: count visible panels correctly
When opened mobile wizard with shape selected and then
selected some text and reopened mobile wizard - only
one panel was visible.

With new welded sidebar panels can be added to JSON but
not visible

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Icca33a5a8d467f66c5a0d32fee046f4b8d4adfde
2021-11-19 15:24:04 +01:00
Szymon Kłos
90a97723a4 jsdialog: use unformatted text
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic6dbd0ca47798cd421d8a5f5ceabbf1c38022448
2021-11-19 15:23:57 +01:00
Pedro Pinto Silva
e44737af72 About dialog: space after git hash: was being ignored
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8b5df84c26e748e482f50e61a74018ce6ec4964c
2021-11-19 15:08:57 +01:00
Pedro Pinto Silva
d80252d240 About dialog: Use different chars around git hash
- On desktop keep using `(`...`)` around string
	- But make it possible to remove easily and automatically when on
	mobile
	- make sure there is a space right before that
- On mobile we normally have less space horizontally and it's harder to
	read long line
	- So place git hash as a new line (it also has the advantage that both
	links [co and integrator] will now align with each other making it
	easier to spot and tap on them)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie43a5374e3617da2e5f9b7e19c61601ff935ce4a
2021-11-19 15:08:57 +01:00
Pedro Pinto Silva
92fe320389 About dialog: fix text wrapping on mobile
On mobile `git hash` and subsequent value was not wrapping properly
before

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iae4c61433406e4203869022a21b04e6489490ab4
2021-11-19 15:08:57 +01:00
Rash419
f815ff459b wsd: fix: don't use hardcoded PostMessageOrigin
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I72da1c8e3cfea0d4984c80b6dddd3e39af020bee
2021-11-19 14:08:16 +01:00
Andras Timar
b6182877a8 backward compatibility: /lool/convert-to endpoint
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8a3930a01a18be32bee657142f872ba58383594d
2021-11-19 13:27:27 +01:00
Miklos Vajna
dcfe16eec1 coolconvert: fix stack-use-after-scope
The vector is allocated on the stack in a for loop, so it's not valid to
refer to its address in the lambda that is executed on a thread. Rather
copy it.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ie1f85d6efb27a4aa44b181f8d9f134e9fa41d508
2021-11-19 12:41:28 +01:00
Andras Timar
5ffcd450a8 rename: add compatibility for existing integrations
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I013a042b47906ab48a0d02de422982dd8a6c85e4
2021-11-19 11:21:22 +01:00
Szymon Kłos
0bdc9efff3 Use edit hyperlink dialog from online not core
This changes commit eb387cc7b1.

Edit dialog is not working, causes crashes and shows features
that doesn't work (linking to other documents in core).

Use dialog from online instead.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4a32b921f5573c66739c20407e3c6cc6358f5579
2021-11-19 10:06:41 +01:00
Andras Timar
2a2f567d8d docker: prepatarion of CODE 21.11
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I434ed669549fcf0c0a6417b63ff2ebed3cac18e3
2021-11-18 16:06:01 +01:00
Andras Timar
e612e0a252 rpm: fix installation of compat symlinks
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I62448c913aee307521fcbfcf14480601d8cdefa7
2021-11-18 15:41:02 +01:00
Andras Timar
f07ff8c7e0 rename: remaining lool->cool changes
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib7d4e804bebe52dead8d53b0e0bbaed0f08bf3d0
2021-11-18 14:14:11 +01:00
Gökay ŞATIR
a8a0ce22c2 NotebookbarBuilder.js: Set role of Menubar.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I9ca0748385297fb144de884eefaaf3593dfcc546
2021-11-18 15:20:12 +03:00
Gökay ŞATIR
f83895d4a6 Impress: Set aria-labelledby attribute for "selectbackground" element.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Ia338ac8dce20cb247a5dc4a87eb292e1a51dcf34
2021-11-18 15:20:12 +03:00
Gökay ŞATIR
62d4c87808 Add aria-label attributes and make them translatable.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I23472ec2836ca686a11cfb9ff2e623f7c88cc75a
2021-11-18 15:20:12 +03:00
Gökay ŞATIR
a5380a5165 Spreadsheet: Remove unused element.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Id02f8eb522a3ee3f7121314c37478bdc4d7b6efa
2021-11-18 15:20:12 +03:00
Gökay ŞATIR
cabe3d77e4 Control.UIManager.js: Remove unused element according to file type.
Ruler.js: Remove wrong labels.

Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: Ib3d8f2a68048064f445e84cb1252b7311ffdfcaa
2021-11-18 15:20:12 +03:00
Gökay ŞATIR
11edb496a2 Menubar.js: Add role and tabIndex attributes to menu items.
Signed-off-by: Gökay ŞATIR <gokaysatir@gmail.com>
Change-Id: I50365a195c2481c2056d5ac1a830539a5e22b38f
2021-11-18 15:20:12 +03:00