Commit Graph

10650 Commits

Author SHA1 Message Date
Wolfgang Ginolas a53f8df6dc Make read only diagrams scrollable
https://github.com/cryptpad/cryptpad/issues/1330
2023-11-30 09:15:31 +01:00
yflory 6a17017694 lint compliance 2023-11-24 14:18:05 +01:00
yflory c64644568b Merge branch 'REUSE-license-info' into staging 2023-11-22 17:21:09 +01:00
yflory 19d7d1bbd0 Merge branch 'staging' of github.com:cryptpad/cryptpad into staging 2023-11-22 12:28:07 +01:00
yflory e5a80afee7 Use new asynchrnous clipboard API when available 2023-11-22 12:27:24 +01:00
Mathilde Grünig 0704609690 Merge `soon` branch into `staging` prior deletion 2023-11-20 16:04:15 +01:00
yflory 6f3c8240ad
Merge pull request #1316 from cryptpad/fix-template-import
Fix the error upon importing a template in forms (#1261)
2023-11-15 17:29:58 +01:00
Fabrice Mouhartem be3a85778a #1261: clarify a comment 2023-11-15 10:34:52 +01:00
Fabrice Mouhartem 079c6eca01 #1261: Missing semicolon 2023-11-15 10:30:54 +01:00
Fabrice Mouhartem c15fd8878e #1261: avoid duplicate code 2023-11-14 18:15:22 +01:00
Fabrice Mouhartem 7b6ae87f57 Reference the version of ical.js
- Reference embedded versions of `ical.js` in `www/lib`
2023-11-14 17:45:52 +01:00
yflory a4e61113e8 Merge branch 'staging' of github.com:cryptpad/cryptpad into staging 2023-11-14 17:30:36 +01:00
yflory 0395019feb Fix templates not saved #1265 2023-11-14 17:30:25 +01:00
yflory c57f786c4d
Merge pull request #1312 from cryptpad/bugfix-calendar-stop-recurrence
Fix a bug with stopping the recurrence of a calendar event
2023-11-14 16:44:34 +01:00
Fabrice Mouhartem ef694294ee #1261: Move modified block into its own function for readability
Also avoid the double call to the sanity check as it's already called
upon first loading the page.
2023-11-10 17:11:15 +01:00
Fabrice Mouhartem ccf0b108de calendar export: duplicate import of ical.js
The module ical.js is now imported for the whole file and not just the
import part (as it it used in the export as well).
2023-11-10 16:27:26 +01:00
Fabrice Mouhartem 937c41aa49 Lint compliance
ICAL.js is not a require.js module and doesn't export anything, should
be anonyme.
2023-11-10 16:25:25 +01:00
Fabrice Mouhartem 5ff4d4893b #1261: error caught by linter 2023-11-10 15:55:36 +01:00
Fabrice Mouhartem 11d0b82424 #1261: fix a bug when importing a template in a form
Changes done to avoid the creation of an invalid form (no answer
channel upon importing a template).
2023-11-10 15:47:58 +01:00
Fabrice Mouhartem 17310c7dec #1261: fix the error upon importing template in forms
Changes in the behaviour:
- Load the parameter from allowing anonymous answers from templates
- Load the parameter for enforcing anonymous answers from templates
2023-11-10 15:47:40 +01:00
Fabrice Mouhartem bcf33060f8 #1306: Cleaning up the code
- Put special cases at the beginning of the conditional branching
2023-11-09 17:10:31 +01:00
yflory 714f017397
Merge pull request #1299 from cryptpad/feature-calendar-description
Feature: Add a description field for calendar events
2023-11-09 14:49:12 +01:00
David Benque e4efdca33d Fix event modal drop-downs
They were being cut-off as per #1280
Thank you @ansuz for the fix
2023-11-08 12:04:58 +00:00
Fabrice Mouhartem 36499846c9 #1306: Consistent behavior when resuming recurrence 2023-11-06 17:22:39 +01:00
Fabrice Mouhartem 55c3a5584b #1306: Fix the reset after stopping a recurrence 2023-11-06 16:56:09 +01:00
Weblate 579f02abec Translated using Weblate (Swedish)
Currently translated at 99.9% (1666 of 1667 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: carlbacker <jacob@carlbacker.se>
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/sv/
Translation: CryptPad/App
2023-11-03 14:26:36 +01:00
Weblate 4e8e8222db Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.5% (1660 of 1667 strings)

Co-authored-by: William Weber Berrutti <wwberrutti@protonmail.ch>
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/pt_BR/
Translation: CryptPad/App
2023-11-03 14:26:36 +01:00
Weblate 28923a0b5e Translated using Weblate (Catalan)
Currently translated at 65.0% (1085 of 1667 strings)

Translated using Weblate (Catalan)

Currently translated at 58.9% (983 of 1667 strings)

Co-authored-by: Artur V <ecron_89@hotmail.com>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/ca/
Translation: CryptPad/App
2023-11-03 14:26:36 +01:00
Weblate 1d88dbc412 Translated using Weblate (Bulgarian)
Currently translated at 17.3% (290 of 1667 strings)

Translated using Weblate (Bulgarian)

Currently translated at 16.4% (275 of 1667 strings)

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Мария Рангелова <rangelova_1186@abv.bg>
Translate-URL: https://weblate.cryptpad.org/projects/cryptpad/app/bg/
Translation: CryptPad/App
2023-11-03 14:26:35 +01:00
Fabrice Mouhartem 039cb9d598 #1171: Don't send changes in description everytime 2023-11-02 13:39:17 +01:00
Fabrice Mouhartem df1b59513b #1171: Fix a change in the variable names 2023-11-02 13:32:57 +01:00
Fabrice Mouhartem 4c80de725f #1171: Use of ical.js for line formatting while exporting 2023-11-02 11:58:55 +01:00
Fabrice Mouhartem 66a2815993 #1171: Alignment of the description content 2023-11-02 11:45:01 +01:00
Fabrice Mouhartem a6c01f5b7c #1171: Integration with #1275 2023-11-02 11:42:45 +01:00
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