forked from x/icebergs
add some
This commit is contained in:
parent
a72045154d
commit
f450f44088
@ -117,7 +117,7 @@ func init() {
|
||||
func _spark_project(m *ice.Message, arg ...string) {
|
||||
defer m.Cmdy(STYLE, FLEX).Cmdy(STYLE, END)
|
||||
m.Cmdy(STYLE, COLUMN)
|
||||
m.Cmdy(TITLE, kit.Capital(path.Base(kit.Select(ice.Info.Pathname, ice.Info.Make.Remote))))
|
||||
m.Cmdy(TITLE, ice.Info.Title())
|
||||
m.Cmdy(SPARK, TITLE, arg[0]).Cmdy(ORDER, arg[1])
|
||||
m.Cmdy(STYLE, FLEX)
|
||||
m.Cmdy(SPARK, html.BUTTON, "体 验", ROUTE, web.SpideOrigin(m, ice.DEMO))
|
||||
|
13
info.go
13
info.go
@ -44,8 +44,15 @@ func (s MakeInfo) Versions() string {
|
||||
return kit.Format("%s-%s-%s", s.Version, s.Forword, s.Hash[:6])
|
||||
}
|
||||
}
|
||||
func (s info) Title() string {
|
||||
p := path.Base(kit.Select(s.Pathname, s.Make.Remote))
|
||||
if strings.HasPrefix(p, "20") {
|
||||
p = kit.Join(strings.Split(p, "-")[1:], "-")
|
||||
}
|
||||
return kit.Capital(p)
|
||||
}
|
||||
|
||||
var Info = struct {
|
||||
type info struct {
|
||||
Make MakeInfo
|
||||
Time string
|
||||
Size string
|
||||
@ -86,7 +93,9 @@ var Info = struct {
|
||||
Save func(m *Message, key ...string) *Message
|
||||
Load func(m *Message, key ...string) *Message
|
||||
Log func(m *Message, p, l, s string)
|
||||
}{
|
||||
}
|
||||
|
||||
var Info = info{
|
||||
Localhost: true,
|
||||
|
||||
File: Maps{},
|
||||
|
Loading…
x
Reference in New Issue
Block a user