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

add favor pane

This commit is contained in:
shaoying 2019-12-11 22:32:01 +08:00
parent eb7afae2fc
commit 2847993bf0
6 changed files with 27 additions and 8 deletions

View File

@ -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 \

View File

@ -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 \

View File

@ -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 = ""

View File

@ -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;

View File

@ -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)})

View File

@ -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"}}