Commit graph

1516 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
76f5445451 MDL-74510 upgrade: add the 4.0.0 separation line to all upgrade scripts 2022-04-22 18:45:10 +02:00
Jun Pataleta
70f6b1605b MDL-74471 versions: bump all versions and requires near release 2022-04-13 10:37:36 +08:00
Huong Nguyen
2fa497df65 MDL-74113 atto_media: Listen to play/pause events 2022-04-01 10:03:17 +07:00
Huong Nguyen
9f9e940a19 MDL-74224 atto_managefiles: Remove unnecessary scrollbar 2022-03-24 09:37:12 +07:00
Jun Pataleta
cd2225a71b Merge branch 'MDL-73383-master' of https://github.com/rezaies/moodle 2022-03-18 12:00:23 +08:00
Jun Pataleta
3314000eaf MDL-74090 core: Proper RTL/LTR display of collapsed icons 2022-03-05 00:45:32 +08:00
Eloy Lafuente (stronk7)
9dde12dc99 Merge branch 'MDL-72092-master' of https://github.com/Chocolate-lightning/moodle 2022-03-01 14:55:02 +01:00
Mathew May
b0532aedd8 MDL-72092 behat: Add private files block where needed 2022-03-01 19:13:20 +08:00
Bas Brands
2faf5e8e48 MDL-72737 theme_boost: update for section header styles 2022-03-01 12:01:59 +01:00
Andrew Nicols
e1b9d5f3cd MDL-73915 js: Drop support for IE and android
Moodle announced that support for IE would be dropped back in August
2020 with Moodle 3.9 but not active steps were taken at that time. That
decision was made in MDLSITE-6109 and this particular step was meant to
be taken in Moodle 3.10.

This is the first step taken to actively drop support for IE.

This commit also bumps the browser support pattern from 0.25% to 0.3%.
The percentage here includes any browser where at least this percentage
of users worldwide may be using a browser. In this case it causes
support for Android 4.3-4.4 to be dropped, which relate to Android
KitKat (released 2013).

This combination of changes means that all of the supported browsers in
our compatibility list support modern features including async,
for...of, classes, native Promises, and more which has a huge impact on
the ease of debugging code, and drastically reduces the minified file
size because a number of native Polyfills included by Babel are no
longer included.
2022-02-23 08:55:20 +08:00
Andrew Nicols
0a4047ab31 MDL-73915 js: Switch amd minification to terser
Unfortunately the babel minify-mangle plugin seems to be abandoned and
in certain circumstances can be very buggy. The only safe options are to
disable it, or to switch to a different minification library.

Not minifying our javascript is not ideal, so this commit updates the
javascript tasks to use a rollup, combined with babel, and terser.

Babel still converts code from ES/UMD/AMD to AMD modules with the
relevant browser support, whilst terser minifies the code.

The rollup bundler handles tracking and creation of sourcemaps, and
supports better parallelisation of the tasks.

Since the upgrade to Node LTS/Gallium requires an upgrade to @babel/core
and eslint, which change the built files anyway, this seems like the
ideal time to make this change.
2022-02-23 08:55:09 +08:00
Andrew Nicols
aa7f7957ea MDL-73915 js: Upgrade babel and eslint 2022-02-23 08:53:54 +08:00
Shamim Rezaie
3094b2cf38 MDL-73383 atto_collapse: Do not announce the list of added buttons 2022-02-17 12:46:25 +11:00
Eloy Lafuente (stronk7)
3bb4a4009c MDL-73764 tool_xmldb: Regenerate all the files detected by the report
Note that, instead of going one by one to them from the XMLDB Editor
(load, makes some tiny change, save, revert the change, save), the
report includes a commented line that, once uncommented, does regenerate
the file while reporting.

I've left it there as a commodity for the developer.
2022-02-08 19:25:03 +01:00
Shamim Rezaie
83bf7f3c5a Merge branch 'MDL-71719-master' of https://github.com/sarjona/moodle 2022-01-06 01:46:59 +11:00
Sara Arjona
fdfa1a9524 MDL-71718 lib: Set Moodle files after codemirror upgrade 2021-12-30 12:34:16 +01:00
Sara Arjona
8dc095e54e MDL-71718 lib: Upgrade codemirror to 5.65.0 2021-12-30 12:34:16 +01:00
Sara Arjona
5c2004def2 MDL-71719 lib: Set Moodle files after jsbeautify upgrade 2021-12-30 12:33:10 +01:00
Sara Arjona
eebf70d1e8 MDL-71719 lib: Upgrade jsbeautify to 1.14.0 2021-12-30 12:33:10 +01:00
Eloy Lafuente (stronk7)
e4a2d9c1d4 MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace:
- Move them to "privacy" subdir.
- Rename the files to "provider_test.php", this includes old
  privacy_test.php and privacy_provider_test.php files
- Rename the testcase to provider_test too (to match file name)

Also, change some relative paths and comments to point to new
locations.
2021-12-17 14:21:02 +01:00
Eloy Lafuente (stronk7)
57e6fb7ad9 MDL-73348 phpunit: privacy and privacy_provider testcase names
All privacy_test and privacy_provider_test classes:

