From a6bb5e7f4d7f1c40217b3618029458fa8386eab3 Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 6 Sep 2023 16:06:04 +0800 Subject: [PATCH] add some --- base/web/dream.go | 2 +- base/web/serve.go | 3 ++- core/chat/flows.js | 4 ++-- misc/git/search.css | 2 +- misc/git/search.js | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/base/web/dream.go b/base/web/dream.go index e3d8aeb8..ea462d93 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -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() { diff --git a/base/web/serve.go b/base/web/serve.go index 82dc2cca..3631d5cd 100644 --- a/base/web/serve.go +++ b/base/web/serve.go @@ -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 diff --git a/core/chat/flows.js b/core/chat/flows.js index de9b9248..e58825dc 100644 --- a/core/chat/flows.js +++ b/core/chat/flows.js @@ -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) }, diff --git a/misc/git/search.css b/misc/git/search.css index 0a2add85..b5a4c1eb 100644 --- a/misc/git/search.css +++ b/misc/git/search.css @@ -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; } \ No newline at end of file diff --git a/misc/git/search.js b/misc/git/search.js index 0a702c73..5ce0d4d4 100644 --- a/misc/git/search.js +++ b/misc/git/search.js @@ -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) }, }, [""]) \ No newline at end of file