General improvements
This commit is contained in:
parent
294e8db22c
commit
7269bbbaca
@ -166,7 +166,7 @@ func InstallGoogleAuth(app *aero.Application) {
|
||||
session.Set("userId", user.ID)
|
||||
|
||||
// Log
|
||||
authLog.Info("Registered new user", user.ID, ctx.RealIP(), user.Email, user.RealName())
|
||||
authLog.Info("Registered new user", user.ID, user.Nick, ctx.RealIP(), user.Email, user.RealName())
|
||||
|
||||
// Redirect to frontpage
|
||||
return ctx.Redirect("/")
|
||||
|
@ -14,12 +14,9 @@
|
||||
"layout",
|
||||
"navigation",
|
||||
"headers",
|
||||
"forms",
|
||||
"input",
|
||||
"grid",
|
||||
"colors",
|
||||
"animelist",
|
||||
"forum",
|
||||
"settings",
|
||||
"user",
|
||||
"video",
|
||||
"loading",
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/aerogo/flow"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
@ -12,7 +12,7 @@ import (
|
||||
func main() {
|
||||
color.Yellow("Updating search index")
|
||||
|
||||
aero.Parallel(updateAnimeIndex, updateUserIndex)
|
||||
flow.Parallel(updateAnimeIndex, updateUserIndex)
|
||||
|
||||
color.Green("Finished.")
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package profile
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/aerogo/flow"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
@ -28,7 +29,7 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
|
||||
var animeList *arn.AnimeList
|
||||
var posts []*arn.Post
|
||||
|
||||
aero.Parallel(func() {
|
||||
flow.Parallel(func() {
|
||||
user = utils.GetUser(ctx)
|
||||
}, func() {
|
||||
animeList = viewUser.AnimeList()
|
||||
|
@ -1,3 +1,10 @@
|
||||
mixin input-focus
|
||||
:focus
|
||||
color black
|
||||
border 1px solid main-color
|
||||
// TODO: Replace with alpha(main-color, 20%) function
|
||||
box-shadow 0 0 6px rgba(248, 165, 130, 0.2)
|
||||
|
||||
input, textarea, button, select
|
||||
font-family inherit
|
||||
font-size 1em
|
||||
@ -9,16 +16,15 @@ input, textarea
|
||||
border ui-border
|
||||
background white
|
||||
box-shadow none
|
||||
|
||||
:focus
|
||||
color black
|
||||
border 1px solid main-color
|
||||
// TODO: Replace with alpha(main-color, 20%) function
|
||||
box-shadow 0 0 6px rgba(248, 165, 130, 0.2)
|
||||
input-focus
|
||||
|
||||
:disabled
|
||||
ui-disabled
|
||||
|
||||
// We need this to have a selector with a higher priority than .widget-element:focus
|
||||
input.widget-element
|
||||
input-focus
|
||||
|
||||
button, .button
|
||||
ui-element
|
||||
horizontal
|
Loading…
Reference in New Issue
Block a user