From 7d276df1f19086df67febcada19667f2a8621be9 Mon Sep 17 00:00:00 2001 From: God Date: Thu, 16 Jun 2022 15:51:51 +0800 Subject: [PATCH] add theme --- .idea/.gitignore | 8 + controller/admin_comment_edit.go | 5 +- controller/admin_comment_review.go | 7 +- controller/admin_link.go | 5 +- controller/admin_node.go | 5 +- controller/admin_site_config.go | 5 +- controller/admin_site_router.go | 5 +- controller/admin_topic_add.go | 5 +- controller/admin_topic_edit.go | 5 +- controller/admin_topic_review.go | 7 +- controller/admin_user.go | 5 +- controller/home.go | 5 +- controller/member_page.go | 5 +- controller/my_msg.go | 7 +- controller/node.go | 7 +- controller/search.go | 7 +- controller/tag.go | 7 +- controller/topic_add.go | 7 +- controller/topic_detail.go | 5 +- controller/user_login.go | 9 +- controller/user_setting.go | 5 +- go.mod | 6 +- go.sum | 564 ++++++++++++++++ .../ybs/admin_comment_editnreview.qtpl | 12 - .../ybs/admin_comment_editnreview.qtpl.go | 152 ++--- .../ybs/admin_link.qtpl | 10 - .../ybs/admin_link.qtpl.go | 98 ++- .../ybs/admin_node.qtpl | 10 - .../ybs/admin_node.qtpl.go | 98 ++- .../ybs/admin_site_config.qtpl | 9 - .../ybs/admin_site_config.qtpl.go | 265 ++++---- .../ybs/admin_site_router.qtpl | 11 - .../ybs/admin_site_router.qtpl.go | 119 ++-- .../ybs/admin_topic_add.qtpl | 12 - .../ybs/admin_topic_add.qtpl.go | 216 +++--- .../ybs/admin_user.qtpl | 12 - .../ybs/admin_user.qtpl.go | 164 +++-- views/ybs/all_page_date.go | 165 +++++ model/page_base.qtpl => views/ybs/base.qtpl | 0 .../ybs/base.qtpl.go | 624 +++++++++--------- model/page_home.qtpl => views/ybs/home.qtpl | 8 - .../ybs/home.qtpl.go | 192 +++--- .../page_member.qtpl => views/ybs/member.qtpl | 13 - .../ybs/member.qtpl.go | 317 +++++---- .../page_my_msg.qtpl => views/ybs/my_msg.qtpl | 9 - .../ybs/my_msg.qtpl.go | 145 ++-- model/page_node.qtpl => views/ybs/node.qtpl | 8 - .../ybs/node.qtpl.go | 204 +++--- .../page_search.qtpl => views/ybs/search.qtpl | 8 - .../ybs/search.qtpl.go | 168 +++-- model/page_tag.qtpl => views/ybs/tag.qtpl | 8 - .../page_tag.qtpl.go => views/ybs/tag.qtpl.go | 204 +++--- .../ybs/topic_add.qtpl | 11 - .../ybs/topic_add.qtpl.go | 155 ++--- .../ybs/topic_detail.qtpl | 2 - .../ybs/topic_detail.qtpl.go | 331 +++++----- .../ybs/user_loginnregister.qtpl | 13 - .../ybs/user_loginnregister.qtpl.go | 129 ++-- .../ybs/user_setting.qtpl | 9 - .../ybs/user_setting.qtpl.go | 81 +-- 60 files changed, 2552 insertions(+), 2136 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 go.sum rename model/page_admin_comment_editnreview.qtpl => views/ybs/admin_comment_editnreview.qtpl (95%) rename model/page_admin_comment_editnreview.qtpl.go => views/ybs/admin_comment_editnreview.qtpl.go (63%) rename model/page_admin_link.qtpl => views/ybs/admin_link.qtpl (92%) rename model/page_admin_link.qtpl.go => views/ybs/admin_link.qtpl.go (59%) rename model/page_admin_node.qtpl => views/ybs/admin_node.qtpl (91%) rename model/page_admin_node.qtpl.go => views/ybs/admin_node.qtpl.go (59%) rename model/page_admin_site_config.qtpl => views/ybs/admin_site_config.qtpl (99%) rename model/page_admin_site_config.qtpl.go => views/ybs/admin_site_config.qtpl.go (73%) rename model/page_admin_site_router.qtpl => views/ybs/admin_site_router.qtpl (91%) rename model/page_admin_site_router.qtpl.go => views/ybs/admin_site_router.qtpl.go (50%) rename model/page_admin_topic_add.qtpl => views/ybs/admin_topic_add.qtpl (96%) rename model/page_admin_topic_add.qtpl.go => views/ybs/admin_topic_add.qtpl.go (67%) rename model/page_admin_user.qtpl => views/ybs/admin_user.qtpl (95%) rename model/page_admin_user.qtpl.go => views/ybs/admin_user.qtpl.go (63%) create mode 100644 views/ybs/all_page_date.go rename model/page_base.qtpl => views/ybs/base.qtpl (100%) rename model/page_base.qtpl.go => views/ybs/base.qtpl.go (60%) rename model/page_home.qtpl => views/ybs/home.qtpl (93%) rename model/page_home.qtpl.go => views/ybs/home.qtpl.go (53%) rename model/page_member.qtpl => views/ybs/member.qtpl (92%) rename model/page_member.qtpl.go => views/ybs/member.qtpl.go (52%) rename model/page_my_msg.qtpl => views/ybs/my_msg.qtpl (93%) rename model/page_my_msg.qtpl.go => views/ybs/my_msg.qtpl.go (52%) rename model/page_node.qtpl => views/ybs/node.qtpl (94%) rename model/page_node.qtpl.go => views/ybs/node.qtpl.go (53%) rename model/page_search.qtpl => views/ybs/search.qtpl (91%) rename model/page_search.qtpl.go => views/ybs/search.qtpl.go (52%) rename model/page_tag.qtpl => views/ybs/tag.qtpl (94%) rename model/page_tag.qtpl.go => views/ybs/tag.qtpl.go (54%) rename model/page_topic_add.qtpl => views/ybs/topic_add.qtpl (97%) rename model/page_topic_add.qtpl.go => views/ybs/topic_add.qtpl.go (73%) rename model/page_topic_detail.qtpl => views/ybs/topic_detail.qtpl (99%) rename model/page_topic_detail.qtpl.go => views/ybs/topic_detail.qtpl.go (70%) rename model/page_user_loginnregister.qtpl => views/ybs/user_loginnregister.qtpl (96%) rename model/page_user_loginnregister.qtpl.go => views/ybs/user_loginnregister.qtpl.go (67%) rename model/page_user_setting.qtpl => views/ybs/user_setting.qtpl (97%) rename model/page_user_setting.qtpl.go => views/ybs/user_setting.qtpl.go (74%) diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/controller/admin_comment_edit.go b/controller/admin_comment_edit.go index 00e65ce..b847cf9 100644 --- a/controller/admin_comment_edit.go +++ b/controller/admin_comment_edit.go @@ -5,6 +5,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "strconv" ) @@ -32,7 +33,7 @@ func (h *BaseHandler) AdminCommentEditPage(ctx *fasthttp.RequestCtx) { comment := model.CommentGetById(db, tidI, cidI) - evn := &model.AdminCommentEdit{} + evn := &ybs.AdminCommentEdit{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "评论修改" @@ -62,7 +63,7 @@ func (h *BaseHandler) AdminCommentEditPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } diff --git a/controller/admin_comment_review.go b/controller/admin_comment_review.go index 6c35ab0..538a31c 100644 --- a/controller/admin_comment_review.go +++ b/controller/admin_comment_review.go @@ -5,6 +5,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "strconv" "strings" ) @@ -19,7 +20,7 @@ func (h *BaseHandler) AdminCommentReviewPage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site db := h.App.Db - evn := &model.AdminCommentEdit{} + evn := &ybs.AdminCommentEdit{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "待审核评论" @@ -71,11 +72,11 @@ func (h *BaseHandler) AdminCommentReviewPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } -// 管理员编辑与审核公用 +//AdminCommentReviewPost 管理员编辑与审核公用 func (h *BaseHandler) AdminCommentReviewPost(ctx *fasthttp.RequestCtx) { ctx.SetContentType("application/json; charset=UTF-8") diff --git a/controller/admin_link.go b/controller/admin_link.go index e1d3f0c..635e2ae 100644 --- a/controller/admin_link.go +++ b/controller/admin_link.go @@ -4,6 +4,7 @@ import ( "github.com/ego008/sdb" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "strconv" ) @@ -16,7 +17,7 @@ func (h *BaseHandler) AdminLinkPage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site - evn := &model.AdminLink{} + evn := &ybs.AdminLink{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "链接管理" @@ -42,7 +43,7 @@ func (h *BaseHandler) AdminLinkPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } diff --git a/controller/admin_node.go b/controller/admin_node.go index e965ad1..af6bacf 100644 --- a/controller/admin_node.go +++ b/controller/admin_node.go @@ -4,6 +4,7 @@ import ( "github.com/ego008/sdb" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "strconv" ) @@ -16,7 +17,7 @@ func (h *BaseHandler) AdminNodePage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site - evn := &model.AdminNode{} + evn := &ybs.AdminNode{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "分区管理" @@ -42,7 +43,7 @@ func (h *BaseHandler) AdminNodePage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") //_ = h.Render(ctx, evn, "admin/layout.html", "admin/node.html") diff --git a/controller/admin_site_config.go b/controller/admin_site_config.go index db6f376..3c7f79a 100644 --- a/controller/admin_site_config.go +++ b/controller/admin_site_config.go @@ -6,6 +6,7 @@ import ( "github.com/gorilla/securecookie" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "strconv" "strings" "time" @@ -20,7 +21,7 @@ func (h *BaseHandler) AdminSiteConfigPage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site - evn := &model.AdminSiteConfig{} + evn := &ybs.AdminSiteConfig{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "网站设置" @@ -37,7 +38,7 @@ func (h *BaseHandler) AdminSiteConfigPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } diff --git a/controller/admin_site_router.go b/controller/admin_site_router.go index c98930e..1a52bbb 100644 --- a/controller/admin_site_router.go +++ b/controller/admin_site_router.go @@ -4,6 +4,7 @@ import ( "github.com/ego008/sdb" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "log" "strings" ) @@ -17,7 +18,7 @@ func (h *BaseHandler) AdminSiteRouterPage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site - evn := &model.AdminSiteRouter{} + evn := &ybs.AdminSiteRouter{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "自定义路由" @@ -61,7 +62,7 @@ func (h *BaseHandler) AdminSiteRouterPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } diff --git a/controller/admin_topic_add.go b/controller/admin_topic_add.go index 844beb5..c8d74ff 100644 --- a/controller/admin_topic_add.go +++ b/controller/admin_topic_add.go @@ -7,6 +7,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "log" "strconv" "strings" @@ -22,7 +23,7 @@ func (h *BaseHandler) AdminTopicAddPage(ctx *fasthttp.RequestCtx) { db := h.App.Db scf := h.App.Cf.Site - evn := &model.AdminTopicAdd{} + evn := &ybs.AdminTopicAdd{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "发表文章" @@ -44,7 +45,7 @@ func (h *BaseHandler) AdminTopicAddPage(ctx *fasthttp.RequestCtx) { evn.HasReplyReview = model.CheckHasComment2Review(db) } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") //_ = h.Render(ctx, evn, "admin/layout.html", "admin/topic_add.html") diff --git a/controller/admin_topic_edit.go b/controller/admin_topic_edit.go index 99e293c..a14c72d 100644 --- a/controller/admin_topic_edit.go +++ b/controller/admin_topic_edit.go @@ -4,6 +4,7 @@ import ( "github.com/ego008/sdb" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "strconv" ) @@ -16,7 +17,7 @@ func (h *BaseHandler) AdminTopicEditPage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site - evn := &model.AdminTopicAdd{} + evn := &ybs.AdminTopicAdd{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "编辑帖子" @@ -77,7 +78,7 @@ func (h *BaseHandler) AdminTopicEditPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") //_ = h.Render(ctx, evn, "admin/layout.html", "admin/topic_add.html") diff --git a/controller/admin_topic_review.go b/controller/admin_topic_review.go index 33298c2..78d7050 100644 --- a/controller/admin_topic_review.go +++ b/controller/admin_topic_review.go @@ -4,6 +4,7 @@ import ( "github.com/ego008/sdb" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "strconv" ) @@ -16,7 +17,7 @@ func (h *BaseHandler) AdminTopicReviewPage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site - evn := &model.AdminTopicAdd{} + evn := &ybs.AdminTopicAdd{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "待审核帖子" @@ -77,8 +78,6 @@ func (h *BaseHandler) AdminTopicReviewPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") - - //_ = h.Render(ctx, evn, "admin/layout.html", "admin/topic_add.html") } diff --git a/controller/admin_user.go b/controller/admin_user.go index 9566651..71ddc3c 100644 --- a/controller/admin_user.go +++ b/controller/admin_user.go @@ -5,6 +5,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "strconv" "strings" ) @@ -18,7 +19,7 @@ func (h *BaseHandler) AdminUserPage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site - evn := &model.AdminUser{} + evn := &ybs.AdminUser{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "用户管理" @@ -71,7 +72,7 @@ func (h *BaseHandler) AdminUserPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } diff --git a/controller/home.go b/controller/home.go index d132c18..6135510 100644 --- a/controller/home.go +++ b/controller/home.go @@ -4,6 +4,7 @@ import ( "github.com/ego008/sdb" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "strconv" ) @@ -46,7 +47,7 @@ func (h *BaseHandler) HomePage(ctx *fasthttp.RequestCtx) { topicPageInfo := model.GetTopicList(db, cmd, "topic_update", key, score, scf.PageShowNum) //topicPageInfo := model.GetTopicListSortById(db, cmd, "topic_update", key, score, scf.PageShowNum) - evn := &model.HomePage{} + evn := &ybs.HomePage{} evn.SiteCf = scf evn.Title = scf.Name evn.CurrentUser = curUser @@ -68,7 +69,7 @@ func (h *BaseHandler) HomePage(ctx *fasthttp.RequestCtx) { } } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") //_ = h.Render(ctx, evn, "default/layout.html", "default/sidebar.html", "default/home.html") diff --git a/controller/member_page.go b/controller/member_page.go index 77218c0..40a6953 100644 --- a/controller/member_page.go +++ b/controller/member_page.go @@ -5,6 +5,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "net/url" "strconv" "strings" @@ -98,7 +99,7 @@ func (h *BaseHandler) MemberPage(ctx *fasthttp.RequestCtx) { tbName := "user_" + lstType + ":" + strconv.FormatUint(user.ID, 10) topicPageInfo := model.GetTopicList(db, cmd, tbName, key, score, scf.PageShowNum) - evn := &model.MemberPage{} + evn := &ybs.MemberPage{} evn.SiteCf = scf evn.Title = "会员: " + user.Name + " 最近" + titleText + " - " + scf.Name evn.CurrentUser = curUser @@ -132,7 +133,7 @@ func (h *BaseHandler) MemberPage(ctx *fasthttp.RequestCtx) { } } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } diff --git a/controller/my_msg.go b/controller/my_msg.go index a713fa4..263460e 100644 --- a/controller/my_msg.go +++ b/controller/my_msg.go @@ -3,6 +3,7 @@ package controller import ( "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" ) func (h *BaseHandler) MyMsgPage(ctx *fasthttp.RequestCtx) { @@ -15,7 +16,7 @@ func (h *BaseHandler) MyMsgPage(ctx *fasthttp.RequestCtx) { db := h.App.Db scf := h.App.Cf.Site - evn := &model.MyMsg{} + evn := &ybs.MyMsg{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "未读信息" @@ -29,8 +30,6 @@ func (h *BaseHandler) MyMsgPage(ctx *fasthttp.RequestCtx) { evn.HasReplyReview = model.CheckHasComment2Review(db) } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") - - //_ = h.Render(ctx, evn, "admin/layout.html", "admin/my_msg.html") } diff --git a/controller/node.go b/controller/node.go index e0e246a..e00b9a5 100644 --- a/controller/node.go +++ b/controller/node.go @@ -4,6 +4,7 @@ import ( "github.com/ego008/sdb" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "strconv" ) @@ -62,7 +63,7 @@ func (h *BaseHandler) NodePage(ctx *fasthttp.RequestCtx) { //log.Println(topicPageInfo) - evn := &model.NodePage{} + evn := &ybs.NodePage{} evn.SiteCf = scf evn.Title = "Category: " + node.Name + " - " + scf.Name evn.CurrentUser = curUser @@ -82,8 +83,6 @@ func (h *BaseHandler) NodePage(ctx *fasthttp.RequestCtx) { } } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") - - //_ = h.Render(ctx, evn, "default/layout.html", "default/sidebar.html", "default/node.html") } diff --git a/controller/search.go b/controller/search.go index 55bc9fc..544b0d6 100644 --- a/controller/search.go +++ b/controller/search.go @@ -5,6 +5,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "strings" ) @@ -55,7 +56,7 @@ func (h *BaseHandler) SearchPage(ctx *fasthttp.RequestCtx) { util.ObjCachedSet(h.App.Mc, mcKey, pageInfo) } - evn := &model.SearchPage{} + evn := &ybs.SearchPage{} evn.SiteCf = scf evn.Title = "搜索: " + q + " - " + scf.Name evn.CurrentUser = curUser @@ -75,8 +76,6 @@ func (h *BaseHandler) SearchPage(ctx *fasthttp.RequestCtx) { } } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") - - //_ = h.Render(ctx, evn, "default/layout.html", "default/sidebar.html", "default/search.html") } diff --git a/controller/tag.go b/controller/tag.go index 9169dbf..f4c6a12 100644 --- a/controller/tag.go +++ b/controller/tag.go @@ -4,6 +4,7 @@ import ( "github.com/ego008/sdb" "github.com/valyala/fasthttp" "goyoubbs/model" + "goyoubbs/views/ybs" "net/url" "strconv" "strings" @@ -58,7 +59,7 @@ func (h *BaseHandler) TagPage(ctx *fasthttp.RequestCtx) { topicPageInfo := model.GetTopicListArchives(db, cmd, "tag:"+tagLower, key, score, scf.PageShowNum) - evn := &model.TagPage{} + evn := &ybs.TagPage{} evn.SiteCf = scf evn.Title = "Tag: " + tagRaw + " - " + scf.Name evn.CurrentUser = curUser @@ -78,8 +79,6 @@ func (h *BaseHandler) TagPage(ctx *fasthttp.RequestCtx) { } } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") - - //_ = h.Render(ctx, evn, "default/layout.html", "default/sidebar.html", "default/tag.html") } diff --git a/controller/topic_add.go b/controller/topic_add.go index e3b52c2..9f17a64 100644 --- a/controller/topic_add.go +++ b/controller/topic_add.go @@ -7,6 +7,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "strconv" "strings" "time" @@ -22,7 +23,7 @@ func (h *BaseHandler) TopicAddPage(ctx *fasthttp.RequestCtx) { db := h.App.Db scf := h.App.Cf.Site - evn := &model.UserTopicAdd{} + evn := &ybs.UserTopicAdd{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "发表文章" @@ -51,10 +52,8 @@ func (h *BaseHandler) TopicAddPage(ctx *fasthttp.RequestCtx) { evn.HasReplyReview = model.CheckHasComment2Review(db) } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") - - //_ = h.Render(ctx, evn, "admin/layout.html", "admin/topic_add.html") } //TopicAddPost 发表 diff --git a/controller/topic_detail.go b/controller/topic_detail.go index 2aa0741..83fb525 100644 --- a/controller/topic_detail.go +++ b/controller/topic_detail.go @@ -8,6 +8,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "html" "strconv" "strings" @@ -54,7 +55,7 @@ func (h *BaseHandler) TopicDetailPage(ctx *fasthttp.RequestCtx) { safeTitle := html.EscapeString(topic.Title) - evn := &model.TopicDetailPage{} + evn := &ybs.TopicDetailPage{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = safeTitle + " - " + scf.Name @@ -253,7 +254,7 @@ func (h *BaseHandler) TopicDetailPage(ctx *fasthttp.RequestCtx) { _ = h.SetCookie(ctx, "token", token, 1) } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } diff --git a/controller/user_login.go b/controller/user_login.go index 564ae12..cb60c5f 100644 --- a/controller/user_login.go +++ b/controller/user_login.go @@ -7,6 +7,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "strconv" "strings" "time" @@ -23,7 +24,7 @@ func (h *BaseHandler) UserLoginPage(ctx *fasthttp.RequestCtx) { title = "注册" } - evn := &model.UserLogin{} + evn := &ybs.UserLogin{} evn.SiteCf = scf evn.Title = title evn.PageName = "user_login_register" @@ -56,14 +57,12 @@ func (h *BaseHandler) UserLoginPage(ctx *fasthttp.RequestCtx) { token := h.GetCookie(ctx, "token") if len(token) == 0 { - token := xid.New().String() + token = xid.New().String() _ = h.SetCookie(ctx, "token", token, 1) } - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") - - //_ = h.Render(ctx, evn, "admin/layout.html", "admin/login_or_register.html") } func (h *BaseHandler) UserLoginPost(ctx *fasthttp.RequestCtx) { diff --git a/controller/user_setting.go b/controller/user_setting.go index b39b671..7896c56 100644 --- a/controller/user_setting.go +++ b/controller/user_setting.go @@ -4,6 +4,7 @@ import ( "github.com/valyala/fasthttp" "goyoubbs/model" "goyoubbs/util" + "goyoubbs/views/ybs" "log" ) @@ -20,7 +21,7 @@ func (h *BaseHandler) UserSettingPage(ctx *fasthttp.RequestCtx) { scf := h.App.Cf.Site - evn := &model.UserSetting{} + evn := &ybs.UserSetting{} evn.CurrentUser = curUser evn.SiteCf = scf evn.Title = "个人设置" @@ -34,7 +35,7 @@ func (h *BaseHandler) UserSettingPage(ctx *fasthttp.RequestCtx) { evn.HasTopicReview = model.CheckHasTopic2Review(h.App.Db) evn.HasReplyReview = model.CheckHasComment2Review(h.App.Db) - model.WritePageTemplate(ctx, evn) + ybs.WritePageTemplate(ctx, evn) ctx.SetContentType("text/html; charset=utf-8") } diff --git a/go.mod b/go.mod index 754f9ef..08d8789 100644 --- a/go.mod +++ b/go.mod @@ -17,17 +17,21 @@ require ( github.com/gorilla/securecookie v1.1.1 github.com/json-iterator/go v1.1.10 github.com/klauspost/compress v1.15.0 + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.1 // indirect github.com/mssola/user_agent v0.5.2 github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 github.com/rs/xid v1.2.1 github.com/segmentio/fasthash v1.0.3 + github.com/stretchr/testify v1.7.0 // indirect github.com/syndtr/goleveldb v1.0.0 github.com/tidwall/gjson v1.9.3 github.com/valyala/fasthttp v1.34.0 github.com/valyala/quicktemplate v1.6.3 - github.com/yuin/goldmark v1.3.5 + github.com/yuin/goldmark v1.4.1 golang.org/x/crypto v0.0.0-20220214200702-86341886e292 golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93 google.golang.org/api v0.40.0 + gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..229371b --- /dev/null +++ b/go.sum @@ -0,0 +1,564 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0 h1:kpgPA77kSSbjSs+fWHkPTxQ6J5Z2Qkruo5jfXEkHxNQ= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/VictoriaMetrics/fastcache v1.5.8 h1:XW+YVx9lEXITBVv35ugK9OyotdNJVcbza69o3jmqWuI= +github.com/VictoriaMetrics/fastcache v1.5.8/go.mod h1:SiMZNgwEPJ9qWLshu9tyuE6bKc9ZWYhcNV/L7jurprQ= +github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 h1:smF2tmSOzy2Mm+0dGI2AIUHY+w0BUc+4tn40djz7+6U= +github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38/go.mod h1:r7bzyVFMNntcxPZXK3/+KdruV1H5KSlyVY0gc+NgInI= +github.com/alecthomas/chroma v0.8.2 h1:x3zkuE2lUk/RIekyAJ3XRqSCP4zwWDfcw/YJCuCAACg= +github.com/alecthomas/chroma v0.8.2/go.mod h1:sko8vR34/90zvl5QdcUdvzL3J8NKjAUx9va9jPuFNoM= +github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721 h1:JHZL0hZKJ1VENNfmXvHbgYlbUOvpzYzvy2aZU5gXVeo= +github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721/go.mod h1:QO9JBoKquHd+jz9nshCh40fOfO+JzsoXy8qTHF68zU0= +github.com/alecthomas/kong v0.2.4/go.mod h1:kQOmtJgV+Lb4aj+I2LEn40cbtawdWJ9Y8QLq+lElKxE= +github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897 h1:p9Sln00KOTlrYkxI1zYWl1QLnEqAqEARBEYa8FQnQcY= +github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ= +github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8= +github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/andybalholm/brotli v1.0.1/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY= +github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 h1:y5HC9v93H5EPKqaS1UYVg1uYah5Xf51mBfIoWehClUQ= +github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964/go.mod h1:Xd9hchkHSWYkEqJwUGisez3G1QY8Ryz0sdWrLPMGjLk= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c= +github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4= +github.com/dlclark/regexp2 v1.2.0 h1:8sAhBGEM0dRWogWqWyQeIJnxjWO6oIjl8FKqREDsGfk= +github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= +github.com/ego008/captcha v0.0.0-20210207145536-b16672dce081 h1:MSUxjZc3PsarEY2vt6FxS1j03k0LGM5p8mOvgyPLFro= +github.com/ego008/captcha v0.0.0-20210207145536-b16672dce081/go.mod h1:GSehBFD48Qbqw5z6srZ7jBFBlxzVQu7zYxu6J9LvDt0= +github.com/ego008/goutils v0.0.0-20200712085638-b78c9947bd3c h1:xLrRn8SXRNcdUVFXORPSPtkCyeeYvs0zUeSPeFEPNV8= +github.com/ego008/goutils v0.0.0-20200712085638-b78c9947bd3c/go.mod h1:hhsYWPNQazYd23hBMuvPvQD2nU8RVAW3xNF4lt9o1Lc= +github.com/ego008/sdb v0.0.0-20210313062815-10a5e71ac04a h1:aLSTRERATp5cetMT0bxMZRzySjFj1CzWX7O3/OP+oa4= +github.com/ego008/sdb v0.0.0-20210313062815-10a5e71ac04a/go.mod h1:pw5hVKOQXMDwTI4jsXw7R5ZDAqI4U/L5ZhUIc8D8DQ8= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fasthttp/router v1.3.9 h1:/V71/6mBpH8oohAaR/DtBB4el6EETbNsBPBoCJZc4gc= +github.com/fasthttp/router v1.3.9/go.mod h1:hKaPPZT9HWA/bEs1pSIbofAxZCLz3oPNTHtn/xqw6j0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY= +github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= +github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= +github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ= +github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.10.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.8/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.15.0 h1:xqfchp4whNFxn5A4XFyyYtitiWI8Hy5EW59jEwcyL6U= +github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/mssola/user_agent v0.5.2 h1:CZkTUahjL1+OcZ5zv3kZr8QiJ8jy2H08vZIEkBeRbxo= +github.com/mssola/user_agent v0.5.2/go.mod h1:TTPno8LPY3wAIEKRpAtkdMT0f8SE24pLRGPahjCH4uw= +github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ= +github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0 h1:WSHQ+IS43OoUrWtD1/bbclrwK8TTH5hzp+umCiuxHgs= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/gomega v1.4.3 h1:RE1xgDvH7imwFD45h+u2SgIfERHlS2yNG4DObb5BSKU= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rs/xid v1.2.1 h1:mhH9Nq+C1fY2l1XIpgxIiUOfNpRBYH1kKcr+qfKgjRc= +github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= +github.com/savsgio/gotils v0.0.0-20210225112730-595c7e5a8a7a h1:9AQ3IfP72fCdbYAJNNwovzXrarhaWtxosEuN1fpent0= +github.com/savsgio/gotils v0.0.0-20210225112730-595c7e5a8a7a/go.mod h1:TWNAOTaVzGOXq8RbEvHnhzA/A2sLZzgn0m6URjnukY8= +github.com/segmentio/fasthash v1.0.3 h1:EI9+KE1EwvMLBWwjpRDc+fEM+prwxDYbslddQGtrmhM= +github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= +github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE= +github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= +github.com/tidwall/gjson v1.9.3 h1:hqzS9wAHMO+KVBBkLxYdkEeeFHuqr95GfClRLKlgK0E= +github.com/tidwall/gjson v1.9.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= +github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= +github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasthttp v1.16.0/go.mod h1:YOKImeEosDdBPnxc0gy7INqi3m1zK6A+xl6TwOBhHCA= +github.com/valyala/fasthttp v1.22.0/go.mod h1:0mw2RjXGOzxf4NL2jni3gUQ7LfjjUSiG5sskOUUSEpU= +github.com/valyala/fasthttp v1.34.0 h1:d3AAQJ2DRcxJYHm7OXNXtXt2as1vMDfxeIcFvhmGGm4= +github.com/valyala/fasthttp v1.34.0/go.mod h1:epZA5N+7pY6ZaEKRmstzOuYJx9HI8DI1oaCGZpdH4h0= +github.com/valyala/quicktemplate v1.6.3 h1:O7EuMwuH7Q94U2CXD6sOX8AYHqQqWtmIk690IhmpkKA= +github.com/valyala/quicktemplate v1.6.3/go.mod h1:fwPzK2fHuYEODzJ9pkw0ipCPNHZ2tD5KW4lOuSdPKzY= +github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= +github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.4.1 h1:/vn0k+RBvwlxEmP5E7SZMqNxPhfMVFEJiykr15/0XKM= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5 h1:dntmOdLpSpHlVqbW5Eay97DelsZHe+55D+xC6i0dDS0= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20220214200702-86341886e292 h1:f+lwQ+GtmgoY+A2YaQxlSOnDjXcQ7ZRLWOHbC6HtRqE= +golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U= +golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226101413-39120d07d75e/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93 h1:alLDrZkL34Y2bnGHfvC1CYBRBXCXgx8AC2vY4MRtYX4= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200413165638-669c56c373c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 h1:nhht2DYV/Sn3qOayu8lM+cU1ii9sTLUeBQwQQfUHtrs= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0 h1:uWrpz12dpVPn7cojP82mk02XDgTJLDPc2KbVTxrWb4A= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d h1:HV9Z9qMhQEsdlvxNFELgQ11RkMzO3CMkjEySjCtuLes= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0 h1:raiipEjMOIC/TO2AvyTxP25XFdLxNIBwzDh3FM3XztI= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/model/page_admin_comment_editnreview.qtpl b/views/ybs/admin_comment_editnreview.qtpl similarity index 95% rename from model/page_admin_comment_editnreview.qtpl rename to views/ybs/admin_comment_editnreview.qtpl index 042c7a9..3010085 100644 --- a/model/page_admin_comment_editnreview.qtpl +++ b/views/ybs/admin_comment_editnreview.qtpl @@ -1,15 +1,3 @@ -// admin_comment_edit/review - -{% code -type AdminCommentEdit struct { - BasePage - DefaultTopic Topic // 编辑/添加 - DefaultUser User // 默认作者 - DefaultComment CommentFmt - GoBack bool // 返回到编辑前页面 -} -%} - {% func (p *AdminCommentEdit) MainBody() %}
diff --git a/model/page_admin_comment_editnreview.qtpl.go b/views/ybs/admin_comment_editnreview.qtpl.go similarity index 63% rename from model/page_admin_comment_editnreview.qtpl.go rename to views/ybs/admin_comment_editnreview.qtpl.go index 835436b..7d13cc0 100644 --- a/model/page_admin_comment_editnreview.qtpl.go +++ b/views/ybs/admin_comment_editnreview.qtpl.go @@ -1,85 +1,73 @@ -// Code generated by qtc from "page_admin_comment_editnreview.qtpl". DO NOT EDIT. +// Code generated by qtc from "admin_comment_editnreview.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_comment_edit/review -// +//line views/ybs/admin_comment_editnreview.qtpl:1 +package ybs -//line model/page_admin_comment_editnreview.qtpl:3 -package model - -//line model/page_admin_comment_editnreview.qtpl:3 +//line views/ybs/admin_comment_editnreview.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_admin_comment_editnreview.qtpl:3 +//line views/ybs/admin_comment_editnreview.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_admin_comment_editnreview.qtpl:4 -type AdminCommentEdit struct { - BasePage - DefaultTopic Topic // 编辑/添加 - DefaultUser User // 默认作者 - DefaultComment CommentFmt - GoBack bool // 返回到编辑前页面 -} - -//line model/page_admin_comment_editnreview.qtpl:13 +//line views/ybs/admin_comment_editnreview.qtpl:1 func (p *AdminCommentEdit) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_admin_comment_editnreview.qtpl:13 +//line views/ybs/admin_comment_editnreview.qtpl:1 qw422016.N().S(`
`) -//line model/page_admin_comment_editnreview.qtpl:16 +//line views/ybs/admin_comment_editnreview.qtpl:4 if p.PageName == "admin_comment_review" && len(p.DefaultComment.Content) == 0 { -//line model/page_admin_comment_editnreview.qtpl:16 +//line views/ybs/admin_comment_editnreview.qtpl:4 qw422016.N().S(`

