mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
chore(package): add type definitions for jQuery and its plugins (#400)
This commit is contained in:
parent
1227ad368c
commit
02a1cdbe9e
4 changed files with 11 additions and 3 deletions
|
|
@ -68,6 +68,9 @@
|
||||||
"@types/uglify-js": "^2.0.27",
|
"@types/uglify-js": "^2.0.27",
|
||||||
"@types/webpack": "2.0.0",
|
"@types/webpack": "2.0.0",
|
||||||
"@types/lodash": "0.0.28",
|
"@types/lodash": "0.0.28",
|
||||||
|
"@types/jquery ": "^2.0.33",
|
||||||
|
"@types/fullcalendar": "^2.7.35",
|
||||||
|
"@types/jquery.slimscroll": "^1.3.30",
|
||||||
"gh-pages": "^0.11.0",
|
"gh-pages": "^0.11.0",
|
||||||
"parse5": "^2.2.2",
|
"parse5": "^2.2.2",
|
||||||
"rimraf": "~2.5.4",
|
"rimraf": "~2.5.4",
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export class TrafficChart {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _loadDoughnutCharts() {
|
private _loadDoughnutCharts() {
|
||||||
let el = jQuery('.chart-area').get(0);
|
let el = jQuery('.chart-area').get(0) as HTMLCanvasElement;
|
||||||
new Chart(el.getContext('2d')).Doughnut(this.doughnutData, {
|
new Chart(el.getContext('2d')).Doughnut(this.doughnutData, {
|
||||||
segmentShowStroke: false,
|
segmentShowStroke: false,
|
||||||
percentageInnerCutout : 64,
|
percentageInnerCutout : 64,
|
||||||
|
|
|
||||||
5
src/custom-typings.d.ts
vendored
5
src/custom-typings.d.ts
vendored
|
|
@ -32,7 +32,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare var jQuery:any;
|
interface JQuery {
|
||||||
|
easyPieChart;
|
||||||
|
}
|
||||||
|
|
||||||
declare var GoogleMapsLoader:any;
|
declare var GoogleMapsLoader:any;
|
||||||
declare var L:any;
|
declare var L:any;
|
||||||
declare var AmCharts:any;
|
declare var AmCharts:any;
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,9 @@
|
||||||
"node",
|
"node",
|
||||||
"source-map",
|
"source-map",
|
||||||
"uglify-js",
|
"uglify-js",
|
||||||
"webpack"
|
"webpack",
|
||||||
|
"fullcalendar",
|
||||||
|
"jquery.slimscroll"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue