forked from x/icebergs
add some
This commit is contained in:
parent
83b7841e01
commit
a6bb5e7f4d
@ -146,7 +146,7 @@ func init() {
|
||||
}
|
||||
}},
|
||||
mdb.CREATE: {Name: "create name*=hi repos binary template", Hand: func(m *ice.Message, arg ...string) {
|
||||
m.OptionDefault(mdb.ICON, "usr/icons/icebergs.jpeg")
|
||||
m.OptionDefault(mdb.ICON, "usr/icons/icebergs.jpg")
|
||||
m.Option(nfs.REPOS, kit.Select("", kit.Slice(kit.Split(m.Option(nfs.REPOS)), -1), 0))
|
||||
kit.If(!strings.Contains(m.Option(mdb.NAME), "-") || !strings.HasPrefix(m.Option(mdb.NAME), "20"), func() { m.Option(mdb.NAME, m.Time("20060102-")+m.Option(mdb.NAME)) })
|
||||
if mdb.HashCreate(m); !m.IsCliUA() {
|
||||
|
@ -57,6 +57,7 @@ func _serve_main(m *ice.Message, w http.ResponseWriter, r *http.Request) bool {
|
||||
} else {
|
||||
r.Header.Set(ice.MSG_USERIP, strings.Split(r.RemoteAddr, nfs.DF)[0])
|
||||
}
|
||||
|
||||
if m.Logs(r.Header.Get(ice.MSG_USERIP), r.Method, r.URL.String()); r.Method == http.MethodGet {
|
||||
if msg := m.Spawn(w, r).Options(ice.MSG_USERUA, r.UserAgent()); path.Join(r.URL.Path) == nfs.PS {
|
||||
if !msg.IsCliUA() {
|
||||
@ -68,7 +69,7 @@ func _serve_main(m *ice.Message, w http.ResponseWriter, r *http.Request) bool {
|
||||
} else if p := path.Join(kit.Select(ice.USR_VOLCANOS, ice.USR_INTSHELL, msg.IsCliUA()), r.URL.Path); nfs.Exists(msg, p) {
|
||||
return !Render(msg, ice.RENDER_DOWNLOAD, p)
|
||||
}
|
||||
} else if r.Method == http.MethodPost && path.Join(r.URL.Path) == nfs.PS {
|
||||
} else if path.Join(r.URL.Path) == nfs.PS {
|
||||
r.URL.Path = kit.Select(nfs.PS, mdb.Config(m, ice.MAIN))
|
||||
}
|
||||
return true
|
||||
|
@ -120,9 +120,9 @@ Volcanos(chat.ONACTION, {
|
||||
"create", "play", "prev", "next",
|
||||
["travel", "deep", "wide"],
|
||||
["direct", "vertical", "horizon"],
|
||||
[html.HEIGHT, 100, 120, 140, 200],
|
||||
[html.HEIGHT, 80, 100, 120, 140, 200],
|
||||
[html.WIDTH, 200, 240, 280, 400],
|
||||
[html.MARGIN, 20, 40, 60],
|
||||
[html.MARGIN, 10, 20, 40, 60],
|
||||
["delay", 100, 200, 500, 1000],
|
||||
], _trans: {play: "播放", prev: "上一步", next: "下一步"},
|
||||
refresh: function(event, can, button) { can.misc.localStorage(can, ACTION_STORE+button, can.Action(button)), can.onimport._flows(can, can.db._content_plugin) },
|
||||
|
@ -4,7 +4,7 @@ fieldset.web.code.git.search>div.output>div.item div.title>div.name { height:48
|
||||
fieldset.web.code.git.search>div.output>div.item div.title span.name { line-height:32px; }
|
||||
fieldset.web.code.git.search>div.output>div.item div.title div.label { font-size:12px; font-weight:normal; }
|
||||
fieldset.web.code.git.search>div.output>div.item div.title div.label span { padding:5px; padding-right:10px; }
|
||||
fieldset.web.code.git.search>div.output>div.item div.content { height:100px; }
|
||||
fieldset.web.code.git.search>div.output>div.item div.content { height:90px; }
|
||||
fieldset.web.code.git.search.zone>div.output>div.item { display:flex; padding:5px; }
|
||||
fieldset.web.code.git.search.zone>div.output>div.item>img { margin-right:5px; }
|
||||
fieldset.web.code.git.search.zone>div.output>div.item>span { line-height:32px; }
|
@ -20,5 +20,5 @@ Volcanos(chat.ONIMPORT, {
|
||||
]}
|
||||
})), can.onappend.board(can, msg), can.onimport.layout(can)
|
||||
},
|
||||
layout: function(can) { can.onlayout.expand(can, can._output, 360) },
|
||||
layout: function(can) { can.onlayout.expand(can, can._output, 380) },
|
||||
}, [""])
|
Loading…
x
Reference in New Issue
Block a user