没有 `) -//line model/page_admin_comment_editnreview.qtpl:17 +//line views/ybs/admin_comment_editnreview.qtpl:5 qw422016.E().S(p.Title) -//line model/page_admin_comment_editnreview.qtpl:17 +//line views/ybs/admin_comment_editnreview.qtpl:5 qw422016.N().S(`

`) -//line model/page_admin_comment_editnreview.qtpl:18 +//line views/ybs/admin_comment_editnreview.qtpl:6 } else { -//line model/page_admin_comment_editnreview.qtpl:18 +//line views/ybs/admin_comment_editnreview.qtpl:6 qw422016.N().S(`

`) -//line model/page_admin_comment_editnreview.qtpl:19 +//line views/ybs/admin_comment_editnreview.qtpl:7 qw422016.E().S(p.Title) -//line model/page_admin_comment_editnreview.qtpl:19 +//line views/ybs/admin_comment_editnreview.qtpl:7 qw422016.N().S(`

`) -//line model/page_admin_comment_editnreview.qtpl:20 +//line views/ybs/admin_comment_editnreview.qtpl:8 qw422016.E().S(p.DefaultTopic.Title) -//line model/page_admin_comment_editnreview.qtpl:20 +//line views/ybs/admin_comment_editnreview.qtpl:8 qw422016.N().S(`

by `) -//line model/page_admin_comment_editnreview.qtpl:21 +//line views/ybs/admin_comment_editnreview.qtpl:9 qw422016.E().S(p.DefaultComment.Name) -//line model/page_admin_comment_editnreview.qtpl:21 +//line views/ybs/admin_comment_editnreview.qtpl:9 qw422016.N().S(` at `) -//line model/page_admin_comment_editnreview.qtpl:21 +//line views/ybs/admin_comment_editnreview.qtpl:9 qw422016.E().S(p.DefaultComment.AddTimeFmt) -//line model/page_admin_comment_editnreview.qtpl:21 +//line views/ybs/admin_comment_editnreview.qtpl:9 qw422016.N().S(`

