Commit graph

14614 commits

Author SHA1 Message Date
Fabrice Mouhartem
a56b3ace7a #1171: Use CodeMirror in the description edition 2023-11-02 11:37:26 +01:00
Fabrice Mouhartem
a2d0aad4a2 #1171: Bug with recurring events
An issue when getting back the content of an edited only recurring event
2023-11-02 11:37:25 +01:00
Fabrice Mouhartem
9b2f565c19 #1171: rename badly named variable
body was a wrong choice of name
2023-11-02 11:37:24 +01:00
Fabrice Mouhartem
6b7eedde22 #1171: Use the ical.js implementation for foldline
According to [RFC5545](https://www.rfc-editor.org/rfc/rfc5545#section-3.1):

```
  Note: It is possible for very simple implementations to generate
  improperly folded lines in the middle of a UTF-8 multi-octet
  sequence.  For this reason, implementations need to unfold lines
  in such a way to properly restore the original sequence.
```

It actually happens when an emoji takes the 75th and 76th bit.
2023-11-02 11:35:29 +01:00
Fabrice Mouhartem
b9e698ef14 #1171: Cleaning code 2023-11-02 11:35:29 +01:00
Fabrice Mouhartem
00c1323f07 #1171: ICS line wrapping for descriptions in export
Descriptions can be long and RFC5545 states that a line shouldn't be
more than 75 bytes long.
2023-11-02 11:35:29 +01:00
Fabrice Mouhartem
087f786f9f #1171: Add translation keys
* Inlined at the beginning of `www/calendar/inner.js` for future
  integration in weblate on release.
2023-11-02 11:35:25 +01:00
Fabrice Mouhartem
fba0ccd032 Lint compliance
Lint compliance for the calendar description field (#1171)
2023-11-02 11:34:52 +01:00
Fabrice Mouhartem
8c3c3d8d51 #1171: Render markdown with diffMK for details popup
* Sanitized markdown raises a warning:
```
marked(): sanitize and sanitizer parameters are deprecated since version
          0.7.0, should not be used and will be removed in the future.
            Read more here:
          https://marked.js.org/#/USING_ADVANCED.md#options
          marked.min.js:6:44783
```
2023-11-02 11:34:52 +01:00
Fabrice Mouhartem
d61b8376cc #1171: fix no scroll in long descriptions 2023-11-02 11:34:52 +01:00
Fabrice Mouhartem
7ceca7d4af #1171: Rename description with body
* Rename description in the schedule object
  -> Use the body property of [tui-calendar](https://github.com/nhn/tui.calendar/)
  for to show the description in the details popup :
  <https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/template.md#popupdetailbody>
2023-11-02 11:34:50 +01:00
Fabrice Mouhartem
398df9d58f #1171: Calendar ICS import and export handle the description field 2023-11-02 11:29:07 +01:00
Fabrice Mouhartem
bbb4a46e0f #1171: Fix nowrap in textareas 2023-11-02 11:29:00 +01:00
Fabrice Mouhartem
53ad4f5a25 #1171: The textarea is showing and is working as intended for the purpose of
creating and updating the calendar event.

BUG: carriage returns don't seem to work
WIP: the text is hardcoded as of now, have to use Messages library for
translations.
2023-11-02 11:28:46 +01:00
yflory
c354abb1e2 Fix calendar single event treated as recurrent 2023-10-31 16:01:37 +01:00
yflory
b9b99da796 Merge branch 'staging' of github.com:cryptpad/cryptpad into staging 2023-10-31 16:00:06 +01:00
yflory
d49a17f6f7 Fix syntax highlighting in profile 2023-10-31 15:59:54 +01:00
yflory
b177e4b4f6
Merge pull request #1308 from cryptpad/1275-changing-calendar-for-only-this-event-changes-it-for-all-events-in-a-repeated-event
Calendar: handling the move of repeating events from a calendar to another
2023-10-31 15:11:34 +01:00
Fabrice Mouhartem
dc522517c7 calendar: avoid warning disappearance
#1275: forgot to handle the case where a user changes its option, which
made the warning disappear…
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
4184a15d2d #1275: typo 2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
31cb79548b calendar: Improve warnings when changing recurring events' calendar
Related to issue #1275's changes.
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
76101cc74c calendar: Use variables instead of inline test for readability
WIP for #1275
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
ec6e1a030f calendar: confirmation dialog changes in case of changing calendar for recurring events
#1275: given the current implementation of recurring event, it is not
possible to move a group of events from a calendar to another.

- Disabling « Future event » if the user tries to move a recurring event
  from a calendar to another.
- Show a warning upon moving the first event to another calendar
  explaining why the user can only move the all events.
- Add a translation key for the above.
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
39371deb4d Moving the original event
#1275: handle simple cases when moving the first element of a recurring
event to a new calendar.
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
918fd3f908 calendar: apply changes on the moved event
#1275: from previous implementation, the changes were applied to the
original recurrent event and not the one in which has been moved
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
b7842cc01b Linter compliance 2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
41be1b39f4 calendar: copy-and-delete when moving an event one time from calendars
#1275: Copy a calendar item then remove it.

WIP: does not work with the first recurring event (the origin).
2023-10-26 09:40:27 +02:00
Fabrice Mouhartem
382230d4e8 calendar: Change newEvent behaviour
In preparation for #1275:

- Change `newEvent` to take an event directly
  - It would be used to add a new event in the target calendar
2023-10-26 09:40:27 +02:00
yflory
8862e59ebc lint compliance 2023-10-20 18:21:57 +02:00
yflory
33b1376b5c Fix undefined user hash in localStorage #1298 2023-10-20 14:19:35 +02:00
yflory
6e50b9d9dc Fix HPM error proxy websocket to undefined 2023-10-17 11:50:02 +02:00
Wolfgang Ginolas
13badd7ce4 Use correct mime type for .wasm files
https://github.com/cryptpad/cryptpad/issues/1277
2023-10-16 09:42:47 +02:00
David Benque
6353e18744 Edit changelog 2023-10-11 15:20:14 +01:00
David Benque
20ab917189 Remove note from Changelog 2023-10-11 13:45:09 +01:00
David Benque
558f1bc79c Merge branch 'soon' into 5.5-rc 2023-10-11 13:43:19 +01:00
David Benque
b29d3af609 Add 5.5.0 changelog 2023-10-11 13:37:43 +01:00
Weblate
992105fe9f Translated using Weblate (Bulgarian)
Currently translated at 14.3% (240 of 1667 strings)

Co-authored-by: Мария Рангелова <rangelova_1186@abv.bg>
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/bg/
Translation: CryptPad/App
2023-10-10 11:00:04 +02:00
yflory
e9bc3f1f8b Fix calendar reminder #1279 2023-10-09 16:28:59 +02:00
yflory
603f738845 Merge branch '5.5-rc' of github.com:cryptpad/cryptpad into 5.5-rc 2023-10-09 12:14:35 +02:00
yflory
14f5f5185b Fix missing icons on homepage 2023-10-09 12:14:21 +02:00
Wolfgang Ginolas
be65cff15c Fix Form to Spreadsheet export
https://github.com/cryptpad/cryptpad/issues/1281
2023-10-09 10:37:19 +02:00
Wolfgang Ginolas
c7f9474325 Add search params to x2t.wasm to prevent caching
https://github.com/cryptpad/cryptpad/issues/1278
2023-10-09 09:28:15 +02:00
yflory
16115de950 Fix expire channel task 2023-10-05 20:37:59 +02:00
yflory
ef26e68b79 Merge branch 'soon' into 5.5-rc 2023-10-05 10:19:25 +02:00
Weblate
6913562afb Translated using Weblate (German)
Currently translated at 100.0% (1667 of 1667 strings)

Co-authored-by: Jan <janrei.g@googlemail.com>
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/de/
Translation: CryptPad/App
2023-10-05 10:17:57 +02:00
Weblate
db20a4a16c Translated using Weblate (Catalan)
Currently translated at 52.6% (877 of 1667 strings)

Co-authored-by: Artur V <ecron_89@hotmail.com>
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/ca/
Translation: CryptPad/App
2023-10-05 10:17:56 +02:00
Wolfgang Ginolas
41c691bfde Implement diagram export
https://github.com/cryptpad/cryptpad/issues/1274
2023-10-05 10:14:55 +02:00
yflory
bdad5e4d1b Merge branch 'soon' into 5.5-rc 2023-10-04 17:19:38 +02:00
yflory
fc1552c028 Improve error messages about passwords for viewers #1269 2023-10-04 17:18:34 +02:00
Weblate
3dd024d6ee Translated using Weblate (French)
Currently translated at 100.0% (1667 of 1667 strings)

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: David Benqué <david.benque@xwiki.com>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/fr/
Translation: CryptPad/App
2023-10-04 15:41:53 +02:00