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

Function ResourcesBlock

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

Source from the content-addressed store, hash-verified

27}
28
29function ResourcesBlock({ db }) {
30 return `
31 <div>
32 <h1>Resources</h1>
33 ${Object.keys(db).length ? ResourceList({ db }) : NoResources()}
34 </div>
35 `
36}
37
38window
39 .fetch('db')

Callers 1

script.jsFile · 0.85

Calls 2

ResourceListFunction · 0.85
NoResourcesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…