diff --git a/src/main.sh b/src/main.sh index 7e0f7956..d4f98cf0 100644 --- a/src/main.sh +++ b/src/main.sh @@ -1,14 +1,10 @@ #!/bin/sh -# require "shylinux.com/x/contexts/src/h2/h2.sh" - main() { case "$1" in app) # 生产环境 export PATH="$PWD/bin:$PWD/local/bin:$PWD/usr/local/go/bin:$PATH" - shift && prepare_ice && while true; do - bin/ice.bin serve start dev dev "$@" && break - done + shift && prepare_ice && while true; do bin/ice.bin serve start dev dev "$@" && break; done ;; dev) # 开发环境 shift && prepare_system; require miss.sh @@ -21,7 +17,6 @@ main() { ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@" ;; *) - # require src/hi/hi.sh echo "hello world" ;; esac diff --git a/src/template/web.chat.header/dark.css b/src/template/web.chat.header/dark.css index 3ca1d1f9..ab1e417d 100644 --- a/src/template/web.chat.header/dark.css +++ b/src/template/web.chat.header/dark.css @@ -16,6 +16,8 @@ body.dark textarea { background-color:#212121;color:silver;border-radius:5px;out body.dark textarea { border-radius:0 } body.dark form.option div.item.select { background-color:transparent } body.dark form.option div.item:hover { background-color:transparent } +body.dark div.action div.item.select { background-color:transparent } +body.dark div.action div.item:hover { background-color:transparent } body.dark div.output { background-color:#0d1117 } body.dark div.status { background-color:black;color:silver } body.dark div.item.select { background-color:#212121;color:white } @@ -23,9 +25,10 @@ body.dark div.item:hover { background-color:#212121;color:white } body.dark span.item.select { background-color:#212121;color:white } body.dark span.item:hover { background-color:#212121;color:white } body.dark div.tabs div { background-color:black } -body.dark div.tabs div:hover { background-color:#0d1117 } -body.dark div.tabs div:hover { color:white } -body.dark div.tabs div.select { background-color:#0d1117 } +body.dark div.tabs div:hover { background-color:#0d1117; color:white } +body.dark div.tabs div.select { background-color:#0d1117; color:white } +body.dark div.action div.tabs:hover { background-color:#0d1117; color:white } +body.dark div.action div.tabs.select { background-color:#0d1117; color:white } body.dark div.path { background-color:#0d1117 } body.dark div.path span:hover { background-color:#212121;color:white } body.dark div.plug legend { background-color:#0d1117 } diff --git a/src/template/web.chat.header/light.css b/src/template/web.chat.header/light.css index bb02ba83..35e4ea81 100644 --- a/src/template/web.chat.header/light.css +++ b/src/template/web.chat.header/light.css @@ -23,9 +23,10 @@ body.light div.item:hover { background-color:aliceblue;color:black } body.light span.item.select { background-color:aliceblue;color:black } body.light span.item:hover { background-color:aliceblue;color:black } body.light div.tabs div { background-color:aliceblue } -body.light div.tabs div:hover { background-color:white } -body.light div.tabs div:hover { color:black } -body.light div.tabs div.select { background-color:white } +body.light div.tabs div:hover { background-color:white; color:black } +body.light div.tabs div.select { background-color:white; color:black } +body.light div.action div.tabs:hover { background-color:white; color:black } +body.light div.action div.tabs.select { background-color:white; color:black } body.light div.path span:hover { background-color:aliceblue;color:black } body.light div.plug legend { background-color:white } body.light div.plug legend.select { background-color:aliceblue;border-radius:10px } diff --git a/src/template/web.code.git.status/gitconfig b/src/template/web.code.git.status/gitconfig new file mode 100644 index 00000000..3c29b0c4 --- /dev/null +++ b/src/template/web.code.git.status/gitconfig @@ -0,0 +1,3 @@ +[user] + name = %s + email = %s diff --git a/src/template/web.code.publish/misc.sh b/src/template/web.code.publish/misc.sh index 56b5cd7d..3065b2dc 100644 --- a/src/template/web.code.publish/misc.sh +++ b/src/template/web.code.publish/misc.sh @@ -1 +1 @@ -export ctx_dev={{.Option "domain"}}{{.Option "ctx_env"}}; temp=$(mktemp); if curl -h &>/dev/null; then curl -o $temp -fsSL $ctx_dev; else wget -O $temp -q $ctx_dev; fi; source $temp app username {{.Option "user.name"}} usernick "{{.Option "user.nick"}}" token "{{.Option "token"}}" +export ctx_dev={{.Option "domain"}}{{.Option "ctx_env"}}; temp=$(mktemp); if curl -h &>/dev/null; then curl -o $temp -fsSL $ctx_dev; else wget -O $temp -q $ctx_dev; fi; source $temp app username {{.Option "user.name"}} usernick "{{.Option "user.nick"}}" {{.OptionArgs "token"}}