1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-04-22 21:24:17 +08:00
parent b86b4195b4
commit ea16ebfda7
14 changed files with 29 additions and 77 deletions

6
go.mod
View File

@ -15,6 +15,12 @@ replace (
shylinux.com/x/toolkits => ./usr/toolkits 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 ( require (
shylinux.com/x/golang-story v0.6.0 shylinux.com/x/golang-story v0.6.0
shylinux.com/x/linux-story v0.5.6 shylinux.com/x/linux-story v0.5.6

View File

@ -1,5 +0,0 @@
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("hello world\n");
}

View File

@ -1,3 +0,0 @@
body fieldset.web.code.h2.h2 div.output {
background-color:gray;
}

View File

@ -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{}) }

View File

@ -1,9 +0,0 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8"><title>volcanos</title>
<link href="/publish/can.css" rel="stylesheet">
</head>
<body>
<script src="/publish/can.js"></script>
<script>Volcanos([{"index":"web.code.h2.h2"}])</script>
</body>

View File

@ -1,3 +0,0 @@
Volcanos(chat.ONIMPORT, {_init: function(can, msg) {
msg.Echo("hello world").Dump(can)
}})

View File

@ -1 +0,0 @@
print "hello world"

View File

@ -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

View File

@ -1,8 +0,0 @@
chapter "h2"
field web.code.h2.h2
spark "hello world"
shell `
pwd
# good
`

View File

@ -1,10 +0,0 @@
#!/bin/sh
demo1() {
echo "hello world"
echo "hello world"
echo "hello world"
echo "hello world"
echo "hello world"
}
demo1

View File

@ -30,9 +30,6 @@ import (
_ "shylinux.com/x/golang-story/src/grafana" _ "shylinux.com/x/golang-story/src/grafana"
_ "shylinux.com/x/golang-story/src/kubernetes" _ "shylinux.com/x/golang-story/src/kubernetes"
_ "shylinux.com/x/golang-story/src/prometheus" _ "shylinux.com/x/golang-story/src/prometheus"
_ "shylinux.com/x/contexts/src/h2"
_ "shylinux.com/x/contexts/src/hi"
) )
func main() { print(ice.Run()) } func main() { print(ice.Run()) }

View File

@ -58,7 +58,7 @@ Volcanos({river: {
"web.code.tmux.session", "web.code.tmux.session",
"web.code.xterm", "web.code.xterm",
"web.dream", "web.space", "web.dream", "web.space",
"web.code.git.server", "web.code.git.status", "web.code.git.service", "web.code.git.status",
]}, ]},
toolkit: {name: "工具 toolkit", index: [ toolkit: {name: "工具 toolkit", index: [
"web.code.favor", "web.code.favor",

View File

@ -48,3 +48,24 @@ field "趋势图" web.code.git.trend args `intshell`
field "架构图" web.code.git.spide args `intshell` field "架构图" web.code.git.spide args `intshell`
spark README.md 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

View File

@ -2,4 +2,4 @@
/* color: red; */ /* color: red; */
/* stroke: red; */ /* stroke: red; */
/* fill: red; */ /* fill: red; */
">word</text></g><line x1="175" y1="80" x2="595" y2="240" ship="[{&quot;pid&quot;:&quot;p1&quot;},{&quot;pid&quot;:&quot;p2&quot;}]" pid="p3" class="p3"></line><g><rect height="50" width="130" x="130" y="210" rx="4" ry="4" pid="p4" class="p4" index="web.code.xterm" text="p8" args="bash" ship="[{&quot;pid&quot;:&quot;p16&quot;,&quot;which&quot;:2,&quot;anchor&quot;:2}]"></rect><text x="195" y="235" pid="p8" class="p8">xterm</text></g><g class="sub" style="opacity: 1; display: block;"><g><rect height="70" width="180" x="580" y="90" rx="4" ry="4" pid="p5" class="p5" text="p7" index="cli.runtime"></rect><text x="670" y="125" pid="p7" class="p7">runtime</text></g></g><g><rect height="50" width="190" x="870" y="180" rx="4" ry="4" pid="p10" class="p10" text="p11" index="web.code.git.trend" args="icebergs"></rect><text x="965" y="205" pid="p11" class="p11">trend</text></g><g><rect height="50" width="220" x="1190" y="130" rx="4" ry="4" pid="p12" class="p12" text="p13" index="cli.runtime" args="diskinfo"></rect><text x="1300" y="155" pid="p13" class="p13">diskinfo</text></g><g><rect height="50" width="210" x="1140" y="290" rx="4" ry="4" pid="p14" class="p14" text="p15" index="web.code.git.spide" args="icebergs"></rect><text x="1245" y="315" pid="p15" class="p15">spide</text></g><line x1="175" y1="80" x2="195" y2="210" ship="[{&quot;pid&quot;:&quot;p1&quot;},{&quot;pid&quot;:&quot;p4&quot;}]" pid="p16" class="p16"></line></svg> ">word</text></g><line x1="175" y1="80" x2="595" y2="240" ship="[{&quot;pid&quot;:&quot;p1&quot;},{&quot;pid&quot;:&quot;p2&quot;}]" pid="p3" class="p3"></line><g><rect height="50" width="130" x="130" y="210" rx="4" ry="4" pid="p4" class="p4" index="web.code.xterm" text="p8" args="bash" ship="[{&quot;pid&quot;:&quot;p16&quot;,&quot;which&quot;:2,&quot;anchor&quot;:2}]"></rect><text x="195" y="235" pid="p8" class="p8">xterm</text></g><g class="sub" style="opacity: 1; display: block;" stroke="yellow" fill="green"><g><rect height="70" width="180" x="580" y="90" rx="4" ry="4" pid="p5" class="p5" text="p7" index="cli.runtime"></rect><text x="670" y="125" pid="p7" class="p7">runtime</text></g></g><g><rect height="50" width="190" x="870" y="180" rx="4" ry="4" pid="p10" class="p10" text="p11" index="web.code.git.trend" args="icebergs"></rect><text x="965" y="205" pid="p11" class="p11">trend</text></g><g><rect height="50" width="220" x="1190" y="130" rx="4" ry="4" pid="p12" class="p12" text="p13" index="cli.runtime" args="diskinfo"></rect><text x="1300" y="155" pid="p13" class="p13">diskinfo</text></g><g><rect height="50" width="210" x="1140" y="290" rx="4" ry="4" pid="p14" class="p14" text="p15" index="web.code.git.spide" args="icebergs"></rect><text x="1245" y="315" pid="p15" class="p15">spide</text></g><line x1="175" y1="80" x2="195" y2="210" ship="[{&quot;pid&quot;:&quot;p1&quot;},{&quot;pid&quot;:&quot;p4&quot;}]" pid="p16" class="p16"></line></svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB