http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/notification/notificationModule.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/notification/notificationModule.js b/dashboard/public/modules/notification/notificationModule.js new file mode 100644 index 0000000..e99736f --- /dev/null +++ b/dashboard/public/modules/notification/notificationModule.js @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +'use strict'; + +angular.module('dgc.system.notification', ['ui.router']).constant('ColorCoding', { + info: 'success', + error: 'danger' +}).run(['$rootScope', 'NotificationService', function($rootScope, NotificationService) { + $rootScope.$on('$locationChangeSuccess', function(evt, from, to) { + if (from !== to) { + NotificationService.reset(); + } + }); +}]);
http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/notification/notificationService.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/notification/notificationService.js b/dashboard/public/modules/notification/notificationService.js new file mode 100644 index 0000000..613cc22 --- /dev/null +++ b/dashboard/public/modules/notification/notificationService.js @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +'use strict'; + +angular.module('dgc.system.notification').service('NotificationService', ['$timeout', 'lodash', 'ColorCoding', function($timeout, _, colorCoding) { + + var notifications = [], + service = { + timeout: 2000, + getAll: function() { + return notifications; + }, + reset: function() { + notifications = []; + }, + close: function(notification) { + _.remove(notifications, notification); + } + }; + + _.each(colorCoding, function(value, key) { + service[key] = function(message, timeout) { + var notification = message; + if (_.isString(message)) { + notification = { + message: message + }; + } + + notification.message = notification.msg || notification.message; + delete notification.msg; + notification.type = value; + notification.timeout = _.isUndefined(timeout) ? (_.isUndefined(notification.timeout) ? true : notification.timeout) : timeout; + notifications.push(notification); + + if (notification.timeout) { + $timeout(function() { + service.close(notification); + }, angular.isNumber(notification.timeout) ? notification.timeout : service.timeout); + } + }; + }); + + return service; +}]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/notification/views/notifications.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/notification/views/notifications.html b/dashboard/public/modules/notification/views/notifications.html new file mode 100644 index 0000000..dcc02c5 --- /dev/null +++ b/dashboard/public/modules/notification/views/notifications.html @@ -0,0 +1,23 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<div class="container" data-ng-controller="NotificationController"> + <alert data-ng-repeat="notification in getNotifications()" data-type="{{notification.type}}" data-close="close(notification)"> + {{notification.message}} + </alert> +</div> http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/searchController.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/searchController.js b/dashboard/public/modules/search/searchController.js new file mode 100644 index 0000000..b5e6c37 --- /dev/null +++ b/dashboard/public/modules/search/searchController.js @@ -0,0 +1,119 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +'use strict'; + +angular.module('dgc.search').controller('SearchController', ['$scope', '$location', '$http', '$state', '$stateParams', 'lodash', 'SearchResource', 'NotificationService', + function($scope, $location, $http, $state, $stateParams, _, SearchResource, NotificationService) { + + $scope.results = []; + $scope.resultCount = 0; + $scope.isCollapsed = true; + $scope.currentPage = 1; + $scope.itemsPerPage = 10; + $scope.filteredResults = []; + $scope.resultRows = []; + $scope.setPage = function(pageNo) { + $scope.currentPage = pageNo; + }; + $scope.search = function(query) { + $scope.results = []; + NotificationService.reset(); + $scope.limit = 4; + $scope.searchMessage = 'load-gif'; + + $scope.$parent.query = query; + SearchResource.search({ + query: query + }, function searchSuccess(response) { + $scope.resultCount = response.count; + $scope.results = response.results; + $scope.resultRows = $scope.results.rows; + $scope.totalItems = $scope.resultCount; + $scope.transformedResults = {}; + $scope.dataTransitioned = false; + if (response.results.dataType && response.results.dataType.typeName.indexOf('__') === 0) { + $scope.dataTransitioned = true; + var attrDef = response.results.dataType.attributeDefinitions; + angular.forEach(attrDef, function(value) { + if (value.dataTypeName === '__IdType') { + $scope.searchKey = value.name; + } + }); + $scope.transformedResults = $scope.filterResults(); + } else { + $scope.transformedResults = $scope.resultRows; + } + if ($scope.results.rows) + $scope.searchMessage = $scope.resultCount + ' results matching your search query ' + $scope.query + ' were found'; + else + $scope.searchMessage = '0 results matching your search query ' + $scope.query + ' were found'; + + $scope.$watch('currentPage + itemsPerPage', function() { + var begin = (($scope.currentPage - 1) * $scope.itemsPerPage), + end = begin + $scope.itemsPerPage; + if ($scope.transformedResults) $scope.filteredResults = $scope.transformedResults.slice(begin, end); + $scope.pageCount = function() { + return Math.ceil($scope.resultCount / $scope.itemsPerPage); + }; + if ($scope.results.length < 1) { + NotificationService.error('No Result found', false); + } + }); + }, function searchError(err) { + $scope.searchMessage = '0 results matching your search query ' + $scope.query + ' were found'; + NotificationService.error('Error occurred during executing search query, error status code = ' + err.status + ', status text = ' + err.statusText, false); + }); + $state.go('search', { + query: query + }, { + location: 'replace' + }); + }; + + $scope.filterResults = function() { + var res = []; + angular.forEach($scope.resultRows, function(value) { + res.push(value[$scope.searchKey]); + }); + return res; + }; + $scope.doToggle = function($event, el) { + this.isCollapsed = !el; + }; + $scope.filterSearchResults = function(items) { + var res = {}; + var count = 0; + items = _.omit(items, ['name', 'description', 'guid']); + angular.forEach(items, function(value, key) { + if (typeof value !== 'object' && (key.indexOf('$$') < 0)) { + res[key] = value; + count++; + } + }); + $scope.keyLength = count; + return res; + }; + $scope.searchQuery = $location.search(); + $scope.query = ($location.search()).query; + if ($scope.query) { + + $scope.search($scope.query); + } + } +]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/searchDirective.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/searchDirective.js b/dashboard/public/modules/search/searchDirective.js new file mode 100644 index 0000000..5c9fc48 --- /dev/null +++ b/dashboard/public/modules/search/searchDirective.js @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +'use strict'; + +angular.module('dgc.search').directive( + "myDirective", + function() { + return { + restrict: 'EA', + template: '<a href="javascript: void(0);" button-toggle toggle="isCollapsed" class="show-more" ng-click="isCollapsed = !isCollapsed">..show more</a>', + link: function($scope) { + $scope.isCollapsed = true; + console.log($scope.isCollapsed); + }, + transclude: true, + scope: {} + }; + }); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/searchModule.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/searchModule.js b/dashboard/public/modules/search/searchModule.js new file mode 100644 index 0000000..ac82e3e --- /dev/null +++ b/dashboard/public/modules/search/searchModule.js @@ -0,0 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +'use strict'; + +angular.module('dgc.search', ['dgc.details']); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/searchResource.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/searchResource.js b/dashboard/public/modules/search/searchResource.js new file mode 100644 index 0000000..19de021 --- /dev/null +++ b/dashboard/public/modules/search/searchResource.js @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +'use strict'; + +angular.module('dgc.search').factory('SearchResource', ['$resource', function($resource) { + return $resource('/api/atlas/discovery/search/', {}, { + search: { + 'method': 'GET', + 'responseType': 'json', + 'transformResponse': function(data) { + return data; + } + } + }); + +}]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/searchRoutes.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/searchRoutes.js b/dashboard/public/modules/search/searchRoutes.js new file mode 100644 index 0000000..abfe322 --- /dev/null +++ b/dashboard/public/modules/search/searchRoutes.js @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +'use strict'; + +//Setting up route +angular.module('dgc.search').config(['$stateProvider', + function($stateProvider) { + $stateProvider.state('search', { + url: '/search?query', + templateUrl: '/modules/search/views/search.html', + controller: 'SearchController' + }); + } +]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/search.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/search.html b/dashboard/public/modules/search/views/search.html new file mode 100644 index 0000000..389364d --- /dev/null +++ b/dashboard/public/modules/search/views/search.html @@ -0,0 +1,67 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<div class="row mt20px"> + <form class="col-lg-offset-3 col-lg-9" name="form" novalidate> + <div class="input-group"> + <input type="text" class="form-control" placeholder="Search" data-ng-model="query" required/> + <span class="input-group-btn"> + <button class="btn btn-success" type="submit" data-ng-disabled="form.$invalid" ui-sref="search({ query: query })"> + <i class="glyphicon glyphicon-search white "></i> + </button> + </span> + </div> + <div> + <small class="small-txt">Search: Table, DB, Column</small> + </div> + </form> +</div> +<div class="row mt10px"> + <div class="col-lg-3" data-ng-include="'/modules/navigation/views/navigation.html'"></div> + <div class="col-lg-9"> + <div ng-switch on="searchMessage"> + <div ng-switch-when="load-gif" class="search-spinner"><img src="../img/spinner.gif" align="middle" /></div> + <div ng-switch-default><h4 ng-show="searchMessage">{{searchMessage}}</h4></div> + </div> + <ul class="list-unstyled" ng-show='resultCount > 0'> + <li ng-repeat="result in filteredResults" class="searchresults"> + <h4><a data-ui-sref="details({id:result['$id$'].id || result.guid})">{{result.name || result.guid}}</a></h4> + + <p>{{result.description}}</p> + <span ng-repeat="(key, value) in filterSearchResults(result)"> + <span ng-show="$index <= 3 "><b>{{key}}: </b>{{value}} {{(($index+1 === limit) || $last ) ? '' : ', '}}</span> + </span> + + <div collapse="isCollapsed"> + <span ng-repeat="(key, value) in filterSearchResults(result)"> + <span ng-show="$index > 3"><b>{{key}}: </b>{{value}}{{$last ? '' : ', '}}</span> + </span> + </div> + <a href ng-show="isCollapsed && (keyLength > 4)" ng-click="doToggle($event,isCollapsed)">..show more</a> + <a href ng-show="!isCollapsed" ng-click="doToggle($event,isCollapsed)">..show less</a> + + <h5 ng-show="!dataTransitioned">Tags : <a ng-repeat="(key, value) in result['$traits$']" data-ui-sref="search({query: key})">{{key}}</a></h5> + + </li> + </ul> + <div class="pull-right" ng-show='resultCount > 0'> + <pagination total-items="totalItems" items-per-page="itemsPerPage" ng-model="currentPage" ng-change="pageChanged()"></pagination> + <p> + </div> + </div> +</div> http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/searchResult.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/searchResult.html b/dashboard/public/modules/search/views/searchResult.html new file mode 100644 index 0000000..0faf3bb --- /dev/null +++ b/dashboard/public/modules/search/views/searchResult.html @@ -0,0 +1,47 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> +<!-- +<h4 ng-show='results.rows.length > 0'>{{results.rows.length}} results matching your search query "{{query}}" were found</h4> +<h4 ng-show='results.rows.length == "0"'>searching .....</h4> +<h4 ng-show='!(results.rows)'>0 results matching your search query "{{query}}" were found</h4>--> + +<h4 ng-show="searchMessage">{{searchMessage}}</h4> + +<ul class="list-unstyled"> + <li ng-repeat="result in filteredResults" class="searchresults"> + <h4><a data-ui-sref="details({id:result['$id$'].id})">{{result.name}}</a></h4> + <p>{{result.description}}</p> + <span ng-repeat="(key, value) in filterSearchResults(result)" > + <span ng-show="$index < 4"><b>{{key}}: </b>{{value}}{{$index+1 === limit ? '' : ', '}}</span> + </span> + <div collapse="isCollapsed"> + <span ng-repeat="(key, value) in filterSearchResults(result)" > + <span ng-show="$index > 4"><b>{{key}}: </b>{{value}}{{$last ? '' : ', '}}</span> + </span> + </div> + <a href ng-show="isCollapsed && (keyLength > 4)" ng-click="doToggle($event,isCollapsed)">..show more</a> + <a href ng-show="!isCollapsed" ng-click="doToggle($event,isCollapsed)">..show less</a> + + <h5>Tags : <a ng-repeat="(key, value) in result['$traits$']" data-ui-sref="search.results({query: key})">{{key}}</a> </h5> + <div data-ng-if="!searchTypesAvailable" data-ng-include="'/modules/search/views/types/guid.html'"></div> + </li> +</ul> +<div class="resultsPagination" ng-show='filteredResults.length > 0'> + <pagination total-items="totalItems" items-per-page="itemsPerPage" ng-model="currentPage" ng-change="pageChanged()"></pagination> + <p> +</div> http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/types/column.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/types/column.html b/dashboard/public/modules/search/views/types/column.html new file mode 100644 index 0000000..3bbb6c0 --- /dev/null +++ b/dashboard/public/modules/search/views/types/column.html @@ -0,0 +1,21 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<h4><a data-ui-sref="details({id:result['$id$'].id})">{{result.name}}</a></h4> +<p><b>Comment:</b> {{result.comment}}, <b>DataType:</b> {{result.dataType}},<b>Table:</b> {{result.table}}</p> +<h5>Tags : <a ng-repeat="(key, value) in result['$traits$']" data-ui-sref="search.results({query: key})">{{key}}</a> </h5> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/types/db.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/types/db.html b/dashboard/public/modules/search/views/types/db.html new file mode 100644 index 0000000..28467b0 --- /dev/null +++ b/dashboard/public/modules/search/views/types/db.html @@ -0,0 +1,22 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<h4><a data-ui-sref="details({id:result['$id$'].id})">{{result.name}}</a></h4> +<p>{{result.description}}</p> +<p><b>locationUri:</b> {{result.locationUri}}, <b>Owner: </b>{{result.owner}}</p> +<h5>Tags : <a ng-repeat="(key, value) in result['$traits$']" data-ui-sref="search.results({query: key})">{{key}}</a> </h5> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/types/guid.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/types/guid.html b/dashboard/public/modules/search/views/types/guid.html new file mode 100644 index 0000000..483ca80 --- /dev/null +++ b/dashboard/public/modules/search/views/types/guid.html @@ -0,0 +1,21 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<h4><a data-ui-sref="details({id:result.instanceInfo.guid})">{{result.instanceInfo.guid}}</a></h4> +<p><b>TypeName: </b>{{result.instanceInfo.typeName}}</p> +<h5>Tags : <a ng-repeat="(key, value) in result['$traits$']" data-ui-sref="search.results({query: key})">{{key}}</a> </h5> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/types/hiveLineage.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/types/hiveLineage.html b/dashboard/public/modules/search/views/types/hiveLineage.html new file mode 100644 index 0000000..b150722 --- /dev/null +++ b/dashboard/public/modules/search/views/types/hiveLineage.html @@ -0,0 +1,19 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<a data-ui-sref="details({id:result.guid})">{{result.guid}}</a> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/types/hive_table.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/types/hive_table.html b/dashboard/public/modules/search/views/types/hive_table.html new file mode 100644 index 0000000..84b747e --- /dev/null +++ b/dashboard/public/modules/search/views/types/hive_table.html @@ -0,0 +1,19 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<a data-ui-sref="details({id:result.guid})">{{result["hive_table.name"]}}</a> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/types/loadprocess.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/types/loadprocess.html b/dashboard/public/modules/search/views/types/loadprocess.html new file mode 100644 index 0000000..652cd97 --- /dev/null +++ b/dashboard/public/modules/search/views/types/loadprocess.html @@ -0,0 +1,22 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<h4><a data-ui-sref="details({id:result['$id$'].id})">{{result.name}}</a></h4> +<p>{{result.description}}</p> +<p><b>inputTables: </b>{{result.inputTables['id']}},<b>queryText: </b>{{result.queryText}},<b>startTime: </b>{{result.startTime | date:'medium'}},<b>endTime: </b> {{result.endTime | date:'medium'}}</p> +<h5>Tags : <a ng-repeat="(key, value) in result['$traits$']" data-ui-sref="search.results({query: key})">{{key}}</a> </h5> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/types/storagedesc.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/types/storagedesc.html b/dashboard/public/modules/search/views/types/storagedesc.html new file mode 100644 index 0000000..0587f26 --- /dev/null +++ b/dashboard/public/modules/search/views/types/storagedesc.html @@ -0,0 +1,21 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<h4><a data-ui-sref="details({id:result['$id$'].id})">{{result.name}}</a></h4> +<p><b>compressed: </b>{{result.compressed}},<b>outputFormat: </b>{{result.outputFormat}},<b>location: </b>{{result.location}}, <b>inputFormat: </b>{{result.inputFormat}}</p> +<h5>Tags : <a ng-repeat="(key, value) in result['$traits$']" data-ui-sref="search.results({query: key})">{{key}}</a> </h5> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/public/modules/search/views/types/table.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/search/views/types/table.html b/dashboard/public/modules/search/views/types/table.html new file mode 100644 index 0000000..a678ff9 --- /dev/null +++ b/dashboard/public/modules/search/views/types/table.html @@ -0,0 +1,22 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you 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. + --> + +<h4><a data-ui-sref="details({id:result['$id$'].id})">{{result.name}}</a></h4> +<p>{{result.description}}</p> +<p><b>owner: </b>{{result.owner}}, <b>createTime: </b>{{result.createTime}}</p> +<h5>Tags : <a ng-repeat="(key, value) in result['$traits$']" data-ui-sref="search.results({query: key})">{{key}}</a> </h5> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/.bowerrc ---------------------------------------------------------------------- diff --git a/dashboard/v2/.bowerrc b/dashboard/v2/.bowerrc deleted file mode 100755 index b4d0ffc..0000000 --- a/dashboard/v2/.bowerrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "directory": "../../webapp/target/dist/lib/", - "storage": { - "packages": ".bower-cache", - "registry": ".bower-registry" - }, - "tmp": ".bower-tmp" -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/.gitignore ---------------------------------------------------------------------- diff --git a/dashboard/v2/.gitignore b/dashboard/v2/.gitignore deleted file mode 100755 index e5ee796..0000000 --- a/dashboard/v2/.gitignore +++ /dev/null @@ -1,28 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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. - -.DS_Store -.bower-*/ -.idea/ -node_modules/ -lib/ -public/lib -public/dist -*.log -*.tgz -node/ -dist/ -**/app.min.js \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/.jshintignore ---------------------------------------------------------------------- diff --git a/dashboard/v2/.jshintignore b/dashboard/v2/.jshintignore deleted file mode 100755 index efd063f..0000000 --- a/dashboard/v2/.jshintignore +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -test/coverage/** \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/.jshintrc ---------------------------------------------------------------------- diff --git a/dashboard/v2/.jshintrc b/dashboard/v2/.jshintrc deleted file mode 100755 index 62b5e65..0000000 --- a/dashboard/v2/.jshintrc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -{ - "browser": true, // Standard browser globals e.g. `window`, `document`. - "bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.). - "camelcase": false, // Permit only camelcase for `var` and `object indexes`. - "curly": false, // Require {} for every new block or scope. - "devel": true, // Allow development statements e.g. `console.log();`. - "esnext": true, // Allow ES.next specific features such as `const` and `let`. - "eqeqeq": true, // Require triple equals i.e. `===`. - "immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` - "indent": false, // Specify indentation spacing - "latedef": true, // Prohibit variable use before definition. - "node": true, // Enable globals available when code is running inside of the NodeJS runtime environment. - "newcap": false, // Require capitalization of all constructor functions e.g. `new F()`. - "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`. - "noempty": true, // Prohibit use of empty blocks. - "quotmark": false, // Define quotes to string values. - "regexp": true, // Prohibit `.` and `[^...]` in regular expressions. - "strict": true, // Require `use strict` pragma in every file. - "smarttabs": false, // Suppresses warnings about mixed tabs and spaces - "trailing": true, // Prohibit trailing whitespaces. - "undef": true, // Require all non-global variables be declared before they are used. - "unused": true, // Warn unused variables. - "globals": { // Globals variables. - "angular": true - }, - "predef": [ // Extra globals. - "define", - "require", - "exports", - "module", - "spyOn", - "describe", - "xdescribe", - "before", - "beforeEach", - "after", - "afterEach", - "jasmine", - "it", - "xit", - "inject", - "expect", - "ngGridFlexibleHeightPlugin" - ] -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/README.md ---------------------------------------------------------------------- diff --git a/dashboard/v2/README.md b/dashboard/v2/README.md deleted file mode 100755 index 0957582..0000000 --- a/dashboard/v2/README.md +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -# Apache Atlas - -## Instructions - -### Prerequisite -1. Nodejs (http://nodejs.org/download/) -2. ```npm install -g grunt-cli``` - -### Setup: - -``` -git clone $git-repo-url -git checkout dal -cd dashboard/v2 -npm install -grunt server -``` -Server will start at: -<http://localhost:3010/> http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/bower.json ---------------------------------------------------------------------- diff --git a/dashboard/v2/bower.json b/dashboard/v2/bower.json deleted file mode 100755 index 2ffdc90..0000000 --- a/dashboard/v2/bower.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "atlas-metadata", - "description": "Apache Atlas", - "version": "1.0.0-SNAPSHOT", - "devDependencies": { - "angular": "~1.2.15", - "angular-resource": "~1.2.15", - "angular-cookies": "~1.2.15", - "angular-route": "~1.2.15", - "angular-sanitize": "~1.2.15", - "bootstrap": "~3.1.1", - "angular-bootstrap": "~0.12.0", - "angular-ui-router": "~0.2.13", - "d3": "~3.5.3", - "d3-tip": "~0.6.6", - "lodash": "~3.0.0", - "angular-ui-utils": "~0.1.1", - "font-awesome": "~4.2.0", - "closure-compiler": "https://dl.google.com/closure-compiler/compiler-20140814.zip", - "ng-closure-runner": "https://raw.github.com/angular/ng-closure-runner/v0.2.3/assets/ng-closure-runner.zip" - }, - "resolutions": { - "d3": "~3.5.3" - } -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/gruntfile.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/gruntfile.js b/dashboard/v2/gruntfile.js deleted file mode 100755 index 3302913..0000000 --- a/dashboard/v2/gruntfile.js +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -'use strict'; - -var git = require('git-rev'); - -module.exports = function(grunt) { - var classPathSep = (process.platform === "win32") ? ';' : ':', - gitHash = '', - pkg = grunt.file.readJSON('package.json'), - distPath = '../../webapp/target/dist'; - - grunt.initConfig({ - watch: { - options: { - livereload: 35729 - }, - js: { - files: ['public/**/*.js', '!public/lib/**', '!public/dist/**', '!public/js/app.min.js'], - tasks: ['shell'] - }, - html: { - files: ['public/**/*.html'], - tasks: ['copy:dist'] - }, - css: { - files: ['public/**/*.css'], - tasks: ['copy:dist'] - }, - image: { - files: ['public/**/*.{ico,gif,png}'], - tasks: ['copy:dist'] - } - }, - jshint: { - all: { - src: ['gruntfile.js', 'package.json', 'server.js', 'server/**/*.js', 'public/**/*.js', '!public/lib/**', '!public/dist/**', '!public/**/app.min.js'], - options: { - jshintrc: true - } - } - }, - concurrent: { - tasks: ['watch', 'proxitserver'], - options: { - logConcurrentOutput: true - } - }, - jsbeautifier: { - 'default': { - src: ['<%= jshint.all.src %>', 'bower.json'], - options: { - js: { - preserveNewlines: true, - maxPreserveNewlines: 2 - } - } - }, - 'build': { - src: '<%= jsbeautifier.default.src %>', - options: { - mode: 'VERIFY_ONLY', - js: '<%= jsbeautifier.default.options.js%>' - } - } - }, - bower: { - install: { - options: { - verbose: true, - targetDir: '.bower-components' - } - } - }, - dist: distPath + '/js/app.min.js', - modules: grunt.file.expand( - 'public/js/app.js', - 'public/js/routes.js', - 'public/modules/**/*Module.js', - 'public/modules/**/*.js', - 'public/js/init.js' - ).join(' '), - shell: { - min: { - command: 'java ' + - '-cp ' + distPath + '/lib/closure-compiler/compiler.jar' + classPathSep + - '' + distPath + '/lib/ng-closure-runner/ngcompiler.jar ' + - 'org.angularjs.closurerunner.NgClosureRunner ' + - '--compilation_level SIMPLE_OPTIMIZATIONS ' + - //'--formatting PRETTY_PRINT ' + - '--language_in ECMASCRIPT5_STRICT ' + - '--angular_pass ' + - '--manage_closure_dependencies ' + - '--js <%= modules %> ' + - '--js_output_file <%= dist %>' - } - }, - devUpdate: { - main: { - options: { - updateType: 'force' - } - } - }, - compress: { - release: { - options: { - archive: function() { - return [pkg.name, pkg.version, gitHash].join('_') + '.tgz'; - } - }, - src: ['node_modules/**', 'package.json', 'server.js', 'server/**', 'public/**', '!public/js/**', '!public/modules/**/*.js'] - } - }, - copy: { - dist: { - expand: true, - cwd: 'public/', - src: ['**', '!js/**/*.js', '!modules/**/*.js'], - dest: distPath - } - }, - clean: { - build :[distPath], - options: { - force: true - } - }, - proxit: { - dev: { - options: { - 'port': 3010, - 'verbose': true, - 'hosts': [{ - 'hostnames': ['*'], - 'routes': { - '/': distPath, - '/api': 'http://162.249.6.50:21000/api' - } - }] - } - } - } - }); - - require('load-grunt-tasks')(grunt); - grunt.registerTask('default', ['devUpdate', 'bower', 'jshint', 'jsbeautifier:default']); - - grunt.registerTask('server', ['jshint', 'clean', 'bower', 'copy:dist', 'minify', 'concurrent']); - grunt.registerTask('build', ['copy:dist', 'minify']); - - grunt.registerTask('minify', 'Minify the all js', function() { - var done = this.async(); - grunt.task.run(['shell:min']); - done(); - }); - grunt.loadNpmTasks('proxit'); - grunt.registerTask('proxitserver', 'Proxit', function() { - var done = this.async(); - grunt.task.run(['proxit:dev']); - done(); - }); - grunt.registerTask('release', 'Create release package', function() { - var done = this.async(); - git.short(function(str) { - gitHash = str; - grunt.task.run(['minify', 'compress:release']); - done(); - }); - }); -}; http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/package.json ---------------------------------------------------------------------- diff --git a/dashboard/v2/package.json b/dashboard/v2/package.json deleted file mode 100755 index 3772654..0000000 --- a/dashboard/v2/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "atlas-metadata", - "description": "Apache Atlas", - "version": "0.5.0-incubating", - "private": true, - "repository": { - "type": "git", - "url": "https://git-wip-us.apache.org/repos/asf/incubator-atlas.git" - }, - "engines": { - "node": "0.10.x", - "npm": "1.3.x" - }, - "keywords": [ - "Apache", - "Atlas", - "HortonWorks" - ], - "dependencies": { - "body-parser": "^1.2.0", - "bower": "~1.3.1", - "compression": "^1.0.2", - "consolidate": "~0.10.0", - "cookie-parser": "^1.0.1", - "cookies": "~0.4.0", - "express": "~4.2.0", - "express-load": "^1.1.14", - "forever": "~0.11.1", - "lodash": "~2.4.1", - "method-override": "^1.0.0", - "morgan": "^1.0.1", - "path-extra": "~0.1.1", - "proxit": "^0.6.0", - "q": "~1.0.1", - "rc": "~0.3.4", - "serve-favicon": "^2.0.0", - "static-favicon": "^2.0.0-alpha", - "superagent": "^0.20.0", - "swig": "~1.3.2", - "view-helpers": "~0.1.4", - "grunt-contrib-clean": "~0.6.0" - }, - "devDependencies": { - "git-rev": "^0.2.1", - "grunt": "~0.4.2", - "grunt-bower-task": "~0.4.0", - "grunt-cli": "~0.1.11", - "grunt-concurrent": "^1.0.0", - "grunt-contrib-compress": "^0.13.0", - "grunt-contrib-jshint": "^0.11.0", - "grunt-contrib-watch": "^0.6.0", - "grunt-dev-update": "^1.0.2", - "grunt-jsbeautifier": "^0.2.6", - "grunt-nodemon": "^0.4.0", - "grunt-shell": "^1.1.1", - "load-grunt-tasks": "^3.1.0", - "grunt-nginx": "~0.2.2", - "grunt-contrib-copy": "~0.8.0", - "grunt-contrib-clean": "~0.6.0", - "proxit": "~0.6.4" - } -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/css/common.css ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/css/common.css b/dashboard/v2/public/css/common.css deleted file mode 100755 index c6af853..0000000 --- a/dashboard/v2/public/css/common.css +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -div.separator { - position: relative; - font-size: 18px; - color: #aaa; - margin-top: 10px; - margin-bottom: 10px; - padding-top: 10px; - padding-bottom: 10px; -} - -span.separator { - display: block; - position: absolute; - left: 50%; - top: -2px; - margin-left: -25px; - background-color: #fff; - width: 50px; - text-align: center; -} - -hr.separator { - background-color: #cdcdcd; - height: 1px; - margin-top: 0px !important; - margin-bottom: 0px !important; -} - -.pointer { - cursor: pointer; -} - -.form-control { - border-color: #5cbb5a; - border-width: 2px; -} - -.small-txt { - color: #999999; - padding-left: 14px; -} - -/* Header background */ -header.navbar-top { - background-color: #fafafa; - border-bottom: solid 4px #5cbb5a; - margin-bottom: 0px; -} - -header .container { - padding: 12px; -} - -/* Footer */ -footer.navbar-bottom { - background-color: #fafafa; - border-top: solid 4px #5cbb5a; -} - -footer.navbar-bottom p { - color: #333333; - margin: 23px 10px 10px; -} - -footer.navbar-bottom img { - padding-left: 5px; - margin-top: -21px; -} - -.searchresults { - border: 1px solid #ddd; - padding: 10px; -} - -.mt10px { - margin-top: 10px; -} - -.mt20px { - margin-top: 20px; -} - -.searchresults:first-child { - border-top-right-radius: 4px; - border-top-left-radius: 4px; -} - -.searchresults:last-child { - margin-bottom: 0; - border-bottom-right-radius: 4px; - border-bottom-left-radius: 4px; -} -.searchresults hr { - margin: 0; - border: 0; -} -.searchresults .well { - background-color: #fff; - border: 0; - box-shadow: none; - height: auto; - min-height: 0; - padding: 5px 5px 5px 0; -} -.search-spinner { - text-align: center; -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/css/d3tip.css ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/css/d3tip.css b/dashboard/v2/public/css/d3tip.css deleted file mode 100755 index 11e12b2..0000000 --- a/dashboard/v2/public/css/d3tip.css +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -.d3-tip { - line-height: 1; - font-weight: bold; - padding: 12px; - background: rgba(0, 0, 0, 0.8); - color: #fff; - border-radius: 2px; -} - -/* Creates a small triangle extender for the tooltip */ -.d3-tip:after { - box-sizing: border-box; - display: inline; - font-size: 10px; - width: 100%; - line-height: 1; - color: rgba(0, 0, 0, 0.8); - content: "\25BC"; - position: absolute; - text-align: center; -} - -/* Style northward tooltips differently */ -.d3-tip.n:after { - margin: -1px 0 0 0; - top: 100%; - left: 0; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/css/details.css ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/css/details.css b/dashboard/v2/public/css/details.css deleted file mode 100644 index 156d5f6..0000000 --- a/dashboard/v2/public/css/details.css +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -.tab-content .table-bordered { - border-top: none; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/css/lineage.css ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/css/lineage.css b/dashboard/v2/public/css/lineage.css deleted file mode 100755 index fddc0b0..0000000 --- a/dashboard/v2/public/css/lineage.css +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -/*g circle {*/ - /*cursor: pointer;*/ - /*stroke: green;*/ - /*stroke-width: 2px;*/ - /*fill: url(#process-image);*/ -/*}*/ - -/*g circle.empty {*/ - /*fill: #90ef96;*/ -/*}*/ - -.link { - fill: none; - stroke: green; - stroke-width: 2px; - -} - -g text { - pointer-events: none; - text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff; - text-align: center; -} - -.d3-tip pre { - max-width: 400px; -} - -div.lineage { - border-bottom: 2px solid #006600; - -} - -/*.node rect {*/ - /*stroke: #333;*/ - /*fill: #fff;*/ -/*}*/ - -.edgePath path { - stroke: #333; - fill: #333; - stroke-width: 1.5px; -} - -/*.node rect,*/ -/*.node circle {*/ - /*stroke: #333;*/ - /*fill: #fff;*/ - /*stroke-width: 1.5px;*/ -/*}*/ - -.lineage-viz { - margin: 0 auto; - overflow: auto; - /*border: 1px solid #ddd; - border-top: none;*/ - -} -/*.images {*/ - /*background-image: url("../img/process.png");*/ -/*}â*/ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/css/sticky-footer-navbar.css ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/css/sticky-footer-navbar.css b/dashboard/v2/public/css/sticky-footer-navbar.css deleted file mode 100755 index 3a2444b..0000000 --- a/dashboard/v2/public/css/sticky-footer-navbar.css +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -/* Sticky footer styles --------------------------------------------------- */ -html { - position: relative; - min-height: 100%; -} -body { - /* Margin bottom by footer height */ - margin-bottom: 60px; -} - -.content { - padding-bottom: 90px; -} - -.footer { - position: absolute; - bottom: 0; - width: 100%; - /* Set the fixed height of the footer here */ - height: 60px; - background-color: #f5f5f5; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/index.html ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/index.html b/dashboard/v2/public/index.html deleted file mode 100644 index 5ce839d..0000000 --- a/dashboard/v2/public/index.html +++ /dev/null @@ -1,72 +0,0 @@ -<!doctype html> -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you 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 lang="en" xmlns="http://www.w3.org/1999/xhtml" itemscope="itemscope" itemtype="http://schema.org/Product"> -<head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta name="viewport" content="width=device-width,initial-scale=1"> - - <title>Apache Atlas</title> - <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> - - - <link href="img/favicon.ico" rel="shortcut icon" type="image/x-icon"> - - <link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css"> - <link rel="stylesheet" href="/css/sticky-footer-navbar.css"> - <link rel="stylesheet" href="/css/common.css"> - <link rel="stylesheet" href="/css/details.css"> - <link rel="stylesheet" href="/css/lineage.css"> - <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> - </head> - - -<link href="img/favicon.ico" rel="shortcut icon" type="image/x-icon"> -<body> -<header class="navbar navbar-static-top navbar-top" data-role="navigation"> - <div class="container" data-ng-include="'/modules/home/views/header.html'"></div> -</header> -<div class="content"> - <div data-ng-include="'/modules/notification/views/notifications.html'"></div> - <div data-ui-view class="container"></div> -</div> -<footer class="footer navbar-bottom"> - <div class="container"> - <!--<p align="right">Powered by<img src="modules/home/img/logo-green.png"></p>--> - </div> -</footer> - -<script src="lib/jquery/dist/jquery.js"></script> -<script src="lib/angular/angular.js"></script> -<script src="lib/bootstrap/dist/js/bootstrap.js"></script> -<script src="lib/angular-bootstrap/ui-bootstrap-tpls.js"></script> -<script src="lib/angular-cookies/angular-cookies.js"></script> -<script src="lib/angular-resource/angular-resource.js"></script> -<script src="lib/angular-route/angular-route.js"></script> -<script src="lib/angular-sanitize/angular-sanitize.js"></script> -<script src="lib/angular-ui-router/release/angular-ui-router.js"></script> -<script src="lib/angular-ui-utils/ui-utils.js"></script> -<script src="lib/lodash/lodash.js"></script> -<script src="/lib/d3/d3.js"></script> -<script src="/lib/d3-tip/index.js"></script> - -<script src="js/app.min.js"></script> -</body> -</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/js/app.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/js/app.js b/dashboard/v2/public/js/app.js deleted file mode 100755 index 1bdb316..0000000 --- a/dashboard/v2/public/js/app.js +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -'use strict'; - -angular.module('dgc', ['ngCookies', - 'ngResource', - 'ui.bootstrap', - 'ui.router', - 'dgc.system', - 'dgc.home', - 'dgc.search', - 'dgc.navigation' -]); - -angular.module('dgc.system', ['dgc.system.notification']); - -angular.module('dgc').factory('lodash', ['$window', - function($window) { - return $window._; - } -]).factory('d3', ['$window', - function($window) { - return $window.d3; - } -]).factory('Global', ['$window', '$location', - function($window, $location) { - return { - user: $location.search()['user.name'], - authenticated: !!$window.user, - renderErrors: $window.renderErrors - }; - } -]).factory('HttpInterceptor', ['Global', function(Global) { - return { - 'request': function(config) { - if (config.url && (config.url.indexOf('api/atlas/') === 0 || config.url.indexOf('/api/atlas/') === 0)) { - config.params = config.params || {}; - config.params['user.name'] = Global.user; - } - return config; - } - }; -}]).config(['$httpProvider', function($httpProvider) { - $httpProvider.interceptors.push('HttpInterceptor'); -}]).run(['$rootScope', 'Global', 'NotificationService', 'lodash', 'd3', function($rootScope, Global, NotificationService, lodash, d3) { - var errors = Global.renderErrors; - if (angular.isArray(errors) || angular.isObject(errors)) { - lodash.forEach(errors, function(err) { - err = angular.isObject(err) ? err : { - message: err - }; - err.timeout = false; - NotificationService.error(err); - }); - } else { - if (errors) { - errors.timeout = false; - NotificationService.error(errors); - } - } - $rootScope.$on('$stateChangeStart', function() { - d3.selectAll('.d3-tip').remove(); - }); -}]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/js/init.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/js/init.js b/dashboard/v2/public/js/init.js deleted file mode 100755 index aa99935..0000000 --- a/dashboard/v2/public/js/init.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -'use strict'; - -angular.element(document).ready(function() { - /* Fixing facebook bug with redirect */ - if (window.location.hash === '#_=_') window.location.hash = '#!'; - - //Then init the app - angular.bootstrap(document, ['dgc'], { - strictDi: true - }); -}); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/js/routes.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/js/routes.js b/dashboard/v2/public/js/routes.js deleted file mode 100755 index 8d0a3ac..0000000 --- a/dashboard/v2/public/js/routes.js +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -'use strict'; - -//Setting up route -angular.module('dgc').config(['$locationProvider', '$urlRouterProvider', - function($locationProvider, $urlRouterProvider) { - $locationProvider.hashPrefix('!'); - // For unmatched routes: - $urlRouterProvider.otherwise('/search'); - } -]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/modules/details/detailsController.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/detailsController.js b/dashboard/v2/public/modules/details/detailsController.js deleted file mode 100644 index 0e96d42..0000000 --- a/dashboard/v2/public/modules/details/detailsController.js +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -'use strict'; - -angular.module('dgc.details').controller('DetailsController', ['$window', '$scope', '$stateParams', 'DetailsResource', - function($window, $scope, $stateParams, DetailsResource) { - - $scope.tableName = false; - $scope.isTable = false; - - DetailsResource.get({ - id: $stateParams.id - }, function(data) { - $scope.details = data; - $scope.schemas = data; - $scope.tableName = data.values.name; - $scope.isTable = data.typeName === 'Table'; - }); - - $scope.isString = angular.isString; - - $scope.onActivate = function tabActivate(tabname) { - $scope.$broadcast('render-lineage', { - type: tabname, - tableName: $scope.tableName - }); - }; - - $scope.goBack = function() { - $window.history.back(); - }; - - } -]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/modules/details/detailsModule.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/detailsModule.js b/dashboard/v2/public/modules/details/detailsModule.js deleted file mode 100644 index 987750a..0000000 --- a/dashboard/v2/public/modules/details/detailsModule.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -'use strict'; - -angular.module('dgc.details', ['dgc.lineage']); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/modules/details/detailsResource.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/detailsResource.js b/dashboard/v2/public/modules/details/detailsResource.js deleted file mode 100644 index af2f249..0000000 --- a/dashboard/v2/public/modules/details/detailsResource.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -'use strict'; - -angular.module('dgc.details').factory('DetailsResource', ['$resource', function($resource) { - return $resource('/api/atlas/entities/:id', {}, { - get: { - method: 'GET', - transformResponse: function(data) { - if (data) { - return angular.fromJson(data.definition); - } - }, - responseType: 'json' - } - }); - -}]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/modules/details/detailsRoutes.js ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/detailsRoutes.js b/dashboard/v2/public/modules/details/detailsRoutes.js deleted file mode 100644 index 17e32fa..0000000 --- a/dashboard/v2/public/modules/details/detailsRoutes.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -'use strict'; - -angular.module('dgc.details').config(['$stateProvider', - function($stateProvider) { - - // states for my app - $stateProvider.state('details', { - url: '/details/:id', - templateUrl: '/modules/details/views/details.html' - }); - } -]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/modules/details/views/attribute.html ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/views/attribute.html b/dashboard/v2/public/modules/details/views/attribute.html deleted file mode 100644 index 89fa067..0000000 --- a/dashboard/v2/public/modules/details/views/attribute.html +++ /dev/null @@ -1,29 +0,0 @@ -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you 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. - --> - -<!--<div>--> -<!--{{key}}:--> - -<!--{{value}}--> -<!--</div>--> - -<div class="row" data-ng-repeat="(key1, value1) in value" ng-if="value1"> - <div class="col-md-6" data-ng-if="!isString(value1)" data-ng-repeat="(key2, value2) in value1 track by $index"></div> - <div data-ng-if="isString(value2)" data-ng-repeat="(key3, value3) in value2"> {{key3}}: {{value3}}</div> - <div class="col-md-6" data-ng-if="isString(value1)"> {{key1}} : {{value1 | date:'medium'}}</div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/modules/details/views/details.html ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/views/details.html b/dashboard/v2/public/modules/details/views/details.html deleted file mode 100644 index 19f0ce0..0000000 --- a/dashboard/v2/public/modules/details/views/details.html +++ /dev/null @@ -1,49 +0,0 @@ -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you 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. - --> - -<div class="row" data-ng-controller="DetailsController"> - <ul class="breadcrumb"> - <li><button class="btn btn-link" data-ng-click="goBack()">Back To Result</button> </li> - </ul> - <div role="tabpanel" class="col-lg-12"> - <h2>Name: {{details.values.name}}</h2> - <h4>Description: {{details.values.description}}</h4> - <tabset> - <tab heading="Details"> - <table class="table table-bordered"> - <thead> - <tr> - <th>Key</th> - <th>Value</th> - </tr> - </thead> - <tbody> - <tr data-ng-repeat="(key,value) in details.values" ng-if="value && !(key==='columns') && !(key==='name') && !(key==='description')"> - <td>{{key}}</td> - <td data-ng-if="!isString(value)" data-ng-include="'/modules/details/views/attribute.html'"></td> - <td data-ng-if="isString(value)">{{value | date:'medium'}}</td> - </tr> - </tbody> - </table> - </tab> - <tab data-heading="Schema" data-ng-if="isTable"><ng-include src="'/modules/details/views/schema.html'"/></tab> - <tab data-heading="Output" data-ng-if="isTable" data-disable="!tableName" data-select="onActivate('outputs')"><ng-include data-table-type="outputs" src="'/modules/lineage/views/lineage.html'"/></tab> - <tab data-heading="Input" data-ng-if="isTable" data-disable="!tableName" data-select="onActivate('inputs')"><ng-include data-table-type="inputs" src="'/modules/lineage/views/lineage.html'"/></tab> - </tabset> - </div> -</div> http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/37db9955/dashboard/v2/public/modules/details/views/schema.html ---------------------------------------------------------------------- diff --git a/dashboard/v2/public/modules/details/views/schema.html b/dashboard/v2/public/modules/details/views/schema.html deleted file mode 100644 index 1aaf96d..0000000 --- a/dashboard/v2/public/modules/details/views/schema.html +++ /dev/null @@ -1,52 +0,0 @@ -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you 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. - --> -<table class="table table-bordered"> - <thead> - <tr> - <th>Name</th> - <th>Comment</th> - <th>DataType</th> - </tr> - </thead> - <tbody> - <tr> - <td> {{details.values.columns[0].values.name}}</td> - <td>{{details.values.columns[0].values.comment}}</td> - <td> {{details.values.columns[0].values.dataType}}</td> - - </tr> - <tr> - - <td> {{details.values.columns[1].values.name}}</td> - <td>{{details.values.columns[1].values.comment}}</td> - <td> {{details.values.columns[1].values.dataType}}</td> - </tr> - <tr> - - <td> {{details.values.columns[2].values.name}}</td> - <td>{{details.values.columns[2].values.comment}}</td> - <td> {{details.values.columns[2].values.dataType}}</td> - </tr> - <tr> - - <td> {{details.values.columns[3].values.name}}</td> - <td>{{details.values.columns[3].values.comment}}</td> - <td> {{details.values.columns[3].values.dataType}}</td> - </tr> - </tbody> -</table> \ No newline at end of file
