Commit graph

10377 commits

Author SHA1 Message Date
David Benque
cf733832ca Merge branch 'totp-ui' into 5.4-rc 2023-07-13 10:44:18 +01:00
daria
a0ba94b191 removed timer button for disabling 2fa on recovery page 2023-07-13 12:20:15 +03:00
yflory
3387a575cd Disable QR-code tab in share modal 2023-07-13 10:53:00 +02:00
David Benque
065dbc1716 Temporary micro-copy 2023-07-12 20:29:35 +01:00
David Benque
740f32b5c5 Fix error message when entering no password
- making the message more generic
so that it can be reused for the 2FA setting
2023-07-12 20:05:27 +01:00
David Benque
95f4cecd17 Add UX for "destroy all owned" 2023-07-12 20:03:38 +01:00
David Benque
e14dff5596 Re-organize settings categories 2023-07-12 14:28:29 +01:00
yflory
5911051ccc Merge branch 'notif-history' into 5.4-rc 2023-07-11 14:59:21 +02:00
yflory
69938ecb26 Fix missing data in notifications history #1060 2023-07-11 14:58:59 +02:00
yflory
d39008108c lint compliance 2023-07-11 13:39:53 +02:00
yflory
e27da863d3 Upgrade CKEditor to version 4.22.1 #1119 2023-07-11 13:39:07 +02:00
yflory
1c8fb8077a Upgrade mermaid to 10.2.4 #1118 2023-07-11 11:34:33 +02:00
daria
ae8e0ff52e removed timer button for enabling 2fa 2023-07-11 11:55:09 +03:00
yflory
c10fc37645 Merge branch 'totp-ui' into 5.4-rc 2023-07-11 10:30:36 +02:00
wginolas
860a5b22b5
Merge pull request #1068 from lemondevxyz/fix-issue-1054
fix issue #1054 by converting png to ico and linking them
2023-07-11 08:22:01 +02:00
yflory
99346f323d Apply integrity checks to notifications history 2023-07-10 17:38:39 +02:00
Ahmed Mazen
c85b58e188 remove unnecessary logs & make npm run lint silent 2023-07-10 20:39:26 +08:00
daria
78ad809200 better UX for 2fa enabled/disabled message 2023-07-10 13:20:52 +03:00
Ahmed Mazen
4b3cd9484c add "(copy)" to implicitily titled documents
Normally, documents that are created get a title similar to this: "Sheet
- Mon, July 10, 2023". This commit adds " (copy)" to those documents
when copied.
2023-07-10 18:01:54 +08:00
Ahmed Mazen
ce577e1a07 make npm run lint happy 2023-07-10 17:47:20 +08:00
daria
085b848cee Disable TOTP buttons' color changed from red to blue 2023-07-10 11:42:28 +03:00
wginolas
66c4c33916
Merge pull request #1067 from lemondevxyz/fix-issue-1061
add a "make a copy" element to onlyoffice applications
2023-07-06 08:23:11 +02:00
Ahmed Mazen
4e32a9ac06 add favicons statically in each application
The last commit added `.ico` versions of the `png` favicons. This commit
adds each favicon statically to each application's `index.html` file.

By statically, I mean it is not inserted through Javascript and instead
is present in the file already.

This fixes favicons not displaying on Firefox.
2023-07-03 08:46:12 +08:00
Ahmed Mazen
78957817e2 add " (copy)" to copied OpenOffice files
Normally, copied CryptPad files have a " (copy)" suffixed to them but OnlyOffice doesn't because it has different internal architechture.

Copied OnlyOffice files can be identified by two attributes: a non-empty title and template data.

Since OnlyOffice files cannot be just copy and pasted, I resorted to modifying their metadata through metadataMgr in `./common/onlyoffice/inner.js`

Essentially, this commit check if a file is a copied file. If it is, it updates the title. It doesn't actually copy the file but merely modifies the title after it has been copied.
2023-07-01 08:23:02 +08:00
Ahmed Mazen
1406fd5ad7 Revert "add " (copy)" to title of copied file"
This reverts commit 45a4c8f39d.
2023-07-01 04:01:46 +08:00
daria
2da29b475a some UI settings page fixes
recovery page UI fixed
2023-06-30 20:03:20 +03:00
yflory
89e08b08bf Fix rich text loss of data #1074 2023-06-30 13:09:31 +02:00
yflory
b2788744de Merge branch 'drawio-bower' into 5.4-rc 2023-06-30 12:45:54 +02:00
yflory
eeed65b4ff Merge branch 'debowerify' into 5.4-rc 2023-06-30 11:33:49 +02:00
Ahmed Mazen
45a4c8f39d add " (copy)" to title of copied file
This commit basically adds " (copy)" to all copies of files.

