From 2847993bf01091a8f6648aef71ce9d915509156b Mon Sep 17 00:00:00 2001 From: shaoying Date: Wed, 11 Dec 2019 22:32:01 +0800 Subject: [PATCH] add favor pane --- src/plugin/context/index.shy | 2 +- src/plugin/story/index.shy | 2 +- usr/librarys/chat.js | 1 + usr/librarys/example.css | 17 +++++++++++++++++ usr/librarys/example.js | 3 ++- usr/local/wiki/volcano.md | 10 +++++----- 6 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/plugin/context/index.shy b/src/plugin/context/index.shy index 26a3517d..90f052ab 100644 --- a/src/plugin/context/index.shy +++ b/src/plugin/context/index.shy @@ -27,7 +27,7 @@ kit missyou "任务" private "_:cli.missyou" \ text "" name you view long \ text "" name see imports plugin_see \ button "行动" action auto \ - exports you "" you + exports you you "" "" status you_status kit pod "设备" private "_:ssh.remote" \ text "" name pod imports plugin_pod \ diff --git a/src/plugin/story/index.shy b/src/plugin/story/index.shy index 7177886c..34e06320 100644 --- a/src/plugin/story/index.shy +++ b/src/plugin/story/index.shy @@ -4,7 +4,7 @@ kit share "共享" public "web.chat.share" \ button "共享" kit note "记事本" public "_:web.wiki.note" "@you" \ - text "volcano.md" name story imports plugin_story view long action auto \ + text "volcano.md" name story imports path view long action auto \ button "查看" action auto \ button "返回" cb Last \ exports story file \ diff --git a/usr/librarys/chat.js b/usr/librarys/chat.js index 87e0d1c1..334dc4cc 100644 --- a/usr/librarys/chat.js +++ b/usr/librarys/chat.js @@ -325,6 +325,7 @@ var page = Page({ } }, initAction: function(page, field, option, output) { + if (ctx.Search("feature") != "") {return} var river = "", storm = 0, input = "", share = "" var temp = "" var you = "" diff --git a/usr/librarys/example.css b/usr/librarys/example.css index 2bce9f41..800ffa30 100644 --- a/usr/librarys/example.css +++ b/usr/librarys/example.css @@ -171,6 +171,22 @@ fieldset.dialog>div.create table { min-width:240px; } +fieldset.dialog.Favor { + border:solid 2px red; + background-color:rgba(100,100,100,0.8); + position:absolute; + display:none; + z-index:100; +} +fieldset.dialog.Favor input.cmd { + color:white; + font-size:16px; + font-weight:bold; + font-family:monospace; + background-color:black; + width:388px; +} + fieldset.dialog.Toast { border:solid 2px red; background-color:#ffffff; @@ -183,6 +199,7 @@ fieldset.dialog.Toast>div.action { } fieldset.dialog.Toast>div.output { padding:0 10px; + text-align:center; } fieldset.dialog.Toast>div.output>div.title { font-size:12px; diff --git a/usr/librarys/example.js b/usr/librarys/example.js index 84b7085e..adf13642 100644 --- a/usr/librarys/example.js +++ b/usr/librarys/example.js @@ -154,6 +154,7 @@ function Page(page) { page.Status() } + if (ctx.Search("feature") != "") {return} // 事件回调 document.body.onkeydown = function(event) { @@ -165,7 +166,6 @@ function Page(page) { }, document.body.onmouseup = function(event) { } - if (ctx.Search("feature") != "") {return} window.onresize = function(event) { page.onlayout(event) } @@ -552,6 +552,7 @@ function Page(page) { } }, initHeader: function(page, field, option, output) { + if (ctx.Search("feature") != "") {return} var cb = function(event, item, value) {kit._call(page.Action[item], [event, item, value, page])} field.onclick = function(event) {page.pane && page.pane.scrollTo(0, 0)} page.who.change(function(value, old) {page.Button("user", value)}) diff --git a/usr/local/wiki/volcano.md b/usr/local/wiki/volcano.md index e58761ae..16e46a67 100644 --- a/usr/local/wiki/volcano.md +++ b/usr/local/wiki/volcano.md @@ -43,7 +43,7 @@ volcanos ` "" "" 16}} -## {{chapter "原型"}} +## {{chapter "原型 proto.js"}} ### {{section "ID 生成器"}} ### {{section "Log 日志器"}} ### {{section "Conf 配置器"}} @@ -54,28 +54,28 @@ volcanos ### {{section "Cache 缓存器"}} ### {{section "Story 存储器"}} -## {{chapter "框架"}} +## {{chapter "框架 frame.js"}} ### {{section "Page 页面"}} ### {{section "Pane 面板"}} ### {{section "Plugin 插件"}} ### {{section "Inputs 控件"}} ### {{section "Output 组件"}} -## {{chapter "核心模块"}} +## {{chapter "核心模块 lib/"}} ### {{section "base 模块"}} ### {{section "core 模块"}} ### {{section "misc 模块"}} ### {{section "page 模块"}} ### {{section "user 模块"}} -## {{chapter "事件模块"}} +## {{chapter "事件模块 pane/"}} ### {{section "onimport 模块"}} ### {{section "onaction 模块"}} ### {{section "onchoice 模块"}} ### {{section "ondetail 模块"}} ### {{section "onexport 模块"}} -## {{chapter "配置"}} +## {{chapter "配置 order.js"}} ### {{section "Header"}} ### {{section "Ocean"}} ### {{section "River"}}