MCPcopy
hub / github.com/typicode/json-server / ResourceList

Function ResourceList

public/script.js:10–23  ·  view source on GitHub ↗
({ db })

Source from the content-addressed store, hash-verified

8}
9
10function ResourceList({ db }) {
11 return `
12 <ul>
13 ${Object.keys(db)
14 .map((name) =>
15 ResourceItem({
16 name,
17 length: Array.isArray(db[name]) && db[name].length,
18 }),
19 )
20 .join('')}
21 </ul>
22 `
23}
24
25function NoResources() {
26 return `<p>No resources found</p>`

Callers 1

ResourcesBlockFunction · 0.85

Calls 1

ResourceItemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…