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

opt main.js

This commit is contained in:
harveyshao 2022-11-14 15:26:22 +08:00
parent 7a2b2a50dc
commit ed355ea42a

View File

@ -1,10 +1,69 @@
Volcanos("onimport", {help: "导入数据", _init: function(can, msg) {
can.onaction.show(can, msg)
msg.Echo("hello world")
msg.Echo("hello world")
msg.Dump(can)
}})
Volcanos("onaction", {help: "操作数据", show: function(can, msg) {
msg.Push("hi", "hello")
msg.Echo("hello world")
Volcanos({river: {
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",
]},
}},
project: {name: "研发群", storm: {
studio: {name: "研发 studio", list: [
{name: "vimer", help: "编辑器", index: "web.code.vimer", args: ["src/,usr/icebergs/,usr/volcanos/", "main.go"]},
{name: "repos", help: "代码库", index: "web.code.git.status"},
{name: "plan", help: "任务表", index: "web.team.plan"},
{name: "ctx", help: "上下文", index: "web.wiki.word"},
]},
}},
profile: {name: "测试群", storm: {
release: {name: "发布 release", index: [
"web.code.webpack",
"web.code.compile",
"web.code.publish",
"web.code.docker.client",
"web.space",
"web.dream",
"web.code.git.server",
"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",
]},
}},
operate: {name: "运维群", storm: {
aaa: {name: "权限 aaa", index: [
"user", "totp", "sess", "role",
]},
web: {name: "应用 web", index: [
"broad", "serve", "space", "dream",
"share", "spide", "cache", "story",
]},
cli: {name: "系统 cli", index: [
"qrcode", "daemon", "system", "runtime", "mirrors", "forever", "port",
]},
nfs: {name: "文件 nfs", index: [
"cat", "dir", "pack", "tail", "trash",
]},
}},
}})