From 2496f26bf48798fda89206f4cccea5cf9a7031f5 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 25 Jun 2017 13:13:47 +0200 Subject: [PATCH] Updated to latest version of pack & run --- assets.go | 8 ++++---- main.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets.go b/assets.go index 69cc8f80..1c312697 100644 --- a/assets.go +++ b/assets.go @@ -7,21 +7,21 @@ import ( "github.com/aerogo/aero" "github.com/animenotifier/arn" - "github.com/animenotifier/notify.moe/components" + "github.com/animenotifier/notify.moe/components/js" ) func init() { // Scripts - js := components.JS() + scripts := js.Bundle() app.Get("/scripts", func(ctx *aero.Context) string { ctx.SetResponseHeader("Content-Type", "application/javascript") - return js + return scripts }) app.Get("/scripts.js", func(ctx *aero.Context) string { ctx.SetResponseHeader("Content-Type", "application/javascript") - return js + return scripts }) // Web manifest diff --git a/main.go b/main.go index 16c31cf2..c2993c4e 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ import ( "github.com/aerogo/api" "github.com/animenotifier/arn" "github.com/animenotifier/notify.moe/auth" - "github.com/animenotifier/notify.moe/components" + "github.com/animenotifier/notify.moe/components/css" "github.com/animenotifier/notify.moe/layout" "github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/pages/admin" @@ -41,7 +41,7 @@ func configure(app *aero.Application) *aero.Application { app.Security.Load("security/fullchain.pem", "security/privkey.pem") // CSS - app.SetStyle(components.CSS()) + app.SetStyle(css.Bundle()) // Sessions app.Sessions.Duration = 3600 * 24