Skip to content

Commit 212e762

Browse files
committed
blacklist -> blocklist
Server redirects will be put in place to make this transparent.
1 parent 274bf25 commit 212e762

8 files changed

Lines changed: 293 additions & 128 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# pythonversions: affected Python versions (e.g. [">=3"], all versions if left out)
44
# octoversions: affected OctoPrint versions (e.g. [">=1.2.9,<1.3.0",">=1.3.2"], all versions if left out)
55
# versions: list of affected versions (e.g. ["0.1.0"]), optional (all versions if left out), deprecated starting with release of OctoPrint 1.7.0
6-
# reason: Human readble reason for blacklisting, may contain Markdown
6+
# reason: Human readble reason for blocklisting, may contain Markdown
77
- plugin: tplinksmartplug
88
versions:
99
- 0.7.0

_data/notices.yaml

Lines changed: 177 additions & 39 deletions
Large diffs are not rendered by default.

_includes/navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
>Lists <b class="caret"></b
112112
></a>
113113
<ul class="dropdown-menu">
114-
<li><a href="{{ '/blacklist/' | prepend: site.baseurl }}">Blacklist</a></li>
114+
<li><a href="{{ '/blocklist/' | prepend: site.baseurl }}">Blocklist</a></li>
115115
<li><a href="{{ '/notices/' | prepend: site.baseurl }}">Notices</a></li>
116116
<li><a href="{{ '/overlays/' | prepend: site.baseurl }}">Overlays</a></li>
117117
<li>

assets/css/site.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/less/site.less

Lines changed: 58 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
// fix for less v2 vs bootstrap v2, see http://stackoverflow.com/a/28182792/2028598
44
#grid {
5-
.core {
6-
.span(@gridColumns) {
7-
width: (@gridColumnWidth * @gridColumns) + (@gridGutterWidth * (@gridColumns - 1));
8-
}
5+
.core {
6+
.span(@gridColumns) {
7+
width: (@gridColumnWidth * @gridColumns) + (@gridGutterWidth * (@gridColumns - 1));
98
}
10-
};
9+
}
10+
}
1111

1212
@import "webfonts.less";
1313

@@ -35,12 +35,17 @@
3535
@footerpaddingtop_phone: 20px;
3636
@footerpaddingbottom: 15px;
3737

