plugin provider clean up

This commit is contained in:
nixa 2016-05-17 18:26:49 +03:00
parent 31c7843ab5
commit 491a185cb3
10 changed files with 18 additions and 18 deletions

View file

@ -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'
})
],

View file

@ -99,7 +99,7 @@ export class ChartistJsService {
reverseData: true,
horizontalBars: true,
axisX: {
labelInterpolationFnc: Chartist.noop
labelInterpolationFnc: (n) => n
},
axisY: {
offset: 60

View file

@ -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({

View file

@ -1 +1 @@
require('chart.js');
export const Chart = require('chart.js');

View file

@ -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',

View file

@ -0,0 +1 @@
export const GoogleMapsLoader = require('google-maps');

View file

@ -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'),
})

View file

@ -0,0 +1,2 @@
require('leaflet-map');
require('style-loader!leaflet/dist/leaflet.css');

View file

@ -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,

View file

@ -1 +1 @@
export const Chartist = require('chartist');