-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.go
More file actions
39 lines (32 loc) · 697 Bytes
/
page.go
File metadata and controls
39 lines (32 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package notezero
import (
"html/template"
"github.com/a-h/templ"
)
type DetailsParams struct {
HideDetails bool
CreatedAt string
EventJSON template.HTML
Metadata ProfileMetadata
Nevent string
Nprofile string
SeenOn []string
Kind int
KindNIP string
KindDescription string
Extra templ.Component
}
type BaseEventPageParams struct {
}
type ListArticleParams struct {
Notes []EnhancedEvent
}
type SpinnerParams struct {
Id string
}
type ArticleParams struct {
Event EnhancedEvent
Metadata ProfileMetadata
Details DetailsParams
Content template.HTML // Highlights are encoded into the content
}