The "Make a copy" button sends an event to
`./www/common/sframe-common-outer.js` with a ton of variables. Luckily,
the title of the file is available as originalTitle and all I had to do
was simply add `+ " (copy)"` for it to work.
2023-06-30 03:28:21 +08:00
daria
c21c732251 UI settings page fixes/improvements 2023-06-29 15:59:56 +03:00
Ahmed Mazen
6d41d64cb8 create a script to convert images to ico; convert pngs to icos
Basically, all this commit does is create and execute a script
(`./customize.dist/favicon/convert.sh`) that uses ImageMagick to convert
various PNGs to ICOs(the format of favicon). It also adds the favicons
to the HTML document through `./www/common/notify.js`.
2023-06-29 08:32:51 +08:00
David Benque
171add55a6 Add Diagram favicon #1066
Also adjust whiteboard icon to new color
2023-06-28 20:01:50 +01:00
Ahmed Mazen
b4db2a439c add a "make a copy" element to onlyoffice applications
This commit adds a 'Make A Copy' to all onlyoffice applications
theortically. Though, I only tested sheets since that's all I had in
my toolset.

The toolbar works through adding buttons with 'createButton' in
`./www/common/common-ui-elements.js:569` and there are (thankfully)
premade buttons. That means that buttons like 'Export', 'Make A Copy',
'Import', etc can be created by supplying the type and a boolean
indicating the right side.

But most uses of createButton are through
`./www/common/sframe-common.js:106` which is the same underlying function
of `common-ui-elements.js` but with the first two arguments skipped.