- Namespaced with component\privacy.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Renamed a few files to make all be privacy_test or privacy_provider_test.php
- All them passing individually.
- Complete runs passing too.
2021-12-17 14:21:02 +01:00
Andrew Nicols
600b049def MDL-71751 js: Do not stop propagation on drop, and handle it properly 2021-11-11 15:52:35 +07:00
Paul Holden
c544288555 MDL-72884 atto_image: improve svg support in editor dialogue.
Where the dimensions of an image are not present, we should use
sensible defaults so that the dialogue is still usable.
2021-10-21 23:58:27 +01:00
Sara Arjona
8c8dfed278 MDL-72720 tinymce: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Bas Brands
d1b9f7d1f1 MDL-71965 theme_boost: move footer content in popover 2021-10-06 11:32:08 +02:00
Ilya Tregubov
85c1947840 Merge branch 'MDL-56773-master' of git://github.com/rezaies/moodle 2021-10-05 23:18:51 +02:00
Andrew Nicols
d7a67faf2f Merge branch 'MDL-72031-master' of https://github.com/NashTechOpenUniversity/moodle 2021-09-28 13:36:11 +08:00
Mihail Geshoski
7d821080f0 MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
Jun Pataleta
fec5a40ddb Merge branch 'MDL-71671-master' of git://github.com/rezaies/moodle 2021-09-07 14:55:13 +08:00
Shamim Rezaie
aa49eebd2a MDL-71671 atto_table: Insert menus html after the button 2021-09-07 13:53:50 +10:00
Shamim Rezaie
1e47c534a7 MDL-71671 editor_atto: Insert html of button menus after the button 2021-09-07 13:53:50 +10:00
Eloy Lafuente (stronk7)
fa67938486 Merge branch 'MDL-72286-master-test' of git://github.com/rezaies/moodle 2021-09-06 23:57:27 +02:00
Shamim Rezaie
d4dfd44491 MDL-56773 atto_equation: The equation editor should always be rtl
Also re-applied the border that was added to the preview area as part of
MDL-44778. The class name that's used no longer exists.
2021-09-03 17:57:40 +10:00
Sara Arjona
ff6e6ca8d2 Merge branch 'MDL-71674-master' of https://github.com/dcai/moodle 2021-09-01 11:36:33 +02:00
Dongsheng Cai
44f85767ab MDL-71674 editor_atto: more assessible errors 2021-09-01 18:15:49 +10:00
abgreeve
a926f529b4 Merge branch 'MDL-72223' of https://github.com/paulholden/moodle 2021-08-30 15:40:44 +08:00
Sara Arjona
d91e9ccee8 Merge branch 'MDL-71603-master' of git://github.com/rezaies/moodle 2021-08-23 17:04:26 +02:00
Frédéric Massart
1273c87cea MDL-72286 editor_atto: Declare type on plugins button groups 2021-08-17 11:58:58 +10:00
Nhan Vo
7bcd58783f
MDL-68639 HTML Editor (Atto): Invalid HTML for nested lists 2021-08-17 02:51:14 +07:00
toanlam
af67582dbe MDL-72031 atto_recordrtc: separate out max_time for audio/video files 2021-08-16 17:11:37 +07:00
Paul Holden
2661214376 MDL-72223 atto_link: link text should match selected text.
Rather then using all text of the currently selected node, instead
use that text the user has currently selected.
2021-08-10 09:45:48 +01:00
Huong Nguyen
80bf558bea MDL-71656 atto: Add meaningful labels to colour items
Colour chooser supported:
 - atto_fontcolor
 - atto_backcolor
2021-08-09 16:00:21 +07:00
Shamim Rezaie
d93fb10f88 MDL-71603 editor_atto: set aria-pressed when a button status is changed 2021-07-28 16:45:27 +10:00
Shamim Rezaie
1eeb7ce395 MDL-71603 editor_atto: Make button icons decorative only 2021-07-28 15:43:59 +10:00
Shamim Rezaie
b078f18c6e MDL-71603 editor_atto: Use aria-expanded for show/hide buttons toggle 2021-07-28 15:43:59 +10:00
Shamim Rezaie
7029fa056c MDL-71603 editor_atto: Focus on the toggled row
quoted from
https://www.accessibility-developer-guide.com/examples/sensible-aria-usage/expanded/

As a general rule, the toggled element should be right below the toggle
button, so screen readers will find it easily. If that is not the case,
then the focus should be placed inside the element upon toggling it
visible, and back to the initial element upon toggling it invisible.
2021-07-28 15:43:59 +10:00
Shamim Rezaie
90b3d575e3 MDL-71603 editor_atto: Wrap toolbar buttons in toolbar rows 2021-07-28 15:43:21 +10:00
Ilya Tregubov
ec50dc2fb7 Merge branch 'MDL-72179-master' of git://github.com/andrewnicols/moodle 2021-07-27 12:36:38 +02:00
Ilya Tregubov
3a55ff2c55 Merge branch 'MDL-71672-master-2' of git://github.com/rezaies/moodle 2021-07-27 11:59:15 +02:00
Andrew Nicols
776f4bd80c MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00