toriiMask
untyped stringtoriiMask is the Samouraï Coop mark, redrawn as vectors: a torii gate cut out of a full circle, in a 480x480 box. Everything painted through the mask takes the shape of the mark.
Value
"<mask id=\"torii\"><circle cx=\"238\" cy=\"240\" r=\"240\" fill=\"#fff\"/><g fill=\"#000\"><path d=\"M-10 90 Q238 164 490 90 L490 140 Q238 190 -10 140 Z\"/><path d=\"M102 140 L165 140 L162 206 L96 206 Z\"/><path d=\"M302 140 L364 140 L370 206 L304 206 Z\"/><rect x=\"-10\" y=\""...
heroText
typeValue
home.heroText
heroSVG
func(h home.heroText) stringheroSVG draws the page banner: the mark set in a red sun on the right, the text stack on the left.
- OID
- 0e0cc2…9520:3
heroSVG details
heroImage
func() string- OID
- 0e0cc2…9520:5
heroImage details
home
untyped stringValue
"/r/g1747t5m2f08plqjlrjk2q0qld7465hxz8gkx59c/home"
memba
untyped stringValue
"https://memba.samourai.app/mainnet"
hero
home.heroText- OID
- 0e0cc2…9520:7
hero details
defaultSlots
[]struct{...}- OID
- 0e0cc2…9520:9
defaultSlots details
yt
untyped stringValue
"https://www.youtube.com/watch?v="
gh
untyped stringValue
"https://github.com/samouraiworld/"
defaultGalleries
[]struct{...}- OID
- 0e0cc2…9520:26
defaultGalleries details
galleryPrefix
untyped stringValue
"gallery."
cardsPerRow
untyped bigintValue
(3 <untyped> bigint)
maxCards
untyped bigintValue
(48 <untyped> bigint)
maxTitleLen
untyped bigintValue
(80 <untyped> bigint)
maxMetaLen
untyped bigintValue
(80 <untyped> bigint)
maxDescLen
untyped bigintValue
(200 <untyped> bigint)
card
typeValue
home.card
galleries
*v0.Tree// name -> \[]card
- OID
- 0e0cc2…9520:37
galleries details
style
typeValue
home.style
styles
map[string]home.style- OID
- 0e0cc2…9520:40
styles details
styleOf
func(kind string) home.style- OID
- 0e0cc2…9520:55
styleOf details
SetGallery
func(name string, spec string)SetGallery replaces a whole gallery from its line format.
- OID
- 0e0cc2…9520:57
SetGallery details
DeleteGallery
func(name string)DeleteGallery removes a gallery.
- OID
- 0e0cc2…9520:58
DeleteGallery details
parseGallery
func(spec string) []home.card- OID
- 0e0cc2…9520:59
parseGallery details
renderGallery
func(name string) (string, bool)renderGallery lays cards out cardsPerRow to a row, each one a poster that links to its target.
- OID
- 0e0cc2…9520:60
renderGallery details
linkTitle
func(desc string) stringlinkTitle renders an optional markdown link title, which gnoweb emits as the link's hover text.
- OID
- 0e0cc2…9520:61
linkTitle details
mdText
func(s string) stringmdText keeps a title from closing the markdown image alt text early.
- OID
- 0e0cc2…9520:62
mdText details
xmlText
func(s string) string- OID
- 0e0cc2…9520:63
xmlText details
wrap
func(s string, width int) []stringwrap splits s into at most two lines of about width runes; the second line is cut with an ellipsis when the title is longer.
- OID
- 0e0cc2…9520:64
wrap details
runeLen
func(s string) int- OID
- 0e0cc2…9520:65
runeLen details
clip
func(s string, n int) stringclip cuts s to at most n runes, ending with an ellipsis when it had to cut.
- OID
- 0e0cc2…9520:66
clip details
posterURI
func(c home.card) string- OID
- 0e0cc2…9520:67
posterURI details
poster
func(c home.card) stringposter draws a 320x180 card: a dark gradient, a rising sun in the kind's accent (a play button for videos), a large kanji watermark, the kind label, the title on up to two lines and a meta line.
- OID
- 0e0cc2…9520:68
poster details
itoa
func(n int) string- OID
- 0e0cc2…9520:69
itoa details
admin
.uverse.addressadmin is the only address allowed to edit slots.
Value
<gnolang.StringValue>
layoutSlug
untyped stringValue
"layout"
maxSlugLen
untyped bigintValue
(64 <untyped> bigint)
maxRecent
untyped bigintValue
(7 <untyped> bigint)
slot
typeValue
home.slot
slots
*v0.Tree// slug -> \*slot
- OID
- 0e0cc2…9520:71
slots details
rev
int// total slot writes
Value
15
hearts
*v0.Tree// address string -> int64 height of the heart
- OID
- 0e0cc2…9520:75
hearts details
recent
[].uverse.address// newest first, at most maxRecent
- OID
- 0e0cc2…9520:315
recent details
reservedSlugs
[]stringreservedSlugs are placeholders computed at render time. A slot may not take one of these names, so nothing a slot says can shadow chain state.
- OID
- 0e0cc2…9520:79
reservedSlugs details
init.45
func()- OID
- 0e0cc2…9520:80
init.45 details
assertAdmin
func()- OID
- 0e0cc2…9520:82
assertAdmin details
validSlug
func(slug string) bool- OID
- 0e0cc2…9520:83
validSlug details
assertWritableSlug
func(slug string)- OID
- 0e0cc2…9520:84
assertWritableSlug details
Set
func(slug string, body string)Set creates or replaces one slot.
- OID
- 0e0cc2…9520:85
Set details
Append
func(slug string, body string)Append adds to the end of a slot, creating it when absent, for bodies too large for one transaction.
- OID
- 0e0cc2…9520:86
Append details
Delete
func(slug string)Delete removes a slot. Deleting "layout" falls back to the built-in layout.
- OID
- 0e0cc2…9520:87
Delete details
Get
func(slug string) stringGet returns a slot body, or "" when the slot does not exist.
- OID
- 0e0cc2…9520:88
Get details
Revision
func() intRevision is the total number of slot writes accepted.
- OID
- 0e0cc2…9520:89
Revision details
Heart
func()Heart records one \<3 from the caller. Each address can send exactly one.
- OID
- 0e0cc2…9520:90
Heart details
Hearts
func() intHearts returns how many distinct addresses sent a \<3.
- OID
- 0e0cc2…9520:91
Hearts details
HasHeart
func(addr .uverse.address) boolHasHeart reports whether addr already sent a \<3.
- OID
- 0e0cc2…9520:92
HasHeart details
realmPath
untyped stringValue
"gno.land/r/g1747t5m2f08plqjlrjk2q0qld7465hxz8gkx59c/home"
webPath
untyped stringValue
"/r/g1747t5m2f08plqjlrjk2q0qld7465hxz8gkx59c/home"
fallbackLayout
untyped stringfallbackLayout renders when the layout slot is deleted.
Value
"# zôÖma\n\n:bio:\n\n:hearts:\n"
Render
func(path string) stringRender serves: "" the profile page "slots" the slot index "slots/<slug>" one slot's raw markdown "hearts" everyone who sent a <3
- OID
- 0e0cc2…9520:93
Render details
renderPage
func() string- OID
- 0e0cc2…9520:95
renderPage details
fill
func(s string) stringfill replaces every :slug: in s, in one left-to-right pass. Replacement text is never rescanned, so a slot cannot expand into another slot. A placeholder with no value stays verbatim: a missing section should be visible.
- OID
- 0e0cc2…9520:96
fill details
lookup
func(slug string) (string, bool)- OID
- 0e0cc2…9520:97
lookup details
heartsBlock
func() string- OID
- 0e0cc2…9520:98
heartsBlock details
userLink
func(a .uverse.address) stringuserLink renders an address as a short link to its gno.land profile.
- OID
- 0e0cc2…9520:99
userLink details
renderHearts
func() string- OID
- 0e0cc2…9520:100
renderHearts details
renderIndex
func() string- OID
- 0e0cc2…9520:101
renderIndex details
renderSlot
func(slug string) string- OID
- 0e0cc2…9520:102