1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 01:04:06 +08:00

add portal

This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-06-28 21:54:44 +08:00
parent 26cfb0eabd
commit 240c75c781
24 changed files with 243 additions and 84 deletions

View File

@ -13,6 +13,7 @@ usr/install/gcc-4.8.4/_install/bin
usr/install/gdb-7.6.1/_install/bin
usr/install/qemu-3.1.0/_install/bin
usr/install/ffmpeg-4.2.1/_install/bin
usr/install/redis-5.0.8/_install/bin
usr/install/node-v16.15.1-darwin-x64/bin
usr/install/node-v16.15.1-linux-x64/bin
usr/install/jdk-18/bin

49
src/document/content.shy Normal file
View File

@ -0,0 +1,49 @@
style flex
style column
title "Contexts"
spark title "一个功能完备的工具系统"
order `
以模块化的方式,将编辑器、命令行、数据库、编译器等几百种工具,高度集成到一个 20M 的程序文件中。
可一键部署到各种机器上,并快速启动很多个工作空间,以集群化的方式,将这些设备与空间高度组织到一起。
每个工具都有自己的网页界面,以自己的数据逻辑将其它所有的工具与空间,组织到一个界面中,高效的完成各种工作。
`
style flex
spark button "Get Started" route "started/"
spark button "Get Download" route "download/"
style end
style end
style column
field "" web.code.inner style output width 500px
shell `
vi src/main.go
go run src/main.go
open http://localhost:9020
` style.width 500px
style end
style end
spark title "编辑器"
spark `一款网页版的编辑器,打开网页即可随时随地的编程,
无论这些代码是保存在本机,还是远程,还是任何虚拟的空间,无论是内存还是磁盘。`
field "编辑器" web.code.inner
spark title "命令行"
spark `一款网页版的命令行,打开网页即可随时随地的敲命令,
无论这些命令是运行在本机,还是远程,还是任何虚拟的空间,无论是内存还是磁盘。`
field "命令行" web.code.xterm args "ish"
spark title "电脑桌面"
spark `一款网页版的电脑桌面,打开网页即可随时随地的使用各种软件,
无论这些软件是运行在本机,还是远程,还是任何虚拟的空间,无论是内存还是磁盘。`
field "电脑桌面" web.chat.macos.desktop style output
spark title "计划表"
spark `一款网页版的行程计划表,打开网页即可随时随地的安排时间与任务`
field "计划表" web.team.plan
spark title "绘图工具"
spark `一款网页版的绘图工具,打开网页即可随时随地的画图,
无论这些文件是保存在本机,还是远程,还是任何虚拟的空间,无论是内存还是磁盘。`
field "绘图工具" web.wiki.draw

View File

@ -0,0 +1 @@
web.code.publish contexts

13
src/document/index.shy Normal file
View File

@ -0,0 +1,13 @@
navmenu `
"Contexts" /
_
"GET STARED" started/
"DOCS" docs/
"COMMANDS" commands/
"RESOURCES" resources/
"COMMUNITY" community/
"DOWNLOAD" download/
"SUPPORT" support/
_
"Login" /chat/portal/
`

View File

@ -0,0 +1,55 @@
title "Contexts"
chapter "实践"
label `
code wiki chat team mall
linux nginx docker redis mysql
bash git golang vim tmux
`
chapter "理论"
label `
集群化 模块化 自动化
`
chapter "项目"
label `
intshell icebergs volcanos
contexts toolkits learning
go-git release matrix
` index web.code.git.spide
section "火山架"
field "趋势图" web.code.git.trend args `volcanos`
field "架构图" web.code.git.spide args `volcanos`
section "冰山架"
field "趋势图" web.code.git.trend args `icebergs`
field "架构图" web.code.git.spide args `icebergs`
label `
ctx mdb web aaa
lex yac ssh gdb
tcp nfs cli log
`
chain `
web
code
wiki
chat
team
mall
`
label `
git ssh xterm qrcode websocket webview
tmux node java
alpha input lex yac
vim bash chrome coder
wx mp lark wework github
` compact true
section "神农架"
field "趋势图" web.code.git.trend args `intshell`
field "架构图" web.code.git.spide args `intshell`
spark README.md
source h2/h2.shy

View File

@ -0,0 +1 @@
nfs.cat LICENSE

