mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Add a box splitting out methods that are actually used
This commit is contained in:
parent
b0fc08bc6a
commit
53ebd9cec0
1 changed files with 10 additions and 1 deletions
|
|
@ -39,6 +39,10 @@ Object.keys(objects).forEach(key => {
|
|||
});
|
||||
});
|
||||
|
||||
const foundMethods = normalizedMethods.filter(
|
||||
method => method.foundInSkins > 0
|
||||
);
|
||||
|
||||
function PercentBox({ number, total, label }) {
|
||||
const percent = total === 0 ? 1 : number / total;
|
||||
|
||||
|
|
@ -111,7 +115,12 @@ export default function() {
|
|||
<PercentBox
|
||||
number={IMPLEMENTED_METHOD_COUNT}
|
||||
total={METHOD_COUNT}
|
||||
label="Methods"
|
||||
label="All Methods"
|
||||
/>
|
||||
<PercentBox
|
||||
number={foundMethods.filter(method => method.implemented).length}
|
||||
total={foundMethods.length}
|
||||
label="Used Methods"
|
||||
/>
|
||||
<input
|
||||
placeholder={"Search..."}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue