From 6e4aaf9fcbee5dd8ccba20dce487a7d318c8ec2c Mon Sep 17 00:00:00 2001 From: bergyu Date: Thu, 16 Dec 2021 10:57:53 +0800 Subject: [PATCH] opt some --- publish/chrome/popup.js | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/publish/chrome/popup.js b/publish/chrome/popup.js index 0745f9aa..1da8e734 100644 --- a/publish/chrome/popup.js +++ b/publish/chrome/popup.js @@ -1,23 +1,17 @@ -Volcanos({name: "popup", iceberg: "http://localhost:9020/chat/", panels: [ - {name: "Header", help: "标题栏", pos: chat.HEAD, state: ["time", "username", "avatar"]}, - {name: "River", help: "群聊组", pos: chat.LEFT, action: ["create", "refresh"]}, - {name: "Action", help: "工作台", pos: chat.MAIN}, - {name: "Search", help: "搜索框", pos: chat.AUTO}, - {name: "Footer", help: "状态条", pos: chat.FOOT, state: ["ncmd"]}, - ], main: {name: "Header", list: ["/publish/order.js"]}, plugin: [], river: { +Volcanos({name: "popup", iceberg: "http://localhost:9020/chat/", river: { serivce: {name: "运营群", storm: { - wx: {name: "公众号 wx", action: [ + wx: {name: "公众号 wx", list: [ {name: "微信公众号", help: "wx", index: "web.wiki.word", args: ["usr/icebergs/misc/wx/wx.shy"]}, ]}, - mp: {name: "小程序 mp", action: [ + mp: {name: "小程序 mp", list: [ {name: "微信小程序", help: "mp", index: "web.wiki.word", args: ["usr/icebergs/misc/mp/mp.shy"]}, ]}, - lark: {name: "机器人 lark", action: [ + lark: {name: "机器人 lark", list: [ {name: "飞书机器人", help: "lark", index: "web.wiki.word", args: ["usr/icebergs/misc/lark/lark.shy"]}, ]}, }}, product: {name: "产品群", storm: { - office: {name: "办公 office", action: [ + 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"}, @@ -26,18 +20,18 @@ Volcanos({name: "popup", iceberg: "http://localhost:9020/chat/", panels: [ {name: "index", help: "索引", index: "web.wiki.word", args: ["usr/learning/index.shy"]}, {name: "context", help: "编程", index: "web.wiki.word", args: ["src/main.shy"]}, ]}, - english: {name: "英汉 english", action: [ + english: {name: "英汉 english", list: [ {name: "english", help: "英汉", index: "web.wiki.alpha.alpha", args: ["word", "hi"]}, {name: "chinese", help: "汉英", index: "web.wiki.alpha.alpha", args: ["line", "你好"]}, {name: "wubi", help: "五笔", index: "web.code.input.wubi", args: ["word", "wqvb"]}, {name: "wubi", help: "五笔", index: "web.code.input.wubi", args: ["line", "你好"]}, ]}, - learning: {name: "学习 learning", action: [ + learning: {name: "学习 learning", list: [ {name: "golang", help: "编程", index: "web.wiki.word", args: ["usr/golang-story/src/main.shy"]}, {name: "tmux", help: "粘贴", index: "web.code.tmux.text"}, {name: "study", help: "学习", index: "web.wiki.word", args: ["usr/learning/study.shy"]}, ]}, - chrome: {name: "爬虫 chrome", action: [ + chrome: {name: "爬虫 chrome", list: [ {name: "feel", help: "网页爬虫", index: "web.wiki.feel", args: ["spide/"], feature: { display: "/plugin/local/wiki/feel.js", height: 200, limit: 3, @@ -47,39 +41,39 @@ Volcanos({name: "popup", iceberg: "http://localhost:9020/chat/", panels: [ ]}, }}, project: {name: "研发群", storm: { - studio: {name: "研发 studio", action: [ + studio: {name: "研发 studio", list: [ {name: "vimer", help: "编辑器", index: "web.code.vimer", args: ["src/", "main.go"]}, {name: "repos", help: "代码库", index: "web.code.git.status"}, {name: "plan", help: "任务表", index: "web.team.plan"}, {name: "ctx", help: "上下文", index: "web.wiki.word", args: ["src/main.shy"]}, ]}, - web: {name: "网页 web", action: [ + web: {name: "网页 web", list: [ {name: "HTML5", help: "浏览器", index: "web.wiki.word", args: ["usr/icebergs/misc/chrome/chrome.shy"]}, ]}, - cli: {name: "命令 cli", action: [ + cli: {name: "命令 cli", list: [ {name: "bash", help: "命令行", index: "web.wiki.word", args: ["usr/icebergs/misc/bash/bash.shy"]}, {name: "git", help: "代码库", index: "web.wiki.word", args: ["usr/icebergs/misc/git/git.shy"]}, {name: "vim", help: "编辑器", index: "web.wiki.word", args: ["usr/icebergs/misc/vim/vim.shy"]}, {name: "tmux", help: "命令行", index: "web.wiki.word", args: ["usr/icebergs/misc/tmux/tmux.shy"]}, ]}, - linux: {name: "系统 linux", action: [ + linux: {name: "系统 linux", list: [ {name: "idc", help: "平台", index: "web.wiki.word", args: ["usr/linux-story/idc/idc.shy"]}, {name: "iso", help: "系统", index: "web.wiki.word", args: ["usr/linux-story/iso/iso.shy"]}, {name: "iot", help: "设备", index: "web.wiki.word", args: ["usr/linux-story/iot/iot.shy"]}, {name: "cli", help: "命令", index: "web.wiki.word", args: ["usr/linux-story/cli/cli.shy"]}, {name: "linux", help: "系统", index: "web.wiki.word", args: ["usr/linux-story/src/main.shy"]}, ]}, - nginx: {name: "代理 nginx", action: [ + nginx: {name: "代理 nginx", list: [ {name: "nginx", help: "代理", index: "web.wiki.word", args: ["usr/nginx-story/src/main.shy"]}, ]}, - context: {name: "编程 context", action: [ + context: {name: "编程 context", list: [ {name: "golang", help: "编程", index: "web.wiki.word", args: ["usr/golang-story/src/main.shy"]}, ]}, - redis: {name: "缓存 redis", action: [ + redis: {name: "缓存 redis", list: [ {name: "redis", help: "缓存", index: "web.wiki.word", args: ["usr/redis-story/src/main.shy"]}, {name: "kafka", help: "队列", index: "web.wiki.word", args: ["usr/redis-story/src/kafka/kafka.shy"]}, ]}, - mysql: {name: "存储 mysql", action: [ + mysql: {name: "存储 mysql", list: [ {name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]}, {name: "clickhouse", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/clickhouse/clickhouse.shy"]}, ]},