Commit graph

1966 commits

Author SHA1 Message Date
Translator-3000
086d7010e9 Translated using Weblate (Italian)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Translator-3000 <weblate.m1d0h@8shield.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/it/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I04fb3f4a21b35a01c6a5b062e0853536a3d52bb3
2023-01-16 19:35:30 +01:00
Tor Lillqvist
3c39657ae5 Add debug output and simplify use of QtLoader
Also, don't load online.js. It seems that it will be loaded into the
JS "web worker" for each thread automatically by
online.worker.js. (But hmm, what loads online.worker.js? I am probably
completely confused here. Probably getting rid of Qt things
(qtloader.js) and using only JS that Emscripten produces (modified if
necessary) will make things simpler to understand.)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I050a20a553b7c0f6ebe9db0e7cb9cab2f9829f9e
2023-01-16 18:43:21 +02:00
Tor Lillqvist
7978e74434 Try to send the HULLO message only after the WASM runting has been initialised
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ida3e01482db0e18d17e8e6db0c75667c39adae59
2023-01-16 18:43:21 +02:00
Tor Lillqvist
cd592a4ec2 We use String.locale unconditionally so make sure it always gets set
Even if the URL did not have a query parameter called "lang".

And yes, we should stop using String.locale for that, and instead add
our locale property to window.app, which seems to be the place for our
code to store various global state. Using String.locale is hugely
confusing. I naturally thought it was some built-in JavaScript thing
and was very confused when it was undefined and I couldn't find any
documentation on it.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I549d3dac1be0991f87f1ca3aa3f147b081e898b1
2023-01-16 18:43:21 +02:00
Tor Lillqvist
40f53c6696 Initial attempt to load the WASM using code from Qt
Obviously just this is not a good reason to involve Qt, but we want
now initially to get something to even show up, so let's start by
using HTML and from the Qt-based WASM-LibreOffice. Let's see.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7841fce8e5680a983cc00d516c3fca3a6747e9dc
2023-01-16 18:43:21 +02:00
Pranam Lashkari
7d75902d0e zotero: added support for multiple citations with refmark
now refmarks support to cite multiple sources at a place

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I07639bbc7206dd69a604b7aeabe4cf1a6fea5ca3
2023-01-16 16:31:53 +01:00
Pranam Lashkari
e13e28de24 zotero: added support for multiple citations with bookmarks
now bookmark support to cite multiple sources at a place

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iafc65224d35ff6af5bcae09988567901ffd64dbc
2023-01-16 16:31:53 +01:00
Pranam Lashkari
da345e6de6 zotero: added support for multiple citations with fieldmark
now fieldmarks support to cite multiple sources at a place

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iea3b6f7bee208d0a7c01780ec5b837d7f1042b4d
2023-01-16 16:31:53 +01:00
Szymon Kłos
8780b35fea Zotero: don't show errors on load
- allow reading bibliography properties on load without api key
- if fieldType is missing - use default

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic4ece4b4d61032a29f03cf57852cbdf6694a5294
2023-01-16 14:23:35 +01:00
Gökay Şatır
06916902cf Disable start/stop updates for Calc.
Another method is used for Calc while scrolling.
Remove unnecessary call to draw in control.header.js
Add condition for draw calls while scrolling on desktop view. Scroll bar is visible by default on desktop.

Remove commented-out code.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iaaa0267c63a9a92aa67786231baf53a625541440
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2023-01-16 16:02:15 +03:00
Pedro Pinto Silva
1727383e7c Fix invisible text on primary button (hover)
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic07482aebe79e1dbd796acafbbd132a1449fe121
2023-01-16 12:08:13 +01:00
Gülşah Köse
b406a28af1 Prevent the conflict of welcome and missig font dialogs
If the welcome dialog will be shown we postpone showing missing font
dialog to user.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ie19a81588873842f92f4d482c14f07f112b1bcc3
2023-01-16 10:40:21 +01:00
Pedro Pinto Silva
283b225b96 Fix Missing title on showInfoModal when on a mobile
Before this commit dialogs such as hyperlink leave editor warning
or fontmissing didn't have a title

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icded55a489dbfebc2fb7e12fe0b04da70938a416
2023-01-16 10:40:21 +01:00
Gülşah Köse
1fb15d4179 Missing Fonts dialog: Use JSDialog instead of Vex, allow dismiss
Before this commit it, it was impossible to:
- Dismiss the dialog by clicking anywhere else
- Dismiss when using mobile (it blocked both editing and reading)

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I3caeef327e653a054994fb01e8e53c5023c20055
2023-01-16 10:40:21 +01:00
Szymon Kłos
4c2c8833c5 Zotero: show snackbar when API key missing
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2d05d29096bef0eb27cb4cf684bae2a3a175c57f
2023-01-16 10:18:04 +01:00
Szymon Kłos
5269851595 Zotero: handle disabled state in config
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id65ec60a9832872cf24dd7f295ffb90ad9b377d3
2023-01-16 10:18:04 +01:00
Szymon Kłos
3b3d648e39 Zotero: ask integrator if key is missing
It sends post message to the integrator: UI_ZoteroKeyMissing
if API key was not provided in CheckFileInfo and user tried
to perform any action on bibliography

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia7d04cbdd337d989e33bd4e1500efe113131a326
2023-01-16 10:18:04 +01:00
Pranam Lashkari
a493190392 zotero: renumber numeric bibliography
renumber the identification number in bibliography to match the citation number

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ic1eec6044e45c2b24aff1f9127fdb13cdab97313
2023-01-15 19:47:07 +01:00
Tor Lillqvist
b248787bfa We do want to temporarily use the idea that a "WASM app" is a separate thing
Only once we have that working will we go back to having a COOL client
that on the fly can switch from a normal COOL server to using local
online and core code in WASM.

