1
0
forked from x/volcanos
This commit is contained in:
IT 老营长 @云轩领航-创始人 2022-07-17 22:28:03 +08:00
parent f52d4ee3a5
commit 6c1bb50cf6
3 changed files with 13 additions and 3 deletions

View File

@ -126,7 +126,7 @@ div.code, div.story, div.item, div.content, table.content, textarea { white-spac
div.code, div.story, div.item { text-align:left; } div.code, div.story, div.item { text-align:left; }
/* position cursor */ /* position cursor */
fieldset.full, fieldset.float, fieldset.input, body>div.toast, body>div.carte, body>div.input, body>div.upload { position:fixed; z-index:10; } fieldset.auto, fieldset.full, fieldset.float, fieldset.input, body>div.toast, body>div.carte, body>div.input, body>div.upload { position:fixed; z-index:10; }
legend, select, input[type=button], div.item, div.tabs, th, td, h1, h2, h3 { cursor:pointer; } legend, select, input[type=button], div.item, div.tabs, th, td, h1, h2, h3 { cursor:pointer; }
div.title, div.story[data-type=spark] { cursor:copy; } div.title, div.story[data-type=spark] { cursor:copy; }

View File

@ -50,7 +50,17 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
cli.CLEAR, function(event) { can.onmotion.clear(can, ui.output) }, cli.CLEAR, function(event) { can.onmotion.clear(can, ui.output) },
cli.SHOW, function(event) { can.onaction[cli.SHOW](event, can) }, cli.SHOW, function(event) { can.onaction[cli.SHOW](event, can) },
nfs.LOAD, function(event) { can.onaction[nfs.LOAD](event, can) }, nfs.LOAD, function(event) { can.onaction[nfs.LOAD](event, can) },
mdb.LINK, function(event) { can.user.open(can.misc.MergeURL(can, {pod: can.misc.Search(can, ice.POD), cmd: can.base.Path(can.Option(nfs.PATH), can.Option(nfs.FILE))})) }, mdb.LINK, function(event) {
if ([nfs.ZML, nfs.IML].indexOf(can.base.Ext(can.Option(nfs.FILE))) > -1) {
can.user.open(can.misc.MergeURL(can, {
pod: can.misc.Search(can, ice.POD), website: can.base.trimPrefix(can.base.Path(can.Option(nfs.PATH), can.Option(nfs.FILE)), "src/website/"),
}))
} else {
can.user.open(can.misc.MergeURL(can, {
pod: can.misc.Search(can, ice.POD), cmd: can.base.Path(can.Option(nfs.PATH), can.Option(nfs.FILE))
}))
}
},
mdb.PLUGIN, function(event) { can.user.input(event, can, [ctx.INDEX, ctx.ARGS], function(data) { can.onimport.plug(can, data, ui.output) }) }, mdb.PLUGIN, function(event) { can.user.input(event, can, [ctx.INDEX, ctx.ARGS], function(data) { can.onimport.plug(can, data, ui.output) }) },
html.WIDTH, function(event) { html.WIDTH, function(event) {
can.user.input(event, can, [{name: html.WIDTH, value: can.profile_size[can.onexport.keys(can)]*100/can.ConfWidth()||50}], function(list) { can.user.input(event, can, [{name: html.WIDTH, value: can.profile_size[can.onexport.keys(can)]*100/can.ConfWidth()||50}], function(list) {

View File

@ -109,7 +109,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
{view: [wiki.TITLE, html.DIV, value.name]}, {view: [wiki.TITLE, html.DIV, value.name]},
{view: [wiki.CONTENT, html.DIV, value.text]}, {view: [wiki.CONTENT, html.DIV, value.text]},
{view: html.ACTION, inner: value.action, onclick: function(event) { {view: html.ACTION, inner: value.action, onclick: function(event) {
can.runAction(can.request(event, value, {_handle: ice.FALSE}), event.target.name, []) can.run(can.request(event, value), [ctx.ACTION, event.target.name])
}}, }},
]} ]}
})) }))