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
This commit is contained in:
Bas Brands 2021-05-27 15:37:25 +02:00 committed by Adrian Greeve
parent fa073102d3
commit 3de68ad434
140 changed files with 9501 additions and 2 deletions

View file

@ -70,6 +70,7 @@ class external extends external_api {
public static function load_template($component, $template, $themename, $includecomments = false) {
global $DB, $CFG, $PAGE;
$PAGE->set_context(context_system::instance());
$params = self::validate_parameters(self::load_template_parameters(),
array('component' => $component,
'template' => $template,

View file

@ -2002,8 +2002,8 @@ class core_plugin_manager {
),
'tool' => array(
'analytics', 'availabilityconditions', 'behat', 'brickfield', 'capability', 'cohortroles', 'customlang',
'dataprivacy', 'dbtransfer', 'filetypes', 'generator', 'health', 'httpsreplace', 'innodb',
'analytics', 'availabilityconditions', 'behat', 'brickfield', 'capability', 'cohortroles', 'componentlibrary',
'customlang', 'dataprivacy', 'dbtransfer', 'filetypes', 'generator', 'health', 'httpsreplace', 'innodb',
'installaddon', 'langimport', 'licensemanager', 'log', 'lp', 'lpimportcsv', 'lpmigrate', 'messageinbound',
'mobile', 'moodlenet', 'multilangupgrade', 'monitor', 'oauth2', 'phpunit', 'policy', 'profiling', 'recyclebin',
'replace', 'spamcleaner', 'task', 'templatelibrary', 'uploadcourse', 'uploaduser', 'unsuproles',