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/
66
77<style >
88img .pylogo {
9- // background-color : #8ec9e6 ;
10- // padding : 15px ;
11- // border-radius : 10px ;
129 width : 80px ;
1310 height : 80px ;
1411}
1512
1613.langbenefits__icon_pylogo {
1714 width : 80px ;
1815}
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+ }
1962</style >
2063
2164
@@ -284,10 +327,11 @@ img.pylogo {
284327 continue versions_loop;
285328 }
286329 const styling = count++ < rowsPerPage ? ' ' : ' style="display: none;"' ;
330+ const highlight = ' <span class="highlight-package legend-item-1"></span>' .repeat (info .highlight );
287331 $ (' #dataTable tbody' ).append (`
288332 <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>
291335 <td>${ info .notes } </td>
292336 </tr>` );
293337 }
Original file line number Diff line number Diff line change @@ -38,6 +38,22 @@ class DBEntry {
3838 }
3939 return notes ;
4040 }
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+ }
4157}
4258
4359class DB {
@@ -78,6 +94,7 @@ class DB {
7894 previous_entry . notes = entry . notes + " " + previous_entry . notes ;
7995 }
8096 }
97+ previous_entry . highlight = Math . min ( entry . highlight + previous_entry . highlight , 2 ) ;
8198 return previous_entry ;
8299 } else {
83100 return entry ;
You can’t perform that action at this time.
0 commit comments