From 9573211bd88cefab911920f0fe592d5e2705f245 Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 2 Apr 2024 20:15:38 +0800 Subject: [PATCH] add some --- etc/miss.sh | 1 + go.mod | 1 + src/template/ssh.relay/pushbin.sh | 3 +-- src/template/ssh.relay/upgrade.sh | 3 +-- src/template/ssh.relay/version.sh | 2 +- src/template/web.chat.header/language/zh-cn.js | 1 + 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/miss.sh b/etc/miss.sh index da0ea8ec..57227a27 100644 --- a/etc/miss.sh +++ b/etc/miss.sh @@ -15,5 +15,6 @@ ish_miss_prepare_resource ish_miss_prepare_release ish_miss_prepare_icebergs ish_miss_prepare_toolkits +ish_miss_prepare websocket ish_miss_make; [ -z "$*" ] || ish_miss_serve "$@" diff --git a/go.mod b/go.mod index f32a4d9b..e47f63a4 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ replace ( shylinux.com/x/ice => ./usr/release shylinux.com/x/icebergs => ./usr/icebergs shylinux.com/x/toolkits => ./usr/toolkits + shylinux.com/x/websocket => ./usr/websocket ) require ( diff --git a/src/template/ssh.relay/pushbin.sh b/src/template/ssh.relay/pushbin.sh index 16a88fc2..068b78da 100644 --- a/src/template/ssh.relay/pushbin.sh +++ b/src/template/ssh.relay/pushbin.sh @@ -1,3 +1,2 @@ -cd ~/{{.Option "path"}} -chmod u+x {{.Option "file"}} +cd ~/{{.Option "path"}}; chmod u+x {{.Option "file"}} ./{{.Option "file"}} {{.Option "param"}} diff --git a/src/template/ssh.relay/upgrade.sh b/src/template/ssh.relay/upgrade.sh index 620f6c97..5e878e3c 100644 --- a/src/template/ssh.relay/upgrade.sh +++ b/src/template/ssh.relay/upgrade.sh @@ -1,3 +1,2 @@ -cd ~/{{.OptionDefault "dream" "contexts"}} -sleep 3 +cd ~/{{.Option "dream"}}; sleep 3 [ -e etc/miss.sh ] && source etc/miss.sh diff --git a/src/template/ssh.relay/version.sh b/src/template/ssh.relay/version.sh index f90a5705..5a894580 100644 --- a/src/template/ssh.relay/version.sh +++ b/src/template/ssh.relay/version.sh @@ -1,4 +1,4 @@ -cd ~/{{.OptionDefault "dream" "contexts"}}; sleep 1 +cd ~/{{.Option "dream"}}; sleep 1 export ctx_ops={{.Option "link"}} ./bin/ice.bin admin compile binpack ./bin/ice.bin admin vimer compile diff --git a/src/template/web.chat.header/language/zh-cn.js b/src/template/web.chat.header/language/zh-cn.js index ecb2fe2c..0d0d3af1 100644 --- a/src/template/web.chat.header/language/zh-cn.js +++ b/src/template/web.chat.header/language/zh-cn.js @@ -7,6 +7,7 @@ Volcanos("user", {_trans: kit.Dict("_week_header", ["周日", "周一", "周二" mdb.SEARCH, "搜索", mdb.PLUGIN, "插件", mdb.PREV, "上一页", mdb.NEXT, "下一页", mdb.ENABLE, "启用", mdb.DISABLE, "禁用", + mdb.RENAME, "重命名", web.CLEAR, "清空", web.REFRESH, "刷新", web.CANCEL, "取消", web.SUBMIT, "提交", web.CONFIRM, "确定", web.UPLOAD, "上传", web.DOWNLOAD, "下载", web.PREVIEW, "预览",