1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2022-12-17 09:11:51 +08:00
parent 799b541472
commit 80ba98e696
3 changed files with 24 additions and 3 deletions

View File

@ -80,7 +80,7 @@ Volcanos("user", {info: {}, agent: {
open: function(event) { meta.content.indexOf(ice.HTTP) == 0 && can.user.open(meta.content), meta.title.indexOf(ice.HTTP) == 0 && can.user.open(meta.title) },
close: function(event) { can.page.Remove(can, action._target), action.timer.stop = true },
timer: can.core.Timer({interval: 100, length: (meta.duration||1000)/100}, function(event, interval, index) {
if (index > 30) { ui.duration.innerHTML = index/10+ice.PT+index%10+"s..." }
if (index > 30) { ui.duration.innerHTML = index/10+"s..." }
}, function() { action.close() }), _target: ui._target, ui: ui,
}); can.onmotion.story.auto(can, ui._target), meta.resize && can.onmotion.delayResize(can, ui._target, meta.resize)
return can._toast && (can._toast.close(), delete(can._toast)), can._toast = action

View File

@ -181,7 +181,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) {
profile: function(can, msg) { var sup = can.tabview[can.onexport.keys(can)]
if (msg.Result().indexOf("<iframe") > -1) { if (sup._profile_output != can.ui._profile_output) { can.page.Remove(can, sup._profile_output) }
can.ui.profile_output = sup._profile_output = can.page.Append(can, can.ui._profile_output.parentNode, [{view: html.OUTPUT, inner: msg.Result()}]).output
var width = can.profile_size[can.onexport.keys(can)]||(can.ConfWidth()-can.ui.project.offsetWidth)/4*3; can.profile_size[can.onexport.keys(can)] = width
var width = can.profile_size[can.onexport.keys(can)]||(can.ConfWidth()-can.ui.project.offsetWidth)/2; can.profile_size[can.onexport.keys(can)] = width
} else {
can.ui.profile_output = sup._profile_output = can.ui._profile_output
var width = can.profile_size[can.onexport.keys(can)]||(can.ConfWidth()-can.ui.project.offsetWidth)/2

View File

@ -558,12 +558,33 @@ Volcanos(chat.ONSYNTAX, {
},
html: {
split: {
operator: ".[]()</>,{:;}",
operator: "</>=!&;",
},
keyword: {
"DOCTYPE": code.KEYWORD,
"html": code.KEYWORD,
"head": code.KEYWORD,
"body": code.KEYWORD,
"meta": code.KEYWORD,
"link": code.KEYWORD,
"title": code.KEYWORD,
"h1": code.KEYWORD,
"h2": code.KEYWORD,
"h3": code.KEYWORD,
"p": code.KEYWORD,
"em": code.KEYWORD,
"strong": code.KEYWORD,
"i": code.KEYWORD,
"b": code.KEYWORD,
"u": code.KEYWORD,
"a": code.KEYWORD,
"ul": code.KEYWORD,
"ol": code.KEYWORD,
"li": code.KEYWORD,
"href": code.FUNCTION,
"rel": code.FUNCTION,
},
},
zml: {