forked from x/ContextOS
opt service
This commit is contained in:
parent
51d8a084d9
commit
08d5fd0bd0
@ -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
|
||||
|
@ -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 }
|
||||
|
@ -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 }
|
||||
|
3
src/template/web.code.git.status/gitconfig
Normal file
3
src/template/web.code.git.status/gitconfig
Normal file
@ -0,0 +1,3 @@
|
||||
[user]
|
||||
name = %s
|
||||
email = %s
|
@ -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"}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user