Added child routes, and config defined routes
Change-Id: I61c5a49a330a63737312d1eb6077aab02236a44f
diff --git a/conf/app/app.config.dev.ts b/conf/app/app.config.dev.ts
index 7b6fa12..50570d7 100644
--- a/conf/app/app.config.dev.ts
+++ b/conf/app/app.config.dev.ts
@@ -1,10 +1,4 @@
-/// <reference path="../../../typings/index.d.ts"/>
-
-export interface IAppConfig {
- apiEndpoint: string;
- websocketClient: string;
-}
-
+import {IAppConfig} from './interfaces';
export const AppConfig: IAppConfig = {
apiEndpoint: 'http://xos.dev:3000/api',
websocketClient: 'http://xos.dev:3000'
diff --git a/conf/app/app.config.production.ts b/conf/app/app.config.production.ts
index 361db95..c6e774c 100644
--- a/conf/app/app.config.production.ts
+++ b/conf/app/app.config.production.ts
@@ -1,10 +1,4 @@
-/// <reference path="../../../typings/index.d.ts"/>
-
-export interface IAppConfig {
- apiEndpoint: string;
- websocketClient: string;
-}
-
+import {IAppConfig} from './interfaces';
export const AppConfig: IAppConfig = {
apiEndpoint: '/api',
websocketClient: ''
diff --git a/conf/app/app.config.test.ts b/conf/app/app.config.test.ts
index 7d215af..109776c 100644
--- a/conf/app/app.config.test.ts
+++ b/conf/app/app.config.test.ts
@@ -1,10 +1,4 @@
-/// <reference path="../../../typings/index.d.ts"/>
-
-export interface IAppConfig {
- apiEndpoint: string;
- websocketClient: string;
-}
-
+import {IAppConfig} from './interfaces';
export const AppConfig: IAppConfig = {
apiEndpoint: 'http://xos-test:3000/api',
websocketClient: 'http://xos-test:3000'
diff --git a/conf/app/interfaces.ts b/conf/app/interfaces.ts
new file mode 100644
index 0000000..e162d95
--- /dev/null
+++ b/conf/app/interfaces.ts
@@ -0,0 +1,11 @@
+import {IXosNavigationRoute} from '../../src/app/core/services/navigation';
+export interface IStyleConfig {
+ projectName: string;
+ favicon: string;
+ routes: IXosNavigationRoute[];
+}
+
+export interface IAppConfig {
+ apiEndpoint: string;
+ websocketClient: string;
+}
diff --git a/conf/app/style.config.cord.ts b/conf/app/style.config.cord.ts
index 120725f..3e1135b 100644
--- a/conf/app/style.config.cord.ts
+++ b/conf/app/style.config.cord.ts
@@ -1,11 +1,11 @@
-/// <reference path="../../../typings/index.d.ts"/>
-
-export interface IStyleConfig {
- projectName: string;
- favicon: string;
-}
-
+import {IStyleConfig} from './interfaces';
export const StyleConfig: IStyleConfig = {
projectName: 'CORD',
- favicon: 'cord-favicon.png'
+ favicon: 'cord-favicon.png',
+ routes: [
+ {
+ label: 'Slices',
+ state: 'xos.core.slices'
+ }
+ ]
};
diff --git a/conf/app/style.config.opencloud.ts b/conf/app/style.config.opencloud.ts
index 9423866..c4d735d 100644
--- a/conf/app/style.config.opencloud.ts
+++ b/conf/app/style.config.opencloud.ts
@@ -1,11 +1,11 @@
-/// <reference path="../../../typings/index.d.ts"/>
-
-export interface IStyleConfig {
- projectName: string;
- favicon: string;
-}
-
+import {IStyleConfig} from './interfaces';
export const StyleConfig: IStyleConfig = {
projectName: 'OpenCloud',
- favicon: 'opencloud-favicon.png'
+ favicon: 'opencloud-favicon.png',
+ routes: [
+ {
+ label: 'Slices',
+ state: 'xos.core.slices'
+ }
+ ]
};