aboutsummaryrefslogtreecommitdiff
path: root/route/structs.go
blob: 87ffce3ebe94449019340a6a83ec8f89feea3d45 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package route

import (
	"github.com/FChannel0/FChannel-Server/activitypub"
	"github.com/FChannel0/FChannel-Server/db"
	"github.com/FChannel0/FChannel-Server/util"
	"github.com/FChannel0/FChannel-Server/webfinger"
)

type PageData struct {
	Title             string
	PreferredUsername string
	Board             webfinger.Board
	Pages             []int
	CurrentPage       int
	TotalPage         int
	Boards            []webfinger.Board
	Posts             []activitypub.ObjectBase
	Key               string
	PostId            string
	Instance          activitypub.Actor
	ReturnTo          string
	NewsItems         []db.NewsItem
	BoardRemainer     []int
	Meta              Meta
	PostType          string

	Themes      *[]string
	ThemeCookie string
}

type AdminPage struct {
	Title         string
	Board         webfinger.Board
	Key           string
	Actor         string
	Boards        []webfinger.Board
	Following     []string
	Followers     []string
	Domain        string
	IsLocal       bool
	PostBlacklist []util.PostBlacklist
	AutoSubscribe bool
	RecentPosts   []activitypub.ObjectBase
	Instance      activitypub.Actor
	Meta          Meta

	Themes      *[]string
	ThemeCookie string
}

type Meta struct {
	Title       string
	Description string
	Url         string
	Preview     string
}