File tree Expand file tree Collapse file tree 2 files changed +66
-5
lines changed Expand file tree Collapse file tree 2 files changed +66
-5
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,59 @@ permalink: compatibility/
6
6
7
7
<style >
8
8
img .pylogo {
9
- // background-color : #8ec9e6 ;
10
- // padding : 15px ;
11
- // border-radius : 10px ;
12
9
width : 80px ;
13
10
height : 80px ;
14
11
}
15
12
16
13
.langbenefits__icon_pylogo {
17
14
width : 80px ;
18
15
}
16
+
17
+ .dataTable-version {
18
+ min-width : 120px ;
19
+ }
20
+
21
+ .highlight-package ::before
22
+ {
23
+ float : right ;
24
+ border-radius : 50% ;
25
+ margin-top : 0.5ex ;
26
+ width : 15px ;
27
+ height : 15px ;
28
+ display : inline-block ;
29
+ margin-right : 5px ;
30
+ }
31
+
32
+ .legend-item-1 ::before
33
+ {
34
+ font-size : 12px ;
35
+ font-weight : bold ;
36
+ text-align : center ;
37
+ content : " ✓" ;
38
+ }
39
+
40
+ .legend-item-2 ::before
41
+ {
42
+ font-size : 12px ;
43
+ font-weight : bold ;
44
+ text-align : center ;
45
+ content : " ?" ;
46
+ }
47
+
48
+ .legend-item-3 ::before
49
+ {
50
+ font-size : 12px ;
51
+ font-weight : bold ;
52
+ text-align : center ;
53
+ content : " 🗲" ;
54
+ }
55
+
56
+ #compatibility-stats-compatible ,
57
+ #compatibility-stats-untested ,
58
+ #compatibility-stats-incompatible ,
59
+ #compatibility-stats-not-supported {
60
+ padding-left : 0.5em ;
61
+ }
19
62
</style >
20
63
21
64
@@ -284,10 +327,11 @@ img.pylogo {
284
327
continue versions_loop;
285
328
}
286
329
const styling = count++ < rowsPerPage ? ' ' : ' style="display: none;"' ;
330
+ const highlight = ' <span class="highlight-package legend-item-1"></span>' .repeat (info .highlight );
287
331
$ (' #dataTable tbody' ).append (`
288
332
<tr${ styling} >
289
- <td class="dataTable-name">${ info .name } </td>
290
- <td>${ info .version } </td>
333
+ <td class="dataTable-name"><a href="https://pypi.org/project/ ${ info .name } "> ${ info . name } <a/> </td>
334
+ <td class="dataTable-version" >${ info .version }${ highlight } </td>
291
335
<td>${ info .notes } </td>
292
336
</tr>` );
293
337
}
Original file line number Diff line number Diff line change @@ -38,6 +38,22 @@ class DBEntry {
38
38
}
39
39
return notes ;
40
40
}
41
+
42
+ set highlight ( value ) {
43
+ this . _highlight = value ;
44
+ }
45
+
46
+ get highlight ( ) {
47
+ if ( this . _highlight ) {
48
+ return this . _highlight ;
49
+ } if ( this . is_test_percentage ( ) && this . test_status == 0 ) {
50
+ return 1 ;
51
+ } else if ( ! this . is_test_percentage ( ) && this . test_status == 0 ) {
52
+ return 1 ;
53
+ } else {
54
+ return 0 ;
55
+ }
56
+ }
41
57
}
42
58
43
59
class DB {
@@ -78,6 +94,7 @@ class DB {
78
94
previous_entry . notes = entry . notes + " " + previous_entry . notes ;
79
95
}
80
96
}
97
+ previous_entry . highlight = Math . min ( entry . highlight + previous_entry . highlight , 2 ) ;
81
98
return previous_entry ;
82
99
} else {
83
100
return entry ;
You can’t perform that action at this time.
0 commit comments