Note that the --with-wasm-fallback configure option now then
temporarily is a no-op, and the ENABLE_WASM_FALLBACK Automake
conditional and WASM_BUILDDIR Autoconf macro are not used anywhere.

Once we have something that barely works as a proof of concept, we can
go back to working towards what we really want.

(Yeah, yeah, I know that "temporary" solutions have a tendency to
become more permanent than you expect...)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2f01acd418686e672fd9d2e12cbbd688b128dfa5
2023-01-15 19:46:37 +01:00
Tor Lillqvist
0a85ca0c2a Some initial thoughts how to handle messaging when WASM fallback is active
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I4146c5b93a3f5988b16836231e529640e9126392
2023-01-15 19:46:37 +01:00
Tor Lillqvist
ee157c0810 Clean up WASM-related stuff in configury and the cool HTML page
There is no "Emscripten app", but a COOL client that additionally can
fall back to using in-client WASM code instead of a COOL server.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I86517c6a8f6e0397f6c466278c7be19db001e6d8
2023-01-15 19:46:37 +01:00
Pranam Lashkari
4e5a9ddd6a zotero: update bibliography together with citations
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I0387d01e3e4eaec7a11e9ef58c790b1719f9abee
2023-01-15 11:08:29 +01:00
Pedro Pinto Silva
46f392bd0d Add min and max width to jsdialog modalPopup
with the introduction of showModal:
https://github.com/CollaboraOnline/online/pull/5518 we now have
a type of a dialog that, without this commit, can grow without
limits and can be as small as its content which is not ideal.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8768925377606924fd70fab8be40b0b755d802ac
2023-01-15 11:08:13 +01:00
Pedro Pinto Silva
73f2dfc591 Zotero: CSS: Ensure spacing between labels and other elements
While avoiding to add extra space to first elements

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia4102a783525e801e3adcd7dd8b621bb10ff2eb3
2023-01-14 09:41:47 +01:00
Pedro Pinto Silva
8336217607 Zotero: CSS refactoring: do not use id to target labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I312143e0c1764c7ecd761b95605b6f1e611e39c6
2023-01-14 09:41:47 +01:00
Szymon Kłos
7a9e18164a Zotero: fix error when not selected style
When ok is enabled and style selected - just use it
When style wasn't selected in the pase - ok is not enabled

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2f36dd967e44dfdaf5210f030521fb6c1ec6ecf5
2023-01-14 09:41:47 +01:00
Szymon Kłos
ea54185c3a Zotero: split JSON and add field type in settings
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8a96be86b00e80f1777a544a2385741b060008e2
2023-01-14 09:41:47 +01:00
Pranam Lashkari
f68ffa4356 zotero: extract item key from item URL
online stores keys as item id,
but other softewares use numbers for id and no other fields store keys.
keys are required in order to fetch the data from API.
So extract the item key from item URL

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ib2d25df81f975d0e926627408047b79c624394fb
2023-01-14 09:04:27 +01:00
Pranam Lashkari
dad74756c9 zotero: fixed style attribute storage in xml
style settings were treated as html instead of xml,
which caused attributes to lose its camelCase naming,
due to which some attributes were unrecognised and caused regression

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I34f211c54f9692ec67e08a872a68f516b1f82944
2023-01-12 21:29:28 +01:00
Szymon Kłos
50148416be Zotero: check available languages
it reads citation style and shows only available languages
if last used locale is available - use it
if not - use default defined by style

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7539ffeb3942d3a1f8b44c5a17b69b4b4b9b475c
2023-01-11 21:56:21 +01:00
Szymon Kłos
0d5590e7d3 Zotero: add message for failed requests
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I123c629947fd357aec2430a5736cf5c08ee15cb3
2023-01-11 18:15:49 +01:00
Dennis Francis
678e7e88fa writer: vex-desktop: clicking away drops comment
In case of desktop browser window whose size is only a little bigger
than the page, our native comments get collapsed and we use vex. In this
case don't close the comment dialog on clicking outside the dialog or
when switching browser tabs.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I92c9d800d58a6910d6df01371e6748c864641cff
2023-01-11 13:12:38 +01:00
Michael Meeks
506c739233 delta: add trace events to monitor delta performance better.
Change-Id: I1e537108e4ad43f5e7161e629c8fa72387eac3e2
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-01-11 11:52:29 +01:00
Dennis Francis
cb85497cdd Revert "share css-url renamer with branding"
This reverts commit 089b6d235a0e38d5b1d021fab024becc2def0ada.

