diff --git a/manifest.json b/manifest.json index c651be8f..e7afc774 100644 --- a/manifest.json +++ b/manifest.json @@ -4,9 +4,9 @@ "background": {"page": "/publish/chrome/chrome.html"}, "browser_action": {"default_popup": "/publish/chrome/popup.html"}, "content_scripts": [{"matches": [""], "css": ["/publish/chrome/contexts.css"], - "js": ["/proto.js", "/lib/base.js", "/lib/core.js", "/lib/misc.js", "/lib/page.js", "/lib/user.js", - "/plugin/state.js", "/plugin/input.js", "/plugin/table.js", - "/frame.js", "/publish/chrome/contexts.js" + "js": ["/proto.js", "/plugin/state.js", "/plugin/input.js", "/plugin/table.js", + "/lib/base.js", "/lib/core.js", "/lib/misc.js", "/lib/page.js", "/lib/user.js", + "/publish/chrome/contexts.js", "/frame.js" ]} ], "permissions": [ diff --git a/publish/chrome/popup.js b/publish/chrome/popup.js index a1b9d779..f4523539 100644 --- a/publish/chrome/popup.js +++ b/publish/chrome/popup.js @@ -1,9 +1,9 @@ -Volcanos({name: "demo", iceberg: "http://localhost:9020/chat/", panels: [ - {name: "Header", help: "标题栏", pos: "head", state: ["time", "username"]}, - {name: "Search", help: "搜索框", pos: "auto"}, - {name: "River", help: "群聊组", pos: "left", action: ["create", "refresh"]}, - {name: "Action", help: "工作台", pos: "main"}, - {name: "Footer", help: "状态条", pos: "foot", state: ["ncmd"]}, +Volcanos({name: "popup", iceberg: "http://localhost:9020/chat/", panels: [ + {name: "Header", help: "标题栏", pos: chat.HEAD, state: ["time", "username", "avatar"]}, + {name: "Search", help: "搜索框", pos: chat.AUTO}, + {name: "River", help: "群聊组", pos: chat.LEFT, action: ["create", "refresh"]}, + {name: "Action", help: "工作台", pos: chat.MAIN}, + {name: "Footer", help: "状态条", pos: chat.FOOT, state: ["ncmd"]}, ], main: {name: "Header", list: ["/publish/order.js"]}, plugin: [ "/plugin/state.js", "/plugin/input.js", "/plugin/table.js", ], river: {