MDL-54987 core: Pull Chart.js in core

This commit is contained in:
Frederic Massart 2016-06-22 15:19:08 +08:00
parent 90a8bdbfc0
commit 45feaec83b
No known key found for this signature in database
GPG key ID: AC343CE142B12FB9
6 changed files with 10291 additions and 0 deletions

View file

@ -49,6 +49,7 @@ lib/mustache/
lib/amd/src/mustache.js
lib/graphlib.php
lib/spout/
lib/amd/src/chartjs-lazy.js
mod/assign/feedback/editpdf/fpdi/
repository/s3/S3.php
theme/bootstrapbase/less/bootstrap/

5
lib/amd/build/chartjs-lazy.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
lib/amd/build/chartjs.min.js vendored Normal file
View file

@ -0,0 +1 @@
define(["core/chartjs-lazy"],function(a){return a});

10253
lib/amd/src/chartjs-lazy.js Normal file

File diff suppressed because it is too large Load diff

25
lib/amd/src/chartjs.js Normal file
View file

@ -0,0 +1,25 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Chart.js loader.
*
* @package core
* @copyright 2016 Frédéric Massart - FMCorz.net
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define(['core/chartjs-lazy'], function(ChartJS) {
return ChartJS;
});

View file

@ -261,4 +261,10 @@
<license>GPL</license>
<version>2.3.0</version>
</library>
<library>
<location>amd/src/chartjs-lazy.js</location>
<name>Chart.js</name>
<license>MIT</license>
<version>2.1.6</version>
</library>
</libraries>