MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / domainToCreateRemote

Function domainToCreateRemote

app/src/sqlite/template.ts:51–62  ·  view source on GitHub ↗
(t: Template, nook?: NookId)

Source from the content-addressed store, hash-verified

49}
50
51function domainToCreateRemote(t: Template, nook?: NookId) {
52 const nooks = nook == null ? objKeys(t.remotes) : [nook]
53 const r: CreateRemoteTemplate = {
54 localId: t.id,
55 name: t.name,
56 css: t.css,
57 nooks,
58 templateType: t.templateType,
59 fields: t.fields.map((x) => x.name),
60 }
61 return r
62}
63
64function domainToEditRemote(template: Template, nook?: NookId) {
65 const remoteIds = objEntries(template.remotes)

Callers 2

getNewTemplatesToUploadFunction · 0.70
makeTemplateUploadableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected