From c5b83801b45acae09bf7d83adaf58ae01e25146b Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 18 Aug 2023 13:04:24 +0800 Subject: [PATCH] add some --- etc/init.shy | 5 ++ src/main.go | 1 + src/template/web.chat.header/language/en.js | 1 + src/template/web.chat.header/language/zh.js | 48 +++++++++++++++++++ .../web.chat.header/{ => theme}/black.css | 0 .../web.chat.header/{ => theme}/dark.css | 0 .../web.chat.header/{ => theme}/light.css | 0 .../web.chat.header/{ => theme}/mobile.css | 0 .../web.chat.header/{ => theme}/white.css | 0 src/template/web.team.task/zone | 4 ++ src/template/web/cmds.html | 11 +++-- src/template/web/main.html | 11 +++-- usr/local/export/web.chat.favor/hash.json | 16 ------- 13 files changed, 71 insertions(+), 26 deletions(-) create mode 100644 src/template/web.chat.header/language/en.js create mode 100644 src/template/web.chat.header/language/zh.js rename src/template/web.chat.header/{ => theme}/black.css (100%) rename src/template/web.chat.header/{ => theme}/dark.css (100%) rename src/template/web.chat.header/{ => theme}/light.css (100%) rename src/template/web.chat.header/{ => theme}/mobile.css (100%) rename src/template/web.chat.header/{ => theme}/white.css (100%) create mode 100644 src/template/web.team.task/zone diff --git a/etc/init.shy b/etc/init.shy index e50c76a9..1d7d3fe4 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -26,5 +26,10 @@ binpack insert usr/node_modules/bootstrap-icons/font/ binpack insert usr/icons/ +~web + spide create monitor https://monitor.shylinux.com + spide create repos https://repos.shylinux.com + spide create mail https://mail.shylinux.com + ~ssh source local.shy diff --git a/src/main.go b/src/main.go index 32b440e2..ff0de3a3 100644 --- a/src/main.go +++ b/src/main.go @@ -2,6 +2,7 @@ package main import ( "shylinux.com/x/ice" + _ "shylinux.com/x/icebergs/core/chat/oauth" _ "shylinux.com/x/icebergs/misc/alpha" _ "shylinux.com/x/icebergs/misc/chrome" _ "shylinux.com/x/icebergs/misc/java" diff --git a/src/template/web.chat.header/language/en.js b/src/template/web.chat.header/language/en.js new file mode 100644 index 00000000..9b70e301 --- /dev/null +++ b/src/template/web.chat.header/language/en.js @@ -0,0 +1 @@ +Volcanos("user", {_trans: {}}) diff --git a/src/template/web.chat.header/language/zh.js b/src/template/web.chat.header/language/zh.js new file mode 100644 index 00000000..d2db8f05 --- /dev/null +++ b/src/template/web.chat.header/language/zh.js @@ -0,0 +1,48 @@ +Volcanos("user", {_trans: kit.Dict("_week_header", ["周日", "周一", "周二", "周三", "周四", "周五", "周六"], + mdb.CREATE, "创建", mdb.REMOVE, "删除", mdb.INSERT, "添加", mdb.DELETE, "删除", + mdb.PRUNES, "清理", mdb.PRUNE, "清理", mdb.EXPORT, "导出", mdb.IMPORT, "导入", + mdb.SEARCH, "搜索", mdb.PLUGIN, "插件", + mdb.PREV, "上一页", mdb.NEXT, "下一页", + + ice.LIST, "查看", ice.BACK, "返回", ice.RUN, "执行", + ctx.ACTION, "操作", + + cli.BEGIN, "开始", cli.END, "结束", + cli.START, "启动", cli.STOP, "停止", cli.RESTART, "重启", + cli.OPEN, "打开", cli.CLOSE, "关闭", cli.DONE, "完成", + + nfs.SAVE, "保存", nfs.LOAD, "加载", nfs.TRASH, "清理", + nfs.PUSH, "上传", nfs.PULL, "下载", + nfs.SOURCE, "源码", nfs.MODULE, "模块", + + web.CANCEL, "取消", web.SUBMIT, "提交", + web.CLEAR, "清空", web.REFRESH, "刷新", + web.UPLOAD, "上传", web.DOWNLOAD, "下载", + web.SHARE, "共享", web.CONFIRM, "确定", + + html.HEIGHT, "高度", html.WIDTH, "宽度", + html.IFRAME, "预览", + + code.XTERM, "终端", code.INNER, "源码", + code.COMPILE, "编译", code.UPGRADE, "升级", + + "Close", "关闭", "Close Other", "关闭其它", "Rename Tabs", "重命名", + "logs", "日志", "configs", "配置", "inspect", "详情", "portal", "首页", + "add", "添加", "opt", "优化", "fix", "修复", +)}) +kit.Dict( + mdb.REVERT, "恢复", + aaa.INVITE, "邀请", + mdb.LINK, "链接", + web.CLEAR, "清空", web.TOIMAGE, "截图", + nfs.COPY, "复制", nfs.EDIT, "编辑", + nfs.RECENT, "最近", + cli.SYSTEM, "命令", cli.ORDER, "加载", cli.BUILD, "构建", + chat.LOCATION, "地图", + html.LABEL, "标签", ice.SHOW, "显示", ice.HIDE, "隐藏", chat.PROJECT, "项目", chat.PROFILE, "详情", chat.ACTIONS, "操作", + "full", "全屏", + "message", "信息", + "max", "最大", + "auto", "自动", + "prepare", "准备", "process", "处理", "finish", "完成", +) diff --git a/src/template/web.chat.header/black.css b/src/template/web.chat.header/theme/black.css similarity index 100% rename from src/template/web.chat.header/black.css rename to src/template/web.chat.header/theme/black.css diff --git a/src/template/web.chat.header/dark.css b/src/template/web.chat.header/theme/dark.css similarity index 100% rename from src/template/web.chat.header/dark.css rename to src/template/web.chat.header/theme/dark.css diff --git a/src/template/web.chat.header/light.css b/src/template/web.chat.header/theme/light.css similarity index 100% rename from src/template/web.chat.header/light.css rename to src/template/web.chat.header/theme/light.css diff --git a/src/template/web.chat.header/mobile.css b/src/template/web.chat.header/theme/mobile.css similarity index 100% rename from src/template/web.chat.header/mobile.css rename to src/template/web.chat.header/theme/mobile.css diff --git a/src/template/web.chat.header/white.css b/src/template/web.chat.header/theme/white.css similarity index 100% rename from src/template/web.chat.header/white.css rename to src/template/web.chat.header/theme/white.css diff --git a/src/template/web.team.task/zone b/src/template/web.team.task/zone new file mode 100644 index 00000000..69bea2ec --- /dev/null +++ b/src/template/web.team.task/zone @@ -0,0 +1,4 @@ +市场调研 +系统设计 +项目开发 +项目验收 diff --git a/src/template/web/cmds.html b/src/template/web/cmds.html index b541f193..6f23dc66 100644 --- a/src/template/web/cmds.html +++ b/src/template/web/cmds.html @@ -2,13 +2,14 @@ volcanos - - - + + + - - + + + diff --git a/src/template/web/main.html b/src/template/web/main.html index 090a9b6d..6e890c21 100644 --- a/src/template/web/main.html +++ b/src/template/web/main.html @@ -2,13 +2,14 @@ volcanos - - - + + + - - + + + diff --git a/usr/local/export/web.chat.favor/hash.json b/usr/local/export/web.chat.favor/hash.json index f2b7632f..0facdbcd 100644 --- a/usr/local/export/web.chat.favor/hash.json +++ b/usr/local/export/web.chat.favor/hash.json @@ -1,12 +1,4 @@ { - "2598af": { - "meta": { - "name": "busybox", - "text": "docker run -w /root -it busybox", - "time": "2023-07-29 11:33:27.816", - "type": "shell" - } - }, "329132": { "meta": { "name": "2021.shylinux.com:20000", @@ -31,14 +23,6 @@ "type": "link" } }, - "45f8b9": { - "meta": { - "name": "alpine", - "text": "docker run -w /root -it alpine", - "time": "2023-07-29 11:33:50.015", - "type": "shell" - } - }, "6722d8": { "meta": { "name": "2021.shylinux.com:20001",