mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-12 23:08:46 +00:00
Merge branch 'master' into absolute_fluoride
This commit is contained in:
commit
4ab53547a8
26 changed files with 685 additions and 477 deletions
|
@ -14,15 +14,10 @@ type Context struct {
|
|||
CSRFToken string
|
||||
UserID string
|
||||
AntiDopamineMode bool
|
||||
UserCSS string
|
||||
Referrer string
|
||||
}
|
||||
|
||||
type NavData struct {
|
||||
CommonData *CommonData
|
||||
User *mastodon.Account
|
||||
PostContext model.PostContext
|
||||
}
|
||||
|
||||
type CommonData struct {
|
||||
Title string
|
||||
CustomCSS string
|
||||
|
@ -32,9 +27,17 @@ type CommonData struct {
|
|||
Target string
|
||||
}
|
||||
|
||||
type NavData struct {
|
||||
CommonData *CommonData
|
||||
User *mastodon.Account
|
||||
PostContext model.PostContext
|
||||
}
|
||||
|
||||
type ErrorData struct {
|
||||
*CommonData
|
||||
Error string
|
||||
Err string
|
||||
Retry bool
|
||||
SessionErr bool
|
||||
}
|
||||
|
||||
type HomePageData struct {
|
||||
|
@ -132,3 +135,8 @@ type SettingsData struct {
|
|||
Settings *model.Settings
|
||||
PostFormats []model.PostFormat
|
||||
}
|
||||
|
||||
type FiltersData struct {
|
||||
*CommonData
|
||||
Filters []*mastodon.Filter
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ const (
|
|||
RetweetedByPage = "retweetedby.tmpl"
|
||||
SearchPage = "search.tmpl"
|
||||
SettingsPage = "settings.tmpl"
|
||||
FiltersPage = "filters.tmpl"
|
||||
)
|
||||
|
||||
type TemplateData struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue