mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +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',
|
||||
"Tether": 'tether',
|
||||
"window.Tether": "tether",
|
||||
"GoogleMapsLoader": "google-maps",
|
||||
"L": "leaflet",
|
||||
"Chart": "chart.js",
|
||||
"Chartist": "chartist",
|
||||
"fullcalendar": "fullcalendar",
|
||||
"moment": "moment",
|
||||
"EasyPieChart": "easy-pie-chart"
|
||||
'Tether': 'tether',
|
||||
'window.Tether': 'tether'
|
||||
})
|
||||
],
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ export class ChartistJsService {
|
|||
reverseData: true,
|
||||
horizontalBars: true,
|
||||
axisX: {
|
||||
labelInterpolationFnc: Chartist.noop
|
||||
labelInterpolationFnc: (n) => n
|
||||
},
|
||||
axisY: {
|
||||
offset: 60
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
||||
|
||||
import './trafficChart.loader.ts';
|
||||
import {Chart} from './trafficChart.loader.ts';
|
||||
import {TrafficChartService} from './trafficChart.service';
|
||||
|
||||
@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 {GoogleMapsLoader} from './googleMaps.loader';
|
||||
|
||||
@Component({
|
||||
selector: 'google-maps',
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
export const GoogleMapsLoader = require('google-maps');
|
||||
|
|
@ -1,13 +1,14 @@
|
|||
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
||||
import {BaCard} from '../../../../theme/components';
|
||||
|
||||
import './leafletMaps.loader';
|
||||
|
||||
@Component({
|
||||
selector: 'leaflet-maps',
|
||||
pipes: [],
|
||||
providers: [],
|
||||
// otherwise maps won't work
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
styles: [require('leaflet/dist/leaflet.css'), require('./leafletMaps.scss')],
|
||||
styles: [require('./leafletMaps.scss')],
|
||||
directives: [BaCard],
|
||||
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 {Chartist} from './baChartistChart.loader.ts';
|
||||
|
||||
@Component({
|
||||
selector: 'ba-chartist-chart',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
|
||||
export const Chartist = require('chartist');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue