diff --git a/etc/path b/etc/path index 0eb575c9..69f85a7b 100644 --- a/etc/path +++ b/etc/path @@ -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 diff --git a/src/document/web.dream/list.shy b/src/document/commands/web.dream/list.shy similarity index 100% rename from src/document/web.dream/list.shy rename to src/document/commands/web.dream/list.shy diff --git a/src/document/web.dream/start.shy b/src/document/commands/web.dream/start.shy similarity index 100% rename from src/document/web.dream/start.shy rename to src/document/commands/web.dream/start.shy diff --git a/src/document/content.shy b/src/document/content.shy new file mode 100644 index 00000000..33d08496 --- /dev/null +++ b/src/document/content.shy @@ -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 diff --git a/src/document/download/content.shy b/src/document/download/content.shy new file mode 100644 index 00000000..acc487b8 --- /dev/null +++ b/src/document/download/content.shy @@ -0,0 +1 @@ +web.code.publish contexts diff --git a/src/document/index.shy b/src/document/index.shy new file mode 100644 index 00000000..ceca0614 --- /dev/null +++ b/src/document/index.shy @@ -0,0 +1,13 @@ +navmenu ` +"Contexts" / +_ +"GET STARED" started/ +"DOCS" docs/ +"COMMANDS" commands/ +"RESOURCES" resources/ +"COMMUNITY" community/ +"DOWNLOAD" download/ +"SUPPORT" support/ +_ +"Login" /chat/portal/ +` diff --git a/src/document/started/about/introduction.shy b/src/document/started/about/introduction.shy new file mode 100644 index 00000000..144d10be --- /dev/null +++ b/src/document/started/about/introduction.shy @@ -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 diff --git a/src/document/started/about/license.shy b/src/document/started/about/license.shy new file mode 100644 index 00000000..ee5794d3 --- /dev/null +++ b/src/document/started/about/license.shy @@ -0,0 +1 @@ +nfs.cat LICENSE diff --git a/src/document/started/index.shy b/src/document/started/index.shy new file mode 100644 index 00000000..32eb51ba --- /dev/null +++ b/src/document/started/index.shy @@ -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/ +` diff --git a/src/document/started/interfaces/cli.shy b/src/document/started/interfaces/cli.shy new file mode 100644 index 00000000..6c5eb595 --- /dev/null +++ b/src/document/started/interfaces/cli.shy @@ -0,0 +1,3 @@ +spark ` +cli +` diff --git a/src/document/started/interfaces/web.shy b/src/document/started/interfaces/web.shy new file mode 100644 index 00000000..60d3b847 --- /dev/null +++ b/src/document/started/interfaces/web.shy @@ -0,0 +1,3 @@ +spark ` +web +` diff --git a/src/document/started/started/install.shy b/src/document/started/started/install.shy new file mode 100644 index 00000000..acc487b8 --- /dev/null +++ b/src/document/started/started/install.shy @@ -0,0 +1 @@ +web.code.publish contexts diff --git a/src/main.go b/src/main.go index 318a393d..32b440e2 100644 --- a/src/main.go +++ b/src/main.go @@ -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" ) diff --git a/src/main.js b/src/main.js index 89d23995..f7d3a383 100644 --- a/src/main.js +++ b/src/main.js @@ -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/ diff --git a/src/main.shy b/src/main.shy index cc625009..144d10be 100644 --- a/src/main.shy +++ b/src/main.shy @@ -1,6 +1,4 @@ -title "contexts" -source recent.shy - +title "Contexts" chapter "实践" label ` code wiki chat team mall diff --git a/src/recent.shy b/src/recent.shy deleted file mode 100644 index f4f3d9a9..00000000 --- a/src/recent.shy +++ /dev/null @@ -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 -` diff --git a/src/template/web.chat.header/dark.css b/src/template/web.chat.header/dark.css index 361e0596..9d3a7fd8 100644 --- a/src/template/web.chat.header/dark.css +++ b/src/template/web.chat.header/dark.css @@ -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; } diff --git a/src/template/web.chat.portal/main.html b/src/template/web.chat.portal/main.html new file mode 100644 index 00000000..090a9b6d --- /dev/null +++ b/src/template/web.chat.portal/main.html @@ -0,0 +1,14 @@ + +
+ +{{.Option "text"}}
+{{.Option "text"}}
diff --git a/src/template/web.wiki.spark/title.html b/src/template/web.wiki.spark/title.html new file mode 100644 index 00000000..6bd7ab16 --- /dev/null +++ b/src/template/web.wiki.spark/title.html @@ -0,0 +1,2 @@ +