mirror of
https://github.com/quarkcloudio/quark-go.git
synced 2025-09-26 20:11:11 +08:00
34 lines
1.0 KiB
Go
34 lines
1.0 KiB
Go
package metrics
|
|
|
|
import (
|
|
"github.com/quarkcms/quark-go/pkg/builder/metrics"
|
|
"github.com/quarkcms/quark-go/pkg/component/admin/descriptions"
|
|
)
|
|
|
|
type TeamInfo struct {
|
|
metrics.AdminDescriptions
|
|
}
|
|
|
|
// 初始化
|
|
func (p *TeamInfo) Init() *TeamInfo {
|
|
p.Title = "团队信息"
|
|
p.Col = 12
|
|
|
|
return p
|
|
}
|
|
|
|
// 计算数值
|
|
func (p *TeamInfo) Calculate() *descriptions.Component {
|
|
|
|
field := &descriptions.Field{}
|
|
|
|
return p.Init().Result([]interface{}{
|
|
field.Text("作者").SetValue("tangtanglove"),
|
|
field.Text("联系方式").SetValue("dai_hang_love@126.com"),
|
|
field.Text("官方网址").SetValue("<a href='https://www.quarkcms.com' target='_blank'>www.quarkcms.com</a>"),
|
|
field.Text("文档地址").SetValue("<a href='https://www.quarkcms.com' target='_blank'>查看文档</a>"),
|
|
field.Text("BUG反馈").SetValue("<a href='https://github.com/quarkcms/quark-go/issues' target='_blank'>提交BUG</a>"),
|
|
field.Text("代码仓储").SetValue("<a href='https://github.com/quarkcms/quark-go' target='_blank'>Github</a>"),
|
|
})
|
|
}
|