Commit Graph

46 Commits

Author SHA1 Message Date
Jackson D'souza 118240ef22 MDL-75571 tool_componentlibrary: Custom activity icon 2022-12-09 15:51:33 +00:00
Jun Pataleta 70f6b1605b MDL-74471 versions: bump all versions and requires near release 2022-04-13 10:37:36 +08:00
Amaia Anabitarte 915b90b1ad MDL-74381 tool_componentlibrary: Resize icons to 24px in component library 2022-04-06 11:28:13 +02:00
Jun Pataleta 8c07f33d80 Merge branch 'MDL-72481-master' of https://github.com/rezaies/moodle 2022-03-16 11:45:40 +08:00
Jun Pataleta 6937d87ddd MDL-72481 admin: Render the site admin navigation menu as tablist
only render the secondary nav as tablist if it is for the site admin tabs

Co-authored-by: Shamim Rezaie <shamim@moodle.com>
2022-03-15 12:48:21 +11:00
Ilya Tregubov 5da8aeaa8b Merge branch 'MDL-73704-master' of https://github.com/bmbrands/moodle 2022-03-14 14:53:29 +06:00
Bas Brands 58fa5da723 MDL-73704 tool_componentlibrary: activity icons 2022-03-14 08:54:33 +01:00
Bas Brands a31cade872 MDL-74045 theme_boost: set the base layout to drawers 2022-03-02 11:07:45 +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
Mathew May ecb92c7ed9 MDL-72928 login: Update styling and functionality 2022-02-11 12:01:26 +08:00
Eloy Lafuente (stronk7) c5e2a4ded0 Merge branch 'MDL-73601-master' of https://github.com/aanabit/moodle 2022-02-07 12:01:19 +01:00
Simey Lameze 5396814489 MDL-73644 core: link confirm module CL to related JSDoc 2022-02-07 13:26:47 +08:00
Eloy Lafuente (stronk7) 5aa93e3066 Merge branch 'MDL-72466-master' of https://github.com/bmbrands/moodle 2022-02-02 12:10:18 +01:00
Amaia Anabitarte d9967a5763 MDL-73601 lib: Normalize readme_moodle.txt file name 2022-02-01 18:10:36 +01:00
Jun Pataleta 8aa45ea90d MDL-73470 tool_componentlibrary: Fix illegal whitespace 2022-01-28 11:47:13 +08:00
Jun Pataleta fd452f2fa2 Merge branch 'MDL-73470' of https://github.com/roland04/moodle 2022-01-28 11:02:01 +08:00
Bas Brands 7c76e1c349 MDL-72466 core_output: dropdown menu alignment 2022-01-27 17:24:20 +01:00
Eloy Lafuente (stronk7) 19dbb28366 Merge branch 'MDL-73314-master' of https://github.com/andrewnicols/moodle 2022-01-26 09:36:30 +01:00
Mikel Martín b43c28567a MDL-73470 tool_componentlibrary: Documentation for toggle input 2022-01-25 18:04:58 +01:00
Shamim Rezaie 682340d858 MDL-73635 tool_componentlibrary: Removed extra whitespaces 2022-01-25 11:36:17 +11:00
Andrew Nicols ea30c5e14b MDL-73314 core: Add CL documentation for core/toast 2022-01-24 10:03:10 +08:00
Andrew Nicols 7dd0a6983d MDL-73314 tool_componentlibrary: Add shortcode for jsdoc 2022-01-24 09:53:31 +08:00
Jun Pataleta 35338975c3 MDL-73635 tool_componentlibrary: Move dynamic tabs sample page
* Move the example page for the dynamic tabs component into the examples
folder.
2022-01-24 09:24:08 +08:00
Jun Pataleta 7a6ff551a0 MDL-73635 tool_componentlibrary: Document how to add example files 2022-01-24 09:24:08 +08:00
Jun Pataleta 080e12e9ac MDL-73635 tool_componentlibrary: Move example codes to examples folders 2022-01-24 09:21:55 +08:00
David Matamoros 5e42a09a92 MDL-73436 tool_componentlibrary: Document dynamic tabs component 2022-01-20 11:01:54 +01:00
Sara Arjona ca1d3b7f8c MDL-73334 componentlibrary: Remove ilegal whitespaces 2022-01-17 12:01:00 +01:00
Simey Lameze cc7de3e86c MDL-73334 core: add CL documentation for core/confirm 2022-01-17 18:10:41 +08:00
Sara Arjona cf651a1ed4 Merge branch 'MDL-73298-master' of https://github.com/bmbrands/moodle 2021-12-22 16:50:25 +01:00
Andrew Nicols f4a828d4ae MDL-73318 tool_componentlibrary: Use innerText instead of innerHTML
Some characters will be encoded for display in HTML which will affect
the process of JS evaluation. For example, the ` => ` sequence used for
fat-arrow syntax will be set as `=&gt;` in the HTML source.

To process the JS the innerText must be used instead.
2021-12-10 06:21:17 +08:00
Bas Brands 83a41d7056 MDL-73298 theme_boost: remove secondary nav from componentlibrary 2021-12-07 10:08:08 +01:00
Jun Pataleta 2a9878e191 MDL-72805 tool_componentlibrary: Add image role to informative icons
Icon fonts that act as images and convey information should have an
image role. This patch adds the image role to the icons in the examples
to serve as a correct example of using informative icon fonts.
2021-10-13 22:37:02 +08:00
Sara Arjona 3369faa695 MDL-72674 componentlibrary: Remove whitespaces 2021-10-08 11:37:23 +02:00
Eloy Lafuente (stronk7) 9d3b3298e2 Merge branch 'MDL-72674-master' of git://github.com/junpataleta/moodle 2021-10-07 22:53:47 +02:00
Jun Pataleta f0b22d1796 MDL-72674 core: Add component library documentation for accessible links 2021-10-05 00:29:34 +08:00
Bas Brands 61bacfb935 MDL-72455 theme_boost: enable roundness for bootstrap components 2021-09-30 15:53:44 +02:00
Sara Arjona 3f2f2e85bb MDL-72115 course: Rename Miscellaneous category
The "Miscellaneous" course category has been renamed to Category 1.
Besides, the description field has been set from FORMAT_MOODLE to
FORMAT_HTML.
2021-09-13 08:36:17 +02:00
Helen Foster 92cc461235 MDL-72428 lang: Import fixed English strings (en_fix) 2021-09-03 17:38:35 +02:00
Adrian Greeve 18515919e1 MDL-61460 tool_componentlibrary: Additional whitespace removal. 2021-07-08 23:30:35 +02:00
Adrian Greeve 65642ef97a Merge branch 'MDL-61460-master-fix' of https://github.com/andrewnicols/moodle 2021-07-08 23:30:34 +02:00
Adrian Greeve f03a714607 MDL-61460 tool_componentlibrary: removed white space.
Also updated the version number as that was causing a problem.
2021-07-08 23:30:34 +02:00
Andrew Nicols f1525fbdbf MDL-61460 tool_componentlibrary: JS Documentation fix 2021-07-08 23:30:34 +02:00
Bas Brands fda886c195 MDL-61460 tool_componentlibrary: Bootstrap docs pages v4.6.0 2021-07-08 09:51:02 +08:00
Bas Brands 3de68ad434 MDL-61460 tool_componentlibrary: Documentation for Moodle UI components
- This tool is only available for admins
- Before using this tool the hosting admin will need to have NPM installed and be able to run grunt
- To create the docs pages for the library run "grunt componentlibrary"
- After the pages are created the Library is available in Site adminstration > Development > UI Component Library
2021-07-08 09:51:02 +08:00