Anyhoo, this was long. Basically, all this commit does is add two lines at
`./www/common/onlyoffice/inner.js:2853`.
2023-06-29 02:32:40 +08:00
Wolfgang Ginolas
a80e749132 Disable diagram plugins 2023-06-27 10:13:32 +02:00
Wolfgang Ginolas
4e773340ce Diagrams: Pass numbers as numbers to chainpad
https://github.com/cryptpad/cryptpad/issues/1063
2023-06-26 09:17:50 +02:00
Wolfgang Ginolas
5a1738111e Clean up diagram dependencies 2023-06-22 15:49:19 +02:00
Wolfgang Ginolas
cd9fba9002 Fix merge 2023-06-22 15:08:35 +02:00
Wolfgang Ginolas
b9208eecd4 Merge remote-tracking branch 'origin/drawio-bower' into drawio-bower 2023-06-22 15:05:04 +02:00
Wolfgang Ginolas
f7d56eea16 Rename drawio to digram
https://github.com/cryptpad/cryptpad/issues/1062
2023-06-22 14:59:13 +02:00
Wolfgang Ginolas
3f8422d99b Fix drawio CSS 2023-06-22 14:39:06 +02:00
David Benque
4a13b4b70f Add diagram icon to cptools
- WIP version 7.4 of cptools icon font
- assign it to drawio application type
2023-06-22 14:39:06 +02:00
Wolfgang Ginolas
51b51fac74 Add overlay when draw.io is not editable 2023-06-22 14:39:06 +02:00
Wolfgang Ginolas
1fba52f300 Implement file in- and exporter for draw.io #1044 2023-06-22 14:39:06 +02:00
Wolfgang Ginolas
00f5f536a1 Add dark mode to draw.io 2023-06-22 14:39:06 +02:00
Wolfgang Ginolas
bef642160f Hide draw.io "Unsaved changes" message 2023-06-22 14:39:06 +02:00
Wolfgang Ginolas
8ff4bcac99 Add draw.io read only mode 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
39ceaf7294 drawio add missing framework.localChange() 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
17efa04725 Fix bower.json 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
7d42febef3 Store draw.io as JSON in chainpad (instead XML) 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
f870604f78 draw.io code cleanups and ES5 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
541567203c Hide draw.io Save and Exit buttons 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
c73377b8f1 Uncompress drawio XML for better chainpad patches 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
8801418030 Draw.io prototype with unmodified draw.io code 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
f29406315e Run in embed mode when integrated into another tool 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
ad3bcb6cb2 Code cleanups #1034 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
e0daae115e Send changed state to outer application #1034 2023-06-22 14:39:05 +02:00
yflory
5e6b042f28 lint compliance 2023-06-22 14:39:05 +02:00
Wolfgang Ginolas
f28e4cfdb1 Make document.key optional 2023-06-22 14:39:05 +02:00
yflory
af8f7e5865 API: recover from server crash 2023-06-22 14:39:04 +02:00
yflory
01e174f826 API: update demo page 2023-06-22 14:39:04 +02:00
yflory
a4e821e4fa API: add autosave support 2023-06-22 14:39:04 +02:00
Wolfgang Ginolas
ab49addd1d Fix cryptpad-api iframe DOM insertion 2023-06-22 14:39:04 +02:00
yflory
2be39c3749 API: reload content on server restart 2023-06-22 14:39:04 +02:00
yflory
368dd79883 Disable user account in integration mode 2023-06-22 14:39:04 +02:00
yflory
5081d5d3c0 Integration API: initialize an app from a Blob 2023-06-22 14:39:04 +02:00
yflory
8b0d80c0c4 API prototype: rename sessionKey into key 2023-06-22 14:39:04 +02:00
yflory
723ecc8bd6 Integration API prototype 2023-06-22 14:39:04 +02:00
yflory
318202531f TOTP: UI fixes and improvements 2023-06-20 12:52:04 +02:00
Wolfgang Ginolas
e15421d36e Fix drawio CSS 2023-06-16 15:39:06 +02:00
David Benque
e0ee16e2a1 Add diagram icon to cptools
- WIP version 7.4 of cptools icon font
- assign it to drawio application type
2023-06-16 12:26:37 +01:00
Wolfgang Ginolas
a517f1010e Disable protect tab in sheets
https://github.com/cryptpad/cryptpad/issues/1053
2023-06-15 11:50:48 +02:00
yflory
9aac9d1c2f TOTP: Use HTTP challenges to write and remove blocks 2023-06-09 15:06:17 +02:00
Wolfgang Ginolas
17bef487f2 Add overlay when draw.io is not editable 2023-06-09 14:38:04 +02:00
yflory
b3a620edc0 lint compliance 2023-06-06 16:09:17 +02:00
yflory
8b97742ef6 TOTP: don't store user hash when using block 2023-06-06 16:07:00 +02:00
yflory
5b703c8db5 TOTP: improve login UI 2023-06-06 12:34:24 +02:00
yflory
614fa4a08e Merge branch 'staging' into debowerify 2023-06-01 10:49:33 +02:00
yflory
d3a8261e67 Merge branch 'soon' into staging 2023-06-01 10:49:21 +02:00
yflory
1cbac8804d Merge branch 'main' into soon 2023-06-01 10:49:09 +02:00
Wolfgang Ginolas
afcc16cb71 Implement file in- and exporter for draw.io #1044 2023-05-31 15:38:35 +02:00
Wolfgang Ginolas
d8a452b6e5 Add dark mode to draw.io 2023-05-31 15:38:35 +02:00
Wolfgang Ginolas
9b7b2af9fe Hide draw.io "Unsaved changes" message 2023-05-31 15:38:35 +02:00
Wolfgang Ginolas
fdc33754b7 Add draw.io read only mode 2023-05-31 15:38:35 +02:00
Wolfgang Ginolas
635cb62688 drawio add missing framework.localChange() 2023-05-31 15:38:34 +02:00
Wolfgang Ginolas
49ecfe0100 Fix bower.json 2023-05-31 15:38:34 +02:00
Wolfgang Ginolas
c4f4495d12 Store draw.io as JSON in chainpad (instead XML) 2023-05-31 15:38:34 +02:00
Wolfgang Ginolas
21076120b5 draw.io code cleanups and ES5 2023-05-31 15:38:34 +02:00
Wolfgang Ginolas
1be8b4ba46 Hide draw.io Save and Exit buttons 2023-05-31 15:38:34 +02:00
Wolfgang Ginolas
ca1df6c6dd Uncompress drawio XML for better chainpad patches 2023-05-31 15:38:33 +02:00
Wolfgang Ginolas
6aff5144fc Draw.io prototype with unmodified draw.io code 2023-05-31 15:38:33 +02:00
Wolfgang Ginolas
870a91d8fe Run in embed mode when integrated into another tool 2023-05-31 15:38:33 +02:00
yflory
a1dd33a022 Make form questions selectable in participant view 2023-05-31 10:57:23 +02:00
Wolfgang Ginolas
cf09678526 Code cleanups #1034 2023-05-30 14:38:55 +02:00
Wolfgang Ginolas
7a93602e45 Send changed state to outer application #1034 2023-05-30 11:12:05 +02:00
Weblate
c6c65f60d6 Translated using Weblate (Japanese)
Currently translated at 99.6% (1580 of 1586 strings)

