General improvements

This commit is contained in:
Eduard Urbach 2017-06-23 18:22:48 +02:00
parent 294e8db22c
commit 7269bbbaca
5 changed files with 18 additions and 14 deletions

View File

@ -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("/")

View File

@ -14,12 +14,9 @@
"layout",
"navigation",
"headers",
"forms",
"input",
"grid",
"colors",
"animelist",
"forum",
"settings",
"user",
"video",
"loading",

View File

@ -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.")
}

View File

@ -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()

View File

@ -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