From ea16ebfda7463f310c4ef787efec81973d6a1a82 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sat, 22 Apr 2023 21:24:17 +0800 Subject: [PATCH] opt some --- go.mod | 6 ++++++ src/h2/h2.c | 5 ----- src/h2/h2.css | 3 --- src/h2/h2.go | 15 --------------- src/h2/h2.html | 9 --------- src/h2/h2.js | 3 --- src/h2/h2.py | 1 - src/h2/h2.sh | 18 ------------------ src/h2/h2.shy | 8 -------- src/h2/h3.sh | 10 ---------- src/main.go | 3 --- src/main.js | 2 +- src/main.shy | 21 +++++++++++++++++++++ src/main.svg | 2 +- 14 files changed, 29 insertions(+), 77 deletions(-) delete mode 100644 src/h2/h2.c delete mode 100644 src/h2/h2.css delete mode 100644 src/h2/h2.go delete mode 100644 src/h2/h2.html delete mode 100644 src/h2/h2.js delete mode 100644 src/h2/h2.py delete mode 100644 src/h2/h2.sh delete mode 100644 src/h2/h2.shy delete mode 100644 src/h2/h3.sh diff --git a/go.mod b/go.mod index 8195d174..2798a87c 100644 --- a/go.mod +++ b/go.mod @@ -15,6 +15,12 @@ replace ( shylinux.com/x/toolkits => ./usr/toolkits ) +replace ( + shylinux.com/x/go-git => ./usr/go-git + shylinux.com/x/go-qrcode => ./usr/go-qrcode + shylinux.com/x/websocket => ./usr/websocket +) + require ( shylinux.com/x/golang-story v0.6.0 shylinux.com/x/linux-story v0.5.6 diff --git a/src/h2/h2.c b/src/h2/h2.c deleted file mode 100644 index 53bcc82d..00000000 --- a/src/h2/h2.c +++ /dev/null @@ -1,5 +0,0 @@ -#include - -int main(int argc, char *argv[]) { - printf("hello world\n"); -} diff --git a/src/h2/h2.css b/src/h2/h2.css deleted file mode 100644 index da13fcef..00000000 --- a/src/h2/h2.css +++ /dev/null @@ -1,3 +0,0 @@ -body fieldset.web.code.h2.h2 div.output { - background-color:gray; -} \ No newline at end of file diff --git a/src/h2/h2.go b/src/h2/h2.go deleted file mode 100644 index d364c37f..00000000 --- a/src/h2/h2.go +++ /dev/null @@ -1,15 +0,0 @@ -package h2 - -import ( - "shylinux.com/x/ice" -) - -type h2 struct { - ice.Zone - list string `name:"list zone id auto insert show" help:"示例"` -} - -func (s h2) Show(m *ice.Message, arg ...string) { m.Echo("hello world") } -func (s h2) List(m *ice.Message, arg ...string) { s.Zone.List(m, arg...) } - -func init() { ice.Cmd("web.code.h2.h2", h2{}) } diff --git a/src/h2/h2.html b/src/h2/h2.html deleted file mode 100644 index a93dd10c..00000000 --- a/src/h2/h2.html +++ /dev/null @@ -1,9 +0,0 @@ - - - volcanos - - - - - - diff --git a/src/h2/h2.js b/src/h2/h2.js deleted file mode 100644 index 40f2daec..00000000 --- a/src/h2/h2.js +++ /dev/null @@ -1,3 +0,0 @@ -Volcanos(chat.ONIMPORT, {_init: function(can, msg) { - msg.Echo("hello world").Dump(can) -}}) diff --git a/src/h2/h2.py b/src/h2/h2.py deleted file mode 100644 index e2c08566..00000000 --- a/src/h2/h2.py +++ /dev/null @@ -1 +0,0 @@ -print "hello world" \ No newline at end of file diff --git a/src/h2/h2.sh b/src/h2/h2.sh deleted file mode 100644 index 1346df8a..00000000 --- a/src/h2/h2.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# set -v -# export ISH_CONF_LEVEL="require request notice debug alias" -# require "h3.sh" -require "src/h2/h3.sh" -require "src/h2/h3.sh?welcome=hi" -require "shylinux.com/x/contexts/src/hi/he.sh" -# require "http://localhost:9020/x/contexts/src/hi/he.sh" -# require "http://localhost:9020/x/contexts@v2.9.3/src/hi/he.sh" - -demo() { - echo "hello world" -} -demo -demo1 -request nfs.dir -ish_sys_cli_shell diff --git a/src/h2/h2.shy b/src/h2/h2.shy deleted file mode 100644 index fbdf65fe..00000000 --- a/src/h2/h2.shy +++ /dev/null @@ -1,8 +0,0 @@ -chapter "h2" - -field web.code.h2.h2 -spark "hello world" -shell ` -pwd -# good -` diff --git a/src/h2/h3.sh b/src/h2/h3.sh deleted file mode 100644 index 06c335d7..00000000 --- a/src/h2/h3.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -demo1() { - echo "hello world" - echo "hello world" - echo "hello world" - echo "hello world" - echo "hello world" -} -demo1 diff --git a/src/main.go b/src/main.go index b4df0bc1..c73bef9c 100644 --- a/src/main.go +++ b/src/main.go @@ -30,9 +30,6 @@ import ( _ "shylinux.com/x/golang-story/src/grafana" _ "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" ) func main() { print(ice.Run()) } diff --git a/src/main.js b/src/main.js index e2a4fe9a..08e0895b 100644 --- a/src/main.js +++ b/src/main.js @@ -58,7 +58,7 @@ Volcanos({river: { "web.code.tmux.session", "web.code.xterm", "web.dream", "web.space", - "web.code.git.server", "web.code.git.status", + "web.code.git.service", "web.code.git.status", ]}, toolkit: {name: "工具 toolkit", index: [ "web.code.favor", diff --git a/src/main.shy b/src/main.shy index ff890880..b53787de 100644 --- a/src/main.shy +++ b/src/main.shy @@ -48,3 +48,24 @@ field "趋势图" web.code.git.trend args `intshell` field "架构图" web.code.git.spide args `intshell` spark README.md +source h3/h3.shy +source h4/h4.shy +source h5/h5.shy +source h6/h6.shy +source h7/h7.shy +source h8/h8.shy +source h3/h3.shy +source h4/h4.shy +source h5/h5.shy +source h6/h6.shy +source h7/h7.shy +source h8/h8.shy +source h9/h9.shy +source h10/h10.shy +source h3/h3.shy +source h4/h4.shy +source h5/h5.shy +source h6/h6.shy +source h7/h7.shy +source h3/h3.shy +source h5/h5.shy diff --git a/src/main.svg b/src/main.svg index 6376c9d6..f81eafb3 100644 --- a/src/main.svg +++ b/src/main.svg @@ -2,4 +2,4 @@ /* color: red; */ /* stroke: red; */ /* fill: red; */ -">wordxtermruntimetrenddiskinfospide \ No newline at end of file +">wordxtermruntimetrenddiskinfospide \ No newline at end of file