aboutsummaryrefslogtreecommitdiffstats
path: root/app/main/dashboard/dcaedt/dcaedt.module.js
blob: d5c6a642f0e203b95ae5f1a528c8884f56ee4359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
(function () {

    'use strict';

    angular
        .module('dcaeApp.dashboard.dcae', [])
        .config(config);

    function config($stateProvider) {

        $stateProvider.state('dcae.app.home', {
            url: '/home',
            views: {
                'content@dcae.app': {
                    templateUrl: 'main/dashboard/dcaedt/dcaedt.html',
                    controller: 'DashboardDCAEController as vm'
                }
            },
            bodyClass: 'about'
        })

            .state('dcae.app.general', {
                url: '/general',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'main/dashboard/dcaedt/dcaedt_general.html',
                        controller: 'DashboardDCAEController as vm'
                    },
                    'leftMenu': {
                        templateUrl: 'main/dashboard/dcaedt/leftMenu.html',
                        controller: 'DashboardDCAEController as vm'
                    }
                },
                bodyClass: 'about'
            })

            .state('dcae.app.services', {
                url: '/services',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'main/dashboard/dcaedt/dcaedt_services.html',
                        controller: 'DashboardDCAEController as vm'
                    }
                },
                bodyClass: 'about'
            })
            /*
            .state('dcae.app.general_vnf', {
                url: '/general_vnf',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'main/dashboard/dcaedt/dcaedt_general_vnf.html',
                        controller: 'DashboardDCAEController as vm'
                    }
                },

                /*onEnter: function () {
                        //i hide header tabs, you can add your code here
                        openNav();
                    },
                onExit: function () {
                        //i hide header tabs, you can add your code here
                        closeNav();
                    }, //////////
                bodyClass: 'about'
            })
            .state('dcae.app.general_service', {
                url: '/general_service',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'main/dashboard/dcaedt/dcaedt_general_service.html',
                        controller: 'DashboardDCAEController as vm'
                    }
                },

                /*onEnter: function () {
                        //i hide header tabs, you can add your code here
                        openNav();
                    },
                onExit: function () {
                        //i hide header tabs, you can add your code here
                        closeNav();
                    }, //////////
                bodyClass: 'about'
            })*/
            .state('dcae.app.import', {
                url: '/import',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'main/dashboard/dcaedt/dcaedt_import.html',
                        controller: 'DashboardDCAEController as vm'
                    }
                },
                bodyClass: 'about'
            })
            .state('dcae.app.self_serve', {
                url: '/self_serve',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'main/dashboard/dcaedt/dcaedt_self_serve.html',
                        controller: 'DashboardDCAEController as vm'
                    }
                },
                bodyClass: 'about'
            })
            .state('dcae.app.artifact', {
                url: '/artifact',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'main/dashboard/dcaedt/dcaedt_artifact.html',
                        controller: 'DashboardDCAEController as vm'
                    }
                },
                bodyClass: 'about'
            })
            .state('dcae.app.comp-fe', {
                url: '/comp-fe',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'comp-fe/icecat.html',
                        controller: ''
                    }
                },
                bodyClass: 'about'
            })
            .state('dcae.app.composition', {
                url: '/composition',
                views: {
                    'content@dcae.app': {
                        templateUrl: 'main/dashboard/dcaedt/dcaedt_composition.html',
                        controller: 'DashboardDCAEController as vm'
                    }
                },
                bodyClass: 'about'
            });

    }

    function openNav() {
        document.getElementById("dcaeSidenav").style.width = "150px";
        document.getElementById("content-container").style.marginLeft = "150px";
    }

    function closeNav() {
        document.getElementById("dcaeSidenav").style.width = "0";
    }

})();