1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-05-11 13:11:26 +08:00
parent abae040f98
commit 238a44b8f2
12 changed files with 57 additions and 167 deletions

View File

@ -8,7 +8,7 @@ all: def
go build -v -o ${binarys} src/main.go ${version} ${binpack} && ./${binarys} forever restart &>/dev/null
app: def
CGO_ENABLED=1 go build -v -o ${publish}/Contexts.app/Contents/MacOS/contexts src/webview.go ${version} ${binpack} && ./${binarys} forever restart &>/dev/null
CGO_ENABLED=1 go build -v -o ${publish}/Contexts.app/Contents/MacOS/Contexts src/webview.go ${version} ${binpack} && ./${binarys} forever restart &>/dev/null
# hdiutil create ${publish}/tmp.dmg -ov -volname "ContextsInstall" -fs HFS+ -srcfolder "${publish}/Contexts.app"
# rm -f ${publish}/ContextsInstall.dmg
# hdiutil convert ${publish}/tmp.dmg -format UDZO -o ${publish}/ContextsInstall.dmg

View File

@ -1,23 +1,24 @@
~web
spide create name "com" link "http://2021.shylinux.com:9020"
~web.code.input
# wubi load file usr/wubi-dict/wubi86
# wubi load file usr/wubi-dict/person zone person
# config serve meta.main "/chat/cmd/desktop"
config space meta.main "desktop"
~web.code
webpack insert xterm
webpack insert xterm-addon-fit
webpack insert xterm-addon-web-links
webpack insert xterm/css/xterm.css
binpack insert usr/node_modules/xterm/lib/xterm.js
binpack insert usr/node_modules/xterm-addon-fit/lib/xterm-addon-fit.js
binpack insert usr/node_modules/xterm-addon-web-links/lib/xterm-addon-web-links.js
binpack insert usr/node_modules/xterm/css/xterm.css
binpack insert usr/icons/
~web.chat.macos
applications install "go" web.code.compile icon "usr/icons/go.png"
applications install "git" web.code.git.repos icon "usr/icons/git.jpg"
applications install "Docker" web.code.docker.client icon "usr/icons/Docker.png"
applications install "QuickTime" web.chat.macos.opens args "QuickTime Player" icon "usr/icons/QuickTime Player.png"
applications install "Preferences" web.chat.macos.opens args "System Preferences" icon "usr/icons/System Preferences.png"
applications install "QuickTime" web.chat.macos.opens args "QuickTime Player" icon "usr/icons/QuickTime Player.png"
applications install "Activity" web.chat.macos.opens args "Activity Monitor" icon "usr/icons/Activity Monitor.png"
applications install "Preview" web.chat.macos.opens args "Preview"
@ -26,7 +27,6 @@
role white void web.code.git.spide
~gdb
# config timer meta.enable true
event listen event serve.start cmd web.serve
event listen event serve.start cmd web.broad
event listen event dream.create cmd web.code.xterm

1
go.mod
View File

@ -32,4 +32,5 @@ require (
shylinux.com/x/ice v1.3.2
shylinux.com/x/icebergs v1.5.6
shylinux.com/x/toolkits v0.7.5
shylinux.com/x/webview v0.0.2 // indirect
)

View File

@ -2,34 +2,7 @@ package main
import (
"shylinux.com/x/ice"
_ "shylinux.com/x/icebergs/misc/alpha"
_ "shylinux.com/x/icebergs/misc/input"
_ "shylinux.com/x/icebergs/misc/lark"
_ "shylinux.com/x/icebergs/misc/mp"
_ "shylinux.com/x/icebergs/misc/wx"
_ "shylinux.com/x/icebergs/misc/chrome"
_ "shylinux.com/x/icebergs/misc/coder"
_ "shylinux.com/x/icebergs/misc/java"
_ "shylinux.com/x/icebergs/misc/node"
_ "shylinux.com/x/linux-story/iso/alpine"
_ "shylinux.com/x/linux-story/src/busybox"
_ "shylinux.com/x/linux-story/src/ctags"
_ "shylinux.com/x/nginx-story/src/client"
_ "shylinux.com/x/nginx-story/src/server"
_ "shylinux.com/x/redis-story/src/client"
_ "shylinux.com/x/redis-story/src/server"
_ "shylinux.com/x/golang-story/src/compile"
_ "shylinux.com/x/golang-story/src/project"
_ "shylinux.com/x/golang-story/src/runtime"
_ "shylinux.com/x/golang-story/src/docker"
_ "shylinux.com/x/golang-story/src/gotags"
_ "shylinux.com/x/golang-story/src/grafana"
_ "shylinux.com/x/golang-story/src/kubernetes"
_ "shylinux.com/x/golang-story/src/prometheus"
)
func main() { print(ice.Run()) }

View File

