Removed nyaa icon for now
This commit is contained in:
parent
288ca35ec8
commit
1f33df224b
@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/animenotifier/notify.moe/components"
|
"github.com/animenotifier/notify.moe/components"
|
||||||
)
|
)
|
||||||
|
|
||||||
func BenchmarkThread(b *testing.B) {
|
func BenchmarkRenderThread(b *testing.B) {
|
||||||
thread, _ := arn.GetThread("HJgS7c2K")
|
thread, _ := arn.GetThread("HJgS7c2K")
|
||||||
thread.HTML() // Pre-render markdown
|
thread.HTML() // Pre-render markdown
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ func BenchmarkThread(b *testing.B) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkAnimeList(b *testing.B) {
|
func BenchmarkRenderAnimeList(b *testing.B) {
|
||||||
user, _ := arn.GetUser("4J6qpK1ve")
|
user, _ := arn.GetUser("4J6qpK1ve")
|
||||||
animeList := user.AnimeList()
|
animeList := user.AnimeList()
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/animenotifier/arn"
|
"github.com/animenotifier/arn"
|
||||||
)
|
)
|
||||||
|
|
||||||
func BenchmarkDBGetMap(b *testing.B) {
|
func BenchmarkDBAnimeListGetMap(b *testing.B) {
|
||||||
user, _ := arn.GetUser("4J6qpK1ve")
|
user, _ := arn.GetUser("4J6qpK1ve")
|
||||||
|
|
||||||
b.ReportAllocs()
|
b.ReportAllocs()
|
||||||
@ -20,7 +20,7 @@ func BenchmarkDBGetMap(b *testing.B) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkDBGet(b *testing.B) {
|
func BenchmarkDBAnimeListGet(b *testing.B) {
|
||||||
b.ReportAllocs()
|
b.ReportAllocs()
|
||||||
b.ResetTimer()
|
b.ResetTimer()
|
||||||
|
|
@ -72,7 +72,8 @@ component AnimeList(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User
|
|||||||
//- .action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Visuals", data-type="number", data-trigger="focusout", data-action="save")= fmt.Sprintf("%.1f", item.Rating.Visuals)
|
//- .action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Visuals", data-type="number", data-trigger="focusout", data-action="save")= fmt.Sprintf("%.1f", item.Rating.Visuals)
|
||||||
//- td.anime-list-item-rating(title="Soundtrack rating")
|
//- td.anime-list-item-rating(title="Soundtrack rating")
|
||||||
//- .action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Soundtrack", data-type="number", data-trigger="focusout", data-action="save")= fmt.Sprintf("%.1f", item.Rating.Soundtrack)
|
//- .action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Soundtrack", data-type="number", data-trigger="focusout", data-action="save")= fmt.Sprintf("%.1f", item.Rating.Soundtrack)
|
||||||
if user != nil
|
|
||||||
td.anime-list-item-actions
|
//- if user != nil
|
||||||
a(href=arn.Nyaa.GetLink(item.Anime()), title="Search on Nyaa", target="_blank", rel="noopener")
|
//- td.anime-list-item-actions
|
||||||
RawIcon("download")
|
//- a(href=arn.Nyaa.GetLink(item.Anime()), title="Search on Nyaa", target="_blank", rel="noopener")
|
||||||
|
//- RawIcon("download")
|
Loading…
Reference in New Issue
Block a user