[CORD-1044] Migrating vTR Dashboard to the new GUI using gui-extensions
Change-Id: I33847766b790ffba2b9a9e9cfab9a7060734ce91
diff --git a/xos/gui/src/index.ts b/xos/gui/src/index.ts
new file mode 100644
index 0000000..03d248c
--- /dev/null
+++ b/xos/gui/src/index.ts
@@ -0,0 +1,31 @@
+/// <reference path="../typings/index.d.ts" />
+import * as angular from 'angular';
+
+import 'angular-ui-router';
+import 'angular-resource';
+import 'angular-cookies';
+import routesConfig from './routes';
+import {xosVtrDashboardComponent} from './app/components/vtr/vtr-dashboard';
+import {XosVtrTruckroll} from './app/services/truckroll.resource';
+
+angular.module('xos-vtr-gui-extension', [
+ 'ui.router',
+ 'app'
+ ])
+ .config(routesConfig)
+ .service('XosVtrTruckroll', XosVtrTruckroll)
+ .component('xosVtrDashboardComponent', xosVtrDashboardComponent)
+ .run(function($log: ng.ILogService, XosNavigationService: any) {
+ $log.info('[xos-vtr-gui-extension] App is running');
+
+ XosNavigationService.add({
+ label: 'vTR',
+ state: 'xos.vtr',
+ });
+
+ XosNavigationService.add({
+ label: 'Dashboard',
+ state: 'xos.vtr.dashboard',
+ parent: 'xos.vtr'
+ });
+ });