Exemple #1
0
func setupPage(app *server.App) {
	var Page = app.Page()
	Page.GET("/", page.Title("ダッシュボード"))
	Page.GET("/configs.html", page.Title("サイト設定"))
	Page.GET("/gates.html", page.Title("ゲート設定"))
	Page.GET("/api_tokens.html", page.Title("APIトークン設定"))
	Page.GET("/oauth2/", page.Title("OAuth2クライアント設定"))
}
Exemple #2
0
func setupPage(app *server.App) {
	var Page = app.Page()
	gate := server.NewPageInstanceHandler(middleware.Gate("family"))
	Page.GET("/", gate, page.Title("テレビ予約一覧"))
	Page.GET("/keywords.html", gate, page.Title("キーワード一覧"))
	Page.GET("/exclusions.html", gate, page.Title("除外ルール一覧"))
	Page.GET("/channels.html", gate, page.Title("チャンネル一覧"))
	Page.GET("/configs.html", gate, page.Title("設定"))
}
Exemple #3
0
func setupPage(app *server.App) {
	var Page = app.Page()
	Page.GET("/admin/", handlers.AdminGatePage, page.Title("アーティスト一覧"))
	Page.GET("/admin/ameblo/", handlers.AdminGatePage, page.Title("Ameblo 設定"))
	Page.GET("/admin/:artist/", handlers.AdminGatePage,
		handlers.ArtistPageHandler(func(req *wcg.Request, pr *response.PageResponse, artist *hplink.Artist) *response.PageResponse {
			pr.Title = artist.Name
			pr.ReactModulePath = "/hplink/admin/artist.jsx"
			return pr
		}),
	)
	Page.GET("/admin/:artist/members/:member/", handlers.AdminGatePage,
		handlers.MemberPageHandler(func(req *wcg.Request, pr *response.PageResponse, member *hplink.Member) *response.PageResponse {
			pr.Title = fmt.Sprintf("%s / %s", member.Name, member.Artist.Name)
			pr.ReactModulePath = "/hplink/admin/member.jsx"
			return pr
		}),
	)
}