Reason for revert: For packaging builds the global.js is in minified
form hence marker comments are not present and it is difficult to
extract the css url renamer function without js-language analysis tools
or packages - this needs more thought.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I86755cd74c8f92105b157477f7da8f6e439f1f99
2023-01-11 11:49:36 +01:00
Pranam Lashkari
d86a0b48bc zotero: update existing bibliography
if bibliography already exists, update existing and avoid inserting a new copy

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ief742a5c18d2cc9acd9fb14d5c3545bc7fcaa4da
2023-01-11 11:48:02 +01:00
Pranam Lashkari
2bbe4e0aa0 zotero: add support for refmark and bookmark for bibliography
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ic8c5e02a58c43a137246fd92cfa8378530131349
2023-01-11 11:48:02 +01:00
Pedro Pinto Silva
1c69fe0dcc Show citation snackbar also when loading up document
Before this commit, when opening a document with citations,
citations would be updated and the document refreshed but without
any information of what is happening

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I474e8cdf9c31e18027501ebfc9bd6dd2f55a58a5
2023-01-11 11:47:51 +01:00
Dennis Francis
f583ca47c9 browser: hide fontworks ui for non-odf files
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I8497a6b34186ce4167e4f864579a49a7d9910fb6
2023-01-11 16:15:18 +05:30
Gülşah Köse
966e62adc7 Use thin instead of auto for scrollbar width
On Windows firefox auto setting is not handled properly. Scrollbar
flows on the sidebar elements. We use thin instead.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ife27f461639e6b034ac9071624d628cd35709191
2023-01-11 10:42:31 +01:00
Tor Lillqvist
99afb66870 Add FIXME: We don't want a separate HTML file for a "WASM app"
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I3ce8d34e987350a82e9d86dcc0877bc12952c522
2023-01-11 09:27:36 +02:00
Tor Lillqvist
28ca327640 Need to pass strings to C++ with allocateUTF8()
Also need to free them afterwards. Later.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ie09f268132d01fb51a7126fc3c97272f1e11246c
2023-01-11 09:27:36 +02:00
Tor Lillqvist
8cc1c1baa5 Preparations for a "WASM app"
The WASM C++ bits (in wasm/wasmapp.cpp) will have to export functions
hande_cool_message(), handle_error_message(), and
handle_debug_message() to receive the calls from JS.

Change-Id: Ic7f2cffdeb4408a9f726ad70a8ceb8db372787dd
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2023-01-11 09:27:36 +02:00
Pedro Pinto Silva
d43243bc47 Fix Zotero labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I25e0cbb871c7631d14cc14aca497ef944c37b58f
2023-01-10 22:35:47 +01:00
Pranam Lashkari
1c73ec45dd zotero: introduce bookmark support for zotero citation
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2cddea94988c12459e35c83ca9327c2a0a32f0f9
2023-01-10 19:28:14 +01:00
Dennis Francis
a0d86c8a6f share css-url renamer with branding
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I849948c69e9cc656c410513f9f95db2e7fb07e03
2023-01-10 11:40:50 +01:00
Szymon Kłos
f542aff8ea Zotero: show placeholder text when loading
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib3ce91ddaa80645e844e760f5a5e90d7b78c25eb
2023-01-09 22:00:00 +01:00
Szymon Kłos
a4ebc7fda2 Zotero: use private info for key
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie2459b8002d33a6e9a5c4bc21e129df602fe588b
2023-01-09 21:55:06 +01:00
Szymon Kłos
c973cb99d7 Zotero: remember last used style
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I01877c0a22f71d21cb146b350dbd8449452764a9
2023-01-09 14:46:34 +01:00
Pedro Pinto Silva
b308ba68e9 JSDialog: Add padding in between columns and fix th alignment
Before this table columns were getting "glued" (content of one
col would end and immediately would start content of another col).
Plus, we were having table content normally aligned to th start
while headers were being centered aligned

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie0908c26d1e7bedc37b3c5d768d941b091946524
2023-01-09 14:30:39 +01:00
Szymon Kłos
b338c3faec jsdialog: scroll treeview to selected entry
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7c88df039fc0358b3444be3552f2e200ee3bf71f
2023-01-09 13:33:00 +01:00