blob: a31d399a2d89110d0994900516562fa9e097d489 [file] [log] [blame]
Eran (ev672n), Voskb9708a72018-08-07 14:15:05 +03001<!doctype html>
2<html ng-app="dcaeApp">
3<!--<html>-->
4
5<head>
6 <meta charset="utf-8">
7 <title>DCAE App</title>
8
9 <meta name="description" content="">
10 <meta name="viewport" content="width=device-width">
11
12 <link rel="shortcut icon" href="favicon.png" type="image/png">
13 <link rel="icon" href="favicon.png" type="image/png">
14
15 <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
16 <!-- build:css(.) styles/vendor.css -->
17 <!-- bower:css -->
18 <link rel="stylesheet" href="/dcae/bower_components/bootstrap/dist/css/bootstrap.css" />
19 <!-- endbower -->
20 <!-- endbuild -->
21
22 <!-- build:css(.tmp) styles/main.css -->
23 <!-- <link rel="stylesheet" href="styles/sdc.css"> -->
24 <link rel="stylesheet" href="/dcae/styles/app.css" />
25 <link rel="stylesheet" href="/dcae/styles/catalog.css" />
26
27 <!-- endbuild -->
28
29 <style>
30 /* The side navigation menu */
31
32 .sidenav {
33 height: 100%;
34 /* 100% Full-height */
35 width: 0;
36 /* 0 width - change this with JavaScript */
37 position: fixed;
38 /* Stay in place */
39 z-index: 1;
40 /* Stay on top */
41 top: 123px;
42 left: 0;
43 background-color: #dddddd;
44 /* White*/
45 overflow-x: hidden;
46 /* Disable horizontal scroll */
47 padding-top: 60px;
48 /* Place content 60px from the top */
49 transition: 0.5s;
50 /* 0.5 second transition effect to slide in the sidenav */
51 }
52
53 /* The navigation menu links */
54
55 .sidenav a {
56 padding: 8px 8px 8px 32px;
57 text-decoration: none;
58 font-size: 14px;
59 color: #818181;
60 display: block;
61 transition: 0.3s
62 }
63
64 /* When you mouse over the navigation links, change their color */
65
66 .sidenav a:hover,
67 .offcanvas a:focus {
68 color: #f1f1f1;
69 }
70
71 /* Position and style the close button (top right corner) */
72
73 .sidenav .closebtn {
74 position: absolute;
75 top: 0px;
76 right: 25px;
77 font-size: 14px;
78 margin-left: 50px;
79 }
80
81 /* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
82
83 @media screen and (max-height: 450px) {
84 .sidenav {
85 padding-top: 0px;
86 }
87 .sidenav a {
88 font-size: 14px;
89 }
90 }
91 </style>
92
93</head>
94
95<body ng-controller="AppController as vm" class="{{state.current.bodyClass || ''}} dcaeApp dcae-module">
96
97
98
99 <div id="mainPage" class="container-fluid">
100 <div class="row">
101 <div id="dcaeSidenav" class="sidenav">
102 <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
103 <a href="#">General</a>
104 <a href="#">Composition</a>
105 <a href="#">Artifact</a>
106 </div>
107 <div id="main" ui-view="dcae"></div>
108 </div>
109 </div>
110
111 <!-- build:js(.) scripts/vendor.js -->
112 <!-- bower:js -->
113 <script src="/dcae/bower_components/jquery/dist/jquery.js"></script>
114 <script src="/dcae/bower_components/angular/angular.js"></script>
115 <script src="/dcae/bower_components/bootstrap/dist/js/bootstrap.js"></script>
116 <script src="/dcae/bower_components/angular-ui-router/release/angular-ui-router.js"></script>
117 <!-- endbower -->
118 <!-- endbuild -->
119
120 <!-- build:js({.tmp,app}) scripts/scripts.js -->
121
122 <!-- Main javascripts -->
123 <script src="/dcae/app.module.js"></script>
124 <script src="/dcae/app.env.js"></script>
125 <script src="/dcae/app.route.js"></script>
126 <script src="/dcae/app.controller.js"></script>
127 <script src="/dcae/app.run.js"></script>
128 <script src="/dcae/app.constants.js"></script>
129
130 <!-- Services -->
131 <script src="/dcae/services/cache.service.js"></script>
132 <script src="/dcae/services/users.service.js"></script>
133
134 <!-- Layout javascripts -->
135 <script src="/dcae/core/header/header.module.js"></script>
136 <script src="/dcae/core/header/header.controller.js"></script>
137 <script src="/dcae/core/navigation/navigation.module.js"></script>
138 <script src="/dcae/core/navigation/navigation.controller.js"></script>
139
140 <!-- Pages javascript -->
141 <script src="/dcae/main/main.controller.js"></script>
142
143 <script src="/dcae/main/dashboard/home/home.module.js"></script>
144 <script src="/dcae/main/dashboard/home/home.controller.js"></script>
145
146 <script src="/dcae/main/dashboard/about/about.module.js"></script>
147 <script src="/dcae/main/dashboard/about/about.controller.js"></script>
148
149 <script src="/dcae/main/dashboard/dcaedt/dcaedt.module.js"></script>
150 <script src="/dcae/main/dashboard/dcaedt/dcaedt.values.js"></script>
151 <script src="/dcae/main/dashboard/dcaedt/dcaedt.factory.js"></script>
152 <!--<script src="/dcae/main/dashboard/dcaedt/dcaedt.composition.factory.js"></script>
153
154 <script type="text/javascript" src="/dcae/main/dashboard/dcaedt/dcaedt.composition.services.js"></script>-->
155 <script src="/dcae/main/dashboard/dcaedt/dcaedt.factory.js"></script>
156
157 <script src="/dcae/main/dashboard/dcaedt/dcaedt.controller.js"></script>
158
159 <script src="/dcae/app.config.js"></script>
160 <script>
161 function closeNav() {
162 document.getElementById("dcaeSidenav").style.width = "0";
163 document.getElementById("content-container").style.marginLeft = "0";
164 }
165 </script>
166
167 <script src="./sdc-pubsub.js"></script>
168 <script>
169 function getParameterByName(name, url) {
170 if (!url) url = window.location.href;
171 name = name.replace(/[\[\]]/g, '\\$&');
172 var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
173 results = regex.exec(url);
174 if (!results) return null;
175 if (!results[2]) return '';
176 return decodeURIComponent(results[2].replace(/\+/g, ' '));
177 }
178 window.userId = getParameterByName('userId');
179 window.userRole = getParameterByName('userRole');
180 window.displayType = getParameterByName('displayType');
181 window.parentUrl = getParameterByName('parentUrl');
182 window.eventsClientId = getParameterByName('eventsClientId');
183
184 var pubsub = window.sdcPubSub.PluginPubSub;
185 window.sdc = new pubsub(window.eventsClientId, window.parentUrl, ['WINDOW_OUT']);
186
187 window.sdc.notify('READY');
188 window.sdc.on(function (eventData, event) {
189 console.log('eventData', eventData);
190 console.log('event', event);
191 if (eventData.type === 'WINDOW_OUT') {
192 if (window.location.hash === '#/dcae/composition') {
193 $('#confirm-modal').modal('show');
194 } else {
195 window.sdc.notify('ACTION_COMPLETED');
196 }
197 } else {
198 window.sdc.notify('ACTION_COMPLETED');
199 }
200 });
201 </script>
202
203 <!-- endbuild -->
204</body>
205
206</html>