Skip to content

Commit

Permalink
release v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Wolfes committed Jun 13, 2017
1 parent ef2f00f commit 7da6def
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adf-widget-sonar",
"version": "0.1.0",
"version": "0.1.4",
"main": "dist/adf-widget-sonar.js",
"ignore": [
"bower.json",
Expand Down
32 changes: 16 additions & 16 deletions dist/adf-widget-sonar.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ $templateCache.put("{widgetsPath}/sonar/src/chart/edit.html","<style type=text/c
$templateCache.put("{widgetsPath}/sonar/src/chart/view.html","<canvas id=line class=\"chart chart-line\" chart-data=vm.values chart-labels=vm.labels chart-series=vm.series chart-options=options chart-dataset-override=datasetOverride style=\"width: 100%\"></canvas>");
$templateCache.put("{widgetsPath}/sonar/src/compare/edit.html","<form role=form><div class=form-group ng-controller=\"editController as vm\"><label for=url>API-URL</label> <input type=text class=form-control id=url ng-model=config.apiUrl placeholder=Sonar-URL ng-change=updateProjects()> <label for=project1>Choose Project 1</label> <input type=text class=form-control id=project1 ng-model=config.projectname1 ng-required=true placeholder=\"Project 1\" uib-typeahead=\"project.name for project in vm.projects | limitTo:10 | filter:$viewValue\"> <label for=project2>Choose Project 2</label> <input type=text class=form-control id=project2 ng-model=config.projectname2 ng-required=true placeholder=\"Project 2\" uib-typeahead=\"project.name for project in vm.projects | limitTo:10 | filter:$viewValue\"></div></form>");
$templateCache.put("{widgetsPath}/sonar/src/compare/view.html","<div class=\"alert alert-info\" ng-if=!vm.projectLeft>Please configure the widget</div><div ng-if=vm.projectLeft class=\"col-md-12 centerText\"><table class=table><tr><th>Metric</th><th>{{vm.projectLeft.data.component.name}}</th><th>{{vm.projectRight.data.component.name}}</th></tr><tr ng-repeat=\"metric in vm.projectLeft.data.component.measures\"><td>{{vm.METRIC_NAMES[metric.metric]}}</td><td>{{vm.projectLeft.data.component.measures[$index].value}}</td><td>{{vm.projectRight.data.component.measures[$index].value}}</td></tr></table></div>");
$templateCache.put("{widgetsPath}/sonar/src/issues/edit.html","<div class=form-group><form role=form><div class=form-group><label for=sample>API-URL</label> <input type=text class=form-control id=sample ng-model=config.apiUrl placeholder=Sonar-URL></div></form><form role=form><div class=form-group><label for=sample>Sorting</label><select class=form-control id=sample ng-model=config.sorting placeholder=Test><option disabled selected>Select your option</option><option value=sortByEffort>Sorting by Effort</option><option value=sortBySeverity>Sorting by Severity</option></select></div></form></div>");
$templateCache.put("{widgetsPath}/sonar/src/issues/view.html","<style type=text/css>\n .content {\n text-align: left;\n color: black;\n }\n\n .tagContent {\n color: grey;\n text-align: right;\n }\n\n .sonarIssue {\n background-color: #F0F0F0;\n margin-bottom: 20px;\n border: 1px solid black;\n padding: 2px;\n border-radius: 1px;\n }\n\n .heading {\n color: #1874CD;\n font-size: small;\n margin-top: 1%;\n }\n\n .pre-scrollable.content {\n max-height: 500px;\n }\n\n</style><div ng-if=!vm.projects class=\"alert alert-info\">You don\'t have any issues.</div><div ng-if=vm.projects class=\"pre-scrollable content\"><div ng-repeat=\"project in vm.projects | orderBy: vm.sorting\"><div class=heading><span ng-if=project.project class=\"glyphicon glyphicon-folder-open\"></span> {{project.project}} <span ng-if=project.subProject class=\"glyphicon glyphicon-folder-open\"></span> {{project.subProject}} <span ng-if=project.component class=\"glyphicon glyphicon-file\"></span> {{project.component}}<br></div><div class=\"content col-md-20\"><div class=\"col-md-20 sonarIssue\" ng-repeat=\"issue in project.projectIssue track by $index\"><table width=100%><tr><td width=80% colspan=4><b>{{issue.message}}</b></td><td ng-if=issue.line>L{{issue.line}}</td></tr></table><table width=100%><tr><td width=15%>{{issue.type | lowercase}}</td><td width=15%><span ng-if=\"issue.severity == \'MAJOR\'\" class=\"glyphicon glyphicon-chevron-up\"></span> <span ng-if=\"issue.severity == \'MINOR\'\" class=\"glyphicon glyphicon-chevron-down\"></span> <span ng-if=\"issue.severity == \'INFO\'\" class=\"glyphicon glyphicon-arrow-down\"></span> <span ng-if=\"issue.severity == \'CRITICAL\'\" class=\"glyphicon glyphicon-arrow-up\"></span> <span ng-if=\"issue.severity == \'BLOCKER\'\" class=\"glyphicon glyphicon-exclamation-sign\"></span> {{issue.severity | lowercase}}</td><td width=15%>{{issue.status | lowercase}}</td><td width=15% ng-if=issue.effort><span class=\"glyphicon glyphicon-time\"></span> {{issue.effort}} effort</td><td class=tagContent><span ng-if=issue.tag class=\"glyphicon glyphicon-tags\"></span> {{issue.tag}}</td></tr></table></div></div></div></div>");
$templateCache.put("{widgetsPath}/sonar/src/project-progress/edit.html","<form role=form><div class=form-group ng-controller=editController><label for=sample>Project</label> <input type=text class=form-control id=sample ng-model=config.projectname ng-required=true placeholder=\"Project name\"> <label for=sample>Project Timespan</label><p class=input-group><input class=form-control datepicker-options=dateOptions is-open=popup1.opened ng-model=config.projectBeginn placeholder=from show-button-bar=false type=text uib-datepicker-popup={{format}}> <span class=input-group-btn><button class=\"btn btn-default\" ng-click=open1() type=button><i class=\"glyphicon glyphicon-calendar\"></i></button></span></p><p class=input-group><input class=form-control datepicker-options=dateOptions is-open=popup2.opened ng-model=config.projectEnd placeholder=to show-button-bar=false type=text uib-datepicker-popup={{format}}> <span class=input-group-btn><button class=\"btn btn-default\" ng-click=open2() type=button><i class=\"glyphicon glyphicon-calendar\"></i></button></span></p></div></form>");
$templateCache.put("{widgetsPath}/sonar/src/project-progress/view.html","<style>\n .daysLeft {\n text-align: center;\n max-height: 700px;\n }\n\n .info {\n width: 65%;\n margin-left: 17.5%;\n margin-top: -80%;\n margin-bottom: 35%;\n }\n\n</style><div class=\"alert alert-info\" ng-if=!vm.result.daysLeft>Please configure the widget</div><div ng-if=vm.result.daysLeft class=daysLeft><div ng-init=\"progress=vm.progressProperties\"><round-progress max=progress.max current=progress.current color=\"{{ (current / max < 0.75) ? \'1B7DAA\' : \'1B7DAA\' }}\" bgcolor=#F5F5F5 radius=360 stroke=67 semi=false rounded=true clockwise=true responsive=true duration=800 animation=easeInOutQuart animation-delay=0></round-progress></div><div class=info><h1 style=font-size:2em>{{config.projectname}}</h1><h1>{{vm.result.daysLeft}}/{{vm.result.maxDays}}</h1><p>Days left</p></div></div>");
$templateCache.put("{widgetsPath}/sonar/src/issues/edit.html","<div class=form-group><form role=form><div class=form-group><label for=sample>API-URL</label> <input type=text class=form-control id=sample ng-model=config.apiUrl placeholder=Sonar-URL></div></form><form role=form><div class=form-group><label for=sample>Sorting</label><select class=form-control id=sample ng-model=config.sorting placeholder=Test><option disabled selected>Select your option</option><option value=sortByEffort>Sorting by Effort</option><option value=sortBySeverity>Sorting by Severity</option></select></div></form></div>");
$templateCache.put("{widgetsPath}/sonar/src/issues/view.html","<style type=text/css>\n .content {\n text-align: left;\n color: black;\n }\n\n .tagContent {\n color: grey;\n text-align: right;\n }\n\n .sonarIssue {\n background-color: #F0F0F0;\n margin-bottom: 20px;\n border: 1px solid black;\n padding: 2px;\n border-radius: 1px;\n }\n\n .heading {\n color: #1874CD;\n font-size: small;\n margin-top: 1%;\n }\n\n .pre-scrollable.content {\n max-height: 500px;\n }\n\n</style><div ng-if=!vm.projects class=\"alert alert-info\">You don\'t have any issues.</div><div ng-if=vm.projects class=\"pre-scrollable content\"><div ng-repeat=\"project in vm.projects | orderBy: vm.sorting\"><div class=heading><span ng-if=project.project class=\"glyphicon glyphicon-folder-open\"></span> {{project.project}} <span ng-if=project.subProject class=\"glyphicon glyphicon-folder-open\"></span> {{project.subProject}} <span ng-if=project.component class=\"glyphicon glyphicon-file\"></span> {{project.component}}<br></div><div class=\"content col-md-20\"><div class=\"col-md-20 sonarIssue\" ng-repeat=\"issue in project.projectIssue track by $index\"><table width=100%><tr><td width=80% colspan=4><b>{{issue.message}}</b></td><td ng-if=issue.line>L{{issue.line}}</td></tr></table><table width=100%><tr><td width=15%>{{issue.type | lowercase}}</td><td width=15%><span ng-if=\"issue.severity == \'MAJOR\'\" class=\"glyphicon glyphicon-chevron-up\"></span> <span ng-if=\"issue.severity == \'MINOR\'\" class=\"glyphicon glyphicon-chevron-down\"></span> <span ng-if=\"issue.severity == \'INFO\'\" class=\"glyphicon glyphicon-arrow-down\"></span> <span ng-if=\"issue.severity == \'CRITICAL\'\" class=\"glyphicon glyphicon-arrow-up\"></span> <span ng-if=\"issue.severity == \'BLOCKER\'\" class=\"glyphicon glyphicon-exclamation-sign\"></span> {{issue.severity | lowercase}}</td><td width=15%>{{issue.status | lowercase}}</td><td width=15% ng-if=issue.effort><span class=\"glyphicon glyphicon-time\"></span> {{issue.effort}} effort</td><td class=tagContent><span ng-if=issue.tag class=\"glyphicon glyphicon-tags\"></span> {{issue.tag}}</td></tr></table></div></div></div></div>");
$templateCache.put("{widgetsPath}/sonar/src/projectquality/edit.html","<style type=text/css></style><form role=form><div class=form-group ng-controller=\"editController as vm\"><label for=sample>API-URL</label><p><input class=form-control id=sample ng-model=config.apiUrl placeholder=Sonar-URL type=text ng-change=updateProjects()></p><label for=sample>Project</label> (*Required)<p><input id=project name=project type=text class=form-control autocomplete=off placeholder=\"Choose project\" ng-model=config.project required uib-typeahead=\"project.name for project in vm.projects | limitTo:10 | filter:$viewValue\"></p></div></form>");
$templateCache.put("{widgetsPath}/sonar/src/projectquality/view.html","<style type=text/css>\n div.sonar-content {\n text-align: right;\n color: white;\n }\n\n .statusQualitygate {\n border-radius: 8px;\n margin-bottom: 2%;\n }\n\n .codeCoverage {\n border-radius: 8px;\n background-color: #fcc700;\n margin-bottom: 2%;\n }\n\n .blockerIssues {\n border-radius: 8px;\n background-color: #1B7DAA;\n }\n\n .glyphiconStyle {\n float: left;\n font-size: 3em;\n margin-top: 25px;\n }\n\n .error {\n background-color: #E43B53;\n }\n\n .warning {\n background-color: #DD7800;\n }\n\n .ok {\n background-color: #B5CA00;\n }\n\n .unknown {\n background-color: #777777;\n }\n</style><div class=\"alert alert-info\" ng-if=!vm.name>Please configure the widget</div><div class=\"sonar-content col-md-12\" ng-if=vm.name><div ng-switch on=vm.qualityGateStatus><div ng-switch-when=OK><div class=\"ok col-md-12 statusQualitygate\"><span class=\"glyphicon glyphicon-ok glyphiconStyle\"></span><h1>Passed</h1><h4>Quality Gate</h4></div></div><div ng-switch-when=ERROR><div class=\"error col-md-12 statusQualitygate\"><span class=\"glyphicon glyphicon-remove glyphiconStyle\"></span><h1>Error</h1><h4>Quality Gate</h4></div></div><div ng-switch-when=WARNING><div class=\"warning col-md-12 statusQualitygate\"><span class=\"glyphicon glyphicon-info-sign glyphiconStyle\"></span><h1>Warning</h1><h4>Quality Gate</h4></div></div><div ng-switch-default><div class=\"unknown col-md-12 statusQualitygate\"><span class=\"glyphicon glyphicon-question-sign glyphiconStyle\"></span><h1>unknown</h1><h4>Quality Gate</h4></div></div></div><div class=\"col-md-12 codeCoverage\"><span class=\"glyphicon glyphicon-tasks glyphiconStyle\"></span><h1>{{vm.coverage||\"unknown\"}}</h1><h4>Code Coverage</h4></div><div class=\"col-md-12 blockerIssues\"><span class=\"glyphicon glyphicon-exclamation-sign glyphiconStyle\"></span><h1>{{vm.blocker||\"unknown\"}}</h1><h4>Blocker Issues</h4></div></div>");}]);

Expand All @@ -194,20 +194,6 @@ qualityCtrl.$inject = ["data"];



sonarADFWidget.
controller('progress', progress);

function progress(data, roundProgressConfig){
var vm = this;
roundProgressConfig.max = data.maxDays;
roundProgressConfig.current = data.daysLeft;
vm.result = data;
vm.progressProperties=roundProgressConfig;
}
progress.$inject = ["data", "roundProgressConfig"];



sonarADFWidget.
controller('sonarIssueCtrl', sonarIssueCtrl);

Expand Down Expand Up @@ -312,6 +298,20 @@ sonarIssueCtrl.$inject = ["data", "config"];



sonarADFWidget.
controller('progress', progress);

function progress(data, roundProgressConfig){
var vm = this;
roundProgressConfig.max = data.maxDays;
roundProgressConfig.current = data.daysLeft;
vm.result = data;
vm.progressProperties=roundProgressConfig;
}
progress.$inject = ["data", "roundProgressConfig"];



sonarADFWidget.controller('compare', compare);

function compare(data,METRIC_NAMES) {
Expand Down
Loading

0 comments on commit 7da6def

Please sign in to comment.