Browse Source

1.13.4 (#305)

* Update GitHub repository URL
* Update jQuery version
Gaël Métais 5 years ago
parent
commit
8f5f9d6238
7 changed files with 13 additions and 11 deletions
  1. 1 1
      .gitignore
  2. 4 4
      README.md
  3. 1 1
      front/src/js/app.js
  4. 1 1
      front/src/views/about.html
  5. 1 1
      front/src/views/queue.html
  6. 3 1
      lib/metadata/policies.js
  7. 2 2
      package.json

+ 1 - 1
.gitignore

@@ -4,5 +4,5 @@ node_modules
 results/*
 results/*
 coverage
 coverage
 front/build
 front/build
-
+package-lock.json
 har.json
 har.json

+ 4 - 4
README.md

@@ -19,7 +19,7 @@ Analyzes a webpage and detects **performance** or **front-end code quality** iss
     </tr>
     </tr>
     <tr>
     <tr>
         <td width="70%">
         <td width="70%">
-            The <b>CLI</b> (Command Line Interface) - <a href="https://github.com/gmetais/YellowLabTools/wiki/Command-Line-Interface" target="_blank">Doc here</a>
+            The <b>CLI</b> (Command Line Interface) - <a href="https://github.com/YellowLabTools/YellowLabTools/wiki/Command-Line-Interface" target="_blank">Doc here</a>
         </td>
         </td>
         <td width="30%">
         <td width="30%">
             <img src="./doc/img/YLT-cli-animated.gif"></img>
             <img src="./doc/img/YLT-cli-animated.gif"></img>
@@ -36,7 +36,7 @@ Analyzes a webpage and detects **performance** or **front-end code quality** iss
     </tr>
     </tr>
     <tr>
     <tr>
         <td width="70%">
         <td width="70%">
-            The <b>NodeJS</b> package - <a href="https://github.com/gmetais/YellowLabTools/wiki/NodeJS-module" target="_blank">Doc here</a>
+            The <b>NodeJS</b> package - <a href="https://github.com/YellowLabTools/YellowLabTools/wiki/NodeJS-module" target="_blank">Doc here</a>
         </td>
         </td>
         <td width="30%">
         <td width="30%">
             <img src="./doc/img/npm-logo.png"></img>
             <img src="./doc/img/npm-logo.png"></img>
@@ -44,7 +44,7 @@ Analyzes a webpage and detects **performance** or **front-end code quality** iss
     </tr>
     </tr>
     <tr>
     <tr>
         <td width="70%">
         <td width="70%">
-            The <b>public API</b> - <a href="https://github.com/gmetais/YellowLabTools/wiki/Public-API" target="_blank">Doc here</a>
+            The <b>public API</b> - <a href="https://github.com/YellowLabTools/YellowLabTools/wiki/Public-API" target="_blank">Doc here</a>
             <br>
             <br>
             Allows you to launch runs from any language
             Allows you to launch runs from any language
         </td>
         </td>
@@ -72,7 +72,7 @@ You can use [ngrok](https://ngrok.com/), a tool that creates a secure tunnel bet
 
 
 ## Install your own private instance
 ## Install your own private instance
 
 
-If your project is not accessible from outside, or if you want to fork and improve the tool, you can build your own instance. The documentation is [here](https://github.com/gmetais/YellowLabTools/wiki/Install-your-private-server).
+If your project is not accessible from outside, or if you want to fork and improve the tool, you can build your own instance. The documentation is [here](https://github.com/YellowLabTools/YellowLabTools/wiki/Install-your-private-server).
 
 
 
 
 ## Author
 ## Author

+ 1 - 1
front/src/js/app.js

@@ -42,7 +42,7 @@ yltApp.run(['$rootScope', '$location', function($rootScope, $location) {
 
 
     // GitHub star button (asynchronously loaded iframe)
     // GitHub star button (asynchronously loaded iframe)
     window.addEventListener('load', function() {
     window.addEventListener('load', function() {
-        window.document.getElementById('ghbtn').src = 'https://ghbtns.com/github-btn.html?user=gmetais&repo=YellowLabTools&type=star&count=true&size=large';
+        window.document.getElementById('ghbtn').src = 'https://ghbtns.com/github-btn.html?user=YellowLabTools&repo=YellowLabTools&type=star&count=true&size=large';
     });
     });
 }]);
 }]);
 
 

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

@@ -3,7 +3,7 @@
 
 
     <p>This is done by loading the webpage via PhantomJS and collecting various metrics and statistics with the help of <a href="https://github.com/macbre/phantomas" target="_blank">Phantomas</a>. These metrics are categorized and transformed into scores. It also gives in-depth details so that developers can correct the detected issues.</p>
     <p>This is done by loading the webpage via PhantomJS and collecting various metrics and statistics with the help of <a href="https://github.com/macbre/phantomas" target="_blank">Phantomas</a>. These metrics are categorized and transformed into scores. It also gives in-depth details so that developers can correct the detected issues.</p>
 
 
-    <p>By the way, <b>it's free</b> because we are geeks, not businessmen. All we want is <a href="https://github.com/gmetais/YellowLabTools" target="_blank" class="star">a <span>&#9733;</span> on GitHub</a>. It will boost our motivation to add more awesome features!!!</p>
+    <p>By the way, <b>it's free</b> because we are geeks, not businessmen. All we want is <a href="https://github.com/YellowLabTools/YellowLabTools" target="_blank" class="star">a <span>&#9733;</span> on GitHub</a>. It will boost our motivation to add more awesome features!!!</p>
 
 
     <%if (sponsoring.about) { %>
     <%if (sponsoring.about) { %>
         <div class="sponsor"><%- sponsoring.about %></div>
         <div class="sponsor"><%- sponsoring.about %></div>

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

@@ -5,7 +5,7 @@
         <div class="status">Test failed</div>
         <div class="status">Test failed</div>
         <p class="statusSubMessage">{{status.error}}</p>
         <p class="statusSubMessage">{{status.error}}</p>
         
         
-        <a class="linkButton" href="https://github.com/gmetais/YellowLabTools/issues" target="_blank">Report the issue on GitHub</a>
+        <a class="linkButton" href="https://github.com/YellowLabTools/YellowLabTools/issues" target="_blank">Report the issue on GitHub</a>
         <a class="linkButton" href="<%= baseUrl %>">New test</a>
         <a class="linkButton" href="<%= baseUrl %>">New test</a>
     </div>
     </div>
     <div ng-if="status.statusCode == 'awaiting'">
     <div ng-if="status.statusCode == 'awaiting'">

+ 3 - 1
lib/metadata/policies.js

@@ -276,7 +276,7 @@ var policies = {
     },
     },
     "jQueryVersion": {
     "jQueryVersion": {
         "label": "jQuery version",
         "label": "jQuery version",
-        "message": "<p>The current latest version of jQuery is 3.3</p><p>Each new version of jQuery optimizes performances. Do not keep an old version of jQuery. Updating can sometimes break a few things, but it is generally quite easy to fix them up. So don't hesitate.</p>",
+        "message": "<p>The current latest version of jQuery is 3.4</p><p>Each new version of jQuery optimizes performances. Do not keep an old version of jQuery. Updating can sometimes break a few things, but it is generally quite easy to fix them up. So don't hesitate.</p>",
         "hasOffenders": false,
         "hasOffenders": false,
         "scoreFn": function(data) {
         "scoreFn": function(data) {
             var differentVersions = data.toolsResults.phantomas.metrics.jQueryVersionsLoaded;
             var differentVersions = data.toolsResults.phantomas.metrics.jQueryVersionsLoaded;
@@ -291,6 +291,8 @@ var policies = {
                 if (value.indexOf('3.3.') === 0 ||
                 if (value.indexOf('3.3.') === 0 ||
                     value.indexOf('3.4.') === 0 ||
                     value.indexOf('3.4.') === 0 ||
                     value.indexOf('3.5.') === 0 ||
                     value.indexOf('3.5.') === 0 ||
+                    value.indexOf('3.6.') === 0 ||
+                    value.indexOf('3.7.') === 0 ||
                     value.indexOf('4.0.') === 0) {
                     value.indexOf('4.0.') === 0) {
                     score = 100;
                     score = 100;
                 } else if (value.indexOf('3.2.') === 0) {
                 } else if (value.indexOf('3.2.') === 0) {

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "yellowlabtools",
   "name": "yellowlabtools",
-  "version": "1.13.3",
+  "version": "1.13.4",
   "description": "Online tool to audit a webpage for performance and front-end quality issues",
   "description": "Online tool to audit a webpage for performance and front-end quality issues",
   "license": "GPL-2.0",
   "license": "GPL-2.0",
   "author": {
   "author": {
@@ -10,7 +10,7 @@
   },
   },
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",
-    "url": "git://github.com/gmetais/YellowLabTools.git"
+    "url": "git://github.com/YellowLabTools/YellowLabTools.git"
   },
   },
   "bin": {
   "bin": {
     "yellowlabtools": "./bin/cli.js"
     "yellowlabtools": "./bin/cli.js"