@ -1,29 +1,6 @@
Volcanos({river: {
service: {name: "运营群", storm: {
wx: {name: "公众号 wx", list: [
{name: "context", help: "微信公众号", index: "web.wiki.word", args: ["usr/icebergs/misc/wx/wx.shy"]},
]},
mp: {name: "小程序 mp", list: [
{name: "context", help: "微信小程序", index: "web.wiki.word", args: ["usr/icebergs/misc/mp/mp.shy"]},
]},
lark: {name: "机器人 lark", list: [
{name: "context", help: "飞书机器人", index: "web.wiki.word", args: ["usr/icebergs/misc/lark/lark.shy"]},
]},
}},
product: {name: "产品群", storm: {
office: {name: "办公 office", list: [
{name: "feel", help: "影音媒体", index: "web.wiki.feel"},
{name: "draw", help: "思维导图", index: "web.wiki.draw"},
{name: "data", help: "数据表格", index: "web.wiki.data"},
{name: "location", help: "地图导航", index: "web.chat.location"},
{name: "context", help: "编程", index: "web.wiki.word", args: ["src/main.shy"]},
]},
website: {name: "定制 website", index: [
"web.chat.website",
"web.chat.div",
"web.code.vimer",
"web.dream",
]},
office: {name: "办公 office", index: ["web.chat.macos.desktop", "web.wiki.feel", "web.wiki.draw", "web.wiki.data"]},
}},
project: {name: "研发群", storm: {
studio: {name: "研发 studio", list: [
@ -33,50 +10,10 @@ Volcanos({river: {
{name: "plan", help: "任务表", index: "web.team.plan"},
{name: "ctx", help: "上下文", index: "web.wiki.word"},
]},
linux: {name:"系统 linux", list: [
{name: "ctx", help: "平台", index: "web.wiki.word", args:["usr/linux-story/idc/idc.shy"]},
{name: "ctx", help: "镜像", index: "web.wiki.word", args:["usr/linux-story/iso/iso.shy"]},
{name: "ctx", help: "系统", index: "web.wiki.word", args:["usr/linux-story/src/main.shy"]},
]},
nginx: {name: "网关 nginx", list: [
{name: "ctx", help: "代理", index: "web.wiki.word", args:["usr/nginx-story/src/main.shy"]},
]},
context: {name: "编程 context", list: [
{name: "ctx", help: "编程", index: "web.wiki.word", args:["usr/golang-story/src/main.shy"]},
]},
redis: {name: "缓存 redis", list: [
{name: "ctx", help: "数据缓存", index: "web.wiki.word", args:["usr/redis-story/src/main.shy"]},
{name: "ctx", help: "消息队列", index: "web.wiki.word", args:["usr/redis-story/src/kafka/kafka.shy"]},
{name: "ctx", help: "消息队列", index: "web.wiki.word", args:["usr/redis-story/src/pulsar/pulsar.shy"]},
]},
}},
profile: {name: "测试群", storm: {
release: {name: "发布 release", index: [
"web.code.compile",
"web.code.publish",
"web.code.docker.client",
"web.code.tmux.session",
"web.code.xterm",
"web.dream", "web.space",
"web.code.git.service", "web.code.git.status",
]},
toolkit: {name: "工具 toolkit", index: [
"web.code.favor",
"web.code.xterm",
"web.code.inner",
"web.code.vimer",
"web.code.bench",
"web.code.pprof",
"web.code.oauth",
]},
language: {name: "语言 language", index: [
"web.code.c",
"web.code.sh",
"web.code.py",
"web.code.shy",
"web.code.js",
"web.code.go",
]},
release: {name: "发布 release", index: ["web.code.compile", "web.code.publish", "web.dream", "web.space", "web.code.git.service", "web.code.git.status"]},
toolkit: {name: "工具 toolkit", index: ["web.code.xterm", "web.code.vimer", "web.code.bench", "web.code.pprof"]},
}},
operate: {name: "运维群", storm: {
web: {name: "应用 web", index: ["broad", "serve", "space", "dream", "cache", "spide", "share"]},

View File

@ -1,3 +1,5 @@
body.light { background-color:#4a566e; }
body.light.cmd { background-color:white; }
body.light legend { background-color:lightsteelblue; border-radius:5px; }
body.light select { border-radius:5px; }
body.light input { background-color:white; border-radius:5px; }

View File

@ -1,4 +1,4 @@
body.white { color:black; }
body.white { background-color:white; color:black; }
body.white legend { background-color:#ffffffc2; }
body.white input { background-color:#ffffff7d; color:black; }
body.white textarea { background-color:white; color:black; }

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width,user-scalable=no">
<meta charset="utf-8"><title>volcanos</title>
<link href="/index.css{{.Option "version"}}" rel="stylesheet">
<link href="/page/cache.css{{.Option "version"}}" rel="stylesheet">
<link href="/favicon.ico" rel="shortcut icon" type="image/ico">
</head>
<body>
<script>_version = "{{.Option "version"}}"</script>
<script src="/proto.js{{.Option "version"}}"></script>
<script src="/page/cache.js{{.Option "version"}}"></script>
<script src="/require/src/main.js{{.Option "version"}}"></script>
</body>

View File

@ -6,6 +6,7 @@ import (
"shylinux.com/x/ice"
"shylinux.com/x/icebergs/base/tcp"
"shylinux.com/x/icebergs/base/web"
_ "shylinux.com/x/icebergs/misc/node"
"shylinux.com/x/icebergs/misc/webview"
kit "shylinux.com/x/toolkits"
)

View File

@ -3,7 +3,7 @@
"meta": {
"background": "/share/local/usr/local/image/background.jpg",
"language": "zh",
"time": "2023-05-07 10:15:29.586",
"time": "2023-05-11 09:21:49.027",
"username": "shylinux",
"userrole": "tech",
"userzone": "dev"
@ -11,7 +11,7 @@
},
"364d28ceb39aea833ab2b1323819bb05": {
"meta": {
"time": "2023-05-07 10:15:29.586",
"time": "2023-05-11 09:21:49.026",
"username": "shy",
"userrole": "root",
"userzone": "ops"

View File

@ -1,50 +1,35 @@
{
"3bdfe0": {
"meta": {
"icon": "/require/usr/icons/Docker.png",
"index": "web.code.docker.client",
"name": "Docker",
"time": "2023-05-07 10:15:29.728"
}
},
"5ed1aa": {
"meta": {
"icon": "usr/icons/Photos.png",
"index": "web.wiki.feel",
"name": "Photos",
"time": "2023-05-06 21:18:34.064"
}
},
"8706db": {
"04c930": {
"meta": {
"args": "month",
"icon": "usr/icons/Calendar.png",
"index": "web.team.plan",
"name": "Calendar",
"time": "2023-05-06 21:18:34.064"
"time": "2023-05-10 20:48:03.285"
}
},
"bbc776": {
"meta": {
"index": "web.chat.favor",
"name": "favor",
"time": "2023-05-06 21:18:34.064"
}
},
"c67967": {
"174cda": {
"meta": {
"icon": "usr/icons/Grapher.png",
"index": "web.wiki.draw",
"name": "Grapher",
"time": "2023-05-06 21:18:34.064"
"time": "2023-05-10 20:48:03.285"
}
},
"f83c61": {
"37195c": {
"meta": {
"icon": "usr/icons/Books.png",
"index": "web.wiki.word",
"name": "Books",
"time": "2023-05-06 21:18:34.064"
"time": "2023-05-10 20:48:03.285"
}
},
"685c69": {
"meta": {
"icon": "usr/icons/Photos.png",
"index": "web.wiki.feel",
"name": "Photos",
"time": "2023-05-10 20:48:03.285"
}
}
}

View File

@ -1,57 +1,34 @@
{
"37ecaf": {
"meta": {
"index": "dream",
"name": "dream",
"time": "2023-05-06 21:18:34.065"
}
},
"3fb888": {
"meta": {
"icon": "usr/icons/Finder.png",
"index": "web.chat.macos.finder",
"name": "Finder",
"time": "2023-05-06 21:18:34.065"
}
},
"4ecf86": {
"13bd9d": {
"meta": {
"icon": "usr/icons/vimer.png",
"index": "web.code.vimer",
"name": "vimer",
"time": "2023-05-06 21:18:34.065"
"time": "2023-05-10 20:48:03.287"
}
},
"53ead5": {
"599273": {
"meta": {
"icon": "usr/icons/go.png",
"index": "web.code.compile",
"name": "compile",
"time": "2023-05-06 21:18:34.065"
"icon": "usr/icons/Finder.png",
"index": "web.chat.macos.finder",
"name": "Finder",
"time": "2023-05-10 20:48:03.286"
}
},
"9ff34e": {
"meta": {
"icon": "usr/icons/git.jpg",
"index": "web.code.git.repos",
"name": "repos",
"time": "2023-05-06 21:18:34.065"
}
},
"c60d9b": {
"a66526": {
"meta": {
"icon": "usr/icons/Terminal.png",
"index": "web.code.xterm",
"name": "Terminal",
"time": "2023-05-06 21:18:34.065"
"time": "2023-05-10 20:48:03.287"
}
},
"db02bb": {
"ebb2dc": {
"meta": {
"icon": "usr/icons/Safari.png",
"index": "web.chat.iframe",
"name": "Safari",
"time": "2023-05-06 21:18:34.065"
"time": "2023-05-10 20:48:03.286"
}
}
}