Gaël Métais пре 10 година
родитељ
комит
486ede9396
3 измењених фајлова са 4 додато и 6 уклоњено
  1. 3 0
      README.md
  2. 0 5
      front/src/js/controllers/dashboardCtrl.js
  3. 1 1
      front/src/views/dashboard.html

+ 3 - 0
README.md

@@ -32,6 +32,9 @@ Can be used to build automation tools in NodeJS. The documentation is [here](htt
 #### The Public API:
 Hosted on our http://yellowlab.tools server, it is a RESTful API that allows you to launch distant tests. The documentation is [here](https://github.com/gmetais/YellowLabTools/wiki/Public-API).
 
+#### The Grunt task:
+If you have a Continuous Integration platform, may I suggest you to use [grunt-yellowlabtools](https://github.com/gmetais/grunt-yellowlabtools)? You set it up once, then the task fails if the front-end quality conditions you defined are not met.
+
 
 ## Install your own private instance
 

+ 0 - 5
front/src/js/controllers/dashboardCtrl.js

@@ -59,10 +59,5 @@ dashboardCtrl.controller('DashboardCtrl', ['$scope', '$rootScope', '$routeParams
         window.open(url, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);
     }
 
-    // Returns the URL of the JSON result
-    $scope.getAPIUrl = function() {
-        return '/api/results/' + $scope.runId;
-    };
-
     loadResults();
 }]);

+ 1 - 1
front/src/views/dashboard.html

@@ -47,7 +47,7 @@
     </div>
 
     <div ng-if="!error && !fromSocialShare" class="apiTip">
-        <b>Did you know? Yellow Lab Tools now has an API</b>! <a href="{{getAPIUrl()}}" target="_blank">Here</a> is the JSON output for this run. Checkout <a href="https://github.com/gmetais/YellowLabTools/wiki/Public-API" target="_blank">the API doc</a>.
+        <b>Did you know? Yellow Lab Tools has a brand new <a href="https://github.com/gmetais/grunt-yellowlabtools" target="_blank">Grunt plugin</a>!
     </div>
 
     <div class="tweet" ng-if="!error && !fromSocialShare">