-
+
-
+ + ++++ + ++ 已删除 + 删除 ++
+
diff --git a/admin/src/views/article/Index.vue b/admin/src/views/article/Index.vue
index bda2e5f1690f9be1e9cea0e05671d1649d4f585c..65304a535cb7466d751334f0c4a60ee7ac9beb90 100644
--- a/admin/src/views/article/Index.vue
+++ b/admin/src/views/article/Index.vue
@@ -80,7 +80,7 @@
import HttpClient from '@/apis/HttpClient'
export default {
- name: 'List',
+ layout: 'admin',
data() {
return {
results: [],
@@ -89,8 +89,7 @@ export default {
filters: {
title: '',
status: ''
- },
- tagOptions: []
+ }
}
},
mounted() {
diff --git a/admin/src/views/topic/Index.vue b/admin/src/views/topic/Index.vue
index d99c5c1a6966db12fbd1698eaae90036635d7ded..3e378854fc6d5ec6607d0371f2453cc385630c1b 100644
--- a/admin/src/views/topic/Index.vue
+++ b/admin/src/views/topic/Index.vue
@@ -331,7 +331,7 @@ export default {
this.$message({ message: '推荐成功', type: 'success' })
this.list()
} catch (e) {
- this.$notify.error({ title: '错误', message: rsp.message })
+ this.$notify.error({ title: '错误', message: e.message })
}
},
async cancelRecommend(id) {
@@ -342,7 +342,7 @@ export default {
this.$message({ message: '取消推荐成功', type: 'success' })
this.list()
} catch (e) {
- this.$notify.error({ title: '错误', message: rsp.message })
+ this.$notify.error({ title: '错误', message: e.message })
}
},
handleSelectionChange(val) {
diff --git a/server/app/iris.go b/server/app/iris.go
index 4c01158728863f789a5b267b18c52c9bd82ef154..5afb3949beea2f5dcce0127afa7893fad7aab3c7 100644
--- a/server/app/iris.go
+++ b/server/app/iris.go
@@ -73,6 +73,7 @@ func InitIris() {
// admin
mvc.Configure(app.Party("/api/admin"), func(m *mvc.Application) {
m.Router.Use(middleware.AdminAuth)
+ m.Party("/common").Handle(new(admin.CommonController))
m.Party("/user").Handle(new(admin.UserController))
m.Party("/third-account").Handle(new(admin.ThirdAccountController))
m.Party("/tag").Handle(new(admin.TagController))
diff --git a/server/controllers/admin/article_controller.go b/server/controllers/admin/article_controller.go
index c4dc7fd4b9272e1d81a247f1ecc63ccfc9a23768..5a2d155cd193e5847339a0aaf57057b9db83c968 100644
--- a/server/controllers/admin/article_controller.go
+++ b/server/controllers/admin/article_controller.go
@@ -78,7 +78,7 @@ func (c *ArticleController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
// 数据校验
if len(t.Title) == 0 {
diff --git a/server/controllers/admin/article_tag_controller.go b/server/controllers/admin/article_tag_controller.go
index bb940b973e046f59fe178b4681cee6ee677bb785..51b6972d81dc561c7796ed03f8120344f0e2a0a2 100644
--- a/server/controllers/admin/article_tag_controller.go
+++ b/server/controllers/admin/article_tag_controller.go
@@ -29,7 +29,7 @@ func (c *ArticleTagController) AnyList() *simple.JsonResult {
func (c *ArticleTagController) PostCreate() *simple.JsonResult {
t := &model.ArticleTag{}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
err := services.ArticleTagService.Create(t)
if err != nil {
@@ -48,7 +48,7 @@ func (c *ArticleTagController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
err = services.ArticleTagService.Update(t)
if err != nil {
diff --git a/server/controllers/admin/common_controller.go b/server/controllers/admin/common_controller.go
new file mode 100644
index 0000000000000000000000000000000000000000..8f518f0afc9d240fe7ecdb7cc8e51af668f8e561
--- /dev/null
+++ b/server/controllers/admin/common_controller.go
@@ -0,0 +1,22 @@
+package admin
+
+import (
+ "runtime"
+
+ "github.com/kataras/iris/v12"
+ "github.com/mlogclub/simple"
+)
+
+type CommonController struct {
+ Ctx iris.Context
+}
+
+func (c *CommonController) GetSysteminfo() *simple.JsonResult {
+ return simple.NewEmptyRspBuilder().
+ Put("os", runtime.GOOS).
+ Put("arch", runtime.GOARCH).
+ Put("numCpu", runtime.NumCPU()).
+ Put("goroot", runtime.GOROOT()).
+ Put("goversion", runtime.Version()).
+ JsonResult()
+}
diff --git a/server/controllers/admin/favorite_controller.go b/server/controllers/admin/favorite_controller.go
index ac46eaaef6bba499eee2106302b77aa98e87c85b..e4c3184745cb1ddb0be17bd3ee2dcba017288145 100644
--- a/server/controllers/admin/favorite_controller.go
+++ b/server/controllers/admin/favorite_controller.go
@@ -29,7 +29,7 @@ func (c *FavoriteController) AnyList() *simple.JsonResult {
func (c *FavoriteController) PostCreate() *simple.JsonResult {
t := &model.Favorite{}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
err := services.FavoriteService.Create(t)
if err != nil {
@@ -48,7 +48,7 @@ func (c *FavoriteController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
err = services.FavoriteService.Update(t)
if err != nil {
diff --git a/server/controllers/admin/link_controller.go b/server/controllers/admin/link_controller.go
index d91d57203597eeb0315841632bdf2a0f0316059d..cfe800ff24783657bb3d6b4305c0f96785016527 100644
--- a/server/controllers/admin/link_controller.go
+++ b/server/controllers/admin/link_controller.go
@@ -33,7 +33,7 @@ func (c *LinkController) AnyList() *simple.JsonResult {
func (c *LinkController) PostCreate() *simple.JsonResult {
t := &model.Link{}
- err := c.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -55,7 +55,7 @@ func (c *LinkController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = c.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/admin/message_controller.go b/server/controllers/admin/message_controller.go
index 7e0b497fee4067c55ad573be3266cbb67d5b89a9..257226f992ff09911ac2afc392ba53d163ccb9ab 100644
--- a/server/controllers/admin/message_controller.go
+++ b/server/controllers/admin/message_controller.go
@@ -29,7 +29,7 @@ func (c *MessageController) AnyList() *simple.JsonResult {
func (c *MessageController) PostCreate() *simple.JsonResult {
t := &model.Message{}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
err := services.MessageService.Create(t)
if err != nil {
@@ -48,7 +48,7 @@ func (c *MessageController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
err = services.MessageService.Update(t)
if err != nil {
diff --git a/server/controllers/admin/project_controller.go b/server/controllers/admin/project_controller.go
index d77a1147d9f20e42a67017e840da7bc136062afa..7e4b935e158a379ff33060ef62799fc399bd55c7 100644
--- a/server/controllers/admin/project_controller.go
+++ b/server/controllers/admin/project_controller.go
@@ -29,7 +29,7 @@ func (c *ProjectController) AnyList() *simple.JsonResult {
func (c *ProjectController) PostCreate() *simple.JsonResult {
t := &model.Project{}
- err := c.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -51,7 +51,7 @@ func (c *ProjectController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = c.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/admin/sitemap_controller.go b/server/controllers/admin/sitemap_controller.go
index 36ea84dea2124c120cfd56ca90d42806525e8c9e..88be990bf0129248d81047429e1f6bcae0aa7d3f 100644
--- a/server/controllers/admin/sitemap_controller.go
+++ b/server/controllers/admin/sitemap_controller.go
@@ -29,7 +29,7 @@ func (c *SitemapController) AnyList() *simple.JsonResult {
func (c *SitemapController) PostCreate() *simple.JsonResult {
t := &model.Sitemap{}
- err := c.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -51,7 +51,7 @@ func (c *SitemapController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = c.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/admin/tag_controller.go b/server/controllers/admin/tag_controller.go
index 10c6d58315ce55459aa4b914cb3a0585d44ccba1..b60defaa136e2f2f4cd351ec060998123017b13c 100644
--- a/server/controllers/admin/tag_controller.go
+++ b/server/controllers/admin/tag_controller.go
@@ -34,7 +34,7 @@ func (c *TagController) AnyList() *simple.JsonResult {
func (c *TagController) PostCreate() *simple.JsonResult {
t := &model.Tag{}
- err := c.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -67,7 +67,7 @@ func (c *TagController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = c.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/admin/third_account_controller.go b/server/controllers/admin/third_account_controller.go
index 1b6b5e8d3d8e6c489c4ff9142a374c03e067d4eb..0596e263b7e645615abd8f24109960a4a7f7b77c 100644
--- a/server/controllers/admin/third_account_controller.go
+++ b/server/controllers/admin/third_account_controller.go
@@ -29,7 +29,7 @@ func (c *ThirdAccountController) AnyList() *simple.JsonResult {
func (c *ThirdAccountController) PostCreate() *simple.JsonResult {
t := &model.ThirdAccount{}
- err := c.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -51,7 +51,7 @@ func (c *ThirdAccountController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = c.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/admin/topic_controller.go b/server/controllers/admin/topic_controller.go
index bf5bae4c9a900a6ce46cedf7fe215012d73ca3b4..2800361d8d4e1d1f80b0503ec26edf432ca58a0b 100644
--- a/server/controllers/admin/topic_controller.go
+++ b/server/controllers/admin/topic_controller.go
@@ -80,7 +80,7 @@ func (c *TopicController) DeleteRecommend() *simple.JsonResult {
func (c *TopicController) PostCreate() *simple.JsonResult {
t := &model.Topic{}
- err := c.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -102,7 +102,7 @@ func (c *TopicController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = c.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/admin/topic_like_controller.go b/server/controllers/admin/topic_like_controller.go
index d118aa319d6dcd992d1f395936e56555305e5e0b..a3e285ae4f324d9ad07ad4ee219eda8663d219d8 100644
--- a/server/controllers/admin/topic_like_controller.go
+++ b/server/controllers/admin/topic_like_controller.go
@@ -29,7 +29,7 @@ func (c *TopicLikeController) AnyList() *simple.JsonResult {
func (c *TopicLikeController) PostCreate() *simple.JsonResult {
t := &model.TopicLike{}
- err := c.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -51,7 +51,7 @@ func (c *TopicLikeController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = c.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/admin/topic_node_controller.go b/server/controllers/admin/topic_node_controller.go
index 094994b2cbda6f16827e3b53e02817416863a51c..e41ba6694b7b9125dcb93ed70701ebcac5fbd51c 100644
--- a/server/controllers/admin/topic_node_controller.go
+++ b/server/controllers/admin/topic_node_controller.go
@@ -23,13 +23,13 @@ func (c *TopicNodeController) GetBy(id int64) *simple.JsonResult {
}
func (c *TopicNodeController) AnyList() *simple.JsonResult {
- list, paging := services.TopicNodeService.FindPageByParams(simple.NewQueryParams(c.Ctx).PageByReq().Asc("sort_no").Desc("id"))
+ list, paging := services.TopicNodeService.FindPageByParams(simple.NewQueryParams(c.Ctx).EqByReq("name").PageByReq().Asc("sort_no").Desc("id"))
return simple.JsonData(&simple.PageResult{Results: list, Page: paging})
}
func (c *TopicNodeController) PostCreate() *simple.JsonResult {
t := &model.TopicNode{}
- err := c.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -51,7 +51,7 @@ func (c *TopicNodeController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = c.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/admin/topic_tag_controller.go b/server/controllers/admin/topic_tag_controller.go
index 2802c1379e9b25dd4ce9a3eb154e44cb01436eca..590ae242633871423d6699b3915e9a87f794370b 100644
--- a/server/controllers/admin/topic_tag_controller.go
+++ b/server/controllers/admin/topic_tag_controller.go
@@ -29,7 +29,7 @@ func (c *TopicTagController) AnyList() *simple.JsonResult {
func (c *TopicTagController) PostCreate() *simple.JsonResult {
t := &model.TopicTag{}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
err := services.TopicTagService.Create(t)
if err != nil {
@@ -48,7 +48,7 @@ func (c *TopicTagController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- c.Ctx.ReadForm(t)
+ simple.ReadForm(c.Ctx, t)
err = services.TopicTagService.Update(t)
if err != nil {
diff --git a/server/controllers/admin/user_score_controller.go b/server/controllers/admin/user_score_controller.go
index 3fc16157318995b23f59d889f2aa67aa336f76df..9e557c0d8ac83563f270ab9f587209853ee2432d 100644
--- a/server/controllers/admin/user_score_controller.go
+++ b/server/controllers/admin/user_score_controller.go
@@ -1,18 +1,20 @@
package admin
import (
+ "strconv"
+
+ "github.com/kataras/iris/v12"
+ "github.com/mlogclub/simple"
+
"bbs-go/model"
"bbs-go/services"
- "github.com/mlogclub/simple"
- "github.com/kataras/iris/v12"
- "strconv"
)
type UserScoreController struct {
- Ctx iris.Context
+ Ctx iris.Context
}
-func (r *UserScoreController) GetBy(id int64) *simple.JsonResult {
+func (c *UserScoreController) GetBy(id int64) *simple.JsonResult {
t := services.UserScoreService.Get(id)
if t == nil {
return simple.JsonErrorMsg("Not found, id=" + strconv.FormatInt(id, 10))
@@ -20,14 +22,14 @@ func (r *UserScoreController) GetBy(id int64) *simple.JsonResult {
return simple.JsonData(t)
}
-func (r *UserScoreController) AnyList() *simple.JsonResult {
- list, paging := services.UserScoreService.FindPageByParams(simple.NewQueryParams(r.Ctx).PageByReq().Desc("id"))
+func (c *UserScoreController) AnyList() *simple.JsonResult {
+ list, paging := services.UserScoreService.FindPageByParams(simple.NewQueryParams(c.Ctx).PageByReq().Desc("id"))
return simple.JsonData(&simple.PageResult{Results: list, Page: paging})
}
-func (r *UserScoreController) PostCreate() *simple.JsonResult {
+func (c *UserScoreController) PostCreate() *simple.JsonResult {
t := &model.UserScore{}
- err := r.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -39,8 +41,8 @@ func (r *UserScoreController) PostCreate() *simple.JsonResult {
return simple.JsonData(t)
}
-func (r *UserScoreController) PostUpdate() *simple.JsonResult {
- id, err := simple.FormValueInt64(r.Ctx, "id")
+func (c *UserScoreController) PostUpdate() *simple.JsonResult {
+ id, err := simple.FormValueInt64(c.Ctx, "id")
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -49,7 +51,7 @@ func (r *UserScoreController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = r.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -60,4 +62,3 @@ func (r *UserScoreController) PostUpdate() *simple.JsonResult {
}
return simple.JsonData(t)
}
-
diff --git a/server/controllers/admin/user_score_log_controller.go b/server/controllers/admin/user_score_log_controller.go
index ab7a9ee5fc7348b26672df98610389410471033a..e43075395a725098e1cbe68ad590c8ae7f7a4d0f 100644
--- a/server/controllers/admin/user_score_log_controller.go
+++ b/server/controllers/admin/user_score_log_controller.go
@@ -12,7 +12,7 @@ type UserScoreLogController struct {
Ctx iris.Context
}
-func (r *UserScoreLogController) GetBy(id int64) *simple.JsonResult {
+func (c *UserScoreLogController) GetBy(id int64) *simple.JsonResult {
t := services.UserScoreLogService.Get(id)
if t == nil {
return simple.JsonErrorMsg("Not found, id=" + strconv.FormatInt(id, 10))
@@ -20,14 +20,14 @@ func (r *UserScoreLogController) GetBy(id int64) *simple.JsonResult {
return simple.JsonData(t)
}
-func (r *UserScoreLogController) AnyList() *simple.JsonResult {
- list, paging := services.UserScoreLogService.FindPageByParams(simple.NewQueryParams(r.Ctx).PageByReq().Desc("id"))
+func (c *UserScoreLogController) AnyList() *simple.JsonResult {
+ list, paging := services.UserScoreLogService.FindPageByParams(simple.NewQueryParams(c.Ctx).PageByReq().Desc("id"))
return simple.JsonData(&simple.PageResult{Results: list, Page: paging})
}
-func (r *UserScoreLogController) PostCreate() *simple.JsonResult {
+func (c *UserScoreLogController) PostCreate() *simple.JsonResult {
t := &model.UserScoreLog{}
- err := r.Ctx.ReadForm(t)
+ err := simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -39,8 +39,8 @@ func (r *UserScoreLogController) PostCreate() *simple.JsonResult {
return simple.JsonData(t)
}
-func (r *UserScoreLogController) PostUpdate() *simple.JsonResult {
- id, err := simple.FormValueInt64(r.Ctx, "id")
+func (c *UserScoreLogController) PostUpdate() *simple.JsonResult {
+ id, err := simple.FormValueInt64(c.Ctx, "id")
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
@@ -49,7 +49,7 @@ func (r *UserScoreLogController) PostUpdate() *simple.JsonResult {
return simple.JsonErrorMsg("entity not found")
}
- err = r.Ctx.ReadForm(t)
+ err = simple.ReadForm(c.Ctx, t)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/controllers/api/comment_controller.go b/server/controllers/api/comment_controller.go
index f3314064ca5d65f5d2043277449f56b0d7a924e1..cbe5de864a657f3de2db240b8d834f7f42579348 100644
--- a/server/controllers/api/comment_controller.go
+++ b/server/controllers/api/comment_controller.go
@@ -42,7 +42,7 @@ func (c *CommentController) PostCreate() *simple.JsonResult {
}
form := &model.CreateCommentForm{}
- err := c.Ctx.ReadForm(form)
+ err := simple.ReadForm(c.Ctx, form)
if err != nil {
return simple.JsonErrorMsg(err.Error())
}
diff --git a/server/go.mod b/server/go.mod
index 12f65b8cb69dbc966e4823fbe68cf18fabfe9432..ddcd92e34a8de59e21a04b2520aa7b23355b2462 100644
--- a/server/go.mod
+++ b/server/go.mod
@@ -24,7 +24,7 @@ require (
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
github.com/kataras/iris/v12 v12.0.1
github.com/mattn/go-colorable v0.1.4 // indirect
- github.com/mlogclub/simple v1.0.52
+ github.com/mlogclub/simple v1.0.54
github.com/moul/http2curl v1.0.0 // indirect
github.com/nats-io/nats-server/v2 v2.1.2 // indirect
github.com/robfig/cron v1.2.0
diff --git a/server/go.sum b/server/go.sum
index baac51d4c1569487e78d0a08df7164c87f2f3f9e..677b99a0ce118b94dc1c118a766c7d46bd9b9fb2 100644
--- a/server/go.sum
+++ b/server/go.sum
@@ -202,6 +202,9 @@ github.com/mlogclub/simple v1.0.50 h1:XTH1NzIcPqddDZyh2K33oJt/KHv7ylsFlBbI6BHPZY
github.com/mlogclub/simple v1.0.50/go.mod h1:J5p18ObwMAb7pJ8nodcHuZrmU0G3bnoFX2VEzeuj5Os=
github.com/mlogclub/simple v1.0.52 h1:EIpssLl7sc/pm6z8whKbtncH+GAwpkQCyRw3tPmQ+DA=
github.com/mlogclub/simple v1.0.52/go.mod h1:J5p18ObwMAb7pJ8nodcHuZrmU0G3bnoFX2VEzeuj5Os=
+github.com/mlogclub/simple v1.0.53/go.mod h1:J5p18ObwMAb7pJ8nodcHuZrmU0G3bnoFX2VEzeuj5Os=
+github.com/mlogclub/simple v1.0.54 h1:+x98WemmzSS0KBraFCW4SuFGDlfnmSsSN8WICt4hkEc=
+github.com/mlogclub/simple v1.0.54/go.mod h1:J5p18ObwMAb7pJ8nodcHuZrmU0G3bnoFX2VEzeuj5Os=
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 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=
diff --git a/server/test/test.go b/server/test/test.go
index da29a2cadf1e00b14b1a4bd0a52780888bf3e532..e880a475074bf1c950efc599e595e2c92e3aeca5 100644
--- a/server/test/test.go
+++ b/server/test/test.go
@@ -1,4 +1,10 @@
package main
+import (
+ "fmt"
+ "runtime"
+)
+
func main() {
+ fmt.Println(runtime.NumCPU())
}
diff --git a/site/assets/styles/common.scss b/site/assets/styles/common.scss
index ca166bcd6e8dfe72e6a0ad2904a3746f02bd3953..48c4162336f4d515d197a6049adb608d5c80ae87 100644
--- a/site/assets/styles/common.scss
+++ b/site/assets/styles/common.scss
@@ -189,6 +189,7 @@ $sidebar-margin: 10px; // 侧边栏之间的缝隙
// font-size: 12px;
margin-top: 8px;
padding: 8px 0;
+ word-break: break-all;
}
& > .widget-footer {
diff --git a/site/components/SiteNotice.vue b/site/components/SiteNotice.vue
index 66b75bf86bec954f8300125c22cf621d69947e34..43dc4e7784e59758ea2324b95cb5bb6fb9f75a4b 100644
--- a/site/components/SiteNotice.vue
+++ b/site/components/SiteNotice.vue
@@ -20,6 +20,5 @@ export default {
diff --git a/site/layouts/admin.vue b/site/layouts/admin.vue
new file mode 100644
index 0000000000000000000000000000000000000000..6aed839694287ec2b5fa8f526e2e11972eeeef87
--- /dev/null
+++ b/site/layouts/admin.vue
@@ -0,0 +1,120 @@
+
+