Commit graph

10760 commits

Author SHA1 Message Date
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
daria
d890d26e56 dropdowns(+New and Filter) are accessible through keyboard 2023-11-13 15:05:46 +02:00
daria
e315ee2467 created function for reusability 2023-11-13 14:38:48 +02:00
daria
e941b78acf clicking outside the dropdown sets aria-expanded to false 2023-11-13 14:12:48 +02:00
daria
6cc377bede added role to a elements on Filter dropdown 2023-11-12 20:48:55 +02:00
daria
99d5f7cccf added role to li elements on Filter dropdown 2023-11-12 20:43:24 +02:00
daria
7dfb27d652 added role to li elements on +New dropdown 2023-11-12 20:39:04 +02:00
daria
7df9b20c63 added li tags to notifications 2023-11-12 20:33:37 +02:00
daria
7e37c0bf6b Filter dropdown has li elements 2023-11-12 19:39:47 +02:00
daria
2b2efd2fe6 +New dropdown has li elements 2023-11-12 19:29:10 +02: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
daria
48b4f7be74 added span to menu item titles 2023-11-09 11:39:24 +02: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
daria
c0d492e409 updated role of li elements according to WAI 2023-11-06 14:23:24 +02:00
daria
795aec10b3 ran lint 2023-11-06 14:00:08 +02:00
daria
4fd7292122 fixed bug regarding skipping menu items
+ simplified code
2023-11-06 13:25:09 +02: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
daria
d4d56dd5ed focus set on menu button when changing tabs 2023-11-01 23:54:14 +02:00
daria
eb753301be fixed bug encountered when changing page focus/visibility 2023-11-01 23:51:36 +02:00
daria
6889e1d2a8 can open menu item with space 2023-11-01 23:30:33 +02:00
daria
8d243d1893 added character search 2023-11-01 19:37:14 +02:00
daria
58daaa2152 temporary disabled keyboard access to drive content
has to be redone
2023-11-01 13:08:39 +02: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
daria
6b5eb38070 can access every link on user menu 2023-10-31 15:18:58 +02:00
daria
d5c1479fde cleaned up 2023-10-30 14:35:17 +02:00
daria
ebfafea326 navigation inside dropdown works correctly
+ focus gets on the first element in the dropdown
2023-10-30 13:53:58 +02: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
David Benque
a80e607a56 Correct license for API file 2023-10-25 12:51:10 +01:00
daria
0eb051b7e5 focus shifts from button to dropdown when trying to open the dropdown 2023-10-24 18:01:29 +03:00
daria
e8c7f1b20e menu button regains focus when dropdown is closed
bug fixed
2023-10-24 17:27:19 +03:00
daria
762a781067 menu button regains focus when dropdown is closed 2023-10-24 15:49:01 +03:00
daria
90bb9a64b9 certain li elements are ignored in dropdown 2023-10-24 15:14:24 +03:00
David Benque
993e4b09bf Add OO licensing info 2023-10-23 16:32:06 +01:00
daria
4ae780ec41 dropdown prototype
tabbing out not allowed, can use arrow keys through dropdown elements (no exceptions yet)
2023-10-23 15:53:38 +03:00
David Benque
d4b01b2840 Add licensing info for everything in www/lib 2023-10-23 12:26:17 +01:00
zuzanna-maria
e9373b07d5 positioning of context menus made responsive to screen size and file position 2023-10-23 11:44:51 +02:00
David Benque
fd52f206aa WIP on www/lib licenses
leaving some errors in `reuse lint` to track unresolved questions
2023-10-20 17:29:48 +01:00
yflory
8862e59ebc lint compliance 2023-10-20 18:21:57 +02:00
David Benque
eacdd7991a Remove rogue file 2023-10-20 15:35:47 +01:00
David Benque
8f0a6319a5 Apply headers 2023-10-20 15:35:26 +01:00
daria
fc1f60ff6a added roles to menu items 2023-10-20 15:30:56 +03:00
yflory
33b1376b5c Fix undefined user hash in localStorage #1298 2023-10-20 14:19:35 +02:00
David Benque
1a79fc9146 Tests on www/admin and www/calendar 2023-10-19 15:40:19 +01:00
zuzanna-maria
42c010947e added context menu for individual files in drive (mobile) 2023-10-17 17:28:31 +02:00
daria
dbc9cca1ff created list in user menu dropdown 2023-10-17 15:07:34 +03:00
daria
b10ec96e05 Merge remote-tracking branch 'origin/toolbar' into toolbar 2023-10-17 13:23:57 +03:00
daria
790099723f wrapped elements(account name + display name) in li (user menu) 2023-10-17 13:23:27 +03:00
David Benque
c9f3ec8476 Merge branch 'staging' into toolbar 2023-10-12 10:47:27 +01:00
daria
c173c1329c wrapped element in li 2023-10-12 11:27:17 +03:00
daria
ecc4b58a44 wrapped element in li 2023-10-12 10:42:20 +03:00
David Benque
558f1bc79c Merge branch 'soon' into 5.5-rc 2023-10-11 13:43:19 +01:00
daria
5a40a9fce6 added ARIA attributes to Filter button 2023-10-11 11:54:05 +03:00
daria
a0838f35b2 added ARIA attributes to +New button 2023-10-11 11:49:16 +03:00