Removed shadowing

This commit is contained in:
Eduard Urbach 2017-11-11 15:14:16 +01:00
parent 560f87d3f2
commit 9d9f5d57a7

View File

@ -49,142 +49,142 @@ import (
// Configure registers the page routes in the application. // Configure registers the page routes in the application.
func Configure(app *aero.Application) { func Configure(app *aero.Application) {
layout := layout.New(app) l := layout.New(app)
// Set render function for the layout // Set render function for the layout
layout.Render = fullpage.Render l.Render = fullpage.Render
// Main menu // Main menu
layout.Page("/", home.Get) l.Page("/", home.Get)
layout.Page("/explore", explore.Get) l.Page("/explore", explore.Get)
layout.Page("/explore/anime/:year/:status/:type", explore.Filter) l.Page("/explore/anime/:year/:status/:type", explore.Filter)
layout.Page("/login", login.Get) l.Page("/login", login.Get)
layout.Page("/api", apiview.Get) l.Page("/api", apiview.Get)
// layout.Ajax("/dashboard", dashboard.Get) // l.Ajax("/dashboard", dashboard.Get)
// layout.Ajax("/best/anime", best.Get) // l.Ajax("/best/anime", best.Get)
// layout.Ajax("/artworks", artworks.Get) // l.Ajax("/artworks", artworks.Get)
// layout.Ajax("/amvs", amvs.Get) // l.Ajax("/amvs", amvs.Get)
// Forum // Forum
layout.Page("/forum", forums.Get) l.Page("/forum", forums.Get)
layout.Page("/forum/:tag", forum.Get) l.Page("/forum/:tag", forum.Get)
layout.Page("/thread/:id", threads.Get) l.Page("/thread/:id", threads.Get)
layout.Page("/post/:id", posts.Get) l.Page("/post/:id", posts.Get)
layout.Page("/new/thread", newthread.Get) l.Page("/new/thread", newthread.Get)
// User lists // User lists
layout.Page("/users", users.Active) l.Page("/users", users.Active)
layout.Page("/users/osu", users.Osu) l.Page("/users/osu", users.Osu)
layout.Page("/users/staff", users.Staff) l.Page("/users/staff", users.Staff)
// Statistics // Statistics
layout.Page("/statistics", statistics.Get) l.Page("/statistics", statistics.Get)
layout.Page("/statistics/anime", statistics.Anime) l.Page("/statistics/anime", statistics.Anime)
// Anime // Anime
layout.Page("/anime/:id", anime.Get) l.Page("/anime/:id", anime.Get)
layout.Page("/anime/:id/episodes", anime.Episodes) l.Page("/anime/:id/episodes", anime.Episodes)
layout.Page("/anime/:id/characters", anime.Characters) l.Page("/anime/:id/characters", anime.Characters)
layout.Page("/anime/:id/tracks", anime.Tracks) l.Page("/anime/:id/tracks", anime.Tracks)
layout.Page("/anime/:id/edit", editanime.Get) l.Page("/anime/:id/edit", editanime.Get)
// Characters // Characters
layout.Page("/character/:id", character.Get) l.Page("/character/:id", character.Get)
// Settings // Settings
layout.Page("/settings", settings.Get(components.SettingsPersonal)) l.Page("/settings", settings.Get(components.SettingsPersonal))
layout.Page("/settings/accounts", settings.Get(components.SettingsAccounts)) l.Page("/settings/accounts", settings.Get(components.SettingsAccounts))
layout.Page("/settings/notifications", settings.Get(components.SettingsNotifications)) l.Page("/settings/notifications", settings.Get(components.SettingsNotifications))
layout.Page("/settings/apps", settings.Get(components.SettingsApps)) l.Page("/settings/apps", settings.Get(components.SettingsApps))
layout.Page("/settings/avatar", settings.Get(components.SettingsAvatar)) l.Page("/settings/avatar", settings.Get(components.SettingsAvatar))
layout.Page("/settings/formatting", settings.Get(components.SettingsFormatting)) l.Page("/settings/formatting", settings.Get(components.SettingsFormatting))
layout.Page("/settings/pro", settings.Get(components.SettingsPro)) l.Page("/settings/pro", settings.Get(components.SettingsPro))
// Soundtracks // Soundtracks
layout.Page("/soundtracks", soundtracks.Get) l.Page("/soundtracks", soundtracks.Get)
layout.Page("/soundtracks/from/:index", soundtracks.From) l.Page("/soundtracks/from/:index", soundtracks.From)
layout.Page("/soundtrack/:id", soundtrack.Get) l.Page("/soundtrack/:id", soundtrack.Get)
layout.Page("/soundtrack/:id/edit", soundtrack.Edit) l.Page("/soundtrack/:id/edit", soundtrack.Edit)
// Groups // Groups
layout.Page("/groups", groups.Get) l.Page("/groups", groups.Get)
layout.Page("/group/:id", group.Get) l.Page("/group/:id", group.Get)
layout.Page("/group/:id/edit", group.Edit) l.Page("/group/:id/edit", group.Edit)
layout.Page("/group/:id/forum", group.Forum) l.Page("/group/:id/forum", group.Forum)
// User profiles // User profiles
layout.Page("/user", user.Get) l.Page("/user", user.Get)
layout.Page("/user/:nick", profile.Get) l.Page("/user/:nick", profile.Get)
layout.Page("/user/:nick/threads", profile.GetThreadsByUser) l.Page("/user/:nick/threads", profile.GetThreadsByUser)
layout.Page("/user/:nick/posts", profile.GetPostsByUser) l.Page("/user/:nick/posts", profile.GetPostsByUser)
layout.Page("/user/:nick/soundtracks", profile.GetSoundTracksByUser) l.Page("/user/:nick/soundtracks", profile.GetSoundTracksByUser)
layout.Page("/user/:nick/stats", profile.GetStatsByUser) l.Page("/user/:nick/stats", profile.GetStatsByUser)
layout.Page("/user/:nick/followers", profile.GetFollowers) l.Page("/user/:nick/followers", profile.GetFollowers)
layout.Page("/user/:nick/animelist", animelist.Get) l.Page("/user/:nick/animelist", animelist.Get)
layout.Page("/user/:nick/animelist/watching", animelist.FilterByStatus(arn.AnimeListStatusWatching)) l.Page("/user/:nick/animelist/watching", animelist.FilterByStatus(arn.AnimeListStatusWatching))
layout.Page("/user/:nick/animelist/completed", animelist.FilterByStatus(arn.AnimeListStatusCompleted)) l.Page("/user/:nick/animelist/completed", animelist.FilterByStatus(arn.AnimeListStatusCompleted))
layout.Page("/user/:nick/animelist/planned", animelist.FilterByStatus(arn.AnimeListStatusPlanned)) l.Page("/user/:nick/animelist/planned", animelist.FilterByStatus(arn.AnimeListStatusPlanned))
layout.Page("/user/:nick/animelist/hold", animelist.FilterByStatus(arn.AnimeListStatusHold)) l.Page("/user/:nick/animelist/hold", animelist.FilterByStatus(arn.AnimeListStatusHold))
layout.Page("/user/:nick/animelist/dropped", animelist.FilterByStatus(arn.AnimeListStatusDropped)) l.Page("/user/:nick/animelist/dropped", animelist.FilterByStatus(arn.AnimeListStatusDropped))
layout.Page("/user/:nick/animelist/anime/:id", animelistitem.Get) l.Page("/user/:nick/animelist/anime/:id", animelistitem.Get)
// Anime list // Anime list
layout.Page("/animelist/watching", home.FilterByStatus(arn.AnimeListStatusWatching)) l.Page("/animelist/watching", home.FilterByStatus(arn.AnimeListStatusWatching))
layout.Page("/animelist/completed", home.FilterByStatus(arn.AnimeListStatusCompleted)) l.Page("/animelist/completed", home.FilterByStatus(arn.AnimeListStatusCompleted))
layout.Page("/animelist/planned", home.FilterByStatus(arn.AnimeListStatusPlanned)) l.Page("/animelist/planned", home.FilterByStatus(arn.AnimeListStatusPlanned))
layout.Page("/animelist/hold", home.FilterByStatus(arn.AnimeListStatusHold)) l.Page("/animelist/hold", home.FilterByStatus(arn.AnimeListStatusHold))
layout.Page("/animelist/dropped", home.FilterByStatus(arn.AnimeListStatusDropped)) l.Page("/animelist/dropped", home.FilterByStatus(arn.AnimeListStatusDropped))
// Compare // Compare
layout.Page("/compare/animelist/:nick-1/:nick-2", compare.AnimeList) l.Page("/compare/animelist/:nick-1/:nick-2", compare.AnimeList)
// Search // Search
layout.Page("/search", search.Get) l.Page("/search", search.Get)
layout.Page("/search/:term", search.Get) l.Page("/search/:term", search.Get)
// Shop // Shop
layout.Page("/shop", shop.Get) l.Page("/shop", shop.Get)
layout.Page("/inventory", inventory.Get) l.Page("/inventory", inventory.Get)
layout.Page("/charge", charge.Get) l.Page("/charge", charge.Get)
layout.Page("/shop/history", shop.PurchaseHistory) l.Page("/shop/history", shop.PurchaseHistory)
app.Post("/api/shop/buy/:item/:quantity", shop.BuyItem) app.Post("/api/shop/buy/:item/:quantity", shop.BuyItem)
// Admin // Admin
layout.Page("/admin", admin.Get) l.Page("/admin", admin.Get)
layout.Page("/admin/webdev", admin.WebDev) l.Page("/admin/webdev", admin.WebDev)
layout.Page("/admin/purchases", admin.PurchaseHistory) l.Page("/admin/purchases", admin.PurchaseHistory)
// Editor // Editor
layout.Page("/editor", editor.Get) l.Page("/editor", editor.Get)
layout.Page("/editor/anilist", editor.AniList) l.Page("/editor/anilist", editor.AniList)
layout.Page("/editor/shoboi", editor.Shoboi) l.Page("/editor/shoboi", editor.Shoboi)
// Mixed // Mixed
layout.Page("/database", database.Get) l.Page("/database", database.Get)
app.Get("/api/select/:data-type/where/:field/is/:field-value", database.Select) app.Get("/api/select/:data-type/where/:field/is/:field-value", database.Select)
// Import // Import
layout.Page("/import", listimport.Get) l.Page("/import", listimport.Get)
layout.Page("/import/anilist/animelist", listimportanilist.Preview) l.Page("/import/anilist/animelist", listimportanilist.Preview)
layout.Page("/import/anilist/animelist/finish", listimportanilist.Finish) l.Page("/import/anilist/animelist/finish", listimportanilist.Finish)
layout.Page("/import/myanimelist/animelist", listimportmyanimelist.Preview) l.Page("/import/myanimelist/animelist", listimportmyanimelist.Preview)
layout.Page("/import/myanimelist/animelist/finish", listimportmyanimelist.Finish) l.Page("/import/myanimelist/animelist/finish", listimportmyanimelist.Finish)
layout.Page("/import/kitsu/animelist", listimportkitsu.Preview) l.Page("/import/kitsu/animelist", listimportkitsu.Preview)
layout.Page("/import/kitsu/animelist/finish", listimportkitsu.Finish) l.Page("/import/kitsu/animelist/finish", listimportkitsu.Finish)
// Browser extension // Browser extension
layout.Page("/extension/embed", embed.Get) l.Page("/extension/embed", embed.Get)
// API // API
app.Get("/api/me", me.Get) app.Get("/api/me", me.Get)
app.Get("/api/test/notification", notifications.Test) app.Get("/api/test/notification", notifications.Test)
// PayPal // PayPal
layout.Page("/paypal/success", paypal.Success) l.Page("/paypal/success", paypal.Success)
layout.Page("/paypal/cancel", paypal.Cancel) l.Page("/paypal/cancel", paypal.Cancel)
app.Post("/api/paypal/payment/create", paypal.CreatePayment) app.Post("/api/paypal/payment/create", paypal.CreatePayment)
// Genres // Genres
// layout.Ajax("/genres", genres.Get) // l.Ajax("/genres", genres.Get)
// layout.Ajax("/genres/:name", genre.Get) // l.Ajax("/genres/:name", genre.Get)
} }