pageSize
untyped bigintValue
(20 <untyped> bigint)
homeLimit
untyped bigintValue
(20 <untyped> bigint)
maxPageNum
untyped bigintValue
(500 <untyped> bigint)
Render
func(path string) string- OID
- 06ec94…1fda:3
Render details
home
func() string- OID
- 06ec94…1fda:5
home details
collectionPage
func(cid string, page int64) string- OID
- 06ec94…1fda:6
collectionPage details
tokenPage
func(cid string, tid string) string- OID
- 06ec94…1fda:7
tokenPage details
tokenImage
func(info v2.CollectionInfo, cid string, tid string) (string, string)tokenImage is the image the page embeds and the file line under it. An SVG engine's token is its art (TokenURI). A media engine's token is the checked file when core serves it as a data URI (TokenURI), otherwise the engine's checked SVG card (TokenCard): never a remote image (SA-M4); an IPFS address is escaped text. TokenMediaInfo is read first, so a 256 KiB file is encoded only when it is shown.
- OID
- 06ec94…1fda:8
tokenImage details
mediaView
func(mi string) (showFile bool, line string)mediaView decides from core.TokenMediaInfo whether the page embeds the file itself (core serves it as a data URI: source "data") or the card, and writes the file line. Every value is escaped as text.
- OID
- 06ec94…1fda:9
mediaView details
isMedia
func(engineID string) boolisMedia: the engine serves files (engine/v2 KindMedia).
- OID
- 06ec94…1fda:10
isMedia details
jsonStr
func(js string, key string) stringjsonStr reads a string field of a flat JSON object written by core's safe.JSONWriter (keys are ours; the values read here — source, mime, sha256, an ipfs:// CIDv1 — never contain an escaped quote).
- OID
- 06ec94…1fda:11
jsonStr details
jsonNum
func(js string, key string) stringjsonNum reads a non-negative integer field of the same JSON ("0" if absent).
- OID
- 06ec94…1fda:12
jsonNum details
fairness
func(cid string) stringfairness never calls a collection "verified" unless it is a fair launch (core.FairLaunch): a consistent record is not enough when one party could choose the map (SA-M2). An open edition (I-17) is never a fair launch. SEC-F2: the committed beacon's secret is derived by the Sinopia operator, so a fair badge on that path trusts the operator: beacon-only means the operator alone knew the map while minting, and 2/2 assumes the operator did not collude with the creator. Only a randomness provider (a public round nobody knows in advance) needs no such trust.
- OID
- 06ec94…1fda:13
fairness details
plainText
func(s string) stringplainText renders user text as inert markdown: sanitize.InlineText escapes every inline-active character (\\ \* \_ \[ ] ( ) ~ > - + . ! \` # \< &) and folds newlines, and escaping ':' breaks bare-URL autolinks ("https\\://…"), which InlineText leaves alone (SA-M4).
- OID
- 06ec94…1fda:14
plainText details
enginePage
func(id string) string- OID
- 06ec94…1fda:15
enginePage details
userPage
func(name string) string- OID
- 06ec94…1fda:16
userPage details
who
func(addr .uverse.address) stringwho renders an address as its r/sys/users name when it has one.
- OID
- 06ec94…1fda:17
who details
pageFrom
func(query string) int64- OID
- 06ec94…1fda:18
pageFrom details
selfPath
stringselfPath is captured at deploy; links are gnoweb paths without the domain.
Value
"gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/gallery"
init.19
func()- OID
- 06ec94…1fda:20
init.19 details
base
func() string- OID
- 06ec94…1fda:21
base details
link
func(route string) string- OID
- 06ec94…1fda:22
link details
itoa
func(n int64) string- OID
- 06ec94…1fda:23