1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
harveyshao 2023-02-18 11:23:02 +08:00
parent 0acab85b0b
commit a8775c39b5
5 changed files with 17 additions and 19 deletions

View File

@ -187,8 +187,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
return action.list && action.list.length > 0? can.user.input(event, can, action.list, function(data) {
can.core.CallFunc(action, {can: can, msg: can.request(event, data), arg: cmds.slice(2), cb: cb})
}): can.core.CallFunc(action, {can: can, msg: can.request(event), arg: cmds.slice(2), cb: cb})
}
return can.user.input(event, can, meta.feature[cmds[1]], function(args) { can.Update(can.request(event, {_handle: ice.TRUE}, can.Option()), cmds.slice(0, 2).concat(args), cb) })
} return can.user.input(event, can, meta.feature[cmds[1]], function(args) { can.Update(can.request(event, {_handle: ice.TRUE}, can.Option()), cmds.slice(0, 2).concat(args), cb) })
}
return can.onengine._plugin(event, can, msg, can, cmds, cb) || can.run(event, cmds, cb||function(msg) { if (silent) { return } var _can = can._fields? can.sup: can
if (_can == (msg._can._fields? msg._can.sup: msg._can) && can.core.CallFunc([_can, chat.ONIMPORT, ice.MSG_PROCESS], {can: _can, msg: msg})) { return }
@ -356,9 +355,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
can.run(can.request(event, can.Option()), [ctx.ACTION, target.name])
}) } }); return code.scrollBy && code.scrollBy(0, 10000), code
},
tools: function(can, msg, cb, target) {
can.onimport.tool(can, can.base.Obj(msg.Option(ice.MSG_TOOLKIT), []), cb, target)
},
tools: function(can, msg, cb, target) { can.onimport.tool(can, can.base.Obj(msg.Option(ice.MSG_TOOLKIT), []), cb, target) },
layout: function(can, target, type, list) { const FLOW = html.FLOW, FLEX = html.FLEX
var count = 0, ui = {size: {}}; type = type||FLEX
function append(target, type, list) { can.page.ClassList.add(can, target, [html.LAYOUT, type]), can.core.List(list, function(item) {

View File

@ -117,6 +117,7 @@ legend>span.delete { font-size:1rem; margin-left:5px; margin-right:-15px; visibi
// legend:hover>span.delete { visibility:visible; }
select, input { font-size:1rem; height:31px; } textarea { tab-size:2; height:93px; } input::placeholder { font-style:italic; }
table.content, div.item, div.code, div.story[data-type=spark] { white-space:pre; text-align:left; }
table.content, div.item, div.code, div.story[data-type=spark] { font-family:monospace; }
div.action>div.tabs { padding:5px; height:31px; }
div.status>div.item { padding:5px; height:30px; }
div.status>div.item>label { font-size:0.6rem; }
@ -155,15 +156,6 @@ div.carte.select.float>div.item { text-align:center; }
div.item.select span { margin-left:-20px; margin-right:10px; }
div.item.select input { border-radius:0; min-width:60px; }
div.project div.zone div.list { clear:both; }
body.en fieldset.input.date.float>div.action>div.item.select { margin:0 5px; }
body.en fieldset.input.date.float>div.action>div.item.select select { width:64px; }
body.en fieldset.input.date.float>div.action>div.item.select.year select { width:115px; }
body.en fieldset.input.date.float>div.action>div.item.select.month select { width:115px; }
body.zh fieldset.input.date.float>div.action>div.item.select { margin:0 5px; }
body.zh fieldset.input.date.float>div.action>div.item.select select { width:68px; }
body.zh fieldset.input.date.float>div.action>div.item.select.year select { width:95px; }
body.zh fieldset.input.date.float>div.action>div.item.select.month select { width:95px; }
/* hover */
legend:hover { background-color:skyblue; }
select:hover { background-color:gray; color:cyan; }
@ -300,6 +292,14 @@ fieldset.qrcode>div.output div.code { padding:0; }
fieldset.can.view { font-size:14px; }
fieldset.can.data { font-size:14px; }
body.mobile fieldset.plugin>legend { border:none; }
body.en fieldset.input.date.float>div.action>div.item.select { margin:0 5px; }
body.en fieldset.input.date.float>div.action>div.item.select select { width:64px; }
body.en fieldset.input.date.float>div.action>div.item.select.year select { width:115px; }
body.en fieldset.input.date.float>div.action>div.item.select.month select { width:115px; }
body.zh fieldset.input.date.float>div.action>div.item.select { margin:0 5px; }
body.zh fieldset.input.date.float>div.action>div.item.select select { width:68px; }
body.zh fieldset.input.date.float>div.action>div.item.select.year select { width:95px; }
body.zh fieldset.input.date.float>div.action>div.item.select.month select { width:95px; }
/* layout */
table.layout { border-spacing:0; }
table.layout td { vertical-align:top; }

View File

@ -46,8 +46,8 @@ Volcanos(chat.ONACTION, {list: [mdb.CREATE, web.SHARE, web.REFRESH], _init: func
can.onaction.storm({target: can.ui.river_list[river]}, can, river), can.onmotion.toggle(can, can.ui.sublist[river], true)
can.onmotion.select(can, can._output, [html.DIV_LIST, html.DIV_ITEM], can.ui.storm_list[can.core.Keys(river, storm)])
can.onengine.signal(can, chat.ONSTORM_SELECT, can.request(event, {river: can.Conf(chat.RIVER, river), storm: can.Conf(chat.STORM, storm)}))
location.hash = [river, storm].join(ice.DF)
// can.misc.sessionStorage(can, "can.river", river), can.misc.sessionStorage(can, "can.storm", storm)
// location.hash = [river, storm].join(ice.DF)
can.misc.sessionStorage(can, "can.river", river), can.misc.sessionStorage(can, "can.storm", storm)
},
carte: function(event, can, list, river, storm) { can.onkeymap.prevent(event); if (can.core.Value(can._root, can.core.Keys(chat.RIVER, river))) { return }
can.request(event, {river: river, storm: storm})

View File

@ -324,7 +324,7 @@ Volcanos(chat.ONSYNTAX, {_init: function(can, msg, cb) {
}).join("")); return line
},
})
Volcanos(chat.ONACTION, {list: ["首页", "官网", "调试", "百度"],
Volcanos(chat.ONACTION, {list: ["调试", "首页", "官网", "源码", "百度"],
_getLine: function(can, line) { return can.page.Select(can, can.ui.content, "tr.line>td.line", function(td, index) { if (td.parentNode == line || index+1 == line) { return td.parentNode } })[0] },
_getLineno: function(can, line) { return can.page.Select(can, can.ui.content, "tr.line>td.line", function(td, index) { if (td.parentNode == line || index+1 == line) { return index+1 } })[0] },
appendLine: function(can, value) { var ui = can.page.Append(can, can.ui._content, [{view: [nfs.LINE, html.TR], list: [

View File

@ -104,9 +104,10 @@ Volcanos(chat.ONACTION, {
"扩展": function(event, can) { can.user.input(can.request(event, {action: "extension"}), can, ["url"], function(list) {
var sub = can.db.toolkit[list[0]]; sub? sub.select(): can.onimport.exts(can, list[0])
}) },
"首页": function(event, can) { can.user.open(location.origin+(can.misc.Search(can, log.DEBUG) == ice.TRUE? "?debug=true": "")) },
"官网": function(event, can) { can.user.open("https://shylinux.com/") },
"调试": function(event, can) { can.user.opens(location.href.replace("debug=true", "debug=false")) },
"首页": function(event, can) { can.user.open(location.origin+(can.misc.Search(can, log.DEBUG) == ice.TRUE? "?debug=true": "")) },
"官网": function(event, can) { can.user.open("https://contexts.com.cn/") },
"源码": function(event, can) { can.user.open("https://shylinux.com/") },
"百度": function(event, can) { can.user.opens("https://baidu.com/") },
"全屏": function(event, can) { can._target.requestFullScreen() },
"录屏": function(event, can) { window.openapp("QuickTime Player") },