monitoring-jekyll-theme 0.5.9 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b8862eda219c200dff6618edb790d3d1f256d1ea3405be1322068705f7b6656
4
- data.tar.gz: e2c99367f0d16e179831afad932fb7761cf2098529b1868d17512c7b90cc1de0
3
+ metadata.gz: f12d76a05f5b2bb3f801c794c3bf472902a30eca31a6e7b9ba6e631e874a1ce1
4
+ data.tar.gz: 5b85f519ffe170ef186f30be5ee5b7cd5eae0ea275d471159bec4924f5b489b1
5
5
  SHA512:
6
- metadata.gz: 73cd1e52db2f3257ccf97c504c4fe121b1cd5e323ea2694124de9d1d10e8581327d70cdfc8d19315a093a8ac4b340de1c28439e68ecb90a55fce17887b1607ed
7
- data.tar.gz: 679c9e980870658d33988b612e259d6d2cbb9b005f614febffa0a9c2c72ca63b0526591ef815129e6a5aeb8aab03e70117a513b6c506762527e453c0a14776ea
6
+ metadata.gz: 0f32c603aef5417f10116a63f7af5fc6772c7587f19c6e6233f615df417c8b94cfba7ff240e5c1b84b087bfeaa9f02ba3a7ad14dff18ec1a6121d0b699f9f5ea
7
+ data.tar.gz: 106f545bdb3b4debe5343d70d0562fa8fdeb0782fd1e7ca5e717b26f7b12d978d5550c25c77347a1067e8cdff531d1c00a2a0ff4d94f0b523d595c697c033c3a
@@ -1,29 +1,3 @@
1
- {% assign indexes = "" | split: ',' %}
2
- {% assign indexesname = "Accessibilité,Bonnes pratiques,Performance,SEO,PWA,Speed Index" | split: ',' %}
3
- {% comment %}{% endcomment %}
4
- {% assign indexes = indexes | push: lighthouse.categories.accessibility.score | push: lighthouse.categories.best-practices.score | push: lighthouse.categories.performance.score | push: lighthouse.categories.seo.score | push: lighthouse.categories.pwa.score | push: lighthouse.audits.speed-index.score %}
5
-
6
- {% comment %}Calcul du score moyen à partir des données httparchive{% endcomment %}
7
- {% assign domaverage = 600 | times: 3 %}{% assign httpaverage = 74 | times: 2 %}
8
- {% assign ecoaverage = domaverage | plus: httpaverage | plus: 2000000 | times: 5 | divided_by: 6 %}
9
-
10
- {% comment %}Calcul du score le meilleur à partir du site bertrandkeller.info {% endcomment %}
11
- {% assign dombest = 150 | times: 3 %}{% assign httpbest = 15 | times: 2 %}
12
- {% assign ecobest = dombest | plus: httpbest | plus: 130000 | times: 5 | divided_by: 6 %}
13
-
14
- {% comment %}Calcul du score pour le site le pire{% endcomment %}
15
- {% assign domworth = 3000 | times: 3 %}{% assign httpworth = 120 | times: 2 %}
16
- {% assign ecoworth = domworth | plus: httpworth | plus: 5000000 | times: 5 | divided_by: 6 %}
17
-
18
- {% comment %}Calcul du score le meilleur{% endcomment %}
19
- {% assign ecobestscore = ecobest | times: 100 | divided_by: ecoworth %}
20
-
21
- {% comment %}Calcul de la valeur du site audité{% endcomment %}
22
- {% assign dom = lighthouse.audits["dom-size"].details.items[0].value | replace: ",","" | times: 3 %}{% assign http = lighthouse.audits.diagnostics.details.items[0].numRequests | times: 2 %}
23
- {% assign eco = dom | plus: http | plus: lighthouse.audits.diagnostics.details.items[0].totalByteWeight | times: 5 | divided_by: 6 %}
24
-
25
- {% assign ecodiviser = ecoworth | minus: ecobest %}
26
-
27
1
  {% if lighthouse %}
28
2
  <div class="progress progress-bar flex">
29
3
  <div><h4>Energie</h4></div>
@@ -31,14 +5,14 @@
31
5
  <div class="progress-bar-element">
32
6
  <div>
33
7
  <!-- <div class="progress-bar-tooltip" style="transform: translate(50%,-50%);background: rgba(34,150,30,1);">Max</div> -->
34
- <div class="progress-bar-tooltip" style="left: {{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;">Moyenne grands sites</div>
35
- <div class="progress-bar-tooltip" style="left: {{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;;z-index:2">{{ site.title }}</div>
8
+ <div class="progress-bar-tooltip" style="left: {{ ecoaverageposition }}%;">Moyenne grands sites</div>
9
+ <div class="progress-bar-tooltip" style="left: {{ ecoposition }}%;z-index:2">{{ website }}</div>
36
10
  <!-- <div class="progress-bar-tooltip" style="background: rgba(176,2,2,1);">Min</div> -->
37
11
  </div>
38
12
  <div>
39
13
  <!-- <div class="progress-bar-score" style="transform: translate(50%,35%);color: rgba(34,150,30,1);">Good</div> -->
40
- <div class="progress-bar-score" style="left: {{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;">{{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser | minus: 100 | times: -1 }}</div>
41
- <div class="progress-bar-score" style="left: {{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;z-index:2">{{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser | minus: 100 | times: -1 }}</div>
14
+ <div class="progress-bar-score" style="left: {{ ecoaverageposition }}%;">{{ ecoaverage }}</div>
15
+ <div class="progress-bar-score" style="left: {{ ecoposition }}%;z-index:2">{{ eco }}</div>
42
16
  <!-- <div class="progress-bar-score" style="color: rgba(176,2,2,1);">Bad</div> -->
43
17
  </div>
44
18
  </div>
@@ -13,12 +13,7 @@
13
13
 
14
14
  {% for website in site.pagestested limit: 1 %}
15
15
 
16
- {% assign gpagespeed = site.data.[website].gpagespeed[datelastcrawl] %}
17
- {% assign yellowlabtools = site.data.[website].yellowlabtools[datelastcrawl] %}
18
- {% assign lighthouse = site.data.[website].lighthouse[datelastcrawl] %}
19
- {% assign moz = site.data.[website].moz[datelastcrawl]%}
20
- {% assign stylestats = site.data.[website].stylestats[datelastcrawl] %}
21
- {% assign observatory = site.data.[website].observatory[datelastcrawl] %}
16
+ {% include value/loadingdata.html %}
22
17
 
23
18
  <h3 style="display: none;">Scores</h3>
24
19
 
@@ -0,0 +1,38 @@
1
+ {% assign gpagespeed = site.data.[website].gpagespeed[datelastcrawl] %}
2
+ {% assign lighthouse = site.data.[website].lighthouse[datelastcrawl] %}
3
+ {% assign moz = site.data.[website].moz[datelastcrawl]%}
4
+ {% assign stylestats = site.data.[website].stylestats[datelastcrawl] %}
5
+ {% assign observatory = site.data.[website].observatory[datelastcrawl] %}
6
+ {% assign wallace = site.data.[website].wallace[datelastcrawl] %}
7
+ {% assign htmlvalidator = site.data.[website].htmlvalidator[datelastcrawl] %}
8
+
9
+ {% comment %}Calcul du score moyen à partir des données httparchive{% endcomment %}
10
+ {% assign domaverage = 600 | times: 3 %}{% assign httpaverage = 74 | times: 2 %}
11
+ {% assign ecoaverage = domaverage | plus: httpaverage | plus: 2000000 | times: 5 | divided_by: 6 %}
12
+
13
+ {% comment %}Calcul du score le meilleur à partir du site bertrandkeller.info {% endcomment %}
14
+ {% assign dombest = 150 | times: 3 %}{% assign httpbest = 15 | times: 2 %}
15
+ {% assign ecobest = dombest | plus: httpbest | plus: 130000 | times: 5 | divided_by: 6 %}
16
+
17
+ {% comment %}Calcul du score pour le site le pire{% endcomment %}
18
+ {% assign domworth = 3000 | times: 3 %}{% assign httpworth = 120 | times: 2 %}
19
+ {% assign ecoworth = domworth | plus: httpworth | plus: 5000000 | times: 5 | divided_by: 6 %}
20
+
21
+ {% comment %}Calcul du score le meilleur{% endcomment %}
22
+ {% assign ecobestscore = ecobest | times: 100 | divided_by: ecoworth %}
23
+
24
+ {% comment %}Calcul de la valeur du site audité{% endcomment %}
25
+ {% assign dom = lighthouse.audits["dom-size"].details.items[0].value | replace: ",","" | times: 3 %}{% assign http = lighthouse.audits.diagnostics.details.items[0].numRequests | times: 2 %}
26
+ {% assign eco = dom | plus: http | plus: lighthouse.audits.diagnostics.details.items[0].totalByteWeight | times: 5 | divided_by: 6 %}
27
+
28
+ {% assign ecodiviser = ecoworth | minus: ecobest %}
29
+
30
+ {% assign indexes = "" | split: ',' %}
31
+ {% assign indexesname = "Accessibilité,Bonnes pratiques,Performance,SEO,PWA,Speed Index" | split: ',' %}
32
+ {% assign indexes = indexes | push: lighthouse.categories.accessibility.score | push: lighthouse.categories.best-practices.score | push: lighthouse.categories.performance.score | push: lighthouse.categories.seo.score | push: lighthouse.categories.pwa.score | push: lighthouse.audits.speed-index.score %}
33
+
34
+ {% assign ecoaverageposition = ecoaverage | times: 100 | divided_by: ecodiviser %}
35
+ {% assign ecoaverage = ecoaverage | times: 100 | divided_by: ecodiviser | minus: 100 | times: -1%}
36
+ {% assign ecoposition = eco | times: 100 | divided_by: ecodiviser %}
37
+ {% assign eco = eco | times: 100 | divided_by: ecodiviser | minus: 100 | times: -1%}
38
+ {% if eco < 0 %}{% assign ecoposition = 105 %}{% endif %}
@@ -954,6 +954,7 @@ a {
954
954
  text-align: center;
955
955
  font-weight: bold;
956
956
  font-family: Optiker;
957
+ line-height: 1;
957
958
  }
958
959
 
959
960
  .progress.progress-number li b {
@@ -1016,7 +1017,7 @@ a {
1016
1017
  align-items: center;
1017
1018
  justify-content: center;
1018
1019
  width: 100%;
1019
- height: 100%;
1020
+ height: 6.3rem;
1020
1021
  font-family: IBMPlexMono, optiker, sans-serif;
1021
1022
  font-size: 2.3em;
1022
1023
  text-align: center;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monitoring-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - bertrandkeller
@@ -78,6 +78,7 @@ files:
78
78
  - _includes/styles.html
79
79
  - _includes/svg/facebook.svg
80
80
  - _includes/value/lastfiledate.html
81
+ - _includes/value/loadingdata.html
81
82
  - _layouts/default.html
82
83
  - _plugins/humanize.rb
83
84
  - assets/css/styles.css