summaryrefslogtreecommitdiffstats
path: root/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home
diff options
context:
space:
mode:
Diffstat (limited to 'dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home')
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-home-controller.js66
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-spa-controller.js50
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-style.css77
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-yn-filter.js26
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_home_body.html51
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_popup_templates.html73
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_spa.html139
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/manifest-service.js43
8 files changed, 525 insertions, 0 deletions
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-home-controller.js b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-home-controller.js
new file mode 100644
index 0000000..5b9dbca
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-home-controller.js
@@ -0,0 +1,66 @@
+/*-
+ * ================================================================================
+ * DCAE DMaaP Bus Controller Web Application
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ================================================================================
+ */
+app.controller('dbcHomeCtrl', function($scope, $log, DmaapAccessService, ManifestService) {
+ // Loads info to show on the welcome page.
+
+ // this object holds all app data and functions
+ $scope.dbcapp = {};
+ $scope.dbcapp.selectedDmaapAccess=null;
+ $scope.dbcapp.isDataLoading = true;
+ $scope.dbcapp.isRequestFailed = false;
+ $scope.dbcapp.errMsg = null;
+ $scope.dbcapp.manifest=null;
+
+ DmaapAccessService.getSelectedDmaapAccess()
+ .then(function(jsonObj) {
+ // must match keys in java controller's method
+ if (jsonObj.error) {
+ $scope.dbcapp.isRequestFailed = true;
+ $scope.dbcapp.errMsg = jsonObj.error;
+ }
+ else {
+ $scope.dbcapp.isRequestFailed = false;
+ $scope.dbcapp.errMsg = null;
+ $scope.dbcapp.selectedDmaapAccess=jsonObj.data;
+
+ // Next get the manifest
+ ManifestService.getManifest()
+ .then(function(jsonObj) {
+ // $log.debug("dbcHomeCtrl: getManifest returned " + JSON.stringify(jsonObj));
+ if (jsonObj.error) {
+ $scope.dbcapp.isRequestFailed = true;
+ $scope.dbcapp.errMsg = jsonObj.error;
+ }
+ else {
+ $scope.dbcapp.manifest=jsonObj.manifest;
+ }
+ },function(error){
+ $log.error("dbcHomeCtrl getManifest failed: " + error);
+ });
+
+ }
+ $scope.dbcapp.isDataLoading=false;
+ },function(error){
+ $log.error("dbcHomeCtrl: getSelectdDmaapAccess failed: " + error);
+ $scope.dbcapp.isDataLoading=false;
+ });
+
+
+});
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-spa-controller.js b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-spa-controller.js
new file mode 100644
index 0000000..1be3ffc
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-spa-controller.js
@@ -0,0 +1,50 @@
+/*-
+ * ================================================================================
+ * DCAE DMaaP Bus Controller Web Application
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ================================================================================
+ */
+app.config(function($routeProvider) {
+ $routeProvider
+ .when('/dmaap', {
+ templateUrl: 'app/dbcapp/dmaapaccess/dmaap_access_list.html',
+ controller : 'dmaapAccessListCtrl'
+ })
+ .when('/dr_feed', {
+ templateUrl: 'app/dbcapp/datarouter/dr_feed_list.html',
+ controller : 'drFeedListCtrl'
+ })
+ .when('/dr_pub', {
+ templateUrl: 'app/dbcapp/datarouter/dr_pub_list.html',
+ controller: 'drPubListCtrl'
+ })
+ .when('/dr_sub', {
+ templateUrl: 'app/dbcapp/datarouter/dr_sub_list.html',
+ controller: 'drSubListCtrl'
+ })
+ .when('/mr_topic', {
+ templateUrl: 'app/dbcapp/messagerouter/mr_topic_list.html',
+ controller : "mrTopicListCtrl"
+ })
+ .when('/mr_client', {
+ templateUrl: 'app/dbcapp/messagerouter/mr_client_list.html',
+ controller: 'mrClientListCtrl'
+ })
+ .otherwise({
+ templateUrl: 'app/dbcapp/home/dbc_home_body.html',
+ controller: 'dbcHomeCtrl'
+ });
+});
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-style.css b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-style.css
new file mode 100644
index 0000000..86944fb
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-style.css
@@ -0,0 +1,77 @@
+/*-
+ * ================================================================================
+ * DCAE DMaaP Bus Controller Web Application
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ================================================================================
+ */
+
+/* Tweak height and width of password as set fn-ebz.css */
+input[type="password"].fn-ebz-text.dbcpassword {
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+ border-radius: 6px;
+ height: 40px;
+ width: 210px;
+ border: 1px solid gray;
+ font-size: .875rem;
+ padding-left: 10px;
+ margin-top: 0px; /* override */
+ margin-right: 20px;
+}
+
+input[type="text"].fn-ebz-text.dbcpagenum {
+ width: 85px;
+ height: 30px;
+ margin-right: 10px;
+}
+
+/* Adjusts height and width to be narrow */
+select.fn-ebz-select.dbcpageselect {
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+ border-radius: 6px;
+ height: 30px;
+ width: 85px;
+ padding-left: 10px;
+ padding-right: 10px;
+ background-color: white;
+ color: black;
+ margin-top: 8px;
+ margin-right: 10px;
+ font-size: 12px;
+ appearance: none; /* not supported in IE */
+ -webkit-appearance: none; /* not supported in IE */
+ -moz-appearance: none; /* not supported in IE */
+}
+
+/* Adjusts height, width and top margin to match text fields */
+select.fn-ebz-select.dbcselect {
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+ border-radius: 6px;
+ height: 40px;
+ width: 210px;
+ padding-left: 10px;
+ padding-right: 10px;
+ background-color: white;
+ color: black;
+ margin-top: 0px;
+ margin-right: 10px;
+ font-size: 12px;
+ appearance: none; /* not supported in IE */
+ -webkit-appearance: none; /* not supported in IE */
+ -moz-appearance: none; /* not supported in IE */
+}
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-yn-filter.js b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-yn-filter.js
new file mode 100644
index 0000000..79eb99d
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc-yn-filter.js
@@ -0,0 +1,26 @@
+/*-
+ * ================================================================================
+ * DCAE DMaaP Bus Controller Web Application
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ================================================================================
+ */
+app.filter('dbcYesNoFilter',
+ function() {
+ return function(input) {
+ return input ? 'Y' : 'N';
+ }
+ }
+);
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_home_body.html b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_home_body.html
new file mode 100644
index 0000000..9aa56d4
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_home_body.html
@@ -0,0 +1,51 @@
+<!--
+ ================================================================================
+ DCAE DMaaP Bus Controller Web Application
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ================================================================================
+ -->
+<!-- controller is specified by route provider -->
+<h1 class="heading1" style="margin-top: 10px;">DMaaP Bus Controller</h1>
+
+<P>Welcome to the DMaaP Bus Controller web application.</P>
+
+<div ng-show="dbcapp.isDataLoading">
+ <div att-loading></div>
+</div>
+
+<div ng-hide="dbcapp.isDataLoading">
+
+ <div ng-show="dbcapp.isRequestFailed">
+ <span class="errorMessageText">{{dbcapp.errMsg}}</span>
+ </div>
+
+ <div ng-hide="dbcapp.isRequestFailed">
+ <a href="dbc#/dmaap">Selected DMaaP access profile:</a>
+ <ul>
+ <li>Name: <span style="font-weight: bold">{{dbcapp.selectedDmaapAccess.name}}</span></li>
+ <li>URL: <span style="font-weight: bold">{{dbcapp.selectedDmaapAccess.dmaapUrl}}</span></li>
+ </ul>
+
+ <span style="font-size: 8pt; color: grey;"> Manifest
+ information:
+ <UL>
+ <LI>Build-Number: {{dbcapp.manifest['Build-Number']}}</LI>
+ <LI>Build-Time: {{dbcapp.manifest['Build-Time']}}</LI>
+ </UL>
+ </span>
+ </div>
+
+</div>
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_popup_templates.html b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_popup_templates.html
new file mode 100644
index 0000000..cf2b77d
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_popup_templates.html
@@ -0,0 +1,73 @@
+<!--
+ ================================================================================
+ DCAE DMaaP Bus Controller Web Application
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ================================================================================
+ -->
+<script type="text/ng-template" id="modal_informative.html">
+ <div class="modal__informative font-showcase">
+ <div class="modal__header">
+ <h2 class="font-showcase-font-name">Success!</h2>
+ <div class="modal__header--icon"></div>
+ </div>
+ <div class="divider-container"><hr></div>
+ <div class="modal__content" style="white-space: pre-wrap;">{{message.text}}</div>
+ <div class="modal__footer">
+ <button class="button button--primary button--small" herf="javascript:void(0)" ng-click="$dismiss()">Dismiss</button>
+ </div>
+ </div>
+</script>
+
+<script type="text/ng-template" id="confirmation_informative.html">
+ <div class="modal__warning font-showcase" >
+ <div class="modal__header">
+ <h2 class="font-showcase-font-name">{{message.title}}</h2>
+ <div class="modal__header--icon"></div>
+ </div>
+ <div class="divider-container"><hr> </div>
+ <div class="modal__content" style="white-space: pre-wrap;">{{message.text}}<br/></div>
+ <div class="modal__footer">
+ <button class="button button--primary button--small"
+ href="javascript:void(0)"
+ ng-click="$close()">
+ OK
+ </button>
+ <button class="button button--primary button--small"
+ href="javascript:void(0)"
+ ng-click="$dismiss()">
+ Cancel
+ </button>
+ </div>
+ </div>
+</script>
+
+<script type="text/ng-template" id="modal_warning.html">
+ <div class="modal__warning font-showcase" >
+ <div class="modal__header">
+ <h2 class="font-showcase-font-name">{{message.title}}</h2>
+ <div class="modal__header--icon"></div>
+ </div>
+ <div class="divider-container"><hr> </div>
+ <div class="modal__content" style="white-space: pre-wrap;">{{message.text}}<br/></div>
+ <div class="modal__footer">
+ <button class="button button--primary button--small"
+ href="javascript:void(0)"
+ ng-click="$dismiss()">
+ Dismiss
+ </button>
+ </div>
+ </div>
+</script>
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_spa.html b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_spa.html
new file mode 100644
index 0000000..d9d2546
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/dbc_spa.html
@@ -0,0 +1,139 @@
+<!DOCTYPE html>
+<!--
+ ================================================================================
+ DCAE DMaaP Bus Controller Web Application
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ================================================================================
+ -->
+
+<html>
+ <!-- Data Bus Controller single-page application -->
+
+ <head>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta http-equiv="cache-control" content="max-age=0" />
+ <meta http-equiv="cache-control" content="no-cache" />
+ <meta http-equiv="expires" content="0" />
+ <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
+ <meta http-equiv="pragma" content="no-cache" />
+ <link rel="icon" type="image/ico" href="app/dbcapp/att-globe-16x16.ico" />
+
+ <!-- CSS -->
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/fn-ebz.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/demo.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/base.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/btn.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/dtpk.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/frms.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/sldr.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/style.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/sandbox/styles/tbs.css" >
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/ebz_header/portal_ebz_header.css">
+ <link rel="stylesheet" type="text/css" href="static/fusion/css/jquery-ui.css">
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/ebz_header/header.css">
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ebz/ebz_header/footer.css" >
+ <link rel="stylesheet" type="text/css" href="app/dbcapp/home/dbc-style.css">
+
+ <!-- Basic AngularJS -->
+ <script src="app/fusion/external/ebz/angular_js/angular.js"></script>
+ <script src="app/fusion/external/ebz/angular_js/angular-sanitize.js"></script>
+ <script src="app/fusion/external/ebz/angular_js/angular-route.min.js"></script>
+ <script src="app/fusion/external/ebz/angular_js/angular-cookies.js"></script>
+ <script src="app/fusion/external/ebz/angular_js/gestures.js"></script>
+ <script src="app/fusion/external/ebz/angular_js/app.js"></script>
+ <script src="app/fusion/external/ebz/sandbox/att-abs-tpls.js" type="text/javascript"></script>
+ <!-- jQuery -->
+ <script src="static/js/jquery-1.10.2.js"></script>
+ <script src="static/js/jquery.mask.min.js" type="text/javascript"></script>
+ <script src="static/js/jquery-ui.js" type="text/javascript"></script>
+ <!-- AngularJS Gridster -->
+ <script src="static/fusion/js/att_angular_gridster/ui-gridster-tpls.js"></script>
+ <script src="static/fusion/js/att_angular_gridster/angular-gridster.js"></script>
+ <!-- AngularJS Config -->
+ <script src= "app/fusion/external/ebz/angular_js/checklist-model.js"></script>
+ <!-- Utility -->
+ <script src="app/fusion/scripts/modalService.js"></script>
+ <script src="app/fusion/external/angular-ui/ui-bootstrap-tpls-1.1.2.min.js"></script>
+ <script src="app/fusion/ase/scripts/bower_components/lodash/lodash.min.js"></script>
+
+ <!-- Header and Footer -->
+ <script src="app/fusion/scripts/directives/footer.js"></script>
+ <script src="app/fusion/external/ebz/js/footer.js"></script>
+ <script src="app/fusion/scripts/directives/header.js"></script>
+ <script src="app/fusion/scripts/directives/leftMenu.js"></script>
+
+ <!-- core services -->
+ <script src="app/fusion/scripts/services/userInfoService.js"></script>
+ <script src="app/fusion/scripts/services/leftMenuService.js"></script>
+
+ <!-- filters -->
+ <script src="app/dbcapp/home/dbc-yn-filter.js"></script>
+
+ <!-- dmaaap access -->
+ <script src="app/dbcapp/dmaapaccess/dmaap-access-list-controller.js"></script>
+ <script src="app/dbcapp/dmaapaccess/dmaap-access-popup-controller.js"></script>
+ <script src="app/dbcapp/dmaapaccess/dmaap-access-service.js"></script>
+ <script src="app/dbcapp/dmaapaccess/modal-popup-controller.js"></script>
+ <!-- popup requires templates; their file is loaded below -->
+
+ <!-- data router -->
+ <script src="app/dbcapp/datarouter/dr-feed-service.js"></script>
+ <script src="app/dbcapp/datarouter/dr-feed-list-controller.js"></script>
+ <script src="app/dbcapp/datarouter/dr-feed-popup-controller.js"></script>
+ <script src="app/dbcapp/datarouter/dr-feed-pub-sub-list-popup-controller.js"></script>
+ <script src="app/dbcapp/datarouter/dr-pub-service.js"></script>
+ <script src="app/dbcapp/datarouter/dr-pub-list-controller.js"></script>
+ <script src="app/dbcapp/datarouter/dr-pub-popup-controller.js"></script>
+ <script src="app/dbcapp/datarouter/dr-sub-service.js"></script>
+ <script src="app/dbcapp/datarouter/dr-sub-list-controller.js"></script>
+ <script src="app/dbcapp/datarouter/dr-sub-popup-controller.js"></script>
+
+ <!-- message router -->
+ <script src="app/dbcapp/messagerouter/mr-client-service.js"></script>
+ <script src="app/dbcapp/messagerouter/mr-client-list-controller.js"></script>
+ <script src="app/dbcapp/messagerouter/mr-client-popup-controller.js"></script>
+ <script src="app/dbcapp/messagerouter/mr-topic-client-list-popup-controller.js"></script>
+ <script src="app/dbcapp/messagerouter/mr-topic-service.js"></script>
+ <script src="app/dbcapp/messagerouter/mr-topic-list-controller.js"></script>
+ <script src="app/dbcapp/messagerouter/mr-topic-popup-controller.js"></script>
+
+ <!-- main page -->
+ <script src="app/dbcapp/home/manifest-service.js"></script>
+ <script src="app/dbcapp/home/dbc-home-controller.js"></script>
+ <script src="app/dbcapp/home/dbc-spa-controller.js"></script>
+
+ <!-- Icon -->
+ <link rel="stylesheet" type="text/css" href="app/fusion/external/ionicons-2.0.1/css/ionicons.css" />
+ </head>
+ <body class="appBody" ng-app="abs">
+ <!-- double quotation marks are required for the popup templates - values are string literals! -->
+ <div ng-include src="'app/dbcapp/home/dbc_popup_templates.html'"></div>
+ <div ng-include src="'app/dbcapp/dmaapaccess/dmaap_access_popup_template.html'"></div>
+ <div ng-include src="'app/dbcapp/datarouter/dr_feed_add_popup_template.html'"></div>
+ <div ng-include src="'app/dbcapp/datarouter/dr_feed_edit_popup_template.html'"></div>
+ <div ng-include src="'app/dbcapp/datarouter/dr_feed_pub_sub_list_popup_template.html'"></div>
+ <div ng-include src="'app/dbcapp/datarouter/dr_pub_popup_template.html'"></div>
+ <div ng-include src="'app/dbcapp/datarouter/dr_sub_popup_template.html'"></div>
+ <div ng-include src="'app/dbcapp/messagerouter/mr_client_popup_template.html'"></div>
+ <div ng-include src="'app/dbcapp/messagerouter/mr_topic_popup_template.html'"></div>
+ <div ng-include src="'app/dbcapp/messagerouter/mr_topic_client_list_popup_template.html'"></div>
+ <div q-header></div>
+ <div q-menu class="appLeftMenu"></div>
+ <div ng-view id="rightContentFeeds" style="min-height: 450px;margin-top:-50px;margin-left:210px;margin-right:110px;">
+ </div>
+ <div q-footer class="appFooter"></div>
+ </body>
+</html>
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/manifest-service.js b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/manifest-service.js
new file mode 100644
index 0000000..03f143a
--- /dev/null
+++ b/dcae_dmaapbc_webapp/src/main/webapp/app/dbcapp/home/manifest-service.js
@@ -0,0 +1,43 @@
+/*-
+ * ================================================================================
+ * DCAE DMaaP Bus Controller Web Application
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ================================================================================
+ */
+app.factory('ManifestService', function ($http, $q, $log) {
+ return {
+ // Gets and returns the manifest for the webapp.
+ getManifest: function() {
+ // cache control for IE
+ var cc = "?cc=" + new Date().getTime().toString();
+ return $http({
+ method: 'GET',
+ url: 'manifest' + cc,
+ cache: false,
+ responseType: 'json'})
+ .then(function(response) {
+ // $log.debug("ManifestService.getManifest: " + JSON.stringify(response));
+ if (response.data == null || typeof response.data != 'object')
+ return $q.reject('ManifestService.getManifest: response.data null or not object');
+ else
+ return response.data;
+ }, function(error) {
+ $log.error('ManifestService.getManifest failed: ' + error.data);
+ return $q.reject(error.data);
+ });
+ }
+ };
+});