38-
body, html {
38+
body,
39+
html {
3940
height: 100%;
4041
}
4142

42-
.text-align-right { text-align: right; }
43-
.text-align-center { text-align: center; }
43+
.text-align-right {
44+
text-align: right;
45+
}
46+
.text-align-center {
47+
text-align: center;
48+
}
4449

4550
.navbar {
4651
.brand {
@@ -61,7 +66,9 @@ body, html {
6166
}
6267
}
6368

64-
.navbar .nav > li > a { padding: 12px 10px 9px; }
69+
.navbar .nav > li > a {
70+
padding: 12px 10px 9px;
71+
}
6572

6673
.octo-heart {
6774
color: red;
@@ -71,13 +78,19 @@ h1 {
7178
font-family: @serifFontFamily;
7279
}
7380

74-
h1, h2 {
81+
h1,
82+
h2 {
7583
margin: 20px 0 30px;
7684
padding-bottom: 9px;
7785
border-bottom: 1px solid @grayLighter;
7886
}
7987

80-
h1, h2, h3, h4, h5, h6 {
88+
h1,
89+
h2,
90+
h3,
91+
h4,
92+
h5,
93+
h6 {
8194
a {
8295
color: @textColor;
8396
}
@@ -99,7 +112,10 @@ h1, h2, h3, h4, h5, h6 {
99112

100113
#gradient > .radial( @octoLight, @octoDark);
101114

102-
&, h1 { color: @white; }
115+
&,
116+
h1 {
117+
color: @white;
118+
}
103119

104120
h1 {
105121
font-size: 60px;
@@ -124,12 +140,15 @@ h1, h2, h3, h4, h5, h6 {
124140
}
125141

126142
#main {
127-
padding-bottom: @footerinnerheight_desktop + @footerpaddingtop_desktop + @footerpaddingbottom;
143+
padding-bottom: @footerinnerheight_desktop + @footerpaddingtop_desktop +
144+
@footerpaddingbottom;
128145
@media (max-width: 979px) and (min-width: 768px) {
129-
padding-bottom: @footerinnerheight_tablet + @footerpaddingtop_tablet + @footerpaddingbottom;
146+
padding-bottom: @footerinnerheight_tablet + @footerpaddingtop_tablet +
147+
@footerpaddingbottom;
130148
}
131149
@media (max-width: 767px) {
132-
padding-bottom: @footerinnerheight_phone + @footerpaddingtop_phone + @footerpaddingbottom;
150+
padding-bottom: @footerinnerheight_phone + @footerpaddingtop_phone +
151+
@footerpaddingbottom;
133152
}
134153

135154
.content {
@@ -151,13 +170,13 @@ h1, h2, h3, h4, h5, h6 {
151170
margin-top: -1em;
152171

153172
.prop {
154-
padding-right: .5em;
173+
padding-right: 0.5em;
155174
}
156175
}
157176

158177
.plugin-attributes {
159178
display: inline-block;
160-
179+
161180
.label {
162181
vertical-align: middle;
163182
}
@@ -214,25 +233,29 @@ footer {
214233
height: @footerinnerheight_desktop;
215234
padding-top: @footerpaddingtop_desktop;
216235
padding-bottom: @footerpaddingbottom;
217-
margin-top: -(@footerinnerheight_desktop + @footerpaddingtop_desktop + @footerpaddingbottom);
236+
margin-top: -(@footerinnerheight_desktop + @footerpaddingtop_desktop +
237+
@footerpaddingbottom);
218238
@media (max-width: 979px) and (min-width: 768px) {
219239
height: @footerinnerheight_tablet;
220240
padding-top: @footerpaddingtop_tablet;
221241
padding-bottom: @footerpaddingbottom;
222-
margin-top: -(@footerinnerheight_tablet + @footerpaddingtop_tablet + @footerpaddingbottom);
242+
margin-top: -(@footerinnerheight_tablet + @footerpaddingtop_tablet +
243+
@footerpaddingbottom);
223244
}
224245
@media (max-width: 767px) {
225246
height: auto;
226247
padding-top: @footerpaddingtop_phone;
227248
padding-bottom: @footerpaddingbottom;
228-
margin-top: -(@footerinnerheight_phone + @footerpaddingtop_phone + @footerpaddingbottom);
249+
margin-top: -(@footerinnerheight_phone + @footerpaddingtop_phone +
250+
@footerpaddingbottom);
229251
}
230252

231-
#gradient > .vertical(lighten(@octoLight, 3%), @octoDark);
253+
#gradient > .vertical(lighten(@octoLight, 3%), @octoDark);;
232254
background-color: @octoDark;
233255
border-top: 1px solid mix(@octoLight, @octoDark, 50%);
234256

235-
h1, h2 {
257+
h1,
258+
h2 {
236259
border: none;
237260
padding: 0;
238261
margin: 0 0 10px;
@@ -241,15 +264,14 @@ footer {
241264

242265
a {
243266
color: @white;
244-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
267+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
245268
&:hover {
246269
color: @white;
247270
}
248-
249271
}
250272

251273
color: mix(@octoLight, @white, 35%);
252-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
274+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
253275
*zoom: 1; // ie7 hack
254276

255277
ul {
@@ -262,30 +284,32 @@ footer {
262284
}
263285
}
264286

265-
.navbar-search .search-query { line-height: inherit; }
287+
.navbar-search .search-query {
288+
line-height: inherit;
289+
}
266290

267-
.blacklist-table,
291+
.blocklist-table,
268292
.notice-table,
269293
.overlay-table,
270294
.abandoned-table {
271-
.blacklist-plugin,
295+
.blocklist-plugin,
272296
.notice-plugin,
273297
.overlay-plugin,
274298
.abandoned-plugin {
275299
width: 50%;
276300
}
277-
.blacklist-versions,
278-
.blacklist-octoversions,
301+
.blocklist-versions,
302+
.blocklist-octoversions,
279303
.notice-versions,
280304
.notice-octoversions {
281305
width: 25%;
282306
text-align: center;
283307
}
284308

285-
.blacklist-reason,
309+
.blocklist-reason,
286310
.notice-text {
287311
p:first-child::before {
288-
content: 'Reason: ';
312+
content: "Reason: ";
289313
font-weight: bold;
290314
}
291315
}
@@ -320,7 +344,7 @@ footer {
320344
float: left;
321345
max-width: @adcolumn;
322346
text-align: left;
323-
font-size: .8em;
347+
font-size: 0.8em;
324348
color: #333;
325349
}
326350

@@ -329,7 +353,7 @@ footer {
329353
position: absolute;
330354
right: 0;
331355
bottom: 0;
332-
font-size: .5em;
356+
font-size: 0.5em;
333357
text-transform: uppercase;
334358
line-height: 1;
335359
letter-spacing: 1px;

blacklist/index.html

Lines changed: 0 additions & 51 deletions
This file was deleted.

blacklist.json renamed to blocklist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
layout: null
33
---
44
[
5-
{% for item in site.data.blacklist %}{% unless forloop.first %},{% endunless %}{{ item | jsonify }}{% endfor %}
5+
{% for item in site.data.blocklist %}{% unless forloop.first %},{% endunless %}{{ item | jsonify }}{% endfor %}
66
]

blocklist/index.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
layout: page
3+
title: Plugin blocklist
4+
---
5+
6+
<p>
7+
Starting with version 1.3.6 OctoPrint now supports the use of a centralized plugin
8+
blocklist, to prevent loading of specific plugin versions that are known to cause
9+
serious issues with specific OctoPrint versions that interfere severly with normal
10+
operation.
11+
</p>
12+
<p>
13+
If configured as such, OctoPrint will not load any plugins that are listed on this
14+
blocklist and match the provided versions. Deinstallation or manual upgrade of such
15+
plugins will however still be possible.
16+
</p>
17+
<p>
18+
The blocklist is hosted here on <code>plugins.octoprint.org</code> as a
19+
<a href="/blocklist.json">JSON file</a>
20+
and currently contains the following entries:
21+
</p>
22+
<table class="table blocklist-table">
23+
<thead>
24+
<tr>
25+
<th class="blocklist-plugin">Plugin</th>
26+
<th class="blocklist-versions">Affected Plugin Versions</th>
27+
<th class="blocklist-octoversions">Affected OctoPrint Versions</th>
28+
</tr>
29+
</thead>
30+
<tbody>
31+
{% for item in site.data.blocklist %}
32+
<tr>
33+
<td class="blocklist-plugin">
34+
{% assign id = item.plugin | prepend: "/plugins/" %} {% assign p = site.plugins |
35+
where: "id", id | first %} {% if p %}
36+
<a href="{{ p.url }}">{{ p.title }}</a>
37+
{% else %}
38+
<code>{{ item.plugin | xml_escape }}</code>
39+
{% endif %} {% if item.reason %}
40+
<div class="blocklist-reason">{{ item.reason | markdownify }}</div>
41+
{% endif %}
42+
</td>
43+
<td class="blocklist-versions">
44+
{% if item.pluginversions %}{{ item.pluginversions | join: ", " | xml_escape }}{%
45+
else %}all{% endif %}
46+
</td>
47+
<td class="blocklist-octoversions">
48+
{% if item.octoversions %}{{ item.octoversions | join: ", " | xml_escape }}{% else
49+
%}all{% endif %}
50+
</td>
51+
</tr>
52+
{% endfor %}
53+
</tbody>
54+
</table>

0 commit comments

Comments
 (0)