From 7f436bb54a95e631d14071f578d5a117a5635b89 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 23 Jun 2017 14:38:26 -0400 Subject: [PATCH] Remove unused image-info-sidebar directive --- .../css/directives/ui/image-info-sidebar.css | 68 -------------- static/directives/image-info-sidebar.html | 94 ------------------- static/js/directives/ui/image-info-sidebar.js | 37 -------- 3 files changed, 199 deletions(-) delete mode 100644 static/css/directives/ui/image-info-sidebar.css delete mode 100644 static/directives/image-info-sidebar.html delete mode 100644 static/js/directives/ui/image-info-sidebar.js diff --git a/static/css/directives/ui/image-info-sidebar.css b/static/css/directives/ui/image-info-sidebar.css deleted file mode 100644 index 5dffade2b..000000000 --- a/static/css/directives/ui/image-info-sidebar.css +++ /dev/null @@ -1,68 +0,0 @@ -.image-info-sidebar .image-comment { - margin-bottom: 4px; -} - -.image-info-sidebar .image-section { - margin-top: 12px; - padding-bottom: 2px; - position: relative; -} - -.image-info-sidebar .image-section .tag { - margin: 2px; - border-radius: 8px; - display: inline-block; - padding: 4px; -} - -.image-info-sidebar .image-section .section-icon { - float: left; - font-size: 16px; - margin-left: -4px; - margin-right: 14px; - color: #bbb; - width: 18px; - text-align: center; - padding-top: 6px; -} - -.image-info-sidebar .image-section .section-info { - padding: 4px; - padding-left: 6px; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.05); - box-shadow: inset 0 1px 1px rgba(0,0,0,0.05); - background-color: #f5f5f5; - - vertical-align: middle; - display: block; - overflow: hidden; - text-overflow: ellipsis; -} - -.image-info-sidebar .image-section .section-info-with-dropdown { - padding-right: 30px; -} - -.image-info-sidebar .image-section .dropdown { - display: inline-block; - position: absolute; - top: 0px; - bottom: 2px; - right: 0px; -} - -.image-info-sidebar .image-section .dropdown-button { - position: absolute; - right: 0px; - top: 0px; - bottom: 0px; - - background: white; - padding: 4px; - padding-left: 8px; - padding-right: 8px; - border: 1px solid #eee; - border-top-right-radius: 4px; - border-bottom-right-radius: 4px; - cursor: pointer; -} diff --git a/static/directives/image-info-sidebar.html b/static/directives/image-info-sidebar.html deleted file mode 100644 index fe32591d7..000000000 --- a/static/directives/image-info-sidebar.html +++ /dev/null @@ -1,94 +0,0 @@ -
- -
-
- -
-
- - - - - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
-
diff --git a/static/js/directives/ui/image-info-sidebar.js b/static/js/directives/ui/image-info-sidebar.js deleted file mode 100644 index 2614a5f15..000000000 --- a/static/js/directives/ui/image-info-sidebar.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * An element which displays sidebar information for a image. Primarily used in the repo view. - */ -angular.module('quay').directive('imageInfoSidebar', function () { - var directiveDefinitionObject = { - priority: 0, - templateUrl: '/static/directives/image-info-sidebar.html', - replace: false, - transclude: true, - restrict: 'C', - scope: { - 'tracker': '=tracker', - 'image': '=image', - 'imageLoader': '=imageLoader', - - 'tagSelected': '&tagSelected', - 'addTagRequested': '&addTagRequested' - }, - controller: function($scope, $element, ImageMetadataService) { - $scope.$watch('image', function(image) { - if (!image || !$scope.tracker) { return; } - $scope.imageData = $scope.tracker.lookupImage(image); - }); - - $scope.parseDate = function(dateString) { - return Date.parse(dateString); - }; - - $scope.getTags = function(imageData) { - return $scope.imageLoader.getTagsForImage(imageData); - }; - - $scope.getFormattedCommand = ImageMetadataService.getFormattedCommand; - } - }; - return directiveDefinitionObject; -}); \ No newline at end of file