monitoring-jekyll-theme 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +127 -21
- data/_includes/accessibility.html +8 -2
- data/_includes/actions/energy.html +24 -13
- data/_includes/actions/quality.html +7 -1
- data/_includes/competitors.html +23 -16
- data/_includes/index/badge.html +9 -9
- data/_includes/index/energy.html +2 -2
- data/_includes/index/loading.html +1 -1
- data/_includes/index/position.html +8 -1
- data/_includes/index/score.html +9 -3
- data/_includes/index/security.html +12 -7
- data/_includes/index/styles.html +4 -4
- data/_includes/keywords.html +23 -7
- data/_includes/seo.html +18 -8
- data/_includes/statistiques.html +1 -1
- data/_includes/styles.html +25 -15
- data/_includes/value/lastfiledate.html +15 -2
- data/_includes/value/loadingdata.html +15 -11
- data/_layouts/default.html +12 -41
- data/_layouts/monitoring.html +4 -2
- data/_layouts/rank.html +2 -2
- data/assets/css/styles.css +183 -106
- data/assets/favicons/android-icon-144x144.png +0 -0
- data/assets/favicons/android-icon-192x192.png +0 -0
- data/assets/favicons/android-icon-36x36.png +0 -0
- data/assets/favicons/android-icon-48x48.png +0 -0
- data/assets/favicons/android-icon-72x72.png +0 -0
- data/assets/favicons/android-icon-96x96.png +0 -0
- data/assets/favicons/apple-icon-114x114.png +0 -0
- data/assets/favicons/apple-icon-120x120.png +0 -0
- data/assets/favicons/apple-icon-144x144.png +0 -0
- data/assets/favicons/apple-icon-152x152.png +0 -0
- data/assets/favicons/apple-icon-180x180.png +0 -0
- data/assets/favicons/apple-icon-57x57.png +0 -0
- data/assets/favicons/apple-icon-60x60.png +0 -0
- data/assets/favicons/apple-icon-72x72.png +0 -0
- data/assets/favicons/apple-icon-76x76.png +0 -0
- data/assets/favicons/apple-icon-precomposed.png +0 -0
- data/assets/favicons/apple-icon.png +0 -0
- data/assets/favicons/browserconfig.xml +2 -0
- data/assets/favicons/favicon-16x16.png +0 -0
- data/assets/favicons/favicon-32x32.png +0 -0
- data/assets/favicons/favicon-96x96.png +0 -0
- data/assets/favicons/favicon-original.png +0 -0
- data/assets/favicons/favicon.ico +0 -0
- data/assets/favicons/manifest.json +41 -0
- data/assets/favicons/ms-icon-144x144.png +0 -0
- data/assets/favicons/ms-icon-150x150.png +0 -0
- data/assets/favicons/ms-icon-310x310.png +0 -0
- data/assets/favicons/ms-icon-70x70.png +0 -0
- data/assets/images/loowtus-card.svg +114 -0
- data/assets/images/lotus.svg +1 -18
- data/assets/images/lowtus.png +0 -0
- data/assets/images/lowtus.svg +1 -0
- data/scripts/package.sh +13 -0
- data/scripts/perftest.sh +306 -0
- metadata +34 -4
- data/_plugins/humanize.rb +0 -258
- data/assets/favicons/favicon.png +0 -0
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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bertrandkeller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -83,21 +83,51 @@ files:
|
|
83
83
|
- _layouts/default.html
|
84
84
|
- _layouts/monitoring.html
|
85
85
|
- _layouts/rank.html
|
86
|
-
- _plugins/humanize.rb
|
87
86
|
- assets/css/styles.css
|
87
|
+
- assets/favicons/android-icon-144x144.png
|
88
|
+
- assets/favicons/android-icon-192x192.png
|
89
|
+
- assets/favicons/android-icon-36x36.png
|
90
|
+
- assets/favicons/android-icon-48x48.png
|
91
|
+
- assets/favicons/android-icon-72x72.png
|
92
|
+
- assets/favicons/android-icon-96x96.png
|
93
|
+
- assets/favicons/apple-icon-114x114.png
|
94
|
+
- assets/favicons/apple-icon-120x120.png
|
95
|
+
- assets/favicons/apple-icon-144x144.png
|
96
|
+
- assets/favicons/apple-icon-152x152.png
|
97
|
+
- assets/favicons/apple-icon-180x180.png
|
98
|
+
- assets/favicons/apple-icon-57x57.png
|
99
|
+
- assets/favicons/apple-icon-60x60.png
|
100
|
+
- assets/favicons/apple-icon-72x72.png
|
101
|
+
- assets/favicons/apple-icon-76x76.png
|
102
|
+
- assets/favicons/apple-icon-precomposed.png
|
103
|
+
- assets/favicons/apple-icon.png
|
104
|
+
- assets/favicons/browserconfig.xml
|
105
|
+
- assets/favicons/favicon-16x16.png
|
106
|
+
- assets/favicons/favicon-32x32.png
|
107
|
+
- assets/favicons/favicon-96x96.png
|
108
|
+
- assets/favicons/favicon-original.png
|
88
109
|
- assets/favicons/favicon.ico
|
89
|
-
- assets/favicons/
|
110
|
+
- assets/favicons/manifest.json
|
111
|
+
- assets/favicons/ms-icon-144x144.png
|
112
|
+
- assets/favicons/ms-icon-150x150.png
|
113
|
+
- assets/favicons/ms-icon-310x310.png
|
114
|
+
- assets/favicons/ms-icon-70x70.png
|
90
115
|
- assets/fonts/IBMPlexMono-Medium.woff2
|
91
116
|
- assets/fonts/Optiker-K.woff2
|
92
117
|
- assets/fonts/PublicSans-Black.woff2
|
93
118
|
- assets/fonts/PublicSans-ExtraLight.woff2
|
94
119
|
- assets/fonts/PublicSans-Light.woff2
|
95
120
|
- assets/fonts/PublicSans-Regular.woff2
|
121
|
+
- assets/images/loowtus-card.svg
|
96
122
|
- assets/images/lotus.svg
|
123
|
+
- assets/images/lowtus.png
|
124
|
+
- assets/images/lowtus.svg
|
97
125
|
- assets/js/frappe-charts.min.iife.js
|
98
126
|
- assets/js/lighthouse.js
|
99
127
|
- assets/js/van11y-accessible-hide-show-aria.es6.js
|
100
128
|
- assets/js/van11y-accessible-tab-panel-aria.es6.js
|
129
|
+
- scripts/package.sh
|
130
|
+
- scripts/perftest.sh
|
101
131
|
homepage: https://github.com/bertrandkeller/monitoring-jekyll-theme
|
102
132
|
licenses:
|
103
133
|
- MIT
|
data/_plugins/humanize.rb
DELETED
@@ -1,258 +0,0 @@
|
|
1
|
-
# https://github.com/23maverick23/jekyll-humanize
|
2
|
-
module Jekyll
|
3
|
-
|
4
|
-
module Humanize
|
5
|
-
##
|
6
|
-
# This is a port of the Django app `humanize` which adds a "human touch"
|
7
|
-
# to data. Given that Jekyll produces static sites, some of the original
|
8
|
-
# methods do not make logical sense (e.g. naturaltime).
|
9
|
-
#
|
10
|
-
# Source code can be viewed here:
|
11
|
-
# https://github.com/django/django
|
12
|
-
#
|
13
|
-
# Copyright (c) Django Software Foundation and individual contributors.
|
14
|
-
# All rights reserved.
|
15
|
-
|
16
|
-
####################
|
17
|
-
# PUBLIC METHODS #
|
18
|
-
####################
|
19
|
-
|
20
|
-
def ordinal(value, flag=nil)
|
21
|
-
##
|
22
|
-
# Converts an integer to its ordinal as a string. 1 is '1st', 2 is '2nd',
|
23
|
-
# 3 is '3rd', etc. Works for any integer.
|
24
|
-
#
|
25
|
-
# Usage:
|
26
|
-
# {{ somenum }} >>> 3
|
27
|
-
# {{ somenum | ordinal }} >>> '3rd'
|
28
|
-
# {{ somenum | ordinal: "super" }} >>> '3<sup>rd</sup>'
|
29
|
-
|
30
|
-
begin
|
31
|
-
value = value.to_i
|
32
|
-
flag.to_s.downcase!
|
33
|
-
rescue Exception => e
|
34
|
-
puts "#{e.class} #{e}"
|
35
|
-
return value
|
36
|
-
end
|
37
|
-
|
38
|
-
suffix = ""
|
39
|
-
suffixes = ["th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"]
|
40
|
-
unless [11, 12, 13].include? value % 100 then
|
41
|
-
suffix = suffixes[value % 10]
|
42
|
-
else
|
43
|
-
suffix = suffixes[0]
|
44
|
-
end
|
45
|
-
|
46
|
-
unless flag and flag == "super"
|
47
|
-
return "#{value}%s" % suffix
|
48
|
-
else
|
49
|
-
return "#{value}<sup>%s</sup>" % suffix
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
|
54
|
-
def intcomma(value, delimiter=",")
|
55
|
-
##
|
56
|
-
# Converts an integer to a string containing commas every three digits.
|
57
|
-
# For example, 3000 becomes '3,000' and 45000 becomes '45,000'.
|
58
|
-
# Optionally supports a delimiter override for commas.
|
59
|
-
#
|
60
|
-
# Usage:
|
61
|
-
# {{ post.content | number_of_words }} >>> 12345
|
62
|
-
# {{ post.content | number_of_words | intcomma }} >>> '12,345'
|
63
|
-
# {{ post.content | number_of_words | intcomma: '.' }} >>> '12.345'
|
64
|
-
|
65
|
-
begin
|
66
|
-
orig = value.to_s
|
67
|
-
delimiter = delimiter.to_s
|
68
|
-
rescue Exception => e
|
69
|
-
puts "#{e.class} #{e}"
|
70
|
-
return value
|
71
|
-
end
|
72
|
-
|
73
|
-
copy = orig.strip
|
74
|
-
copy = orig.gsub(/^(-?\d+)(\d{3})/, "\\1#{delimiter}\\2")
|
75
|
-
orig == copy ? copy : intcomma(copy, delimiter)
|
76
|
-
end
|
77
|
-
|
78
|
-
INTWORD_HELPERS = [
|
79
|
-
[6, "million"],
|
80
|
-
[9, "billion"],
|
81
|
-
[12, "trillion"],
|
82
|
-
[15, "quadrillion"],
|
83
|
-
[18, "quintillion"],
|
84
|
-
[21, "sextillion"],
|
85
|
-
[24, "septillion"],
|
86
|
-
[27, "octillion"],
|
87
|
-
[30, "nonillion"],
|
88
|
-
[33, "decillion"],
|
89
|
-
[100, "googol"],
|
90
|
-
]
|
91
|
-
|
92
|
-
def intword(value)
|
93
|
-
##
|
94
|
-
# Converts a large integer to a friendly text representation. Works best
|
95
|
-
# for numbers over 1 million. For example, 1000000 becomes '1.0 million',
|
96
|
-
# 1200000 becomes '1.2 million' and 1200000000 becomes '1.2 billion'.
|
97
|
-
#
|
98
|
-
# Usage:
|
99
|
-
# {{ largenum }} >>> 1200000
|
100
|
-
# {{ largenum | intword }} >>> '1.2 million'
|
101
|
-
|
102
|
-
begin
|
103
|
-
value = value.to_i
|
104
|
-
rescue Exception => e
|
105
|
-
puts "#{e.class} #{e}"
|
106
|
-
return value
|
107
|
-
end
|
108
|
-
|
109
|
-
if value < 1000000
|
110
|
-
return value
|
111
|
-
end
|
112
|
-
|
113
|
-
for exponent, text in INTWORD_HELPERS
|
114
|
-
large_number = 10 ** exponent
|
115
|
-
|
116
|
-
if value < large_number * 1000
|
117
|
-
return "%#{value}.1f #{text}" % (value / large_number.to_f)
|
118
|
-
end
|
119
|
-
|
120
|
-
end
|
121
|
-
|
122
|
-
return value
|
123
|
-
end
|
124
|
-
|
125
|
-
def apnumber(value)
|
126
|
-
##
|
127
|
-
# For numbers 0-9, returns the number spelled out. Otherwise, returns the
|
128
|
-
# number. This follows Associated Press style.
|
129
|
-
#
|
130
|
-
# Usage:
|
131
|
-
# {{ num }} >>> 6
|
132
|
-
# {{ num | apnumber }} >>> six
|
133
|
-
|
134
|
-
begin
|
135
|
-
value = value.to_i
|
136
|
-
rescue Exception => e
|
137
|
-
puts "#{e.class} #{e}"
|
138
|
-
return value
|
139
|
-
end
|
140
|
-
|
141
|
-
unless value >= 0 and value < 10 then
|
142
|
-
return value
|
143
|
-
else
|
144
|
-
return ["zero", "one", "two", "three", "four", "five", "six",
|
145
|
-
"seven", "eight", "nine"][value]
|
146
|
-
end
|
147
|
-
|
148
|
-
end
|
149
|
-
|
150
|
-
def naturalday(date)
|
151
|
-
##
|
152
|
-
# For date values that are within a 9 day stretch from present day, this
|
153
|
-
# will attempt to return the string representation in the format of today,
|
154
|
-
# tomorrow, yesterday, "in # days" or "# days ago". Otherwise, returns a
|
155
|
-
# string formatted according to the "date_format" setting in your
|
156
|
-
# _config.yml file using strftime format (if not defined, it will default
|
157
|
-
# to "%m/%d/%Y").
|
158
|
-
#
|
159
|
-
# Usage:
|
160
|
-
# TODAY == 01/26/2014
|
161
|
-
# {{ post.updated }} >>> 01/25/2014
|
162
|
-
# {{ post.updated | naturalday }} >>> 'yesterday'
|
163
|
-
# {{ post.date }} >>> 01/19/2014
|
164
|
-
# {{ post.date | naturalday }} >>> 'seven days ago'
|
165
|
-
|
166
|
-
begin
|
167
|
-
site = @context.registers[:site]
|
168
|
-
date_format = site.config['humanize']['date_format']
|
169
|
-
date = time(date).to_date
|
170
|
-
rescue Exception => e
|
171
|
-
puts "#{e.class} #{e}"
|
172
|
-
return date
|
173
|
-
end
|
174
|
-
|
175
|
-
unless date_format then
|
176
|
-
date_format = "%m/%d/%Y"
|
177
|
-
end
|
178
|
-
|
179
|
-
today = time(Time.now).to_date
|
180
|
-
delta = (date - today).to_i
|
181
|
-
|
182
|
-
case delta
|
183
|
-
when 0
|
184
|
-
return "today"
|
185
|
-
when 1
|
186
|
-
return "tomorrow"
|
187
|
-
when 2..9
|
188
|
-
delta = apnumber(delta)
|
189
|
-
return "in #{delta} days"
|
190
|
-
when -1
|
191
|
-
return "yesterday"
|
192
|
-
when -9..-2
|
193
|
-
delta = apnumber(delta * -1)
|
194
|
-
return "#{delta} days ago"
|
195
|
-
else
|
196
|
-
return date.strftime("#{date_format}")
|
197
|
-
end
|
198
|
-
|
199
|
-
end
|
200
|
-
|
201
|
-
def filesize(value)
|
202
|
-
##
|
203
|
-
# For filesize values in bytes, returns the number rounded to 3
|
204
|
-
# decimal places with the correct suffix.
|
205
|
-
#
|
206
|
-
# Usage:
|
207
|
-
# {{ bytes }} >>> 123456789
|
208
|
-
# {{ bytes | filesize }} >>> 117.738 MB
|
209
|
-
filesize_tb = 1099511627776.0
|
210
|
-
filesize_gb = 1073741824.0
|
211
|
-
filesize_mb = 1048576.0
|
212
|
-
filesize_kb = 1024.0
|
213
|
-
|
214
|
-
begin
|
215
|
-
value = value.to_f
|
216
|
-
rescue Exception => e
|
217
|
-
puts "#{e.class} #{e}"
|
218
|
-
return value
|
219
|
-
end
|
220
|
-
|
221
|
-
if value >= filesize_tb
|
222
|
-
return "%s TB" % (value / filesize_tb).to_f.round(3)
|
223
|
-
elsif value >= filesize_gb
|
224
|
-
return "%s GB" % (value / filesize_gb).to_f.round(3)
|
225
|
-
elsif value >= filesize_mb
|
226
|
-
return "%s MB" % (value / filesize_mb).to_f.round(3)
|
227
|
-
elsif value >= filesize_kb
|
228
|
-
return "%s KB" % (value / filesize_kb).to_f.round(0)
|
229
|
-
elsif value == 1
|
230
|
-
return "1 byte"
|
231
|
-
else
|
232
|
-
return "%s bytes" % value.to_f.round(0)
|
233
|
-
end
|
234
|
-
|
235
|
-
end
|
236
|
-
|
237
|
-
#####################
|
238
|
-
# PRIVATE METHODS #
|
239
|
-
#####################
|
240
|
-
|
241
|
-
private
|
242
|
-
def time(input)
|
243
|
-
case input
|
244
|
-
when Time
|
245
|
-
input
|
246
|
-
when String
|
247
|
-
Time.parse(input)
|
248
|
-
else
|
249
|
-
Jekyll.logger.error "Invalid Date:", "'#{input}' not valid datetime."
|
250
|
-
exit(1)
|
251
|
-
end
|
252
|
-
end
|
253
|
-
|
254
|
-
end
|
255
|
-
|
256
|
-
end
|
257
|
-
|
258
|
-
Liquid::Template.register_filter(Jekyll::Humanize)
|
data/assets/favicons/favicon.png
DELETED
Binary file
|