bloat/renderer/model.go

54 lines
939 B
Go
Raw Normal View History

2019-12-13 18:08:26 +00:00
package renderer
import (
"mastodon"
"web/model"
2019-12-13 18:08:26 +00:00
)
2019-12-25 14:13:59 +00:00
type NavbarData struct {
2019-12-24 14:55:05 +00:00
User *mastodon.Account
2019-12-15 17:37:58 +00:00
NotificationCount int
}
2019-12-25 14:13:59 +00:00
type TimelineData struct {
2019-12-25 04:30:21 +00:00
Title string
Statuses []*mastodon.Status
HasNext bool
NextLink string
HasPrev bool
PrevLink string
PostContext model.PostContext
2019-12-25 14:13:59 +00:00
NavbarData *NavbarData
2019-12-13 18:08:26 +00:00
}
2019-12-25 14:13:59 +00:00
type ThreadData struct {
Statuses []*mastodon.Status
PostContext model.PostContext
ReplyMap map[string][]mastodon.ReplyInfo
2019-12-25 14:13:59 +00:00
NavbarData *NavbarData
2019-12-13 18:08:26 +00:00
}
2019-12-25 14:13:59 +00:00
type NotificationData struct {
2019-12-15 17:37:58 +00:00
Notifications []*mastodon.Notification
HasNext bool
NextLink string
2019-12-25 14:13:59 +00:00
NavbarData *NavbarData
2019-12-13 18:08:26 +00:00
}
2019-12-25 14:13:59 +00:00
type UserData struct {
User *mastodon.Account
Statuses []*mastodon.Status
HasNext bool
NextLink string
2019-12-25 14:13:59 +00:00
NavbarData *NavbarData
}
2019-12-21 05:48:48 +00:00
2019-12-25 14:13:59 +00:00
type AboutData struct {
NavbarData *NavbarData
2019-12-21 05:48:48 +00:00
}
2019-12-25 14:13:59 +00:00
type EmojiData struct {
2019-12-22 18:10:42 +00:00
Emojis []*mastodon.Emoji
2019-12-25 14:13:59 +00:00
NavbarData *NavbarData
2019-12-22 18:10:42 +00:00
}