View File

@ -0,0 +1,12 @@
navmenu `
"About" about/
Introduction introduction.shy
License license.shy
"Getting started" started/
Install install.shy
"User interfaces" interfaces/
CLI cli.shy
WEB web.shy
"Using Contexts" using/
"Managing Contexts" managing/
`

View File

@ -0,0 +1,3 @@
spark `
cli
`

View File

@ -0,0 +1,3 @@
spark `
web
`

View File

@ -0,0 +1 @@
web.code.publish contexts

View File

@ -2,6 +2,8 @@ package main
import (
"shylinux.com/x/ice"
_ "shylinux.com/x/icebergs/misc/alpha"
_ "shylinux.com/x/icebergs/misc/chrome"
_ "shylinux.com/x/icebergs/misc/java"
_ "shylinux.com/x/icebergs/misc/node"
)

View File

@ -1,17 +1,17 @@
Volcanos({river: {
product: {name: "产品群", storm: {
office: {name: "办公 office", index: ["web.chat.macos.desktop", "web.wiki.feel", "web.wiki.draw", "web.wiki.data"]},
product: {name: "产品群", icon: "bi bi-bar-chart-line-fill", storm: {
office: {name: "办公 office", icon: "bi bi-bar-chart-line-fill", index: ["web.chat.macos.desktop", "web.wiki.feel", "web.wiki.draw", "web.wiki.data"]},
}},
project: {name: "研发群", storm: {
studio: {name: "研发 studio", index: ["web.code.vimer", "web.code.git.status", "web.chat.favor", "web.team.plan", "web.wiki.word"]},
project: {name: "研发群", icon: "bi bi-git", storm: {
studio: {name: "研发 studio", icon: "bi bi-git", index: ["web.code.vimer", "web.code.git.status", "web.chat.favor", "web.team.plan", "web.wiki.word"]},
}},
profile: {name: "测试群", type: aaa.TECH, storm: {
release: {name: "发布 release", index: ["web.code.compile", "web.code.publish", "web.code.pprof", "web.code.bench", "web.dream", "web.space", "web.code.git.service", "web.code.git.status"]},
profile: {name: "测试群", icon: "bi bi-list-columns", type: aaa.TECH, storm: {
release: {name: "发布 release", icon: "bi bi-list-check", index: ["web.code.compile", "web.code.publish", "web.code.pprof", "web.code.bench", "web.dream", "web.space", "web.code.git.service", "web.code.git.status"]},
}},
operate: {name: "运维群", type: aaa.TECH, storm: {
web: {name: "应用 web", index: ["broad", "serve", "space", "dream", "share"]},
aaa: {name: "权限 aaa", index: ["offer", "email", "user", "totp", "sess", "role"]},
cli: {name: "系统 cli", index: ["qrcode", "daemon", "runtime", "cli.procstat", "cli.procinfo", "mirrors", "signal", "timer", "routine", "log.debug"]},
nfs: {name: "文件 nfs", index: ["dir", "cat", "tar", "pack", "tail", "trash", "server", "host", "port"]},
operate: {name: "运维群", icon: "bi bi-gear", type: aaa.TECH, storm: {
web: {name: "应用 web", icon: "bi bi-browser-chrome", index: ["broad", "serve", "space", "dream", "share"]},
aaa: {name: "权限 aaa", icon: "bi bi-people-fill", index: ["offer", "email", "user", "totp", "sess", "role"]},
cli: {name: "系统 cli", icon: "bi bi-windows", index: ["qrcode", "daemon", "runtime", "cli.procstat", "cli.procinfo", "mirrors", "signal", "timer", "routine", "log.debug"]},
nfs: {name: "文件 nfs", icon: "bi bi-server", index: ["dir", "cat", "tar", "pack", "tail", "trash", "server", "host", "port"]},
}},
}})
}, list: ["/require/modules/bootstrap-icons/font/bootstrap-icons.min.css"]}) // https://icons.getbootstrap.com/

View File

@ -1,6 +1,4 @@
title "contexts"
source recent.shy
title "Contexts"
chapter "实践"
label `
code wiki chat team mall

View File

@ -1,40 +0,0 @@
chapter "最近"
section "MacOS"
label `
Trackpad
Keyboard
Finder
Terminal
Safari
Dock
contexts
sshd
`
section "windows"
refer `
https://www.ngui.cc/el/1813831.html
edge://settings/appearance
`
section "color"
refer `
颜色 https://www.cnblogs.com/cl1234/p/5545290.html
https://www.w3.org/TR/?tag=css
https://www.w3schools.com/colors/colors_names.asp
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Colors
https://docs.tizen.org/platform/what-is-tizen/overview/
https://www.cnblogs.com/cl1234/p/5545290.html
http://www.unicode.org/charts/
https://www.w3schools.com/charsets/ref_html_utf8.asp
`
section "ascii"
refer `
https://man7.org/linux/man-pages/man4/console_codes.4.html
`
section "fuck"
refer `
https://brew.sh
`

View File

@ -27,4 +27,13 @@ body.dark {
--th-bg-color:var(--plugin-bg-color);
--td-hover-bg-color:var(--plugin-bg-color);
--tr-hover-bg-color:var(--plugin-bg-color);
--code-comment:green;
--code-keyword:royalblue;
--code-package:blue;
--code-datatype:lavender;
--code-function:lightgreen;
--code-constant:gray;
--code-string:orange;
--code-object:silver;
}

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

@ -0,0 +1,2 @@
<input class="story" type="button" value='{{.Option "text"}}' {{.OptionTemplate}} data-meta={{.Option "meta"}}></input>

View File

@ -1 +1 @@
<div {{.OptionTemplate}}>{{range $index, $value := .Optionv "list"}}<label>$ </label><span class="item">{{$value}}</span><br>{{end}}</div>
<div {{.OptionTemplate}} data-meta={{.Option "meta"}}>{{range $index, $value := .Optionv "list"}}<label>$ </label><span class="item">{{$value}}</span><br>{{end}}</div>

View File

@ -1 +1 @@
<p {{.OptionTemplate}}>{{.Option "text"}}</p>
<p {{.OptionTemplate}} data-meta={{.Option "meta"}}>{{.Option "text"}}</p>

View File

@ -0,0 +1,2 @@
<h2 {{.OptionTemplate}} data-meta={{.Option "meta"}}>{{.Option "text"}}</h2>

View File

@ -0,0 +1,19 @@
<!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>
Volcanos({
panels: [{name: "Action", style: "main", tool: [{index: "web.chat.portal"}]}],
})
</script>
</body>

View File

@ -1,45 +1,59 @@
{
"fae17a": {
"657d37": {
"hash": {
"3cde7c": {
"9c073c": {
"hash": {},
"list": [
{
"icon": "bi bi-terminal",
"id": 1,
"index": "web.dream",
"time": "2023-05-27 23:00:20.876"
},
{
"id": 2,
"index": "web.code.mysql.client",
"space": "20230511-mysql-story",
"time": "2023-05-27 23:25:59.460"
},
{
"id": 3,
"index": "web.code.redis.client",
"space": "20230511-redis-story",
"time": "2023-05-27 23:26:06.758"
},
{
"id": 4,
"index": "web.code.golang.project",
"space": "20230511-golang-story",
"time": "2023-05-27 23:42:55.509"
"index": "web.code.xterm",
"time": "2023-06-25 12:49:08.993"
}
],
"meta": {
"count": 4,
"name": "server",
"count": 1,
"icon": "bi bi-terminal",
"name": "term",
"text": "hello",
"time": "2023-05-27 23:00:16.814"
"time": "2023-06-25 12:48:58.274"
}
}
},
"meta": {
"name": "server",
"icon": "bi bi-terminal",
"name": "term",
"text": "hello",
"time": "2023-05-27 22:11:31.127",
"time": "2023-06-25 12:48:52.175",
"type": "root"
}
},
"71a871": {
"hash": {
"ab14d0": {
"hash": {},
"list": [
{
"icon": "bi bi-calendar-day",
"id": 1,
"index": "web.team.plan",
"time": "2023-06-24 20:17:15.170"
}
],
"meta": {
"count": 1,
"icon": "bi bi-calendar-day",
"name": "hi",
"text": "hello",
"time": "2023-06-24 20:17:04.053"
}
}
},
"meta": {
"icon": "bi bi-calendar-day",
"name": "hi",
"text": "hello",
"time": "2023-06-24 20:17:00.837",
"type": "root"
}
}