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) session.Set("userId", user.ID)
// Log // 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 // Redirect to frontpage
return ctx.Redirect("/") return ctx.Redirect("/")

View File

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

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/aerogo/aero" "github.com/aerogo/flow"
"github.com/animenotifier/arn" "github.com/animenotifier/arn"
"github.com/fatih/color" "github.com/fatih/color"
) )
@ -12,7 +12,7 @@ import (
func main() { func main() {
color.Yellow("Updating search index") color.Yellow("Updating search index")
aero.Parallel(updateAnimeIndex, updateUserIndex) flow.Parallel(updateAnimeIndex, updateUserIndex)
color.Green("Finished.") color.Green("Finished.")
} }

View File

@ -2,6 +2,7 @@ package profile
import ( import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/aerogo/flow"
"github.com/animenotifier/arn" "github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils" "github.com/animenotifier/notify.moe/utils"
@ -28,7 +29,7 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
var animeList *arn.AnimeList var animeList *arn.AnimeList
var posts []*arn.Post var posts []*arn.Post
aero.Parallel(func() { flow.Parallel(func() {
user = utils.GetUser(ctx) user = utils.GetUser(ctx)
}, func() { }, func() {
animeList = viewUser.AnimeList() 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 input, textarea, button, select
font-family inherit font-family inherit
font-size 1em font-size 1em
@ -9,16 +16,15 @@ input, textarea
border ui-border border ui-border
background white background white
box-shadow none box-shadow none
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)
:disabled :disabled
ui-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 button, .button
ui-element ui-element
horizontal horizontal