From 5d3f408634868d7ee7a3a4425c3c1f9b072a9b29 Mon Sep 17 00:00:00 2001 From: shylinux Date: Thu, 16 Mar 2023 23:05:43 +0800 Subject: [PATCH] opt code --- etc/init.shy | 3 +++ etc/webview.txt | 1 + src/h2/h2.c | 5 +++++ src/main.go | 1 - src/main.shy | 1 + src/template/web.code.autogen/miss.sh | 6 +++--- 6 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 src/h2/h2.c diff --git a/etc/init.shy b/etc/init.shy index ca7dc6e6..e10bf4b9 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -1,3 +1,6 @@ +~cli + config forever meta.log.save true + ~web.code webpack insert xterm webpack insert xterm-addon-fit diff --git a/etc/webview.txt b/etc/webview.txt index e4b65683..23e43c42 100644 --- a/etc/webview.txt +++ b/etc/webview.txt @@ -1,4 +1,5 @@ vimer "http://localhost:9020/chat/cmd/web.code.vimer?debug=true" +# vimer "http://localhost:9020/chat/cmd/web.code.vimer" # goods "http://localhost:9020/chat/cmd/web.mall.goods" # plan "http://localhost:9020/chat/cmd/web.team.plan" # localhost http://localhost:9020 diff --git a/src/h2/h2.c b/src/h2/h2.c new file mode 100644 index 00000000..53bcc82d --- /dev/null +++ b/src/h2/h2.c @@ -0,0 +1,5 @@ +#include + +int main(int argc, char *argv[]) { + printf("hello world\n"); +} diff --git a/src/main.go b/src/main.go index 13f70613..9c47c69a 100644 --- a/src/main.go +++ b/src/main.go @@ -44,7 +44,6 @@ import ( _ "shylinux.com/x/golang-story/src/kubernetes" _ "shylinux.com/x/golang-story/src/prometheus" - _ "shylinux.com/x/contexts/src/h2" _ "shylinux.com/x/contexts/src/hi" ) diff --git a/src/main.shy b/src/main.shy index 6cba99ae..e9b7d20b 100644 --- a/src/main.shy +++ b/src/main.shy @@ -74,3 +74,4 @@ field "趋势图" web.code.git.trend args `intshell` field "架构图" web.code.git.spide args `intshell` spark md README.md +source h5/h5.shy diff --git a/src/template/web.code.autogen/miss.sh b/src/template/web.code.autogen/miss.sh index 2cb1419d..c827b358 100644 --- a/src/template/web.code.autogen/miss.sh +++ b/src/template/web.code.autogen/miss.sh @@ -1,10 +1,10 @@ #! /bin/sh if [ -f $PWD/.ish/plug.sh ]; then source $PWD/.ish/plug.sh; elif [ -f $HOME/.ish/plug.sh ]; then source $HOME/.ish/plug.sh; else - ctx_temp=$(mktemp); if curl -h &>/dev/null; then curl -o $ctx_temp -fsSL https://shylinux.com; else wget -O $ctx_temp -q http://shylinux.com; fi; source $ctx_temp intshell -fi + export ctx_dev=${ctx_dev:="https://shylinux.com"} + temp=$(mktemp); if curl -h &>/dev/null; then curl -o $temp -fsSL $ctx_dev; else wget -O $temp -q $ctx_dev; fi; source $temp intshell +fi; require conf.sh; require miss.sh; ish_dev_git_prepare -require miss.sh ish_miss_prepare_compile ish_miss_prepare_develop ish_miss_prepare_project