Co-authored-by: Suguru Hirahara <d4bb0a95-96c1-4662-9d31-a5e520a01a09@hostux.ninja>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://weblate.cryptpad.fr/projects/cryptpad/app/ja/
Translation: CryptPad/App
2023-05-17 12:01:38 +02:00
Weblate
fa0ff8ff0b Translated using Weblate (Indonesian)
Currently translated at 84.6% (1343 of 1586 strings)

Co-authored-by: Linerly <linerly@protonmail.com>
Translate-URL: http://weblate.cryptpad.fr/projects/cryptpad/app/id/
Translation: CryptPad/App
2023-05-17 12:01:38 +02:00
Weblate
8964d374d7 Translated using Weblate (Basque)
Currently translated at 99.9% (1585 of 1586 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@disroot.org>
Translate-URL: http://weblate.cryptpad.fr/projects/cryptpad/app/eu/
Translation: CryptPad/App
2023-05-17 12:01:37 +02:00
yflory
36a1c604d8 Auth: Disable TOTP/MFA from the admin panel 2023-05-16 15:11:43 +02:00
Mathilde Grünig
f5fb24031e replace xwiki-labs by cryptpad 2023-05-16 14:54:39 +02:00
yflory
e0f5b0100d lint compliance 2023-05-16 09:06:59 +02:00
Wolfgang Ginolas
027836debb Make document.key optional 2023-05-16 09:06:59 +02:00
yflory
620dfc4db8 API: recover from server crash 2023-05-16 09:06:59 +02:00
yflory
8e40cdb957 API: update demo page 2023-05-16 09:06:59 +02:00
yflory
592e5690df API: add autosave support 2023-05-16 09:06:59 +02:00
Wolfgang Ginolas
da90cb233d Fix cryptpad-api iframe DOM insertion 2023-05-16 09:06:59 +02:00
yflory
6c58bd449c API: reload content on server restart 2023-05-16 09:06:59 +02:00
yflory
67b1b2860a Disable user account in integration mode 2023-05-16 09:06:58 +02:00
yflory
7d3ce1e358 Integration API: initialize an app from a Blob 2023-05-16 09:06:58 +02:00
yflory
692c268a43 API prototype: rename sessionKey into key 2023-05-16 09:06:58 +02:00
yflory
d534338c92 Integration API prototype 2023-05-16 09:06:50 +02:00
yflory
4b51300174 TOTP: Fix copy to clipboard button in recovery page 2023-05-15 18:11:32 +02:00
yflory
ea25adcf34 TOTP: fix recovery UI 2023-05-15 17:39:11 +02:00
yflory
e893613b43 TOTP: recovery by secret key 2023-05-15 17:33:58 +02:00
yflory
be152fdaae Fix enabling TOTP with sandbox 2023-05-15 12:13:14 +02:00
yflory
d789627920 TOTP setup and revocation in settings 2023-05-12 18:21:19 +02:00
ansuz
880a156efb add basic 2FA setup app 2023-05-11 16:15:59 +05:30
ansuz
adeb7b264a fix type error 2023-05-06 19:46:05 +05:30
ansuz
1f0f48b85f simplify blob fetch behind basic auth 2023-05-06 18:59:13 +05:30
ansuz
866085dd7f better UX around QR codes in the share modal 2023-05-06 18:56:29 +05:30
ansuz
dbe0e782bc lint compliance 2023-05-06 18:55:56 +05:30
ansuz
493bf1346c Merge tag '5.3.0' into 5.3-auth 2023-05-06 15:26:21 +05:30
ansuz
5cd306a18a add client-side support for TOTP-authenticated sessions 2023-05-06 14:39:23 +05:30
David Benque
9ea29857c3 Merge branch 'soon' 2023-05-03 13:35:00 +01:00
Weblate
32e33d2794 Translated using Weblate (Portuguese (Brazil))
Currently translated at 87.3% (1386 of 1586 strings)

Translation: CryptPad/App
Translate-URL: http://weblate.cryptpad.fr/projects/cryptpad/app/pt_BR/
2023-05-03 08:43:55 +02:00
yflory
1bbca31ac0 Fix dependency issues 2023-05-02 17:49:20 +02:00
yflory
2c50fcf8c4 Update Marked and jszip 2023-05-02 14:59:17 +02:00
yflory
30bb4d61bb Merge branch 'main' into debower 2023-05-02 13:55:40 +02:00
Weblate
3099968b3c Translated using Weblate (German)
Currently translated at 100.0% (1586 of 1586 strings)

Translation: CryptPad/App
Translate-URL: http://weblate.cryptpad.fr/projects/cryptpad/app/de/
2023-05-02 10:38:42 +02:00
Wolfgang Ginolas
e06dc00044 Fix PivotDataLocation.isEqual() 2023-05-02 09:43:52 +02:00
yflory
07f39f2158 Fix form 'date' question type saved as string 2023-04-27 15:49:40 +02:00
yflory
40c34d1156 Fix forms 'Export to sheet' 2023-04-27 15:02:26 +02:00
David Benque
85947c9ed9 Merge branch 'soon' into 5.3-rc 2023-04-27 11:09:26 +01:00
Weblate
05fc274a0c Translated using Weblate (Italian)
Currently translated at 73.4% (1165 of 1586 strings)

Translation: CryptPad/App
Translate-URL: http://weblate.cryptpad.fr/projects/cryptpad/app/it/
2023-04-27 12:07:13 +02:00
David Benque
eff21bbca3 Merge branch 'soon' into 5.3-rc 2023-04-27 10:48:14 +01:00
Weblate
ba4dac31d3 Translated using Weblate (German)
Currently translated at 100.0% (1586 of 1586 strings)

Translation: CryptPad/App
Translate-URL: http://weblate.cryptpad.fr/projects/cryptpad/app/de/
2023-04-27 11:45:33 +02:00
David Benque
121eef2024 Merge branch 'soon' into 5.3-rc 2023-04-27 10:29:26 +01:00
David Benque
fb00ed0a83 Pass unused-translations test 2023-04-27 10:10:55 +01:00
David Benque
b1af6da17c Merge branch 'form-date-condorcet' into 5.3-rc 2023-04-27 09:52:30 +01:00
David Benque
7d659ea9c3 Remove hard-coded translation keys 2023-04-27 09:43:18 +01:00
Weblate
c970906b71 Translated using Weblate (German)
Currently translated at 99.7% (1582 of 1586 strings)

Translation: CryptPad/App
Translate-URL: http://weblate.cryptpad.fr/projects/cryptpad/app/de/
2023-04-27 01:32:14 +02:00
Wolfgang Ginolas
4b26460090 Add null check when calling GetOFormDocument 2023-04-26 18:41:10 +02:00
zuzanna-maria
b11c22cf4d Changes to syntax & cleaning 2023-04-26 17:39:39 +02:00
yflory
ee7a55c2c7 Fix form Condorcet dropdown 2023-04-26 16:37:46 +02:00
Wolfgang Ginolas
62f5fd6327 Downgrade OnlyOffice to 7.1.0 2023-04-26 16:31:15 +02:00
David Benque
20141d3ba3 Merge branch 'staging' into 5.3-rc 2023-04-26 14:03:09 +01:00
David Benque
613ab0f6dc
Merge pull request #1023 from xwiki-labs/form-bugfixes
Form bugfixes
2023-04-26 14:01:20 +01:00
yflory
d2854bad0c Improve performances with form Condorcet methods 2023-04-26 12:55:02 +02:00
yflory
8547219d35 Remove trailing spaces 2023-04-26 11:36:42 +02:00
Wolfgang Ginolas
b148b1f729 Disable external links in sheets 2023-04-26 11:28:31 +02:00