Fixed add-anime-lists patch
This commit is contained in:
parent
067f6bfa2a
commit
4ba516f8f3
@ -19,7 +19,9 @@ func main() {
|
|||||||
|
|
||||||
// Iterate over the stream
|
// Iterate over the stream
|
||||||
for user := range allUsers {
|
for user := range allUsers {
|
||||||
if user.AnimeList() == nil {
|
exists, err := arn.DB.Exists("AnimeList", user.ID)
|
||||||
|
|
||||||
|
if err == nil && !exists {
|
||||||
fmt.Println(user.Nick)
|
fmt.Println(user.Nick)
|
||||||
|
|
||||||
err := arn.DB.Set("AnimeList", user.ID, &arn.AnimeList{
|
err := arn.DB.Set("AnimeList", user.ID, &arn.AnimeList{
|
||||||
|
@ -65,8 +65,8 @@ export function search(arn: AnimeNotifier, search: HTMLInputElement, e: Keyboard
|
|||||||
history.replaceState("search", null, "/search/" + term)
|
history.replaceState("search", null, "/search/" + term)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!term) {
|
if(!term || term.length < 2) {
|
||||||
arn.app.content.innerHTML = "No search term."
|
arn.app.content.innerHTML = "Please enter at least 2 characters to start searching."
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ input, textarea
|
|||||||
|
|
||||||
:focus
|
:focus
|
||||||
color black
|
color black
|
||||||
border 1px solid main-color !important
|
border 1px solid main-color
|
||||||
// TODO: Replace with alpha(main-color, 20%) function
|
// TODO: Replace with alpha(main-color, 20%) function
|
||||||
box-shadow 0 0 6px rgba(248, 165, 130, 0.2)
|
box-shadow 0 0 6px rgba(248, 165, 130, 0.2)
|
||||||
|
|
||||||
|
@ -47,12 +47,13 @@
|
|||||||
border-radius 0
|
border-radius 0
|
||||||
background text-color
|
background text-color
|
||||||
border none
|
border none
|
||||||
|
|
||||||
color white
|
color white
|
||||||
font-size 1em
|
font-size 1em
|
||||||
min-width 0
|
min-width 0
|
||||||
|
|
||||||
:focus
|
:focus
|
||||||
border none !important
|
border none
|
||||||
box-shadow none
|
box-shadow none
|
||||||
|
|
||||||
.extra-navigation
|
.extra-navigation
|
||||||
|
Loading…
Reference in New Issue
Block a user