@@ -87,15 +75,15 @@ func (p *AdminCommentEdit) StreamMainBody(qw422016 *qt422016.Writer) { `) -//line model/page_admin_comment_editnreview.qtpl:31 +//line views/ybs/admin_comment_editnreview.qtpl:19 if p.PageName == "admin_comment_review" { -//line model/page_admin_comment_editnreview.qtpl:31 +//line views/ybs/admin_comment_editnreview.qtpl:19 qw422016.N().S(` 直接删除 `) -//line model/page_admin_comment_editnreview.qtpl:33 +//line views/ybs/admin_comment_editnreview.qtpl:21 } -//line model/page_admin_comment_editnreview.qtpl:33 +//line views/ybs/admin_comment_editnreview.qtpl:21 qw422016.N().S(`
@@ -138,25 +126,25 @@ func (p *AdminCommentEdit) StreamMainBody(qw422016 *qt422016.Writer) { return } postAjax("/admin/comment/edit", JSON.stringify({"ID": `) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().DUL(p.DefaultComment.ID) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().S(`, "TopicId": `) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().DUL(p.DefaultComment.TopicId) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().S(`, "ReplyId": `) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().DUL(p.DefaultComment.ReplyId) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().S(`, "Content": con, "UserId": `) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().DUL(p.DefaultComment.UserId) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().S(`, "AddTime": `) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().DL(p.DefaultComment.AddTime) -//line model/page_admin_comment_editnreview.qtpl:74 +//line views/ybs/admin_comment_editnreview.qtpl:62 qw422016.N().S(`}), function(data){ var obj = JSON.parse(data) msgEle.innerText = obj.Msg; @@ -165,35 +153,35 @@ func (p *AdminCommentEdit) StreamMainBody(qw422016 *qt422016.Writer) { toReplyId = 0; if(obj.Code === 200) { `) -//line model/page_admin_comment_editnreview.qtpl:81 +//line views/ybs/admin_comment_editnreview.qtpl:69 if p.GoBack { -//line model/page_admin_comment_editnreview.qtpl:81 +//line views/ybs/admin_comment_editnreview.qtpl:69 qw422016.N().S(` window.location.href = "/t/`) -//line model/page_admin_comment_editnreview.qtpl:82 +//line views/ybs/admin_comment_editnreview.qtpl:70 qw422016.N().DUL(p.DefaultComment.TopicId) -//line model/page_admin_comment_editnreview.qtpl:82 +//line views/ybs/admin_comment_editnreview.qtpl:70 qw422016.N().S(`#r`) -//line model/page_admin_comment_editnreview.qtpl:82 +//line views/ybs/admin_comment_editnreview.qtpl:70 qw422016.N().DUL(p.DefaultComment.ID) -//line model/page_admin_comment_editnreview.qtpl:82 +//line views/ybs/admin_comment_editnreview.qtpl:70 qw422016.N().S(`"; return false; `) -//line model/page_admin_comment_editnreview.qtpl:84 +//line views/ybs/admin_comment_editnreview.qtpl:72 } -//line model/page_admin_comment_editnreview.qtpl:84 +//line views/ybs/admin_comment_editnreview.qtpl:72 qw422016.N().S(` `) -//line model/page_admin_comment_editnreview.qtpl:85 +//line views/ybs/admin_comment_editnreview.qtpl:73 if p.PageName == "admin_comment_review" { -//line model/page_admin_comment_editnreview.qtpl:85 +//line views/ybs/admin_comment_editnreview.qtpl:73 qw422016.N().S(` window.location.href = "/admin/comment/review"; `) -//line model/page_admin_comment_editnreview.qtpl:87 +//line views/ybs/admin_comment_editnreview.qtpl:75 } else { -//line model/page_admin_comment_editnreview.qtpl:87 +//line views/ybs/admin_comment_editnreview.qtpl:75 qw422016.N().S(` if(data.Tid > 0){ window.location.href = "/t/"+data.Tid; @@ -201,16 +189,16 @@ func (p *AdminCommentEdit) StreamMainBody(qw422016 *qt422016.Writer) { window.location.href = "/admin/my/comment"; } `) -//line model/page_admin_comment_editnreview.qtpl:93 +//line views/ybs/admin_comment_editnreview.qtpl:81 } -//line model/page_admin_comment_editnreview.qtpl:93 +//line views/ybs/admin_comment_editnreview.qtpl:81 qw422016.N().S(` return false; } else if (obj.Code === 201) { window.location.href = "/member/`) -//line model/page_admin_comment_editnreview.qtpl:96 +//line views/ybs/admin_comment_editnreview.qtpl:84 qw422016.N().DUL(p.CurrentUser.ID) -//line model/page_admin_comment_editnreview.qtpl:96 +//line views/ybs/admin_comment_editnreview.qtpl:84 qw422016.N().S(`?type=comment"; return false; } @@ -255,39 +243,39 @@ func (p *AdminCommentEdit) StreamMainBody(qw422016 *qt422016.Writer) { `) -//line model/page_admin_comment_editnreview.qtpl:139 +//line views/ybs/admin_comment_editnreview.qtpl:127 } -//line model/page_admin_comment_editnreview.qtpl:139 +//line views/ybs/admin_comment_editnreview.qtpl:127 qw422016.N().S(`
`) -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 } -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 func (p *AdminCommentEdit) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 p.StreamMainBody(qw422016) -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 qt422016.ReleaseWriter(qw422016) -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 } -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 func (p *AdminCommentEdit) MainBody() string { -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 p.WriteMainBody(qb422016) -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 qs422016 := string(qb422016.B) -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 return qs422016 -//line model/page_admin_comment_editnreview.qtpl:143 +//line views/ybs/admin_comment_editnreview.qtpl:131 } diff --git a/model/page_admin_link.qtpl b/views/ybs/admin_link.qtpl similarity index 92% rename from model/page_admin_link.qtpl rename to views/ybs/admin_link.qtpl index 2bdf3b0..5b012d6 100644 --- a/model/page_admin_link.qtpl +++ b/views/ybs/admin_link.qtpl @@ -1,13 +1,3 @@ -// admin_login - -{% code -type AdminLink struct { - BasePage - Act string // 行为名称,添加/编辑 - Link Link -} -%} - {% func (p *AdminLink) MainBody() %}
diff --git a/model/page_admin_link.qtpl.go b/views/ybs/admin_link.qtpl.go similarity index 59% rename from model/page_admin_link.qtpl.go rename to views/ybs/admin_link.qtpl.go index 3e8dab9..2363e9a 100644 --- a/model/page_admin_link.qtpl.go +++ b/views/ybs/admin_link.qtpl.go @@ -1,50 +1,40 @@ -// Code generated by qtc from "page_admin_link.qtpl". DO NOT EDIT. +// Code generated by qtc from "admin_link.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/admin_link.qtpl:1 +package ybs -//line model/page_admin_link.qtpl:3 -package model - -//line model/page_admin_link.qtpl:3 +//line views/ybs/admin_link.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_admin_link.qtpl:3 +//line views/ybs/admin_link.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_admin_link.qtpl:4 -type AdminLink struct { - BasePage - Act string // 行为名称,添加/编辑 - Link Link -} - -//line model/page_admin_link.qtpl:11 +//line views/ybs/admin_link.qtpl:1 func (p *AdminLink) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_admin_link.qtpl:11 +//line views/ybs/admin_link.qtpl:1 qw422016.N().S(`

`) -//line model/page_admin_link.qtpl:14 +//line views/ybs/admin_link.qtpl:4 qw422016.E().S(p.Title) -//line model/page_admin_link.qtpl:14 +//line views/ybs/admin_link.qtpl:4 qw422016.N().S(`

`) -//line model/page_admin_link.qtpl:18 +//line views/ybs/admin_link.qtpl:8 qw422016.E().S(p.Act) -//line model/page_admin_link.qtpl:18 +//line views/ybs/admin_link.qtpl:8 qw422016.N().S(` 链接

Score: 显示排序,大排前

@@ -53,27 +43,27 @@ func (p *AdminLink) StreamMainBody(qw422016 *qt422016.Writer) {
@@ -90,37 +80,37 @@ func (p *AdminLink) StreamMainBody(qw422016 *qt422016.Writer) { ID - Name - Score - Url `) -//line model/page_admin_link.qtpl:50 +//line views/ybs/admin_link.qtpl:40 for _, v := range p.LinkLst { -//line model/page_admin_link.qtpl:50 +//line views/ybs/admin_link.qtpl:40 qw422016.N().S(`
  • `) -//line model/page_admin_link.qtpl:52 +//line views/ybs/admin_link.qtpl:42 qw422016.N().DUL(v.ID) -//line model/page_admin_link.qtpl:52 +//line views/ybs/admin_link.qtpl:42 qw422016.N().S(` - `) -//line model/page_admin_link.qtpl:52 +//line views/ybs/admin_link.qtpl:42 qw422016.E().S(v.Name) -//line model/page_admin_link.qtpl:52 +//line views/ybs/admin_link.qtpl:42 qw422016.N().S(` - `) -//line model/page_admin_link.qtpl:52 +//line views/ybs/admin_link.qtpl:42 qw422016.N().D(v.Score) -//line model/page_admin_link.qtpl:52 +//line views/ybs/admin_link.qtpl:42 qw422016.N().S(` - `) -//line model/page_admin_link.qtpl:52 +//line views/ybs/admin_link.qtpl:42 qw422016.E().S(v.Url) -//line model/page_admin_link.qtpl:52 +//line views/ybs/admin_link.qtpl:42 qw422016.N().S(`
  • `) -//line model/page_admin_link.qtpl:54 +//line views/ybs/admin_link.qtpl:44 } -//line model/page_admin_link.qtpl:54 +//line views/ybs/admin_link.qtpl:44 qw422016.N().S(` @@ -128,31 +118,31 @@ func (p *AdminLink) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 } -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 func (p *AdminLink) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 p.StreamMainBody(qw422016) -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 qt422016.ReleaseWriter(qw422016) -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 } -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 func (p *AdminLink) MainBody() string { -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 p.WriteMainBody(qb422016) -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 qs422016 := string(qb422016.B) -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 return qs422016 -//line model/page_admin_link.qtpl:60 +//line views/ybs/admin_link.qtpl:50 } diff --git a/model/page_admin_node.qtpl b/views/ybs/admin_node.qtpl similarity index 91% rename from model/page_admin_node.qtpl rename to views/ybs/admin_node.qtpl index 5ca7385..0764aeb 100644 --- a/model/page_admin_node.qtpl +++ b/views/ybs/admin_node.qtpl @@ -1,13 +1,3 @@ -// admin_login - -{% code -type AdminNode struct { - BasePage - Act string // 行为名称,添加/编辑 - Node Node // 分区 -} -%} - {% func (p *AdminNode) MainBody() %}
    diff --git a/model/page_admin_node.qtpl.go b/views/ybs/admin_node.qtpl.go similarity index 59% rename from model/page_admin_node.qtpl.go rename to views/ybs/admin_node.qtpl.go index 77fcc84..8ee0aa6 100644 --- a/model/page_admin_node.qtpl.go +++ b/views/ybs/admin_node.qtpl.go @@ -1,50 +1,40 @@ -// Code generated by qtc from "page_admin_node.qtpl". DO NOT EDIT. +// Code generated by qtc from "admin_node.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/admin_node.qtpl:1 +package ybs -//line model/page_admin_node.qtpl:3 -package model - -//line model/page_admin_node.qtpl:3 +//line views/ybs/admin_node.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_admin_node.qtpl:3 +//line views/ybs/admin_node.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_admin_node.qtpl:4 -type AdminNode struct { - BasePage - Act string // 行为名称,添加/编辑 - Node Node // 分区 -} - -//line model/page_admin_node.qtpl:11 +//line views/ybs/admin_node.qtpl:1 func (p *AdminNode) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_admin_node.qtpl:11 +//line views/ybs/admin_node.qtpl:1 qw422016.N().S(`

    `) -//line model/page_admin_node.qtpl:14 +//line views/ybs/admin_node.qtpl:4 qw422016.E().S(p.Title) -//line model/page_admin_node.qtpl:14 +//line views/ybs/admin_node.qtpl:4 qw422016.N().S(`

    `) -//line model/page_admin_node.qtpl:18 +//line views/ybs/admin_node.qtpl:8 qw422016.E().S(p.Act) -//line model/page_admin_node.qtpl:18 +//line views/ybs/admin_node.qtpl:8 qw422016.N().S(` 节点

    Score: 显示排序,大排前

    @@ -53,18 +43,18 @@ func (p *AdminNode) StreamMainBody(qw422016 *qt422016.Writer) {
    @@ -74,9 +64,9 @@ func (p *AdminNode) StreamMainBody(qw422016 *qt422016.Writer) {
    @@ -92,37 +82,37 @@ func (p *AdminNode) StreamMainBody(qw422016 *qt422016.Writer) { ID - Name - Score - About `) -//line model/page_admin_node.qtpl:52 +//line views/ybs/admin_node.qtpl:42 for _, v := range p.NodeLst { -//line model/page_admin_node.qtpl:52 +//line views/ybs/admin_node.qtpl:42 qw422016.N().S(`
  • `) -//line model/page_admin_node.qtpl:54 +//line views/ybs/admin_node.qtpl:44 qw422016.N().DUL(v.ID) -//line model/page_admin_node.qtpl:54 +//line views/ybs/admin_node.qtpl:44 qw422016.N().S(` - `) -//line model/page_admin_node.qtpl:54 +//line views/ybs/admin_node.qtpl:44 qw422016.E().S(v.Name) -//line model/page_admin_node.qtpl:54 +//line views/ybs/admin_node.qtpl:44 qw422016.N().S(` - `) -//line model/page_admin_node.qtpl:54 +//line views/ybs/admin_node.qtpl:44 qw422016.N().D(v.Score) -//line model/page_admin_node.qtpl:54 +//line views/ybs/admin_node.qtpl:44 qw422016.N().S(` - `) -//line model/page_admin_node.qtpl:54 +//line views/ybs/admin_node.qtpl:44 qw422016.E().S(v.About) -//line model/page_admin_node.qtpl:54 +//line views/ybs/admin_node.qtpl:44 qw422016.N().S(`
  • `) -//line model/page_admin_node.qtpl:56 +//line views/ybs/admin_node.qtpl:46 } -//line model/page_admin_node.qtpl:56 +//line views/ybs/admin_node.qtpl:46 qw422016.N().S(` @@ -131,31 +121,31 @@ func (p *AdminNode) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 } -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 func (p *AdminNode) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 p.StreamMainBody(qw422016) -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 qt422016.ReleaseWriter(qw422016) -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 } -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 func (p *AdminNode) MainBody() string { -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 p.WriteMainBody(qb422016) -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 qs422016 := string(qb422016.B) -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 return qs422016 -//line model/page_admin_node.qtpl:63 +//line views/ybs/admin_node.qtpl:53 } diff --git a/model/page_admin_site_config.qtpl b/views/ybs/admin_site_config.qtpl similarity index 99% rename from model/page_admin_site_config.qtpl rename to views/ybs/admin_site_config.qtpl index 9b9015c..d2c5ac6 100644 --- a/model/page_admin_site_config.qtpl +++ b/views/ybs/admin_site_config.qtpl @@ -1,12 +1,3 @@ -// admin_login - -{% code -type AdminSiteConfig struct { - BasePage - SiteConf SiteConf -} -%} - {% func (p *AdminSiteConfig) MainBody() %}
    diff --git a/model/page_admin_site_config.qtpl.go b/views/ybs/admin_site_config.qtpl.go similarity index 73% rename from model/page_admin_site_config.qtpl.go rename to views/ybs/admin_site_config.qtpl.go index a064210..bae8a6d 100644 --- a/model/page_admin_site_config.qtpl.go +++ b/views/ybs/admin_site_config.qtpl.go @@ -1,41 +1,32 @@ -// Code generated by qtc from "page_admin_site_config.qtpl". DO NOT EDIT. +// Code generated by qtc from "admin_site_config.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/admin_site_config.qtpl:1 +package ybs -//line model/page_admin_site_config.qtpl:3 -package model - -//line model/page_admin_site_config.qtpl:3 +//line views/ybs/admin_site_config.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_admin_site_config.qtpl:3 +//line views/ybs/admin_site_config.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_admin_site_config.qtpl:4 -type AdminSiteConfig struct { - BasePage - SiteConf SiteConf -} - -//line model/page_admin_site_config.qtpl:10 +//line views/ybs/admin_site_config.qtpl:1 func (p *AdminSiteConfig) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_admin_site_config.qtpl:10 +//line views/ybs/admin_site_config.qtpl:1 qw422016.N().S(`

    `) -//line model/page_admin_site_config.qtpl:13 +//line views/ybs/admin_site_config.qtpl:4 qw422016.E().S(p.Title) -//line model/page_admin_site_config.qtpl:13 +//line views/ybs/admin_site_config.qtpl:4 qw422016.N().S(`

    @@ -50,388 +41,388 @@ func (p *AdminSiteConfig) StreamMainBody(qw422016 *qt422016.Writer) {
    -12 ~ 12
    需要登录才能浏览页面
    若不勾选则只允许第三方登录
    发帖、回复审核
    立刻/每次重启 让用户重新登录
    若勾选则只允许管理员上传
    一般填写后不需修改,否则以前上传的文件不可访问
    M
    M
    帖子九宫格图片保存到数据库(以空间换CPU)
    管理员远程发布帖子、评论密码
    有待验证帖子、回复是否发邮件,若需要则需正确填写下面 5 个信息 ↓
    @@ -444,31 +435,31 @@ func (p *AdminSiteConfig) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 } -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 func (p *AdminSiteConfig) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 p.StreamMainBody(qw422016) -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 qt422016.ReleaseWriter(qw422016) -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 } -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 func (p *AdminSiteConfig) MainBody() string { -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 p.WriteMainBody(qb422016) -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 qs422016 := string(qb422016.B) -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 return qs422016 -//line model/page_admin_site_config.qtpl:208 +//line views/ybs/admin_site_config.qtpl:199 } diff --git a/model/page_admin_site_router.qtpl b/views/ybs/admin_site_router.qtpl similarity index 91% rename from model/page_admin_site_router.qtpl rename to views/ybs/admin_site_router.qtpl index 7e96f2d..f0006b8 100644 --- a/model/page_admin_site_router.qtpl +++ b/views/ybs/admin_site_router.qtpl @@ -1,14 +1,3 @@ -// admin_login - -{% code -type AdminSiteRouter struct { - BasePage - TypeLst []string - ObjLst []CustomRouter - Obj CustomRouter -} -%} - {% func (p *AdminSiteRouter) MainBody() %}
    diff --git a/model/page_admin_site_router.qtpl.go b/views/ybs/admin_site_router.qtpl.go similarity index 50% rename from model/page_admin_site_router.qtpl.go rename to views/ybs/admin_site_router.qtpl.go index 39359d8..58b9bbe 100644 --- a/model/page_admin_site_router.qtpl.go +++ b/views/ybs/admin_site_router.qtpl.go @@ -1,85 +1,74 @@ -// Code generated by qtc from "page_admin_site_router.qtpl". DO NOT EDIT. +// Code generated by qtc from "admin_site_router.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/admin_site_router.qtpl:1 +package ybs -//line model/page_admin_site_router.qtpl:3 -package model - -//line model/page_admin_site_router.qtpl:3 +//line views/ybs/admin_site_router.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_admin_site_router.qtpl:3 +//line views/ybs/admin_site_router.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_admin_site_router.qtpl:4 -type AdminSiteRouter struct { - BasePage - TypeLst []string - ObjLst []CustomRouter - Obj CustomRouter -} - -//line model/page_admin_site_router.qtpl:12 +//line views/ybs/admin_site_router.qtpl:1 func (p *AdminSiteRouter) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_admin_site_router.qtpl:12 +//line views/ybs/admin_site_router.qtpl:1 qw422016.N().S(`

    `) -//line model/page_admin_site_router.qtpl:15 +//line views/ybs/admin_site_router.qtpl:4 qw422016.E().S(p.Title) -//line model/page_admin_site_router.qtpl:15 +//line views/ybs/admin_site_router.qtpl:4 qw422016.N().S(`

    @@ -92,46 +81,46 @@ func (p *AdminSiteRouter) StreamMainBody(qw422016 *qt422016.Writer) { 路径 - 类型 - 内容 `) -//line model/page_admin_site_router.qtpl:36 +//line views/ybs/admin_site_router.qtpl:25 for _, v := range p.ObjLst { -//line model/page_admin_site_router.qtpl:36 +//line views/ybs/admin_site_router.qtpl:25 qw422016.N().S(`
  • `) -//line model/page_admin_site_router.qtpl:38 +//line views/ybs/admin_site_router.qtpl:27 qw422016.E().S(v.Router) -//line model/page_admin_site_router.qtpl:38 +//line views/ybs/admin_site_router.qtpl:27 qw422016.N().S(` 【`) -//line model/page_admin_site_router.qtpl:38 +//line views/ybs/admin_site_router.qtpl:27 qw422016.E().S(v.MimeType) -//line model/page_admin_site_router.qtpl:38 +//line views/ybs/admin_site_router.qtpl:27 qw422016.N().S(`】

    `) -//line model/page_admin_site_router.qtpl:40 +//line views/ybs/admin_site_router.qtpl:29 qw422016.E().S(v.Content) -//line model/page_admin_site_router.qtpl:40 +//line views/ybs/admin_site_router.qtpl:29 qw422016.N().S(`

    编辑 删除
  • `) -//line model/page_admin_site_router.qtpl:45 +//line views/ybs/admin_site_router.qtpl:34 } -//line model/page_admin_site_router.qtpl:45 +//line views/ybs/admin_site_router.qtpl:34 qw422016.N().S(` @@ -139,31 +128,31 @@ func (p *AdminSiteRouter) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 } -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 func (p *AdminSiteRouter) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 p.StreamMainBody(qw422016) -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 qt422016.ReleaseWriter(qw422016) -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 } -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 func (p *AdminSiteRouter) MainBody() string { -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 p.WriteMainBody(qb422016) -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 qs422016 := string(qb422016.B) -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 return qs422016 -//line model/page_admin_site_router.qtpl:51 +//line views/ybs/admin_site_router.qtpl:40 } diff --git a/model/page_admin_topic_add.qtpl b/views/ybs/admin_topic_add.qtpl similarity index 96% rename from model/page_admin_topic_add.qtpl rename to views/ybs/admin_topic_add.qtpl index 37da094..8a1beaa 100644 --- a/model/page_admin_topic_add.qtpl +++ b/views/ybs/admin_topic_add.qtpl @@ -1,15 +1,3 @@ -// admin_login - -{% code -type AdminTopicAdd struct { - BasePage - DefaultTopic Topic // 编辑/添加 - DefaultUser User // 默认作者 - UserLst []User // 可选发表用户列表,管理员 - GoBack bool // 返回到编辑前页面 -} -%} - {% func (p *AdminTopicAdd) MainBody() %}
    diff --git a/model/page_admin_topic_add.qtpl.go b/views/ybs/admin_topic_add.qtpl.go similarity index 67% rename from model/page_admin_topic_add.qtpl.go rename to views/ybs/admin_topic_add.qtpl.go index 01ef899..78de722 100644 --- a/model/page_admin_topic_add.qtpl.go +++ b/views/ybs/admin_topic_add.qtpl.go @@ -1,189 +1,177 @@ -// Code generated by qtc from "page_admin_topic_add.qtpl". DO NOT EDIT. +// Code generated by qtc from "admin_topic_add.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/admin_topic_add.qtpl:1 +package ybs -//line model/page_admin_topic_add.qtpl:3 -package model - -//line model/page_admin_topic_add.qtpl:3 +//line views/ybs/admin_topic_add.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_admin_topic_add.qtpl:3 +//line views/ybs/admin_topic_add.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_admin_topic_add.qtpl:4 -type AdminTopicAdd struct { - BasePage - DefaultTopic Topic // 编辑/添加 - DefaultUser User // 默认作者 - UserLst []User // 可选发表用户列表,管理员 - GoBack bool // 返回到编辑前页面 -} - -//line model/page_admin_topic_add.qtpl:13 +//line views/ybs/admin_topic_add.qtpl:1 func (p *AdminTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_admin_topic_add.qtpl:13 +//line views/ybs/admin_topic_add.qtpl:1 qw422016.N().S(`
    `) -//line model/page_admin_topic_add.qtpl:16 +//line views/ybs/admin_topic_add.qtpl:4 if p.PageName == "admin_topic_review" && len(p.DefaultTopic.Title) == 0 { -//line model/page_admin_topic_add.qtpl:16 +//line views/ybs/admin_topic_add.qtpl:4 qw422016.N().S(`

    没有 `) -//line model/page_admin_topic_add.qtpl:17 +//line views/ybs/admin_topic_add.qtpl:5 qw422016.E().S(p.Title) -//line model/page_admin_topic_add.qtpl:17 +//line views/ybs/admin_topic_add.qtpl:5 qw422016.N().S(`

    `) -//line model/page_admin_topic_add.qtpl:18 +//line views/ybs/admin_topic_add.qtpl:6 } else { -//line model/page_admin_topic_add.qtpl:18 +//line views/ybs/admin_topic_add.qtpl:6 qw422016.N().S(`

    `) -//line model/page_admin_topic_add.qtpl:20 +//line views/ybs/admin_topic_add.qtpl:8 qw422016.E().S(p.Title) -//line model/page_admin_topic_add.qtpl:20 +//line views/ybs/admin_topic_add.qtpl:8 qw422016.N().S(` `) -//line model/page_admin_topic_add.qtpl:21 +//line views/ybs/admin_topic_add.qtpl:9 if len(p.DefaultTopic.Title) > 0 && p.PageName == "admin_topic_edit" { -//line model/page_admin_topic_add.qtpl:21 +//line views/ybs/admin_topic_add.qtpl:9 qw422016.N().S(` 删除 `) -//line model/page_admin_topic_add.qtpl:23 +//line views/ybs/admin_topic_add.qtpl:11 } -//line model/page_admin_topic_add.qtpl:23 +//line views/ybs/admin_topic_add.qtpl:11 qw422016.N().S(`

    `) -//line model/page_admin_topic_add.qtpl:25 +//line views/ybs/admin_topic_add.qtpl:13 qw422016.E().S(p.DefaultTopic.Tags) -//line model/page_admin_topic_add.qtpl:25 +//line views/ybs/admin_topic_add.qtpl:13 qw422016.N().S(`

    `) -//line model/page_admin_topic_add.qtpl:35 +//line views/ybs/admin_topic_add.qtpl:23 if p.CurrentUser.Flag >= 99 { -//line model/page_admin_topic_add.qtpl:35 +//line views/ybs/admin_topic_add.qtpl:23 qw422016.N().S(` `) -//line model/page_admin_topic_add.qtpl:42 +//line views/ybs/admin_topic_add.qtpl:30 } else { -//line model/page_admin_topic_add.qtpl:42 +//line views/ybs/admin_topic_add.qtpl:30 qw422016.N().S(` `) -//line model/page_admin_topic_add.qtpl:45 +//line views/ybs/admin_topic_add.qtpl:33 } -//line model/page_admin_topic_add.qtpl:45 +//line views/ybs/admin_topic_add.qtpl:33 qw422016.N().S(`
    @@ -191,15 +179,15 @@ func (p *AdminTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { `) -//line model/page_admin_topic_add.qtpl:51 +//line views/ybs/admin_topic_add.qtpl:39 if p.PageName == "admin_topic_review" { -//line model/page_admin_topic_add.qtpl:51 +//line views/ybs/admin_topic_add.qtpl:39 qw422016.N().S(` 直接删除 `) -//line model/page_admin_topic_add.qtpl:53 +//line views/ybs/admin_topic_add.qtpl:41 } -//line model/page_admin_topic_add.qtpl:53 +//line views/ybs/admin_topic_add.qtpl:41 qw422016.N().S(`
    @@ -265,40 +253,40 @@ func (p *AdminTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { submitEle.setAttribute("disabled", "disabled"); postAjax("/admin/topic/add", JSON.stringify({"Act": "submit", "ID": `) -//line model/page_admin_topic_add.qtpl:117 +//line views/ybs/admin_topic_add.qtpl:105 qw422016.N().DUL(p.DefaultTopic.ID) -//line model/page_admin_topic_add.qtpl:117 +//line views/ybs/admin_topic_add.qtpl:105 qw422016.N().S(`, "NodeId": parseInt(nodeEle.value, 10), "Title": title, "Content": con, "UserId": parseInt(userIdEle.value, 10), "AddTime": parseInt(addTimeEle.value.trim(), 10)}), function(data){ var obj = JSON.parse(data) //console.log(obj); if(obj.Code === 200) { msgEle.style.display = "none"; `) -//line model/page_admin_topic_add.qtpl:122 +//line views/ybs/admin_topic_add.qtpl:110 if p.GoBack { -//line model/page_admin_topic_add.qtpl:122 +//line views/ybs/admin_topic_add.qtpl:110 qw422016.N().S(` window.location.href = "/t/`) -//line model/page_admin_topic_add.qtpl:123 +//line views/ybs/admin_topic_add.qtpl:111 qw422016.N().DUL(p.DefaultTopic.ID) -//line model/page_admin_topic_add.qtpl:123 +//line views/ybs/admin_topic_add.qtpl:111 qw422016.N().S(`"; return `) -//line model/page_admin_topic_add.qtpl:125 +//line views/ybs/admin_topic_add.qtpl:113 } -//line model/page_admin_topic_add.qtpl:125 +//line views/ybs/admin_topic_add.qtpl:113 qw422016.N().S(` `) -//line model/page_admin_topic_add.qtpl:126 +//line views/ybs/admin_topic_add.qtpl:114 if p.PageName == "admin_topic_review" { -//line model/page_admin_topic_add.qtpl:126 +//line views/ybs/admin_topic_add.qtpl:114 qw422016.N().S(` window.location.href = "/admin/topic/review"; `) -//line model/page_admin_topic_add.qtpl:128 +//line views/ybs/admin_topic_add.qtpl:116 } else { -//line model/page_admin_topic_add.qtpl:128 +//line views/ybs/admin_topic_add.qtpl:116 qw422016.N().S(` if(data.Tid > 0){ window.location.href = "/t/"+data.Tid; @@ -306,9 +294,9 @@ func (p *AdminTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { window.location.href = "/admin/my/topic"; } `) -//line model/page_admin_topic_add.qtpl:134 +//line views/ybs/admin_topic_add.qtpl:122 } -//line model/page_admin_topic_add.qtpl:134 +//line views/ybs/admin_topic_add.qtpl:122 qw422016.N().S(` return false; } else if(obj.Code === 201){ @@ -318,9 +306,9 @@ func (p *AdminTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { conEle.value = ""; window.location.href = "/member/`) -//line model/page_admin_topic_add.qtpl:142 +//line views/ybs/admin_topic_add.qtpl:130 qw422016.N().DUL(p.CurrentUser.ID) -//line model/page_admin_topic_add.qtpl:142 +//line views/ybs/admin_topic_add.qtpl:130 qw422016.N().S(`"; return false; }else{ @@ -369,39 +357,39 @@ func (p *AdminTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { `) -//line model/page_admin_topic_add.qtpl:189 +//line views/ybs/admin_topic_add.qtpl:177 } -//line model/page_admin_topic_add.qtpl:189 +//line views/ybs/admin_topic_add.qtpl:177 qw422016.N().S(`
    `) -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 } -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 func (p *AdminTopicAdd) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 p.StreamMainBody(qw422016) -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 qt422016.ReleaseWriter(qw422016) -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 } -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 func (p *AdminTopicAdd) MainBody() string { -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 p.WriteMainBody(qb422016) -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 qs422016 := string(qb422016.B) -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 return qs422016 -//line model/page_admin_topic_add.qtpl:193 +//line views/ybs/admin_topic_add.qtpl:181 } diff --git a/model/page_admin_user.qtpl b/views/ybs/admin_user.qtpl similarity index 95% rename from model/page_admin_user.qtpl rename to views/ybs/admin_user.qtpl index 34eacf6..6e442f5 100644 --- a/model/page_admin_user.qtpl +++ b/views/ybs/admin_user.qtpl @@ -1,15 +1,3 @@ -// admin_login - -{% code -type AdminUser struct { - BasePage - Act string // 行为名称,添加/编辑 - User User - UserLst []User - FlagLst []Flag -} -%} - {% func (p *AdminUser) MainBody() %}
    diff --git a/model/page_admin_user.qtpl.go b/views/ybs/admin_user.qtpl.go similarity index 63% rename from model/page_admin_user.qtpl.go rename to views/ybs/admin_user.qtpl.go index e885f24..12032e9 100644 --- a/model/page_admin_user.qtpl.go +++ b/views/ybs/admin_user.qtpl.go @@ -1,44 +1,32 @@ -// Code generated by qtc from "page_admin_user.qtpl". DO NOT EDIT. +// Code generated by qtc from "admin_user.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/admin_user.qtpl:1 +package ybs -//line model/page_admin_user.qtpl:3 -package model - -//line model/page_admin_user.qtpl:3 +//line views/ybs/admin_user.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_admin_user.qtpl:3 +//line views/ybs/admin_user.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_admin_user.qtpl:4 -type AdminUser struct { - BasePage - Act string // 行为名称,添加/编辑 - User User - UserLst []User - FlagLst []Flag -} - -//line model/page_admin_user.qtpl:13 +//line views/ybs/admin_user.qtpl:1 func (p *AdminUser) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_admin_user.qtpl:13 +//line views/ybs/admin_user.qtpl:1 qw422016.N().S(`

    `) -//line model/page_admin_user.qtpl:16 +//line views/ybs/admin_user.qtpl:4 qw422016.E().S(p.Title) -//line model/page_admin_user.qtpl:16 +//line views/ybs/admin_user.qtpl:4 qw422016.N().S(`

    @@ -48,23 +36,23 @@ func (p *AdminUser) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_admin_user.qtpl:24 +//line views/ybs/admin_user.qtpl:12 qw422016.E().S(p.Act) -//line model/page_admin_user.qtpl:24 +//line views/ybs/admin_user.qtpl:12 qw422016.N().S(` 用户 `) -//line model/page_admin_user.qtpl:25 +//line views/ybs/admin_user.qtpl:13 if p.User.ID > 0 { -//line model/page_admin_user.qtpl:25 +//line views/ybs/admin_user.qtpl:13 qw422016.N().S(` `)
-//line model/page_admin_user.qtpl:26
+//line views/ybs/admin_user.qtpl:14
 		qw422016.E().S(p.User.Name)
-//line model/page_admin_user.qtpl:26
+//line views/ybs/admin_user.qtpl:14
 		qw422016.N().S(` avatar `) -//line model/page_admin_user.qtpl:54 +//line views/ybs/admin_user.qtpl:42 } -//line model/page_admin_user.qtpl:54 +//line views/ybs/admin_user.qtpl:42 qw422016.N().S(`

    Flag: `) -//line model/page_admin_user.qtpl:57 +//line views/ybs/admin_user.qtpl:45 for _, item := range p.FlagLst { -//line model/page_admin_user.qtpl:57 +//line views/ybs/admin_user.qtpl:45 qw422016.N().S(` `) -//line model/page_admin_user.qtpl:58 +//line views/ybs/admin_user.qtpl:46 qw422016.E().S(item.Name) -//line model/page_admin_user.qtpl:58 +//line views/ybs/admin_user.qtpl:46 qw422016.N().S(`, `) -//line model/page_admin_user.qtpl:59 +//line views/ybs/admin_user.qtpl:47 } -//line model/page_admin_user.qtpl:59 +//line views/ybs/admin_user.qtpl:47 qw422016.N().S(`

    @@ -129,9 +117,9 @@ func (p *AdminUser) StreamMainBody(qw422016 *qt422016.Writer) {
    @@ -144,31 +132,31 @@ func (p *AdminUser) StreamMainBody(qw422016 *qt422016.Writer) {
    @@ -178,14 +166,14 @@ func (p *AdminUser) StreamMainBody(qw422016 *qt422016.Writer) {
    @@ -201,72 +189,72 @@ func (p *AdminUser) StreamMainBody(qw422016 *qt422016.Writer) { ID - Name - Flag - Url - About `) -//line model/page_admin_user.qtpl:101 +//line views/ybs/admin_user.qtpl:89 for _, v := range p.UserLst { -//line model/page_admin_user.qtpl:101 +//line views/ybs/admin_user.qtpl:89 qw422016.N().S(`
  • `) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.N().DUL(v.ID) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.N().S(` - `) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.E().S(v.Name) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.N().S(` - `) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.N().D(v.Flag) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.N().S(` - `) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.E().S(v.Url) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.N().S(` - `) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.E().S(v.About) -//line model/page_admin_user.qtpl:103 +//line views/ybs/admin_user.qtpl:91 qw422016.N().S(`
  • `) -//line model/page_admin_user.qtpl:105 +//line views/ybs/admin_user.qtpl:93 } -//line model/page_admin_user.qtpl:105 +//line views/ybs/admin_user.qtpl:93 qw422016.N().S(`
    `) -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 } -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 func (p *AdminUser) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 p.StreamMainBody(qw422016) -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 qt422016.ReleaseWriter(qw422016) -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 } -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 func (p *AdminUser) MainBody() string { -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 p.WriteMainBody(qb422016) -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 qs422016 := string(qb422016.B) -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 return qs422016 -//line model/page_admin_user.qtpl:110 +//line views/ybs/admin_user.qtpl:98 } diff --git a/views/ybs/all_page_date.go b/views/ybs/all_page_date.go new file mode 100644 index 0000000..d823f79 --- /dev/null +++ b/views/ybs/all_page_date.go @@ -0,0 +1,165 @@ +package ybs + +import "goyoubbs/model" + +type ( + //BasePage 页面基本信息 + BasePage struct { + SiteCf *model.SiteConf + CurrentUser model.User + Title string + Breadcrumbs string + Keywords string + Description string + Canonical string + Authorized bool // 合法的,已登录 + PageName string // index/post_add/post_detail/... + HasMsg bool // 有站内信息 + HasTopicReview bool // 有帖子要审核 + HasReplyReview bool // 有评论要审核 + ShowAutoAd bool + + ShowPostTopAd bool + ShowPostBotAd bool + ShowSideAd bool + //TopRate []model.ArticleSimple + //RecentLst []model.ArticleSimple + CloseSidebar bool // 关闭边栏 + TagCloud []model.TagFontSize // 边栏 tag cloud + JsonLd string + NodeLst []model.Node // 边栏 分类 + RangeTopicLst []model.TopicLi // 边栏显示最近被浏览的文章 + RecentComment []model.CommentFmt // 边栏最近评论内容 + LinkLst []model.Link // 边栏 链接 + SiteInfo model.SiteInfo // 边栏 站点信息 + DefaultNode model.Node // 默认发帖节点,当前文章所属的分类 + } + + //NormalRsp 通用响应信息 + NormalRsp struct { + Code int + Msg string + } + + //TopicLstPage 首页、节点、tag、搜索 的文章列表 + TopicLstPage struct { + BasePage + Q string + Tag string + TopicPageInfo model.TopicPageInfo + } + + //TopicDetailPage 文章详情页 + TopicDetailPage struct { + BasePage + TopicFmt model.TopicFmt + NewTopic model.TopicLi // 新一篇文章 + OldTopic model.TopicLi // 旧一篇文章 + TagLst []model.TagFontSize // tags + CommentLst []model.CommentFmt // 评论列表 + } + + //AdminBasePage admin + AdminBasePage struct { + BasePage + } + + AdminCommentEdit struct { + BasePage + DefaultTopic model.Topic // 编辑/添加 + DefaultUser model.User // 默认作者 + DefaultComment model.CommentFmt + GoBack bool // 返回到编辑前页面 + } + + AdminLink struct { + BasePage + Act string // 行为名称,添加/编辑 + Link model.Link + } + + AdminNode struct { + BasePage + Act string // 行为名称,添加/编辑 + Node model.Node // 分区 + } + + AdminSiteConfig struct { + BasePage + SiteConf model.SiteConf + } + + AdminSiteRouter struct { + BasePage + TypeLst []string + ObjLst []model.CustomRouter + Obj model.CustomRouter + } + + AdminTopicAdd struct { + BasePage + DefaultTopic model.Topic // 编辑/添加 + DefaultUser model.User // 默认作者 + UserLst []model.User // 可选发表用户列表,管理员 + GoBack bool // 返回到编辑前页面 + } + + AdminUser struct { + BasePage + Act string // 行为名称,添加/编辑 + User model.User + UserLst []model.User + FlagLst []model.Flag + } + + HomePage struct { + TopicLstPage + } + + MemberPage struct { + TopicLstPage + UserFmt model.UserFmt + LstType string + TitleText string + CommentReviewLst []model.CommentReview // 待评论信息 + TopicLst []model.TopicRecForm // 待审核帖子列表 + } + + MyMsg struct { + BasePage + TopicPageInfo model.TopicPageInfoMsg + } + + NodePage struct { + TopicLstPage + } + + SearchPage struct { + TopicLstPage + } + + TagPage struct { + TopicLstPage + } + + UserTopicAdd struct { + BasePage + DefaultTopic model.Topic // 编辑/添加 + DefaultUser model.User // 默认作者 + UserLst []model.User // 可选发表用户列表,管理员 + } + + UserLogin struct { + BasePage + Act string + Token string + CaptchaId string + HasOtherAuth bool + DefaultName string + } + + UserSetting struct { + BasePage + User model.User + } +) diff --git a/model/page_base.qtpl b/views/ybs/base.qtpl similarity index 100% rename from model/page_base.qtpl rename to views/ybs/base.qtpl diff --git a/model/page_base.qtpl.go b/views/ybs/base.qtpl.go similarity index 60% rename from model/page_base.qtpl.go rename to views/ybs/base.qtpl.go index 15eec9f..682f6fb 100644 --- a/model/page_base.qtpl.go +++ b/views/ybs/base.qtpl.go @@ -1,80 +1,80 @@ -// Code generated by qtc from "page_base.qtpl". DO NOT EDIT. +// Code generated by qtc from "base.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. // This is a base page template. All the other template pages implement this interface. // -//line model/page_base.qtpl:3 -package model +//line views/ybs/base.qtpl:3 +package ybs -//line model/page_base.qtpl:3 +//line views/ybs/base.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_base.qtpl:3 +//line views/ybs/base.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 type Page interface { -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 Header() string -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 StreamHeader(qw422016 *qt422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 WriteHeader(qq422016 qtio422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 Banner() string -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 StreamBanner(qw422016 *qt422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 WriteBanner(qq422016 qtio422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 MainBodyNav() string -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 StreamMainBodyNav(qw422016 *qt422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 WriteMainBodyNav(qq422016 qtio422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 MainBody() string -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 StreamMainBody(qw422016 *qt422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 WriteMainBody(qq422016 qtio422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 Aside() string -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 StreamAside(qw422016 *qt422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 WriteAside(qq422016 qtio422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 Footer() string -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 StreamFooter(qw422016 *qt422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 WriteFooter(qq422016 qtio422016.Writer) -//line model/page_base.qtpl:4 +//line views/ybs/base.qtpl:4 } // Page prints a page implementing Page interface. -//line model/page_base.qtpl:15 +//line views/ybs/base.qtpl:15 func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) { -//line model/page_base.qtpl:15 +//line views/ybs/base.qtpl:15 qw422016.N().S(` `) -//line model/page_base.qtpl:20 +//line views/ybs/base.qtpl:20 p.StreamHeader(qw422016) -//line model/page_base.qtpl:20 +//line views/ybs/base.qtpl:20 qw422016.N().S(` @@ -98,9 +98,9 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) { @@ -111,15 +111,15 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
    `) -//line model/page_base.qtpl:51 +//line views/ybs/base.qtpl:51 p.StreamMainBodyNav(qw422016) -//line model/page_base.qtpl:51 +//line views/ybs/base.qtpl:51 qw422016.N().S(` `) -//line model/page_base.qtpl:53 +//line views/ybs/base.qtpl:53 p.StreamMainBody(qw422016) -//line model/page_base.qtpl:53 +//line views/ybs/base.qtpl:53 qw422016.N().S(`
    @@ -127,9 +127,9 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
    `) -//line model/page_base.qtpl:59 +//line views/ybs/base.qtpl:59 p.StreamAside(qw422016) -//line model/page_base.qtpl:59 +//line views/ybs/base.qtpl:59 qw422016.N().S(`
    @@ -138,9 +138,9 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
    `) -//line model/page_base.qtpl:66 +//line views/ybs/base.qtpl:66 p.StreamFooter(qw422016) -//line model/page_base.qtpl:66 +//line views/ybs/base.qtpl:66 qw422016.N().S(`
    @@ -160,410 +160,410 @@ function handleScroll() { `) -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 } -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 func WritePageTemplate(qq422016 qtio422016.Writer, p Page) { -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 StreamPageTemplate(qw422016, p) -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 qt422016.ReleaseWriter(qw422016) -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 } -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 func PageTemplate(p Page) string { -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 WritePageTemplate(qb422016, p) -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 qs422016 := string(qb422016.B) -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 return qs422016 -//line model/page_base.qtpl:84 +//line views/ybs/base.qtpl:84 } // Header bg -//line model/page_base.qtpl:88 +//line views/ybs/base.qtpl:88 func (p *BasePage) StreamHeader(qw422016 *qt422016.Writer) { -//line model/page_base.qtpl:88 +//line views/ybs/base.qtpl:88 qw422016.N().S(` `) -//line model/page_base.qtpl:89 +//line views/ybs/base.qtpl:89 qw422016.E().S(p.Title) -//line model/page_base.qtpl:89 +//line views/ybs/base.qtpl:89 qw422016.N().S(` `) -//line model/page_base.qtpl:95 +//line views/ybs/base.qtpl:95 if len(p.JsonLd) > 0 { -//line model/page_base.qtpl:95 +//line views/ybs/base.qtpl:95 qw422016.N().S(` `) -//line model/page_base.qtpl:99 +//line views/ybs/base.qtpl:99 } -//line model/page_base.qtpl:99 +//line views/ybs/base.qtpl:99 qw422016.N().S(` `) -//line model/page_base.qtpl:101 +//line views/ybs/base.qtpl:101 if p.ShowAutoAd && len(p.SiteCf.GoogleAutoAdJs) > 0 { -//line model/page_base.qtpl:101 +//line views/ybs/base.qtpl:101 qw422016.N().S(` `) -//line model/page_base.qtpl:102 +//line views/ybs/base.qtpl:102 qw422016.N().S(p.SiteCf.GoogleAutoAdJs) -//line model/page_base.qtpl:102 +//line views/ybs/base.qtpl:102 qw422016.N().S(` `) -//line model/page_base.qtpl:103 +//line views/ybs/base.qtpl:103 } -//line model/page_base.qtpl:103 +//line views/ybs/base.qtpl:103 qw422016.N().S(` `) -//line model/page_base.qtpl:105 +//line views/ybs/base.qtpl:105 if len(p.SiteCf.HeaderPartCon) > 0 { -//line model/page_base.qtpl:105 +//line views/ybs/base.qtpl:105 qw422016.N().S(` `) -//line model/page_base.qtpl:106 +//line views/ybs/base.qtpl:106 qw422016.N().S(p.SiteCf.HeaderPartCon) -//line model/page_base.qtpl:106 +//line views/ybs/base.qtpl:106 qw422016.N().S(` `) -//line model/page_base.qtpl:107 +//line views/ybs/base.qtpl:107 } -//line model/page_base.qtpl:107 +//line views/ybs/base.qtpl:107 qw422016.N().S(` `) -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 } -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 func (p *BasePage) WriteHeader(qq422016 qtio422016.Writer) { -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 p.StreamHeader(qw422016) -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 qt422016.ReleaseWriter(qw422016) -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 } -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 func (p *BasePage) Header() string { -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 p.WriteHeader(qb422016) -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 qs422016 := string(qb422016.B) -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 return qs422016 -//line model/page_base.qtpl:109 +//line views/ybs/base.qtpl:109 } // Header ed // // Banner bg -//line model/page_base.qtpl:113 +//line views/ybs/base.qtpl:113 func (p *BasePage) StreamBanner(qw422016 *qt422016.Writer) { -//line model/page_base.qtpl:113 +//line views/ybs/base.qtpl:113 qw422016.N().S(` `) -//line model/page_base.qtpl:114 +//line views/ybs/base.qtpl:114 qw422016.E().S(p.SiteCf.Name) -//line model/page_base.qtpl:114 +//line views/ybs/base.qtpl:114 qw422016.N().S(` `) -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 } -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 func (p *BasePage) WriteBanner(qq422016 qtio422016.Writer) { -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 p.StreamBanner(qw422016) -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 qt422016.ReleaseWriter(qw422016) -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 } -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 func (p *BasePage) Banner() string { -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 p.WriteBanner(qb422016) -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 qs422016 := string(qb422016.B) -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 return qs422016 -//line model/page_base.qtpl:124 +//line views/ybs/base.qtpl:124 } // Banner ed // // MainBodyNav bg -//line model/page_base.qtpl:128 +//line views/ybs/base.qtpl:128 func (p *BasePage) StreamMainBodyNav(qw422016 *qt422016.Writer) { -//line model/page_base.qtpl:128 +//line views/ybs/base.qtpl:128 qw422016.N().S(` `) -//line model/page_base.qtpl:129 +//line views/ybs/base.qtpl:129 if p.CurrentUser.ID > 0 { -//line model/page_base.qtpl:129 +//line views/ybs/base.qtpl:129 qw422016.N().S(`
    `) -//line model/page_base.qtpl:132 +//line views/ybs/base.qtpl:132 if p.CurrentUser.Flag == 0 { -//line model/page_base.qtpl:132 +//line views/ybs/base.qtpl:132 qw422016.N().S(` 您已被管理员禁用 `) -//line model/page_base.qtpl:134 +//line views/ybs/base.qtpl:134 } else { -//line model/page_base.qtpl:134 +//line views/ybs/base.qtpl:134 qw422016.N().S(` `) -//line model/page_base.qtpl:135 +//line views/ybs/base.qtpl:135 if p.CurrentUser.Flag == 1 { -//line model/page_base.qtpl:135 +//line views/ybs/base.qtpl:135 qw422016.N().S(` 请等待管理员审核 `) -//line model/page_base.qtpl:137 +//line views/ybs/base.qtpl:137 } -//line model/page_base.qtpl:137 +//line views/ybs/base.qtpl:137 qw422016.N().S(` `) -//line model/page_base.qtpl:138 +//line views/ybs/base.qtpl:138 if p.CurrentUser.Flag >= 5 { -//line model/page_base.qtpl:138 +//line views/ybs/base.qtpl:138 qw422016.N().S(` `) -//line model/page_base.qtpl:139 +//line views/ybs/base.qtpl:139 if p.HasMsg { -//line model/page_base.qtpl:139 +//line views/ybs/base.qtpl:139 qw422016.N().S(` 未读信息 `) -//line model/page_base.qtpl:141 +//line views/ybs/base.qtpl:141 } -//line model/page_base.qtpl:141 +//line views/ybs/base.qtpl:141 qw422016.N().S(` 发帖 `) -//line model/page_base.qtpl:143 +//line views/ybs/base.qtpl:143 } -//line model/page_base.qtpl:143 +//line views/ybs/base.qtpl:143 qw422016.N().S(` `) -//line model/page_base.qtpl:144 +//line views/ybs/base.qtpl:144 if p.CurrentUser.Flag >= 99 { -//line model/page_base.qtpl:144 +//line views/ybs/base.qtpl:144 qw422016.N().S(` `) -//line model/page_base.qtpl:145 +//line views/ybs/base.qtpl:145 if p.HasTopicReview { -//line model/page_base.qtpl:145 +//line views/ybs/base.qtpl:145 qw422016.N().S(` 审帖 `) -//line model/page_base.qtpl:147 +//line views/ybs/base.qtpl:147 } -//line model/page_base.qtpl:147 +//line views/ybs/base.qtpl:147 qw422016.N().S(` `) -//line model/page_base.qtpl:148 +//line views/ybs/base.qtpl:148 if p.HasReplyReview { -//line model/page_base.qtpl:148 +//line views/ybs/base.qtpl:148 qw422016.N().S(` 审评 `) -//line model/page_base.qtpl:150 +//line views/ybs/base.qtpl:150 } -//line model/page_base.qtpl:150 +//line views/ybs/base.qtpl:150 qw422016.N().S(` 节点 用户 链接 设置 `) -//line model/page_base.qtpl:155 +//line views/ybs/base.qtpl:155 } -//line model/page_base.qtpl:155 +//line views/ybs/base.qtpl:155 qw422016.N().S(` `) -//line model/page_base.qtpl:156 +//line views/ybs/base.qtpl:156 } -//line model/page_base.qtpl:156 +//line views/ybs/base.qtpl:156 qw422016.N().S(`
    `) -//line model/page_base.qtpl:159 +//line views/ybs/base.qtpl:159 } -//line model/page_base.qtpl:159 +//line views/ybs/base.qtpl:159 qw422016.N().S(` `) -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 } -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 func (p *BasePage) WriteMainBodyNav(qq422016 qtio422016.Writer) { -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 p.StreamMainBodyNav(qw422016) -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 qt422016.ReleaseWriter(qw422016) -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 } -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 func (p *BasePage) MainBodyNav() string { -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 p.WriteMainBodyNav(qb422016) -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 qs422016 := string(qb422016.B) -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 return qs422016 -//line model/page_base.qtpl:160 +//line views/ybs/base.qtpl:160 } // MainBodyNav ed // // MainBody bg -//line model/page_base.qtpl:164 +//line views/ybs/base.qtpl:164 func (p *BasePage) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_base.qtpl:164 +//line views/ybs/base.qtpl:164 qw422016.N().S(` This is a base MainBody `) -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 } -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 func (p *BasePage) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 p.StreamMainBody(qw422016) -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 qt422016.ReleaseWriter(qw422016) -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 } -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 func (p *BasePage) MainBody() string { -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 p.WriteMainBody(qb422016) -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 qs422016 := string(qb422016.B) -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 return qs422016 -//line model/page_base.qtpl:166 +//line views/ybs/base.qtpl:166 } // MainBody ed // // Aside bg -//line model/page_base.qtpl:170 +//line views/ybs/base.qtpl:170 func (p *BasePage) StreamAside(qw422016 *qt422016.Writer) { -//line model/page_base.qtpl:170 +//line views/ybs/base.qtpl:170 qw422016.N().S(` @@ -843,96 +843,96 @@ ShowMoreNode(); `) -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 } -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 func (p *BasePage) WriteAside(qq422016 qtio422016.Writer) { -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 p.StreamAside(qw422016) -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 qt422016.ReleaseWriter(qw422016) -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 } -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 func (p *BasePage) Aside() string { -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 p.WriteAside(qb422016) -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 qs422016 := string(qb422016.B) -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 return qs422016 -//line model/page_base.qtpl:280 +//line views/ybs/base.qtpl:280 } // Aside ed // // Footer bg -//line model/page_base.qtpl:284 +//line views/ybs/base.qtpl:284 func (p *BasePage) StreamFooter(qw422016 *qt422016.Writer) { -//line model/page_base.qtpl:284 +//line views/ybs/base.qtpl:284 qw422016.N().S(`

    Copyright © `) -//line model/page_base.qtpl:286 +//line views/ybs/base.qtpl:286 qw422016.E().S(p.SiteCf.Name) -//line model/page_base.qtpl:286 +//line views/ybs/base.qtpl:286 qw422016.N().S(` - Powered by goYouBBS - ↑Go Top

    `) -//line model/page_base.qtpl:290 +//line views/ybs/base.qtpl:290 if len(p.SiteCf.FooterPartHtml) > 0 { -//line model/page_base.qtpl:290 +//line views/ybs/base.qtpl:290 qw422016.N().S(` `) -//line model/page_base.qtpl:291 +//line views/ybs/base.qtpl:291 qw422016.N().S(p.SiteCf.FooterPartHtml) -//line model/page_base.qtpl:291 +//line views/ybs/base.qtpl:291 qw422016.N().S(` `) -//line model/page_base.qtpl:292 +//line views/ybs/base.qtpl:292 } -//line model/page_base.qtpl:292 +//line views/ybs/base.qtpl:292 qw422016.N().S(` `) -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 } -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 func (p *BasePage) WriteFooter(qq422016 qtio422016.Writer) { -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 p.StreamFooter(qw422016) -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 qt422016.ReleaseWriter(qw422016) -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 } -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 func (p *BasePage) Footer() string { -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 p.WriteFooter(qb422016) -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 qs422016 := string(qb422016.B) -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 return qs422016 -//line model/page_base.qtpl:294 +//line views/ybs/base.qtpl:294 } // Footer ed diff --git a/model/page_home.qtpl b/views/ybs/home.qtpl similarity index 93% rename from model/page_home.qtpl rename to views/ybs/home.qtpl index 8a2dfbc..ae8ef7a 100644 --- a/model/page_home.qtpl +++ b/views/ybs/home.qtpl @@ -1,11 +1,3 @@ -// 首页文章列表,继承 TopicLstPage ,只修改 MainBody() - -{% code -type HomePage struct { - TopicLstPage -} -%} - {% func (p *HomePage) MainBody() %}
    diff --git a/model/page_home.qtpl.go b/views/ybs/home.qtpl.go similarity index 53% rename from model/page_home.qtpl.go rename to views/ybs/home.qtpl.go index 330929b..b7ef3d1 100644 --- a/model/page_home.qtpl.go +++ b/views/ybs/home.qtpl.go @@ -1,161 +1,153 @@ -// Code generated by qtc from "page_home.qtpl". DO NOT EDIT. +// Code generated by qtc from "home.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// 首页文章列表,继承 TopicLstPage ,只修改 MainBody() -// +//line views/ybs/home.qtpl:1 +package ybs -//line model/page_home.qtpl:3 -package model - -//line model/page_home.qtpl:3 +//line views/ybs/home.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_home.qtpl:3 +//line views/ybs/home.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_home.qtpl:4 -type HomePage struct { - TopicLstPage -} - -//line model/page_home.qtpl:9 +//line views/ybs/home.qtpl:1 func (p *HomePage) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_home.qtpl:9 +//line views/ybs/home.qtpl:1 qw422016.N().S(`
    `) -//line model/page_home.qtpl:13 +//line views/ybs/home.qtpl:5 for _, item := range p.TopicPageInfo.Items { -//line model/page_home.qtpl:13 +//line views/ybs/home.qtpl:5 qw422016.N().S(`
    `) -//line model/page_home.qtpl:17 +//line views/ybs/home.qtpl:9 if item.Comments > 0 { -//line model/page_home.qtpl:17 +//line views/ybs/home.qtpl:9 qw422016.N().S(` `)
-//line model/page_home.qtpl:18
+//line views/ybs/home.qtpl:10
 			qw422016.E().S(item.Title)
-//line model/page_home.qtpl:18
+//line views/ybs/home.qtpl:10
 			qw422016.N().S(` icon `) -//line model/page_home.qtpl:19 +//line views/ybs/home.qtpl:11 } else { -//line model/page_home.qtpl:19 +//line views/ybs/home.qtpl:11 qw422016.N().S(` `)
-//line model/page_home.qtpl:20
+//line views/ybs/home.qtpl:12
 			qw422016.E().S(item.Title)
-//line model/page_home.qtpl:20
+//line views/ybs/home.qtpl:12
 			qw422016.N().S(` icon `) -//line model/page_home.qtpl:21 +//line views/ybs/home.qtpl:13 } -//line model/page_home.qtpl:21 +//line views/ybs/home.qtpl:13 qw422016.N().S(`

    `) -//line model/page_home.qtpl:22 +//line views/ybs/home.qtpl:14 qw422016.E().S(item.Title) -//line model/page_home.qtpl:22 +//line views/ybs/home.qtpl:14 qw422016.N().S(`

    `) -//line model/page_home.qtpl:24 +//line views/ybs/home.qtpl:16 qw422016.E().S(item.NodeName) -//line model/page_home.qtpl:24 +//line views/ybs/home.qtpl:16 qw422016.N().S(` `) -//line model/page_home.qtpl:25 +//line views/ybs/home.qtpl:17 qw422016.E().S(item.AuthorName) -//line model/page_home.qtpl:25 +//line views/ybs/home.qtpl:17 qw422016.N().S(` `) -//line model/page_home.qtpl:27 +//line views/ybs/home.qtpl:19 if item.Comments > 0 { -//line model/page_home.qtpl:27 +//line views/ybs/home.qtpl:19 qw422016.N().S(` `) -//line model/page_home.qtpl:28 +//line views/ybs/home.qtpl:20 qw422016.N().DUL(item.Comments) -//line model/page_home.qtpl:28 +//line views/ybs/home.qtpl:20 qw422016.N().S(` `) -//line model/page_home.qtpl:29 +//line views/ybs/home.qtpl:21 } -//line model/page_home.qtpl:29 +//line views/ybs/home.qtpl:21 qw422016.N().S(`

    @@ -163,80 +155,80 @@ func (p *HomePage) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_home.qtpl:35 +//line views/ybs/home.qtpl:27 } -//line model/page_home.qtpl:35 +//line views/ybs/home.qtpl:27 qw422016.N().S(`
    `) -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 } -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 func (p *HomePage) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 p.StreamMainBody(qw422016) -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 qt422016.ReleaseWriter(qw422016) -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 } -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 func (p *HomePage) MainBody() string { -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 p.WriteMainBody(qb422016) -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 qs422016 := string(qb422016.B) -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 return qs422016 -//line model/page_home.qtpl:48 +//line views/ybs/home.qtpl:40 } diff --git a/model/page_member.qtpl b/views/ybs/member.qtpl similarity index 92% rename from model/page_member.qtpl rename to views/ybs/member.qtpl index b1b649b..abdfaaa 100644 --- a/model/page_member.qtpl +++ b/views/ybs/member.qtpl @@ -1,16 +1,3 @@ -// 首页文章列表,继承 TopicLstPage ,只修改 MainBody() - -{% code -type MemberPage struct { - TopicLstPage - UserFmt UserFmt - LstType string - TitleText string - CommentReviewLst []CommentReview // 待评论信息 - TopicLst []TopicRecForm // 待审核帖子列表 -} -%} - {% func (p *MemberPage) MainBody() %}
    diff --git a/model/page_member.qtpl.go b/views/ybs/member.qtpl.go similarity index 52% rename from model/page_member.qtpl.go rename to views/ybs/member.qtpl.go index 028f231..46a27f6 100644 --- a/model/page_member.qtpl.go +++ b/views/ybs/member.qtpl.go @@ -1,322 +1,309 @@ -// Code generated by qtc from "page_member.qtpl". DO NOT EDIT. +// Code generated by qtc from "member.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// 首页文章列表,继承 TopicLstPage ,只修改 MainBody() -// +//line views/ybs/member.qtpl:1 +package ybs -//line model/page_member.qtpl:3 -package model - -//line model/page_member.qtpl:3 +//line views/ybs/member.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_member.qtpl:3 +//line views/ybs/member.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_member.qtpl:4 -type MemberPage struct { - TopicLstPage - UserFmt UserFmt - LstType string - TitleText string - CommentReviewLst []CommentReview // 待评论信息 - TopicLst []TopicRecForm // 待审核帖子列表 -} - -//line model/page_member.qtpl:14 +//line views/ybs/member.qtpl:1 func (p *MemberPage) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_member.qtpl:14 +//line views/ybs/member.qtpl:1 qw422016.N().S(`
    `)
-//line model/page_member.qtpl:18
+//line views/ybs/member.qtpl:5
 	qw422016.E().S(p.UserFmt.Name)
-//line model/page_member.qtpl:18
+//line views/ybs/member.qtpl:5
 	qw422016.N().S(` avatar

    会员: `) -//line model/page_member.qtpl:20 +//line views/ybs/member.qtpl:7 qw422016.E().S(p.UserFmt.Name) -//line model/page_member.qtpl:20 +//line views/ybs/member.qtpl:7 qw422016.N().S(` `) -//line model/page_member.qtpl:21 +//line views/ybs/member.qtpl:8 if p.CurrentUser.Flag >= 99 { -//line model/page_member.qtpl:21 +//line views/ybs/member.qtpl:8 qw422016.N().S(` - Edit `) -//line model/page_member.qtpl:23 +//line views/ybs/member.qtpl:10 } -//line model/page_member.qtpl:23 +//line views/ybs/member.qtpl:10 qw422016.N().S(`

    `) -//line model/page_member.qtpl:36 +//line views/ybs/member.qtpl:23 if len(p.TopicLst) > 0 { -//line model/page_member.qtpl:36 +//line views/ybs/member.qtpl:23 qw422016.N().S(`

    待审核主题

      `) -//line model/page_member.qtpl:39 +//line views/ybs/member.qtpl:26 for _, item := range p.TopicLst { -//line model/page_member.qtpl:39 +//line views/ybs/member.qtpl:26 qw422016.N().S(`
    • [`) -//line model/page_member.qtpl:41 +//line views/ybs/member.qtpl:28 qw422016.E().S(item.AddTimeFmt) -//line model/page_member.qtpl:41 +//line views/ybs/member.qtpl:28 qw422016.N().S(`] `) -//line model/page_member.qtpl:41 +//line views/ybs/member.qtpl:28 qw422016.E().S(item.Title) -//line model/page_member.qtpl:41 +//line views/ybs/member.qtpl:28 qw422016.N().S(`
       
    • `) -//line model/page_member.qtpl:43 +//line views/ybs/member.qtpl:30 } -//line model/page_member.qtpl:43 +//line views/ybs/member.qtpl:30 qw422016.N().S(`
    `) -//line model/page_member.qtpl:45 +//line views/ybs/member.qtpl:32 } -//line model/page_member.qtpl:45 +//line views/ybs/member.qtpl:32 qw422016.N().S(` `) -//line model/page_member.qtpl:47 +//line views/ybs/member.qtpl:34 if len(p.CommentReviewLst) > 0 { -//line model/page_member.qtpl:47 +//line views/ybs/member.qtpl:34 qw422016.N().S(`

    待审核评论

    `) -//line model/page_member.qtpl:60 +//line views/ybs/member.qtpl:47 } -//line model/page_member.qtpl:60 +//line views/ybs/member.qtpl:47 qw422016.N().S(` `) -//line model/page_member.qtpl:62 +//line views/ybs/member.qtpl:49 for _, item := range p.TopicPageInfo.Items { -//line model/page_member.qtpl:62 +//line views/ybs/member.qtpl:49 qw422016.N().S(`
    `) -//line model/page_member.qtpl:66 +//line views/ybs/member.qtpl:53 if item.Comments > 0 { -//line model/page_member.qtpl:66 +//line views/ybs/member.qtpl:53 qw422016.N().S(` `)
-//line model/page_member.qtpl:67
+//line views/ybs/member.qtpl:54
 			qw422016.E().S(item.Title)
-//line model/page_member.qtpl:67
+//line views/ybs/member.qtpl:54
 			qw422016.N().S(` icon `) -//line model/page_member.qtpl:68 +//line views/ybs/member.qtpl:55 } else { -//line model/page_member.qtpl:68 +//line views/ybs/member.qtpl:55 qw422016.N().S(` `)
-//line model/page_member.qtpl:69
+//line views/ybs/member.qtpl:56
 			qw422016.E().S(item.Title)
-//line model/page_member.qtpl:69
+//line views/ybs/member.qtpl:56
 			qw422016.N().S(` icon `) -//line model/page_member.qtpl:70 +//line views/ybs/member.qtpl:57 } -//line model/page_member.qtpl:70 +//line views/ybs/member.qtpl:57 qw422016.N().S(`

    `) -//line model/page_member.qtpl:71 +//line views/ybs/member.qtpl:58 qw422016.E().S(item.Title) -//line model/page_member.qtpl:71 +//line views/ybs/member.qtpl:58 qw422016.N().S(`

    `) -//line model/page_member.qtpl:73 +//line views/ybs/member.qtpl:60 qw422016.E().S(item.NodeName) -//line model/page_member.qtpl:73 +//line views/ybs/member.qtpl:60 qw422016.N().S(` `) -//line model/page_member.qtpl:74 +//line views/ybs/member.qtpl:61 qw422016.E().S(item.AuthorName) -//line model/page_member.qtpl:74 +//line views/ybs/member.qtpl:61 qw422016.N().S(` `) -//line model/page_member.qtpl:76 +//line views/ybs/member.qtpl:63 if item.Comments > 0 { -//line model/page_member.qtpl:76 +//line views/ybs/member.qtpl:63 qw422016.N().S(` `) -//line model/page_member.qtpl:77 +//line views/ybs/member.qtpl:64 qw422016.N().DUL(item.Comments) -//line model/page_member.qtpl:77 +//line views/ybs/member.qtpl:64 qw422016.N().S(` `) -//line model/page_member.qtpl:78 +//line views/ybs/member.qtpl:65 } -//line model/page_member.qtpl:78 +//line views/ybs/member.qtpl:65 qw422016.N().S(`

    @@ -324,88 +311,88 @@ func (p *MemberPage) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_member.qtpl:84 +//line views/ybs/member.qtpl:71 } -//line model/page_member.qtpl:84 +//line views/ybs/member.qtpl:71 qw422016.N().S(`
    `) -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 } -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 func (p *MemberPage) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 p.StreamMainBody(qw422016) -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 qt422016.ReleaseWriter(qw422016) -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 } -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 func (p *MemberPage) MainBody() string { -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 p.WriteMainBody(qb422016) -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 qs422016 := string(qb422016.B) -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 return qs422016 -//line model/page_member.qtpl:97 +//line views/ybs/member.qtpl:84 } diff --git a/model/page_my_msg.qtpl b/views/ybs/my_msg.qtpl similarity index 93% rename from model/page_my_msg.qtpl rename to views/ybs/my_msg.qtpl index 1f14f68..801d6a0 100644 --- a/model/page_my_msg.qtpl +++ b/views/ybs/my_msg.qtpl @@ -1,12 +1,3 @@ -// admin_login - -{% code -type MyMsg struct { - BasePage - TopicPageInfo TopicPageInfoMsg -} -%} - {% func (p *MyMsg) MainBody() %}
    diff --git a/model/page_my_msg.qtpl.go b/views/ybs/my_msg.qtpl.go similarity index 52% rename from model/page_my_msg.qtpl.go rename to views/ybs/my_msg.qtpl.go index f3a17e7..cf1bf73 100644 --- a/model/page_my_msg.qtpl.go +++ b/views/ybs/my_msg.qtpl.go @@ -1,132 +1,123 @@ -// Code generated by qtc from "page_my_msg.qtpl". DO NOT EDIT. +// Code generated by qtc from "my_msg.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/my_msg.qtpl:1 +package ybs -//line model/page_my_msg.qtpl:3 -package model - -//line model/page_my_msg.qtpl:3 +//line views/ybs/my_msg.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_my_msg.qtpl:3 +//line views/ybs/my_msg.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_my_msg.qtpl:4 -type MyMsg struct { - BasePage - TopicPageInfo TopicPageInfoMsg -} - -//line model/page_my_msg.qtpl:10 +//line views/ybs/my_msg.qtpl:1 func (p *MyMsg) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_my_msg.qtpl:10 +//line views/ybs/my_msg.qtpl:1 qw422016.N().S(`

    `) -//line model/page_my_msg.qtpl:13 +//line views/ybs/my_msg.qtpl:4 qw422016.E().S(p.Title) -//line model/page_my_msg.qtpl:13 +//line views/ybs/my_msg.qtpl:4 qw422016.N().S(`

    有人在下面帖子回复里 @ 了你,请及时前往查看

    `) -//line model/page_my_msg.qtpl:16 +//line views/ybs/my_msg.qtpl:7 for _, item := range p.TopicPageInfo.Items { -//line model/page_my_msg.qtpl:16 +//line views/ybs/my_msg.qtpl:7 qw422016.N().S(`
    `)
-//line model/page_my_msg.qtpl:20
+//line views/ybs/my_msg.qtpl:11
 		qw422016.E().S(item.AuthorName)
-//line model/page_my_msg.qtpl:20
+//line views/ybs/my_msg.qtpl:11
 		qw422016.N().S(` avatar

    `) -//line model/page_my_msg.qtpl:21 +//line views/ybs/my_msg.qtpl:12 qw422016.E().S(item.Title) -//line model/page_my_msg.qtpl:21 +//line views/ybs/my_msg.qtpl:12 qw422016.N().S(`

    `) -//line model/page_my_msg.qtpl:23 +//line views/ybs/my_msg.qtpl:14 qw422016.E().S(item.NodeName) -//line model/page_my_msg.qtpl:23 +//line views/ybs/my_msg.qtpl:14 qw422016.N().S(` `) -//line model/page_my_msg.qtpl:24 +//line views/ybs/my_msg.qtpl:15 qw422016.E().S(item.AuthorName) -//line model/page_my_msg.qtpl:24 +//line views/ybs/my_msg.qtpl:15 qw422016.N().S(` `) -//line model/page_my_msg.qtpl:26 +//line views/ybs/my_msg.qtpl:17 if item.Comments > 0 { -//line model/page_my_msg.qtpl:26 +//line views/ybs/my_msg.qtpl:17 qw422016.N().S(` `) -//line model/page_my_msg.qtpl:27 +//line views/ybs/my_msg.qtpl:18 qw422016.N().DUL(item.Comments) -//line model/page_my_msg.qtpl:27 +//line views/ybs/my_msg.qtpl:18 qw422016.N().S(` `) -//line model/page_my_msg.qtpl:28 +//line views/ybs/my_msg.qtpl:19 } -//line model/page_my_msg.qtpl:28 +//line views/ybs/my_msg.qtpl:19 qw422016.N().S(`

    @@ -134,59 +125,59 @@ func (p *MyMsg) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_my_msg.qtpl:34 +//line views/ybs/my_msg.qtpl:25 } -//line model/page_my_msg.qtpl:34 +//line views/ybs/my_msg.qtpl:25 qw422016.N().S(`
    `) -//line model/page_my_msg.qtpl:37 +//line views/ybs/my_msg.qtpl:28 if len(p.TopicPageInfo.Items) == 10 { -//line model/page_my_msg.qtpl:37 +//line views/ybs/my_msg.qtpl:28 qw422016.N().S(` * 以上只显示最早 10 条信息 `) -//line model/page_my_msg.qtpl:39 +//line views/ybs/my_msg.qtpl:30 } else { -//line model/page_my_msg.qtpl:39 +//line views/ybs/my_msg.qtpl:30 qw422016.N().S(`   `) -//line model/page_my_msg.qtpl:41 +//line views/ybs/my_msg.qtpl:32 } -//line model/page_my_msg.qtpl:41 +//line views/ybs/my_msg.qtpl:32 qw422016.N().S(`
    `) -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 } -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 func (p *MyMsg) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 p.StreamMainBody(qw422016) -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 qt422016.ReleaseWriter(qw422016) -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 } -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 func (p *MyMsg) MainBody() string { -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 p.WriteMainBody(qb422016) -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 qs422016 := string(qb422016.B) -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 return qs422016 -//line model/page_my_msg.qtpl:46 +//line views/ybs/my_msg.qtpl:37 } diff --git a/model/page_node.qtpl b/views/ybs/node.qtpl similarity index 94% rename from model/page_node.qtpl rename to views/ybs/node.qtpl index 62561cf..4a2e2d1 100644 --- a/model/page_node.qtpl +++ b/views/ybs/node.qtpl @@ -1,11 +1,3 @@ -// 节点文章列表,继承 TopicLstPage ,只修改 MainBody() - -{% code -type NodePage struct { - TopicLstPage -} -%} - {% func (p *NodePage) MainBody() %}
    diff --git a/model/page_node.qtpl.go b/views/ybs/node.qtpl.go similarity index 53% rename from model/page_node.qtpl.go rename to views/ybs/node.qtpl.go index e003054..752e6c0 100644 --- a/model/page_node.qtpl.go +++ b/views/ybs/node.qtpl.go @@ -1,169 +1,161 @@ -// Code generated by qtc from "page_node.qtpl". DO NOT EDIT. +// Code generated by qtc from "node.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// 节点文章列表,继承 TopicLstPage ,只修改 MainBody() -// +//line views/ybs/node.qtpl:1 +package ybs -//line model/page_node.qtpl:3 -package model - -//line model/page_node.qtpl:3 +//line views/ybs/node.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_node.qtpl:3 +//line views/ybs/node.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_node.qtpl:4 -type NodePage struct { - TopicLstPage -} - -//line model/page_node.qtpl:9 +//line views/ybs/node.qtpl:1 func (p *NodePage) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_node.qtpl:9 +//line views/ybs/node.qtpl:1 qw422016.N().S(`

    Category: `) -//line model/page_node.qtpl:14 +//line views/ybs/node.qtpl:6 qw422016.E().S(p.DefaultNode.Name) -//line model/page_node.qtpl:14 +//line views/ybs/node.qtpl:6 qw422016.N().S(`

    `) -//line model/page_node.qtpl:17 +//line views/ybs/node.qtpl:9 for _, item := range p.TopicPageInfo.Items { -//line model/page_node.qtpl:17 +//line views/ybs/node.qtpl:9 qw422016.N().S(`
    `) -//line model/page_node.qtpl:21 +//line views/ybs/node.qtpl:13 if item.Comments > 0 { -//line model/page_node.qtpl:21 +//line views/ybs/node.qtpl:13 qw422016.N().S(` `)
-//line model/page_node.qtpl:22
+//line views/ybs/node.qtpl:14
 			qw422016.E().S(item.Title)
-//line model/page_node.qtpl:22
+//line views/ybs/node.qtpl:14
 			qw422016.N().S(` icon `) -//line model/page_node.qtpl:23 +//line views/ybs/node.qtpl:15 } else { -//line model/page_node.qtpl:23 +//line views/ybs/node.qtpl:15 qw422016.N().S(` `)
-//line model/page_node.qtpl:24
+//line views/ybs/node.qtpl:16
 			qw422016.E().S(item.Title)
-//line model/page_node.qtpl:24
+//line views/ybs/node.qtpl:16
 			qw422016.N().S(` icon `) -//line model/page_node.qtpl:25 +//line views/ybs/node.qtpl:17 } -//line model/page_node.qtpl:25 +//line views/ybs/node.qtpl:17 qw422016.N().S(`

    `) -//line model/page_node.qtpl:26 +//line views/ybs/node.qtpl:18 qw422016.E().S(item.Title) -//line model/page_node.qtpl:26 +//line views/ybs/node.qtpl:18 qw422016.N().S(`

    `) -//line model/page_node.qtpl:28 +//line views/ybs/node.qtpl:20 qw422016.E().S(item.NodeName) -//line model/page_node.qtpl:28 +//line views/ybs/node.qtpl:20 qw422016.N().S(` `) -//line model/page_node.qtpl:29 +//line views/ybs/node.qtpl:21 qw422016.E().S(item.AuthorName) -//line model/page_node.qtpl:29 +//line views/ybs/node.qtpl:21 qw422016.N().S(` `) -//line model/page_node.qtpl:31 +//line views/ybs/node.qtpl:23 if item.Comments > 0 { -//line model/page_node.qtpl:31 +//line views/ybs/node.qtpl:23 qw422016.N().S(` `) -//line model/page_node.qtpl:32 +//line views/ybs/node.qtpl:24 qw422016.N().DUL(item.Comments) -//line model/page_node.qtpl:32 +//line views/ybs/node.qtpl:24 qw422016.N().S(` `) -//line model/page_node.qtpl:33 +//line views/ybs/node.qtpl:25 } -//line model/page_node.qtpl:33 +//line views/ybs/node.qtpl:25 qw422016.N().S(`

    @@ -171,88 +163,88 @@ func (p *NodePage) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_node.qtpl:39 +//line views/ybs/node.qtpl:31 } -//line model/page_node.qtpl:39 +//line views/ybs/node.qtpl:31 qw422016.N().S(`
    `) -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 } -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 func (p *NodePage) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 p.StreamMainBody(qw422016) -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 qt422016.ReleaseWriter(qw422016) -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 } -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 func (p *NodePage) MainBody() string { -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 p.WriteMainBody(qb422016) -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 qs422016 := string(qb422016.B) -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 return qs422016 -//line model/page_node.qtpl:52 +//line views/ybs/node.qtpl:44 } diff --git a/model/page_search.qtpl b/views/ybs/search.qtpl similarity index 91% rename from model/page_search.qtpl rename to views/ybs/search.qtpl index 6ae8014..9dd622a 100644 --- a/model/page_search.qtpl +++ b/views/ybs/search.qtpl @@ -1,11 +1,3 @@ -// 搜索文章列表(同首页),继承 TopicLstPage ,只修改 MainBody() - -{% code -type SearchPage struct { - TopicLstPage -} -%} - {% func (p *SearchPage) MainBody() %}
    diff --git a/model/page_search.qtpl.go b/views/ybs/search.qtpl.go similarity index 52% rename from model/page_search.qtpl.go rename to views/ybs/search.qtpl.go index a24b1e9..b5c1d2f 100644 --- a/model/page_search.qtpl.go +++ b/views/ybs/search.qtpl.go @@ -1,33 +1,25 @@ -// Code generated by qtc from "page_search.qtpl". DO NOT EDIT. +// Code generated by qtc from "search.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// 搜索文章列表(同首页),继承 TopicLstPage ,只修改 MainBody() -// +//line views/ybs/search.qtpl:1 +package ybs -//line model/page_search.qtpl:3 -package model - -//line model/page_search.qtpl:3 +//line views/ybs/search.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_search.qtpl:3 +//line views/ybs/search.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_search.qtpl:4 -type SearchPage struct { - TopicLstPage -} - -//line model/page_search.qtpl:9 +//line views/ybs/search.qtpl:1 func (p *SearchPage) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_search.qtpl:9 +//line views/ybs/search.qtpl:1 qw422016.N().S(`
    @@ -35,185 +27,185 @@ func (p *SearchPage) StreamMainBody(qw422016 *qt422016.Writer) {

    Search: `) -//line model/page_search.qtpl:15 +//line views/ybs/search.qtpl:7 qw422016.E().S(p.Q) -//line model/page_search.qtpl:15 +//line views/ybs/search.qtpl:7 qw422016.N().S(`

    `) -//line model/page_search.qtpl:19 +//line views/ybs/search.qtpl:11 for _, item := range p.TopicPageInfo.Items { -//line model/page_search.qtpl:19 +//line views/ybs/search.qtpl:11 qw422016.N().S(`
    `) -//line model/page_search.qtpl:23 +//line views/ybs/search.qtpl:15 if item.Comments > 0 { -//line model/page_search.qtpl:23 +//line views/ybs/search.qtpl:15 qw422016.N().S(` `)
-//line model/page_search.qtpl:24
+//line views/ybs/search.qtpl:16
 			qw422016.E().S(item.Title)
-//line model/page_search.qtpl:24
+//line views/ybs/search.qtpl:16
 			qw422016.N().S(` icon `) -//line model/page_search.qtpl:25 +//line views/ybs/search.qtpl:17 } else { -//line model/page_search.qtpl:25 +//line views/ybs/search.qtpl:17 qw422016.N().S(` `)
-//line model/page_search.qtpl:26
+//line views/ybs/search.qtpl:18
 			qw422016.E().S(item.Title)
-//line model/page_search.qtpl:26
+//line views/ybs/search.qtpl:18
 			qw422016.N().S(` icon `) -//line model/page_search.qtpl:27 +//line views/ybs/search.qtpl:19 } -//line model/page_search.qtpl:27 +//line views/ybs/search.qtpl:19 qw422016.N().S(`

    `) -//line model/page_search.qtpl:28 +//line views/ybs/search.qtpl:20 qw422016.E().S(item.Title) -//line model/page_search.qtpl:28 +//line views/ybs/search.qtpl:20 qw422016.N().S(`

    in `) -//line model/page_search.qtpl:31 +//line views/ybs/search.qtpl:23 qw422016.E().S(item.NodeName) -//line model/page_search.qtpl:31 +//line views/ybs/search.qtpl:23 qw422016.N().S(` by `) -//line model/page_search.qtpl:32 +//line views/ybs/search.qtpl:24 qw422016.E().S(item.AuthorName) -//line model/page_search.qtpl:32 +//line views/ybs/search.qtpl:24 qw422016.N().S(` `) -//line model/page_search.qtpl:33 +//line views/ybs/search.qtpl:25 if item.Comments > 0 { -//line model/page_search.qtpl:33 +//line views/ybs/search.qtpl:25 qw422016.N().S(` `) -//line model/page_search.qtpl:34 +//line views/ybs/search.qtpl:26 qw422016.N().DUL(item.Comments) -//line model/page_search.qtpl:34 +//line views/ybs/search.qtpl:26 qw422016.N().S(` `) -//line model/page_search.qtpl:35 +//line views/ybs/search.qtpl:27 } -//line model/page_search.qtpl:35 +//line views/ybs/search.qtpl:27 qw422016.N().S(`

    `) -//line model/page_search.qtpl:40 +//line views/ybs/search.qtpl:32 qw422016.E().S(item.FirstCon) -//line model/page_search.qtpl:40 +//line views/ybs/search.qtpl:32 qw422016.N().S(`
    `) -//line model/page_search.qtpl:45 +//line views/ybs/search.qtpl:37 } -//line model/page_search.qtpl:45 +//line views/ybs/search.qtpl:37 qw422016.N().S(`
    `) -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 } -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 func (p *SearchPage) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 p.StreamMainBody(qw422016) -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 qt422016.ReleaseWriter(qw422016) -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 } -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 func (p *SearchPage) MainBody() string { -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 p.WriteMainBody(qb422016) -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 qs422016 := string(qb422016.B) -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 return qs422016 -//line model/page_search.qtpl:49 +//line views/ybs/search.qtpl:41 } diff --git a/model/page_tag.qtpl b/views/ybs/tag.qtpl similarity index 94% rename from model/page_tag.qtpl rename to views/ybs/tag.qtpl index e613187..be41ec6 100644 --- a/model/page_tag.qtpl +++ b/views/ybs/tag.qtpl @@ -1,11 +1,3 @@ -// tag 文章列表,继承 TopicLstPage ,只修改 MainBody() - -{% code -type TagPage struct { - TopicLstPage -} -%} - {% func (p *TagPage) MainBody() %}
    diff --git a/model/page_tag.qtpl.go b/views/ybs/tag.qtpl.go similarity index 54% rename from model/page_tag.qtpl.go rename to views/ybs/tag.qtpl.go index c0e580a..987e4d5 100644 --- a/model/page_tag.qtpl.go +++ b/views/ybs/tag.qtpl.go @@ -1,168 +1,160 @@ -// Code generated by qtc from "page_tag.qtpl". DO NOT EDIT. +// Code generated by qtc from "tag.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// tag 文章列表,继承 TopicLstPage ,只修改 MainBody() -// +//line views/ybs/tag.qtpl:1 +package ybs -//line model/page_tag.qtpl:3 -package model - -//line model/page_tag.qtpl:3 +//line views/ybs/tag.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_tag.qtpl:3 +//line views/ybs/tag.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_tag.qtpl:4 -type TagPage struct { - TopicLstPage -} - -//line model/page_tag.qtpl:9 +//line views/ybs/tag.qtpl:1 func (p *TagPage) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_tag.qtpl:9 +//line views/ybs/tag.qtpl:1 qw422016.N().S(`

    Tag: `) -//line model/page_tag.qtpl:13 +//line views/ybs/tag.qtpl:5 qw422016.E().S(p.Tag) -//line model/page_tag.qtpl:13 +//line views/ybs/tag.qtpl:5 qw422016.N().S(`

    `) -//line model/page_tag.qtpl:16 +//line views/ybs/tag.qtpl:8 for _, item := range p.TopicPageInfo.Items { -//line model/page_tag.qtpl:16 +//line views/ybs/tag.qtpl:8 qw422016.N().S(`
    `) -//line model/page_tag.qtpl:20 +//line views/ybs/tag.qtpl:12 if item.Comments > 0 { -//line model/page_tag.qtpl:20 +//line views/ybs/tag.qtpl:12 qw422016.N().S(` `)
-//line model/page_tag.qtpl:21
+//line views/ybs/tag.qtpl:13
 			qw422016.E().S(item.Title)
-//line model/page_tag.qtpl:21
+//line views/ybs/tag.qtpl:13
 			qw422016.N().S(` icon `) -//line model/page_tag.qtpl:22 +//line views/ybs/tag.qtpl:14 } else { -//line model/page_tag.qtpl:22 +//line views/ybs/tag.qtpl:14 qw422016.N().S(` `)
-//line model/page_tag.qtpl:23
+//line views/ybs/tag.qtpl:15
 			qw422016.E().S(item.Title)
-//line model/page_tag.qtpl:23
+//line views/ybs/tag.qtpl:15
 			qw422016.N().S(` icon `) -//line model/page_tag.qtpl:24 +//line views/ybs/tag.qtpl:16 } -//line model/page_tag.qtpl:24 +//line views/ybs/tag.qtpl:16 qw422016.N().S(`

    `) -//line model/page_tag.qtpl:25 +//line views/ybs/tag.qtpl:17 qw422016.E().S(item.Title) -//line model/page_tag.qtpl:25 +//line views/ybs/tag.qtpl:17 qw422016.N().S(`

    `) -//line model/page_tag.qtpl:27 +//line views/ybs/tag.qtpl:19 qw422016.E().S(item.NodeName) -//line model/page_tag.qtpl:27 +//line views/ybs/tag.qtpl:19 qw422016.N().S(` `) -//line model/page_tag.qtpl:28 +//line views/ybs/tag.qtpl:20 qw422016.E().S(item.AuthorName) -//line model/page_tag.qtpl:28 +//line views/ybs/tag.qtpl:20 qw422016.N().S(` `) -//line model/page_tag.qtpl:30 +//line views/ybs/tag.qtpl:22 if item.Comments > 0 { -//line model/page_tag.qtpl:30 +//line views/ybs/tag.qtpl:22 qw422016.N().S(` `) -//line model/page_tag.qtpl:31 +//line views/ybs/tag.qtpl:23 qw422016.N().DUL(item.Comments) -//line model/page_tag.qtpl:31 +//line views/ybs/tag.qtpl:23 qw422016.N().S(` `) -//line model/page_tag.qtpl:32 +//line views/ybs/tag.qtpl:24 } -//line model/page_tag.qtpl:32 +//line views/ybs/tag.qtpl:24 qw422016.N().S(`

    @@ -170,87 +162,87 @@ func (p *TagPage) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_tag.qtpl:38 +//line views/ybs/tag.qtpl:30 } -//line model/page_tag.qtpl:38 +//line views/ybs/tag.qtpl:30 qw422016.N().S(`
    `) -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 } -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 func (p *TagPage) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 p.StreamMainBody(qw422016) -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 qt422016.ReleaseWriter(qw422016) -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 } -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 func (p *TagPage) MainBody() string { -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 p.WriteMainBody(qb422016) -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 qs422016 := string(qb422016.B) -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 return qs422016 -//line model/page_tag.qtpl:50 +//line views/ybs/tag.qtpl:42 } diff --git a/model/page_topic_add.qtpl b/views/ybs/topic_add.qtpl similarity index 97% rename from model/page_topic_add.qtpl rename to views/ybs/topic_add.qtpl index 62b0f5a..7a1c153 100644 --- a/model/page_topic_add.qtpl +++ b/views/ybs/topic_add.qtpl @@ -1,14 +1,3 @@ -// admin_login - -{% code -type UserTopicAdd struct { - BasePage - DefaultTopic Topic // 编辑/添加 - DefaultUser User // 默认作者 - UserLst []User // 可选发表用户列表,管理员 -} -%} - {% func (p *UserTopicAdd) MainBody() %}

    {%s p.Title %}

    diff --git a/model/page_topic_add.qtpl.go b/views/ybs/topic_add.qtpl.go similarity index 73% rename from model/page_topic_add.qtpl.go rename to views/ybs/topic_add.qtpl.go index 6d243f4..2a09111 100644 --- a/model/page_topic_add.qtpl.go +++ b/views/ybs/topic_add.qtpl.go @@ -1,150 +1,139 @@ -// Code generated by qtc from "page_topic_add.qtpl". DO NOT EDIT. +// Code generated by qtc from "topic_add.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/topic_add.qtpl:1 +package ybs -//line model/page_topic_add.qtpl:3 -package model - -//line model/page_topic_add.qtpl:3 +//line views/ybs/topic_add.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_topic_add.qtpl:3 +//line views/ybs/topic_add.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_topic_add.qtpl:4 -type UserTopicAdd struct { - BasePage - DefaultTopic Topic // 编辑/添加 - DefaultUser User // 默认作者 - UserLst []User // 可选发表用户列表,管理员 -} - -//line model/page_topic_add.qtpl:12 +//line views/ybs/topic_add.qtpl:1 func (p *UserTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_topic_add.qtpl:12 +//line views/ybs/topic_add.qtpl:1 qw422016.N().S(`

    `) -//line model/page_topic_add.qtpl:14 +//line views/ybs/topic_add.qtpl:3 qw422016.E().S(p.Title) -//line model/page_topic_add.qtpl:14 +//line views/ybs/topic_add.qtpl:3 qw422016.N().S(`

    `) -//line model/page_topic_add.qtpl:24 +//line views/ybs/topic_add.qtpl:13 if p.CurrentUser.Flag >= 99 { -//line model/page_topic_add.qtpl:24 +//line views/ybs/topic_add.qtpl:13 qw422016.N().S(` `) -//line model/page_topic_add.qtpl:31 +//line views/ybs/topic_add.qtpl:20 } else { -//line model/page_topic_add.qtpl:31 +//line views/ybs/topic_add.qtpl:20 qw422016.N().S(` `) -//line model/page_topic_add.qtpl:34 +//line views/ybs/topic_add.qtpl:23 } -//line model/page_topic_add.qtpl:34 +//line views/ybs/topic_add.qtpl:23 qw422016.N().S(`
    @@ -230,9 +219,9 @@ func (p *UserTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { conEle.value = ""; window.location.href = "/member/`) -//line model/page_topic_add.qtpl:118 +//line views/ybs/topic_add.qtpl:107 qw422016.N().DUL(p.CurrentUser.ID) -//line model/page_topic_add.qtpl:118 +//line views/ybs/topic_add.qtpl:107 qw422016.N().S(`"; return; }else{ @@ -246,9 +235,9 @@ func (p *UserTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { } `) -//line model/page_topic_add.qtpl:130 +//line views/ybs/topic_add.qtpl:119 if !p.SiteCf.UploadLimit || (p.SiteCf.UploadLimit && p.CurrentUser.Flag >= 99) { -//line model/page_topic_add.qtpl:130 +//line views/ybs/topic_add.qtpl:119 qw422016.N().S(` document.addEventListener('paste', function (evt) { var url = "/file/upload"; @@ -284,9 +273,9 @@ func (p *UserTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) { }); `) -//line model/page_topic_add.qtpl:164 +//line views/ybs/topic_add.qtpl:153 } -//line model/page_topic_add.qtpl:164 +//line views/ybs/topic_add.qtpl:153 qw422016.N().S(` @@ -294,31 +283,31 @@ func (p *UserTopicAdd) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 } -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 func (p *UserTopicAdd) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 p.StreamMainBody(qw422016) -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 qt422016.ReleaseWriter(qw422016) -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 } -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 func (p *UserTopicAdd) MainBody() string { -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 p.WriteMainBody(qb422016) -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 qs422016 := string(qb422016.B) -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 return qs422016 -//line model/page_topic_add.qtpl:170 +//line views/ybs/topic_add.qtpl:159 } diff --git a/model/page_topic_detail.qtpl b/views/ybs/topic_detail.qtpl similarity index 99% rename from model/page_topic_detail.qtpl rename to views/ybs/topic_detail.qtpl index fd69315..59a3ea4 100644 --- a/model/page_topic_detail.qtpl +++ b/views/ybs/topic_detail.qtpl @@ -1,5 +1,3 @@ -// 文章详情页,继承 BasePage ,只修改 MainBody() - {% func (p *TopicDetailPage) MainBody() %}
    diff --git a/model/page_topic_detail.qtpl.go b/views/ybs/topic_detail.qtpl.go similarity index 70% rename from model/page_topic_detail.qtpl.go rename to views/ybs/topic_detail.qtpl.go index 7124fe0..1062302 100644 --- a/model/page_topic_detail.qtpl.go +++ b/views/ybs/topic_detail.qtpl.go @@ -1,28 +1,25 @@ -// Code generated by qtc from "page_topic_detail.qtpl". DO NOT EDIT. +// Code generated by qtc from "topic_detail.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// 文章详情页,继承 BasePage ,只修改 MainBody() -// +//line views/ybs/topic_detail.qtpl:1 +package ybs -//line model/page_topic_detail.qtpl:3 -package model - -//line model/page_topic_detail.qtpl:3 +//line views/ybs/topic_detail.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_topic_detail.qtpl:3 +//line views/ybs/topic_detail.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_topic_detail.qtpl:3 +//line views/ybs/topic_detail.qtpl:1 func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_topic_detail.qtpl:3 +//line views/ybs/topic_detail.qtpl:1 qw422016.N().S(`
    @@ -30,111 +27,111 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) {
    `)
-//line model/page_topic_detail.qtpl:9
+//line views/ybs/topic_detail.qtpl:7
 	qw422016.E().S(p.TopicFmt.Name)
-//line model/page_topic_detail.qtpl:9
+//line views/ybs/topic_detail.qtpl:7
 	qw422016.N().S(` avatar

    `) -//line model/page_topic_detail.qtpl:11 +//line views/ybs/topic_detail.qtpl:9 qw422016.E().S(p.TopicFmt.Title) -//line model/page_topic_detail.qtpl:11 +//line views/ybs/topic_detail.qtpl:9 qw422016.N().S(`

    `) -//line model/page_topic_detail.qtpl:14 +//line views/ybs/topic_detail.qtpl:12 qw422016.N().S(p.TopicFmt.ClockEmoji) -//line model/page_topic_detail.qtpl:14 +//line views/ybs/topic_detail.qtpl:12 qw422016.N().S(` by `) -//line model/page_topic_detail.qtpl:15 +//line views/ybs/topic_detail.qtpl:13 qw422016.E().S(p.TopicFmt.Name) -//line model/page_topic_detail.qtpl:15 +//line views/ybs/topic_detail.qtpl:13 qw422016.N().S(` `) -//line model/page_topic_detail.qtpl:16 +//line views/ybs/topic_detail.qtpl:14 if p.CurrentUser.Flag >= 99 { -//line model/page_topic_detail.qtpl:16 +//line views/ybs/topic_detail.qtpl:14 qw422016.N().S(` • Edit `) -//line model/page_topic_detail.qtpl:18 +//line views/ybs/topic_detail.qtpl:16 } -//line model/page_topic_detail.qtpl:18 +//line views/ybs/topic_detail.qtpl:16 qw422016.N().S(`

    `) -//line model/page_topic_detail.qtpl:23 +//line views/ybs/topic_detail.qtpl:21 qw422016.N().S(p.TopicFmt.ContentFmt) -//line model/page_topic_detail.qtpl:23 +//line views/ybs/topic_detail.qtpl:21 qw422016.N().S(`
    `) -//line model/page_topic_detail.qtpl:26 +//line views/ybs/topic_detail.qtpl:24 if len(p.TopicFmt.Relative) > 0 { -//line model/page_topic_detail.qtpl:26 +//line views/ybs/topic_detail.qtpl:24 qw422016.N().S(`

    💘 相关文章

    `) -//line model/page_topic_detail.qtpl:35 +//line views/ybs/topic_detail.qtpl:33 } -//line model/page_topic_detail.qtpl:35 +//line views/ybs/topic_detail.qtpl:33 qw422016.N().S(`
    @@ -142,97 +139,97 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) {

    📁 Category: `) -//line model/page_topic_detail.qtpl:41 +//line views/ybs/topic_detail.qtpl:39 qw422016.E().S(p.DefaultNode.Name) -//line model/page_topic_detail.qtpl:41 +//line views/ybs/topic_detail.qtpl:39 qw422016.N().S(` `) -//line model/page_topic_detail.qtpl:43 +//line views/ybs/topic_detail.qtpl:41 if len(p.TagLst) > 0 { -//line model/page_topic_detail.qtpl:43 +//line views/ybs/topic_detail.qtpl:41 qw422016.N().S(` 🏷️ Tags: `) -//line model/page_topic_detail.qtpl:45 +//line views/ybs/topic_detail.qtpl:43 for _, tag := range p.TagLst { -//line model/page_topic_detail.qtpl:45 +//line views/ybs/topic_detail.qtpl:43 qw422016.N().S(` `) -//line model/page_topic_detail.qtpl:47 +//line views/ybs/topic_detail.qtpl:45 } -//line model/page_topic_detail.qtpl:47 +//line views/ybs/topic_detail.qtpl:45 qw422016.N().S(` `) -//line model/page_topic_detail.qtpl:49 +//line views/ybs/topic_detail.qtpl:47 } -//line model/page_topic_detail.qtpl:49 +//line views/ybs/topic_detail.qtpl:47 qw422016.N().S(` 💬 Comments (`) -//line model/page_topic_detail.qtpl:51 +//line views/ybs/topic_detail.qtpl:49 qw422016.N().DUL(p.TopicFmt.Comments) -//line model/page_topic_detail.qtpl:51 +//line views/ybs/topic_detail.qtpl:49 qw422016.N().S(`) 😊 PageView (`) -//line model/page_topic_detail.qtpl:51 +//line views/ybs/topic_detail.qtpl:49 qw422016.N().DUL(p.TopicFmt.Views) -//line model/page_topic_detail.qtpl:51 +//line views/ybs/topic_detail.qtpl:49 qw422016.N().S(`)

    @@ -241,123 +238,123 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) { `) -//line model/page_topic_detail.qtpl:68 +//line views/ybs/topic_detail.qtpl:66 if len(p.CommentLst) > 0 { -//line model/page_topic_detail.qtpl:68 +//line views/ybs/topic_detail.qtpl:66 qw422016.N().S(`

    评论

    共`) -//line model/page_topic_detail.qtpl:72 +//line views/ybs/topic_detail.qtpl:70 qw422016.N().DUL(p.TopicFmt.Comments) -//line model/page_topic_detail.qtpl:72 +//line views/ybs/topic_detail.qtpl:70 qw422016.N().S(`条关于"`) -//line model/page_topic_detail.qtpl:72 +//line views/ybs/topic_detail.qtpl:70 qw422016.E().S(p.TopicFmt.Title) -//line model/page_topic_detail.qtpl:72 +//line views/ybs/topic_detail.qtpl:70 qw422016.N().S(`"的评论

    `) -//line model/page_topic_detail.qtpl:73 +//line views/ybs/topic_detail.qtpl:71 for _, item := range p.CommentLst { -//line model/page_topic_detail.qtpl:73 +//line views/ybs/topic_detail.qtpl:71 qw422016.N().S(`
    `)
-//line model/page_topic_detail.qtpl:76
+//line views/ybs/topic_detail.qtpl:74
 			qw422016.E().S(item.Name)
-//line model/page_topic_detail.qtpl:76
+//line views/ybs/topic_detail.qtpl:74
 			qw422016.N().S(` avatar
    #`) -//line model/page_topic_detail.qtpl:78 +//line views/ybs/topic_detail.qtpl:76 qw422016.N().DUL(item.ID) -//line model/page_topic_detail.qtpl:78 +//line views/ybs/topic_detail.qtpl:76 qw422016.N().S(` `) -//line model/page_topic_detail.qtpl:78 +//line views/ybs/topic_detail.qtpl:76 qw422016.E().S(item.Name) -//line model/page_topic_detail.qtpl:78 +//line views/ybs/topic_detail.qtpl:76 qw422016.N().S(` `) -//line model/page_topic_detail.qtpl:79 +//line views/ybs/topic_detail.qtpl:77 if p.CurrentUser.Flag >= 99 { -//line model/page_topic_detail.qtpl:79 +//line views/ybs/topic_detail.qtpl:77 qw422016.N().S(` Edit `) -//line model/page_topic_detail.qtpl:81 +//line views/ybs/topic_detail.qtpl:79 } -//line model/page_topic_detail.qtpl:81 +//line views/ybs/topic_detail.qtpl:79 qw422016.N().S(` 回复
    `) -//line model/page_topic_detail.qtpl:88 +//line views/ybs/topic_detail.qtpl:86 qw422016.N().S(item.ContentFmt) -//line model/page_topic_detail.qtpl:88 +//line views/ybs/topic_detail.qtpl:86 qw422016.N().S(`
    `) -//line model/page_topic_detail.qtpl:91 +//line views/ybs/topic_detail.qtpl:89 } -//line model/page_topic_detail.qtpl:91 +//line views/ybs/topic_detail.qtpl:89 qw422016.N().S(`
    `) -//line model/page_topic_detail.qtpl:94 +//line views/ybs/topic_detail.qtpl:92 } -//line model/page_topic_detail.qtpl:94 +//line views/ybs/topic_detail.qtpl:92 qw422016.N().S(`
    @@ -365,14 +362,14 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_topic_detail.qtpl:101 +//line views/ybs/topic_detail.qtpl:99 if p.CurrentUser.ID > 0 { -//line model/page_topic_detail.qtpl:101 +//line views/ybs/topic_detail.qtpl:99 qw422016.N().S(`
    @@ -380,15 +377,15 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_topic_detail.qtpl:107 +//line views/ybs/topic_detail.qtpl:105 } else { -//line model/page_topic_detail.qtpl:107 +//line views/ybs/topic_detail.qtpl:105 qw422016.N().S(` 登录发表评论 `) -//line model/page_topic_detail.qtpl:109 +//line views/ybs/topic_detail.qtpl:107 } -//line model/page_topic_detail.qtpl:109 +//line views/ybs/topic_detail.qtpl:107 qw422016.N().S(`
    @@ -402,9 +399,9 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) { var reviewEle = document.getElementById("id-preview"); `) -//line model/page_topic_detail.qtpl:121 +//line views/ybs/topic_detail.qtpl:119 if p.CurrentUser.ID > 0 { -//line model/page_topic_detail.qtpl:121 +//line views/ybs/topic_detail.qtpl:119 qw422016.N().S(` function previewComment() { var con = conEle.value.trim(); @@ -433,9 +430,9 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) { return } postAjax("/t/`) -//line model/page_topic_detail.qtpl:148 +//line views/ybs/topic_detail.qtpl:146 qw422016.N().DUL(p.TopicFmt.ID) -//line model/page_topic_detail.qtpl:148 +//line views/ybs/topic_detail.qtpl:146 qw422016.N().S(`", JSON.stringify({Content: con, ReplyId: toReplyId}), function(data){ var obj = JSON.parse(data) msgEle.innerText = obj.Msg; @@ -444,17 +441,17 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) { toReplyId = 0; if(obj.Code === 200) { window.location.href = "/t/`) -//line model/page_topic_detail.qtpl:155 +//line views/ybs/topic_detail.qtpl:153 qw422016.N().DUL(p.TopicFmt.ID) -//line model/page_topic_detail.qtpl:155 +//line views/ybs/topic_detail.qtpl:153 qw422016.N().S(`#r"+obj.Tid; window.location.reload(true); return; } else if (obj.Code === 201) { window.location.href = "/member/`) -//line model/page_topic_detail.qtpl:159 +//line views/ybs/topic_detail.qtpl:157 qw422016.N().DUL(p.CurrentUser.ID) -//line model/page_topic_detail.qtpl:159 +//line views/ybs/topic_detail.qtpl:157 qw422016.N().S(`?type=comment"; return; } @@ -463,9 +460,9 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) { }); } `) -//line model/page_topic_detail.qtpl:166 +//line views/ybs/topic_detail.qtpl:164 if !p.SiteCf.UploadLimit || (p.SiteCf.UploadLimit && p.CurrentUser.Flag >= 99) { -//line model/page_topic_detail.qtpl:166 +//line views/ybs/topic_detail.qtpl:164 qw422016.N().S(` document.addEventListener('paste', function (evt) { var url = "/file/upload"; @@ -501,14 +498,14 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) { }); `) -//line model/page_topic_detail.qtpl:200 +//line views/ybs/topic_detail.qtpl:198 } -//line model/page_topic_detail.qtpl:200 +//line views/ybs/topic_detail.qtpl:198 qw422016.N().S(` `) -//line model/page_topic_detail.qtpl:201 +//line views/ybs/topic_detail.qtpl:199 } -//line model/page_topic_detail.qtpl:201 +//line views/ybs/topic_detail.qtpl:199 qw422016.N().S(` function replyTo(name, cid) { @@ -595,31 +592,31 @@ func (p *TopicDetailPage) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 } -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 func (p *TopicDetailPage) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 p.StreamMainBody(qw422016) -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 qt422016.ReleaseWriter(qw422016) -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 } -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 func (p *TopicDetailPage) MainBody() string { -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 p.WriteMainBody(qb422016) -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 qs422016 := string(qb422016.B) -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 return qs422016 -//line model/page_topic_detail.qtpl:286 +//line views/ybs/topic_detail.qtpl:284 } diff --git a/model/page_user_loginnregister.qtpl b/views/ybs/user_loginnregister.qtpl similarity index 96% rename from model/page_user_loginnregister.qtpl rename to views/ybs/user_loginnregister.qtpl index f5cd0f1..9f4c66f 100644 --- a/model/page_user_loginnregister.qtpl +++ b/views/ybs/user_loginnregister.qtpl @@ -1,16 +1,3 @@ -// admin_login - -{% code -type UserLogin struct { - BasePage - Act string - Token string - CaptchaId string - HasOtherAuth bool - DefaultName string -} -%} - {% func (p *UserLogin) MainBody() %}
    diff --git a/model/page_user_loginnregister.qtpl.go b/views/ybs/user_loginnregister.qtpl.go similarity index 67% rename from model/page_user_loginnregister.qtpl.go rename to views/ybs/user_loginnregister.qtpl.go index 4ed22ae..baed2cc 100644 --- a/model/page_user_loginnregister.qtpl.go +++ b/views/ybs/user_loginnregister.qtpl.go @@ -1,61 +1,48 @@ -// Code generated by qtc from "page_user_loginnregister.qtpl". DO NOT EDIT. +// Code generated by qtc from "user_loginnregister.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/user_loginnregister.qtpl:1 +package ybs -//line model/page_user_loginnregister.qtpl:3 -package model - -//line model/page_user_loginnregister.qtpl:3 +//line views/ybs/user_loginnregister.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_user_loginnregister.qtpl:3 +//line views/ybs/user_loginnregister.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_user_loginnregister.qtpl:4 -type UserLogin struct { - BasePage - Act string - Token string - CaptchaId string - HasOtherAuth bool - DefaultName string -} - -//line model/page_user_loginnregister.qtpl:14 +//line views/ybs/user_loginnregister.qtpl:1 func (p *UserLogin) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_user_loginnregister.qtpl:14 +//line views/ybs/user_loginnregister.qtpl:1 qw422016.N().S(`

    `) -//line model/page_user_loginnregister.qtpl:18 +//line views/ybs/user_loginnregister.qtpl:5 qw422016.E().S(p.Title) -//line model/page_user_loginnregister.qtpl:18 +//line views/ybs/user_loginnregister.qtpl:5 qw422016.N().S(`

    账号密码 - `) -//line model/page_user_loginnregister.qtpl:20 +//line views/ybs/user_loginnregister.qtpl:7 qw422016.E().S(p.Title) -//line model/page_user_loginnregister.qtpl:20 +//line views/ybs/user_loginnregister.qtpl:7 qw422016.N().S(`

    @@ -65,32 +52,32 @@ func (p *UserLogin) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_user_loginnregister.qtpl:33 +//line views/ybs/user_loginnregister.qtpl:20 if p.Act == "register" { -//line model/page_user_loginnregister.qtpl:33 +//line views/ybs/user_loginnregister.qtpl:20 qw422016.N().S(`
    `) -//line model/page_user_loginnregister.qtpl:38 +//line views/ybs/user_loginnregister.qtpl:25 } else { -//line model/page_user_loginnregister.qtpl:38 +//line views/ybs/user_loginnregister.qtpl:25 qw422016.N().S(` `) -//line model/page_user_loginnregister.qtpl:40 +//line views/ybs/user_loginnregister.qtpl:27 } -//line model/page_user_loginnregister.qtpl:40 +//line views/ybs/user_loginnregister.qtpl:27 qw422016.N().S(`
    Captcha image
    @@ -102,64 +89,64 @@ func (p *UserLogin) StreamMainBody(qw422016 *qt422016.Writer) {
    `) -//line model/page_user_loginnregister.qtpl:59 +//line views/ybs/user_loginnregister.qtpl:46 if p.HasOtherAuth { -//line model/page_user_loginnregister.qtpl:59 +//line views/ybs/user_loginnregister.qtpl:46 qw422016.N().S(`

    其它登录方式

    `) -//line model/page_user_loginnregister.qtpl:61 +//line views/ybs/user_loginnregister.qtpl:48 if p.SiteCf.QQClientID != "" { -//line model/page_user_loginnregister.qtpl:61 +//line views/ybs/user_loginnregister.qtpl:48 qw422016.N().S(` QQ登录 `) -//line model/page_user_loginnregister.qtpl:63 +//line views/ybs/user_loginnregister.qtpl:50 } -//line model/page_user_loginnregister.qtpl:63 +//line views/ybs/user_loginnregister.qtpl:50 qw422016.N().S(` `) -//line model/page_user_loginnregister.qtpl:64 +//line views/ybs/user_loginnregister.qtpl:51 if p.SiteCf.WeiboClientID != "" { -//line model/page_user_loginnregister.qtpl:64 +//line views/ybs/user_loginnregister.qtpl:51 qw422016.N().S(` 微博登录 `) -//line model/page_user_loginnregister.qtpl:66 +//line views/ybs/user_loginnregister.qtpl:53 } -//line model/page_user_loginnregister.qtpl:66 +//line views/ybs/user_loginnregister.qtpl:53 qw422016.N().S(` `) -//line model/page_user_loginnregister.qtpl:67 +//line views/ybs/user_loginnregister.qtpl:54 if p.SiteCf.GithubClientID != "" { -//line model/page_user_loginnregister.qtpl:67 +//line views/ybs/user_loginnregister.qtpl:54 qw422016.N().S(` github登录 `) -//line model/page_user_loginnregister.qtpl:69 +//line views/ybs/user_loginnregister.qtpl:56 } -//line model/page_user_loginnregister.qtpl:69 +//line views/ybs/user_loginnregister.qtpl:56 qw422016.N().S(` `) -//line model/page_user_loginnregister.qtpl:70 +//line views/ybs/user_loginnregister.qtpl:57 } -//line model/page_user_loginnregister.qtpl:70 +//line views/ybs/user_loginnregister.qtpl:57 qw422016.N().S(`
    diff --git a/model/page_user_setting.qtpl.go b/views/ybs/user_setting.qtpl.go similarity index 74% rename from model/page_user_setting.qtpl.go rename to views/ybs/user_setting.qtpl.go index 151b8fb..6bd5033 100644 --- a/model/page_user_setting.qtpl.go +++ b/views/ybs/user_setting.qtpl.go @@ -1,63 +1,54 @@ -// Code generated by qtc from "page_user_setting.qtpl". DO NOT EDIT. +// Code generated by qtc from "user_setting.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -// admin_login -// +//line views/ybs/user_setting.qtpl:1 +package ybs -//line model/page_user_setting.qtpl:3 -package model - -//line model/page_user_setting.qtpl:3 +//line views/ybs/user_setting.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line model/page_user_setting.qtpl:3 +//line views/ybs/user_setting.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line model/page_user_setting.qtpl:4 -type UserSetting struct { - BasePage - User User -} - -//line model/page_user_setting.qtpl:10 +//line views/ybs/user_setting.qtpl:1 func (p *UserSetting) StreamMainBody(qw422016 *qt422016.Writer) { -//line model/page_user_setting.qtpl:10 +//line views/ybs/user_setting.qtpl:1 qw422016.N().S(`

    `) -//line model/page_user_setting.qtpl:13 +//line views/ybs/user_setting.qtpl:4 qw422016.E().S(p.Title) -//line model/page_user_setting.qtpl:13 +//line views/ybs/user_setting.qtpl:4 qw422016.N().S(` - 个人页面

    登录名: `) -//line model/page_user_setting.qtpl:17 +//line views/ybs/user_setting.qtpl:8 qw422016.E().S(p.User.Name) -//line model/page_user_setting.qtpl:17 +//line views/ybs/user_setting.qtpl:8 qw422016.N().S(` `)
-//line model/page_user_setting.qtpl:19
+//line views/ybs/user_setting.qtpl:10
 	qw422016.E().S(p.User.Name)
-//line model/page_user_setting.qtpl:19
+//line views/ybs/user_setting.qtpl:10
 	qw422016.N().S(` avatar @@ -77,14 +68,14 @@ func (p *UserSetting) StreamMainBody(qw422016 *qt422016.Writer) {
    @@ -111,9 +102,9 @@ func (p *UserSetting) StreamMainBody(qw422016 *qt422016.Writer) { let formData = new FormData(); formData.append("UserId", "`) -//line model/page_user_setting.qtpl:63 +//line views/ybs/user_setting.qtpl:54 qw422016.N().DUL(p.User.ID) -//line model/page_user_setting.qtpl:63 +//line views/ybs/user_setting.qtpl:54 qw422016.N().S(`"); formData.append("file", f); @@ -158,31 +149,31 @@ func (p *UserSetting) StreamMainBody(qw422016 *qt422016.Writer) { `) -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 } -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 func (p *UserSetting) WriteMainBody(qq422016 qtio422016.Writer) { -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 qw422016 := qt422016.AcquireWriter(qq422016) -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 p.StreamMainBody(qw422016) -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 qt422016.ReleaseWriter(qw422016) -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 } -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 func (p *UserSetting) MainBody() string { -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 qb422016 := qt422016.AcquireByteBuffer() -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 p.WriteMainBody(qb422016) -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 qs422016 := string(qb422016.B) -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 qt422016.ReleaseByteBuffer(qb422016) -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 return qs422016 -//line model/page_user_setting.qtpl:106 +//line views/ybs/user_setting.qtpl:97 }