1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-07-22 09:04:46 +08:00
parent 40d267a29d
commit f934e2b0e5
3 changed files with 7 additions and 5 deletions

View File

@ -495,7 +495,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
if (can.base.isFunc(value)) {
can.onengine._plugin(event, can._root, can.request(event), value.can, [meta.index].concat(cmds), cb)
} else {
can.runActionCommand(sub.request(event), sub._index, cmds, cb)
can.runActionCommand(sub.request(event, {pod: meta.space}), sub._index, cmds, cb)
}
}
sub._index = value.index||meta.index, can.base.isFunc(cb) && cb(sub, meta, skip)

View File

@ -38,7 +38,7 @@ table.content col.action { width:180px; }
h1 { text-align:center; margin:20px 0; } h2 { margin:20px 0; } h3 { margin:20px 0; }
hr, td.hr { border-bottom:var(--plugin-border-color) dashed 1px; margin:5px; }
ul { padding-left:20px; margin:20px 0; }
kbd { padding:0 10px; }
kbd { padding:0 5px; }
img { margin-bottom:-8px; }
/* fieldset */
fieldset>legend { margin-right:10px; }
@ -84,6 +84,7 @@ body>div.carte input[name=filter] { margin:5px; width:calc(100% - 10px); positio
body>div.carte div.item { white-space:pre; padding:5px 10px; }
body>div.carte div.item span.icon.next { float:right; line-height:22px; height:22px; }
body>div.carte.select.float>div.item { text-align:center; }
body>div.input { padding:20px; }
body>div.input td { padding:10px; }
body>div.input td span.icon { margin-left:-25px; visibility:hidden; }
body>div.input td:hover span.icon { visibility:visible; }
@ -106,7 +107,7 @@ legend { font-size:1.2rem; line-height:32px; height:32px; }
select, input { font-size:1rem; height:32px; } input::placeholder, textarea::placeholder { font-style:italic; }
textarea { font-size:1rem; tab-size:2; padding:5px; height:96px; width:100%; resize:vertical; }
table.content, div.code, div.story[data-type=spark] { white-space:pre; margin:0; }
div.story[data-type=spark] { padding:5px 10px; border-left:var(--notice-fg-color) solid 5px; }
div.story[data-type=spark] { padding:0 5px; border-left:var(--notice-fg-color) solid 5px; }
fieldset>div.action>div.tabs { font-style:italic; padding:0 10px;}
fieldset>div.output>div.code { font-size:14px; }
fieldset>div.status>div.item { padding:5px; height:31px; }

View File

@ -90,8 +90,9 @@ Volcanos(chat.ONDETAIL, {
})
}) },
addcmd: function(event, can, button, river, storm) { can.user.input(can.request(event, {title: "添加工具"}), can, [
{name: web.SPACE, value: can.misc.Search(can, ice.POD)||""},
mdb.ICON, {name: ctx.INDEX, need: "must"}, ctx.ARGS, ctx.DISPLAY, ctx.STYLE,
{name: web.SPACE, _trans: "空间"},
{name: ctx.INDEX, need: "must", _trans: "命令"}, {name: ctx.ARGS, _trans: "参数"},
{name: mdb.ICON, _trans: "图标"}, {name: ctx.STYLE, _trans: "样式"}, {name: ctx.DISPLAY, _trans: "脚本"},
], function(args) {
can.run({}, [river, storm, chat.STORM, ctx.ACTION, mdb.INSERT].concat(args), function(msg) {
can.onengine.signal(can, chat.ONSTORM_SELECT, can.request(event, {river: can.Conf(chat.RIVER, river), storm: can.Conf(chat.STORM, storm), refresh: ice.TRUE}))