MCPcopy Index your code
hub / github.com/refined-github/refined-github / buildFeatureCheckbox

Function buildFeatureCheckbox

source/options/feature-list.tsx:42–64  ·  view source on GitHub ↗
({id, description, screenshot}: FeatureMeta)

Source from the content-addressed store, hash-verified

40}
41
42function buildFeatureCheckbox({id, description, screenshot}: FeatureMeta): HTMLElement {
43 return (
44 <div className="feature" data-text={`${id} ${description}`.toLowerCase()}>
45 <input type="checkbox" name={`feature:${id}`} id={id} className="feature-checkbox" />
46 <div className="info">
47 <label className="feature-name" htmlFor={id}>{id}</label>{' '}
48 <a href={getFeatureUrl(id)} className="feature-link">
49 source
50 </a>
51 <input hidden type="checkbox" className="screenshot-toggle" />
52 {screenshot && (
53 <a href={screenshot} className="screenshot-link">
54 screenshot
55 </a>
56 )}
57 <p className="description">{domify(description)}</p>
58 {screenshot && (
59 <img hidden src={screenshot} loading="lazy" className="screenshot" />
60 )}
61 </div>
62 </div>
63 );
64}
65
66function summaryHandler(event: DelegateEvent<MouseEvent>): void {
67 if (event.ctrlKey || event.metaKey || event.shiftKey) {

Callers 1

initFeatureListFunction · 0.85

Calls 1

getFeatureUrlFunction · 0.85

Tested by

no test coverage detected