monitoring-jekyll-theme 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/_includes/index/energy.html +38 -45
- data/_layouts/default.html +42 -19
- data/assets/css/styles.css +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b8862eda219c200dff6618edb790d3d1f256d1ea3405be1322068705f7b6656
|
|
4
|
+
data.tar.gz: e2c99367f0d16e179831afad932fb7761cf2098529b1868d17512c7b90cc1de0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73cd1e52db2f3257ccf97c504c4fe121b1cd5e323ea2694124de9d1d10e8581327d70cdfc8d19315a093a8ac4b340de1c28439e68ecb90a55fce17887b1607ed
|
|
7
|
+
data.tar.gz: 679c9e980870658d33988b612e259d6d2cbb9b005f614febffa0a9c2c72ca63b0526591ef815129e6a5aeb8aab03e70117a513b6c506762527e453c0a14776ea
|
data/README.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
- <https://www.npmjs.com/package/google>
|
|
17
17
|
- <https://raphaelfabeni.com/ui-interactions/>
|
|
18
18
|
- <https://www.ekopedia.fr/wiki/H%C3%A9bergement_Internet>
|
|
19
|
+
- https://www.aditus.io/button-contrast-checker/
|
|
19
20
|
|
|
20
21
|
## Annuaires Immobilier
|
|
21
22
|
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
|
|
31
32
|
_Regular expression in all files_
|
|
32
33
|
|
|
33
|
-
find \_data/ -name '_.json' -exec sed -i 's/{
|
|
34
|
+
find \_data/ -name '_.json' -exec sed -i 's/{}//g' {} \\;
|
|
34
35
|
replace \\/ => / seocli
|
|
35
36
|
|
|
36
37
|
## Services
|
data/_includes/index/energy.html
CHANGED
|
@@ -1,54 +1,47 @@
|
|
|
1
|
-
{% assign
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
{% assign stylestats = site.data.[website].stylestats[datelastcrawl] %}
|
|
6
|
-
{% assign observatory = site.data.[website].observatory[datelastcrawl] %}
|
|
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 %}
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{% 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 %}
|
|
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 %}
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 %}
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 %}
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{% assign ecoworth = domworth | plus: httpworth | plus: 5000000 | times: 5 | divided_by: 6 %}
|
|
18
|
+
{% comment %}Calcul du score le meilleur{% endcomment %}
|
|
19
|
+
{% assign ecobestscore = ecobest | times: 100 | divided_by: ecoworth %}
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
|
|
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 %}
|
|
27
24
|
|
|
28
|
-
|
|
29
|
-
{% assign dom = lighthouse.audits["dom-size"].details.items[0].value | replace: ",","" | times: 3 %}{% assign http = lighthouse.audits.diagnostics.details.items[0].numRequests | times: 2 %}
|
|
30
|
-
{% assign eco = dom | plus: http | plus: lighthouse.audits.diagnostics.details.items[0].totalByteWeight | times: 5 | divided_by: 6 %}
|
|
25
|
+
{% assign ecodiviser = ecoworth | minus: ecobest %}
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<div
|
|
36
|
-
|
|
37
|
-
<div>
|
|
38
|
-
<div class="progress-bar-element">
|
|
39
|
-
<div>
|
|
40
|
-
<!-- <div class="progress-bar-tooltip" style="transform: translate(50%,-50%);background: rgba(34,150,30,1);">Max</div> -->
|
|
41
|
-
<div class="progress-bar-tooltip" style="left: {{ ecoaverage | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;">Moyenne grands sites</div>
|
|
42
|
-
<div class="progress-bar-tooltip" style="left: {{ eco | minus: ecobest | times: 100 | divided_by: ecodiviser }}%;;z-index:2">{{ site.title }}</div>
|
|
43
|
-
<!-- <div class="progress-bar-tooltip" style="background: rgba(176,2,2,1);">Min</div> -->
|
|
44
|
-
</div>
|
|
27
|
+
{% if lighthouse %}
|
|
28
|
+
<div class="progress progress-bar flex">
|
|
29
|
+
<div><h4>Energie</h4></div>
|
|
30
|
+
<div>
|
|
31
|
+
<div class="progress-bar-element">
|
|
45
32
|
<div>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</div>
|
|
33
|
+
<!-- <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>
|
|
36
|
+
<!-- <div class="progress-bar-tooltip" style="background: rgba(176,2,2,1);">Min</div> -->
|
|
37
|
+
</div>
|
|
38
|
+
<div>
|
|
39
|
+
<!-- <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>
|
|
42
|
+
<!-- <div class="progress-bar-score" style="color: rgba(176,2,2,1);">Bad</div> -->
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
53
45
|
</div>
|
|
54
|
-
|
|
46
|
+
</div>
|
|
47
|
+
{% endif %}
|
data/_layouts/default.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<!DOCTYPE html
|
|
2
|
-
<html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr">
|
|
3
3
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8">
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
{% endif %}{{ site.name }}</title>
|
|
20
20
|
<meta name="subject" content="{{ site.subject }}">
|
|
21
21
|
<meta name="generator" content="jekyll v{{ jekyll.version }}">
|
|
22
|
-
<meta itemprop="name"
|
|
23
|
-
content="{% if page.title %}{{ page.title }}{% endif %} | {% if page.description %}{{ page.description }} - {% endif %}{{ site.name }}">
|
|
22
|
+
<meta itemprop="name" content="{% if page.title %}{{ page.title }}{% endif %} | {% if page.description %}{{ page.description }} - {% endif %}{{ site.name }}">
|
|
24
23
|
<meta itemprop="description" content="{{ site.subject }}">
|
|
25
24
|
<meta name="robots" content="{{ site.robots }}">
|
|
26
25
|
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
<script>
|
|
65
64
|
if ("fonts" in document) {
|
|
66
65
|
var Optiker = new FontFace("Optiker-K","url(/assets/fonts/Optiker-K.woff2) format('woff2')", {weight: "300"});
|
|
67
|
-
var IBMPlexMonoBold = new FontFace("IBMPlexMono","url(/assets/fonts/IBMPlexMono-Medium.woff2) format('woff2')", {weight: "300",unicode-range: U+0030-0039;});
|
|
66
|
+
var IBMPlexMonoBold = new FontFace("IBMPlexMono","url(/assets/fonts/IBMPlexMono-Medium.woff2) format('woff2')", {weight: "300",unicode-range: "U+0030-0039";});
|
|
68
67
|
var PublicSansExtraLight = new FontFace("PublicSans","url(/assets/fonts/PublicSans-ExtraLight.woff2) format('woff2')", {weight: "100"});
|
|
69
68
|
var PublicSansRegular = new FontFace("PublicSans","url(/assets/fonts/PublicSans-Regular.woff2) format('woff2')", {weight: "300"});
|
|
70
69
|
Promise.all([PublicSansRegular.load(), PublicSansExtraLight.load(), IBMPlexMonoBold.load(), Optiker.load()]).then(function (fonts) {
|
|
@@ -85,24 +84,48 @@
|
|
|
85
84
|
<div class="wrapper">
|
|
86
85
|
{{ content }}
|
|
87
86
|
</div>
|
|
88
|
-
</body>
|
|
89
87
|
<script src="/assets/js/van11y-accessible-tab-panel-aria.es6.js" defer></script>
|
|
90
88
|
<script src="/assets/js/van11y-accessible-hide-show-aria.es6.js" defer></script>
|
|
89
|
+
<script>
|
|
90
|
+
// Vanilla JavaScript Scroll to Anchor
|
|
91
|
+
// @ https://perishablepress.com/vanilla-javascript-scroll-anchor/
|
|
92
|
+
|
|
93
|
+
(function () {
|
|
94
|
+
scrollTo();
|
|
95
|
+
})();
|
|
96
|
+
|
|
97
|
+
function scrollTo() {
|
|
98
|
+
const links = document.querySelectorAll('.anchor');
|
|
99
|
+
links.forEach(each => (each.onclick = scrollAnchors));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function scrollAnchors(e, respond = null) {
|
|
103
|
+
const distanceToTop = el => Math.floor(el.getBoundingClientRect().top);
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
var targetID = (respond) ? respond.getAttribute('href') : this.getAttribute('href');
|
|
106
|
+
const targetAnchor = document.querySelector(targetID);
|
|
107
|
+
if (!targetAnchor) return;
|
|
108
|
+
const originalTop = distanceToTop(targetAnchor);
|
|
109
|
+
window.scrollBy({
|
|
110
|
+
top: originalTop - 30,
|
|
111
|
+
left: 0,
|
|
112
|
+
behavior: 'smooth'
|
|
113
|
+
});
|
|
114
|
+
const checkIfDone = setInterval(function () {
|
|
115
|
+
const atBottom = window.innerHeight + window.pageYOffset >= document.body.offsetHeight - 2;
|
|
116
|
+
if (distanceToTop(targetAnchor) === 0 || atBottom) {
|
|
117
|
+
targetAnchor.tabIndex = '-1';
|
|
118
|
+
targetAnchor.focus();
|
|
119
|
+
window.history.pushState('', '', targetID);
|
|
120
|
+
clearInterval(checkIfDone);
|
|
121
|
+
}
|
|
122
|
+
}, 100);
|
|
123
|
+
}
|
|
124
|
+
</script>
|
|
91
125
|
|
|
92
126
|
{% if site.zone.livehouse == true %}
|
|
93
127
|
<script src="/assets/js/lighthouse.js"></script>
|
|
94
|
-
<script>
|
|
95
|
-
run();
|
|
96
|
-
|
|
97
|
-
</script>
|
|
128
|
+
<script>run();</script>
|
|
98
129
|
{% endif %}
|
|
99
|
-
|
|
100
|
-
// var link = document.querySelector(".js-expandmore")
|
|
101
|
-
// link.addEventListener("click", function(){
|
|
102
|
-
// history.pushState("", document.title, window.location.pathname);
|
|
103
|
-
// window.location.href.substr(0, window.location.href.indexOf('#'))
|
|
104
|
-
// });
|
|
105
|
-
|
|
106
|
-
</script>
|
|
107
|
-
|
|
130
|
+
</body>
|
|
108
131
|
</html>
|
data/assets/css/styles.css
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: monitoring-jekyll-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bertrandkeller
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-09-
|
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|