mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 16:30:13 +01:00
plugin provider clean up
This commit is contained in:
parent
31c7843ab5
commit
491a185cb3
10 changed files with 18 additions and 18 deletions
|
|
@ -138,11 +138,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
test: /\.woff(2)?(\?v=.+)?$/, loader: "url-loader?limit=10000&mimetype=application/font-woff"
|
test: /\.woff(2)?(\?v=.+)?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff'
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
test: /\.(ttf|eot|svg)(\?v=.+)?$/, loader: "file-loader"
|
test: /\.(ttf|eot|svg)(\?v=.+)?$/, loader: 'file-loader'
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -239,15 +239,8 @@ module.exports = {
|
||||||
jQuery: 'jquery',
|
jQuery: 'jquery',
|
||||||
$: 'jquery',
|
$: 'jquery',
|
||||||
jquery: 'jquery',
|
jquery: 'jquery',
|
||||||
"Tether": 'tether',
|
'Tether': 'tether',
|
||||||
"window.Tether": "tether",
|
'window.Tether': 'tether'
|
||||||
"GoogleMapsLoader": "google-maps",
|
|
||||||
"L": "leaflet",
|
|
||||||
"Chart": "chart.js",
|
|
||||||
"Chartist": "chartist",
|
|
||||||
"fullcalendar": "fullcalendar",
|
|
||||||
"moment": "moment",
|
|
||||||
"EasyPieChart": "easy-pie-chart"
|
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ export class ChartistJsService {
|
||||||
reverseData: true,
|
reverseData: true,
|
||||||
horizontalBars: true,
|
horizontalBars: true,
|
||||||
axisX: {
|
axisX: {
|
||||||
labelInterpolationFnc: Chartist.noop
|
labelInterpolationFnc: (n) => n
|
||||||
},
|
},
|
||||||
axisY: {
|
axisY: {
|
||||||
offset: 60
|
offset: 60
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
||||||
|
|
||||||
import './trafficChart.loader.ts';
|
import {Chart} from './trafficChart.loader.ts';
|
||||||
import {TrafficChartService} from './trafficChart.service';
|
import {TrafficChartService} from './trafficChart.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
require('chart.js');
|
export const Chart = require('chart.js');
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
import {Component, ElementRef} from '@angular/core';
|
||||||
import {BaCard} from '../../../../theme/components';
|
import {BaCard} from '../../../../theme/components';
|
||||||
|
import {GoogleMapsLoader} from './googleMaps.loader';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'google-maps',
|
selector: 'google-maps',
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export const GoogleMapsLoader = require('google-maps');
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
||||||
import {BaCard} from '../../../../theme/components';
|
import {BaCard} from '../../../../theme/components';
|
||||||
|
|
||||||
|
import './leafletMaps.loader';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'leaflet-maps',
|
selector: 'leaflet-maps',
|
||||||
pipes: [],
|
pipes: [],
|
||||||
providers: [],
|
providers: [],
|
||||||
// otherwise maps won't work
|
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('leaflet/dist/leaflet.css'), require('./leafletMaps.scss')],
|
styles: [require('./leafletMaps.scss')],
|
||||||
directives: [BaCard],
|
directives: [BaCard],
|
||||||
template: require('./leafletMaps.html'),
|
template: require('./leafletMaps.html'),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
require('leaflet-map');
|
||||||
|
require('style-loader!leaflet/dist/leaflet.css');
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
import {Component, ViewEncapsulation, Input, Output, ElementRef, EventEmitter} from '@angular/core';
|
import {Component, ViewEncapsulation, Input, Output, ElementRef, EventEmitter} from '@angular/core';
|
||||||
|
|
||||||
|
import {Chartist} from './baChartistChart.loader.ts';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-chartist-chart',
|
selector: 'ba-chartist-chart',
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
|
export const Chartist = require('chartist');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue