Minor updates
This commit is contained in:
parent
6e4897f435
commit
6d8700e166
@ -46,7 +46,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound
|
|||||||
a.widget-ui-element.ajax(href=soundTracks[i].Link())
|
a.widget-ui-element.ajax(href=soundTracks[i].Link())
|
||||||
.widget-ui-element-text
|
.widget-ui-element-text
|
||||||
Icon("music")
|
Icon("music")
|
||||||
span(title=soundTracks[i].Media[0].Title)= soundTracks[i].Anime()[0].Title.Canonical
|
span(title=soundTracks[i].Title)= soundTracks[i].MainAnime().Title.Canonical
|
||||||
else
|
else
|
||||||
.widget-ui-element
|
.widget-ui-element
|
||||||
.widget-ui-element-text
|
.widget-ui-element-text
|
||||||
|
@ -23,7 +23,7 @@ func Edit(ctx *aero.Context) string {
|
|||||||
|
|
||||||
ctx.Data = &arn.OpenGraph{
|
ctx.Data = &arn.OpenGraph{
|
||||||
Tags: map[string]string{
|
Tags: map[string]string{
|
||||||
"og:title": track.Media[0].Title,
|
"og:title": track.Title,
|
||||||
"og:image": track.MainAnime().Image.Large,
|
"og:image": track.MainAnime().Image.Large,
|
||||||
"og:url": "https://" + ctx.App.Config.Domain + track.Link(),
|
"og:url": "https://" + ctx.App.Config.Domain + track.Link(),
|
||||||
"og:site_name": "notify.moe",
|
"og:site_name": "notify.moe",
|
||||||
@ -63,6 +63,10 @@ func EditForm(obj interface{}, title string) string {
|
|||||||
b.WriteString(components.InputText(field.Name, fieldValue.String(), field.Name, ""))
|
b.WriteString(components.InputText(field.Name, fieldValue.String(), field.Name, ""))
|
||||||
case "[]string":
|
case "[]string":
|
||||||
b.WriteString(components.InputTags(field.Name, fieldValue.Interface().([]string), field.Name))
|
b.WriteString(components.InputTags(field.Name, fieldValue.Interface().([]string), field.Name))
|
||||||
|
case "[]*arn.ExternalMedia":
|
||||||
|
for sliceIndex := 0; sliceIndex < fieldValue.Len(); sliceIndex++ {
|
||||||
|
b.WriteString(EditForm(fieldValue.Index(sliceIndex).Interface(), "External Media"))
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
panic("No edit form implementation for " + field.Name + " with type " + field.Type.String())
|
panic("No edit form implementation for " + field.Name + " with type " + field.Type.String())
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ func Get(ctx *aero.Context) string {
|
|||||||
|
|
||||||
ctx.Data = &arn.OpenGraph{
|
ctx.Data = &arn.OpenGraph{
|
||||||
Tags: map[string]string{
|
Tags: map[string]string{
|
||||||
"og:title": track.Media[0].Title,
|
"og:title": track.Title,
|
||||||
"og:image": track.MainAnime().Image.Large,
|
"og:image": track.MainAnime().Image.Large,
|
||||||
"og:url": "https://" + ctx.App.Config.Domain + track.Link(),
|
"og:url": "https://" + ctx.App.Config.Domain + track.Link(),
|
||||||
"og:site_name": "notify.moe",
|
"og:site_name": "notify.moe",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// pack:ignore
|
// pack:ignore
|
||||||
|
|
||||||
const CACHE = "v-1"
|
const CACHE = "v-2"
|
||||||
const RELOADS = new Map<string, Promise<Response>>()
|
const RELOADS = new Map<string, Promise<Response>>()
|
||||||
const ETAGS = new Map<string, string>()
|
const ETAGS = new Map<string, string>()
|
||||||
const CACHEREFRESH = new Map<string, Promise<void>>()
|
const CACHEREFRESH = new Map<string, Promise<void>>()
|
||||||
|
Loading…
Reference in New Issue
Block a user