@@ -16,6 +16,10 @@ export default function Item({
1616 name,
1717 icon,
1818 version,
19+ license,
20+ author,
21+ price,
22+ author_verified,
1923 downloads,
2024 installed,
2125} ) {
@@ -26,32 +30,54 @@ export default function Item({
2630 data-action = "open"
2731 data-installed = { ( ! ! installed ) . toString ( ) }
2832 >
29- < span
30- className = "icon"
31- style = { { backgroundImage : `url(${ icon || "./res/puzzle.png" } )` } }
32- > </ span >
33- < div className = "container" >
34- < div className = "text" style = { { justifyContent : "space-between" } } >
35- { name }
33+ < div className = "plugin-header" >
34+ < div className = "plugin-icon" >
35+ < img src = { icon || "./res/puzzle.png" } alt = { name + " icon" } />
3636 </ div >
37- < small className = "value" >
38- < div className = "group" >
39- < div className = "text" > v{ version } </ div >
40- </ div >
41- { downloads ? (
42- < div className = "group" >
43- < div className = "text" >
44- { helpers . formatDownloadCount ( downloads ) }
37+ < div className = "plugin-info" >
38+ < div className = "plugin-main" >
39+ < div className = "plugin-title" >
40+ < span className = "plugin-name" title = { name } >
41+ { name }
42+ </ span >
43+ < span className = "plugin-version" > v{ version } </ span >
44+ </ div >
45+ < div className = "plugin-meta" >
46+ < div className = "plugin-stats" >
47+ < span className = "icon person" > </ span >
48+ { typeof author === "object" ? author . name : author || "Unknown" }
49+ { author_verified ? (
50+ < i
51+ className = "licons verified"
52+ style = { { color : "#3b82f6" } }
53+ > </ i >
54+ ) : (
55+ ""
56+ ) }
57+ </ div >
58+ < span className = "plugin-meta-dot" > </ span >
59+ < div className = "plugin-stats" >
60+ < span
61+ className = "licons scale"
62+ style = { { fontSize : "12px" } }
63+ > </ span >
64+ { license || "Unknown" }
4565 </ div >
46- < div
47- style = { { width : "fit-content" } }
48- className = "icon file_downloadget_app"
49- > </ div >
66+ { downloads && (
67+ < >
68+ < span className = "plugin-meta-dot" > </ span >
69+ < div className = "plugin-stats" >
70+ < span className = "icon save_alt" > </ span >
71+ { helpers . formatDownloadCount ( downloads ) }
72+ </ div >
73+ </ >
74+ ) }
5075 </ div >
51- ) : (
52- < > </ >
53- ) }
54- </ small >
76+ </ div >
77+ { price !== null && price !== undefined && price !== 0 ? (
78+ < span className = "plugin-price" > ₹{ price } </ span >
79+ ) : null }
80+ </ div >
5581 </ div >
5682 </ div >
5783 ) ;
0 commit comments