Skip to content
This repository was archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
More SystemJS setup love
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianWeyer committed Mar 16, 2016
1 parent 0d93ff3 commit eb65c3c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/BoardZ/app/components/games/details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {NotificationType} from '../../models/notificationtype';
@NeedsAuthentication()
export class GameDetails implements OnInit {
private _needsReset: boolean;
private _diagnosticEnabled: boolean;
private _pictureUrl: string = "";
private _coordinates: GeoLocation = null;
private _sending: boolean;
Expand All @@ -43,7 +42,6 @@ export class GameDetails implements OnInit {
private _signalRService: SignalRService,
private _loginService: LoginService,
private _injector: Injector) {
this._diagnosticEnabled = _injector.get('inDiagnosticsMode');
}

ngOnInit(): void {
Expand Down
28 changes: 24 additions & 4 deletions src/BoardZ/system.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,46 @@ System.config({
}
},
map: {
jquery: 'scripts/bundles/jquery-2.1.4.js',
'admin-lte/js/app': 'scripts/bundles/app.js',
'jquery': 'scripts/bundles/jquery-2.1.4.js',
'hammer/hammer': 'scripts/bundles/hammer.js',
'jquery/jquery-hammer': 'scripts/bundles/jquery.hammer.js',
'jquery/jquery.slimscroll': 'scripts/bundles/jquery.slimscroll.js',
'bootstrap/js/bootstrap': 'scripts/bundles/bootstrap.js',
'signalr/signalr': 'scripts/bundles/signalr.js'
'pnotify/pnotify.custom': 'scripts/bundles/pnotify.custom.js',
'admin-lte/js/app': 'scripts/bundles/app.js',
'signalr/signalr': 'scripts/bundles/signalr.js',
'leaflet/leaflet': 'scripts/bundles/leaflet-src.js',
'fastclick/fastclick': 'scripts/bundles/fastclick.js'
}
});

System.import('jquery')
.then(function () {
return System.import('hammer/hammer');
})
.then(function () {
return System.import('jquery/jquery-hammer');
})
.then(function () {
return System.import('jquery/jquery.slimscroll');
})
.then(function () {
return System.import('pnotify/pnotify.custom');
})
.then(function () {
return System.import('signalr/signalr');
})
.then(function () {
return System.import('bootstrap/js/bootstrap');
})
.then(function () {
return System.import('fastclick/fastclick');
})
.then(function () {
return System.import('admin-lte/js/app');
})
.then(function () {
return System.import('signalr/signalr');
return System.import('leaflet/leaflet');
})
.then(function () {
return System.import('app/main');
Expand Down

0 comments on commit eb65c3c

Please sign in to comment.