1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2022-11-02 23:23:48 +08:00
parent 279c56202c
commit 9f992b8f99
4 changed files with 8 additions and 7 deletions

View File

@ -130,7 +130,7 @@ Volcanos("base", {
} }
}, },
beginWith: function(str) { for (var i = 1; i < arguments.length; i++) { return typeof str == lang.STRING && str.trim().indexOf(arguments[i]) == 0 } }, beginWith: function(str) { for (var i = 1; i < arguments.length; i++) { if (typeof str == lang.STRING && str.trim().indexOf(arguments[i]) == 0) { return true } } },
endWith: function(str, end) { return typeof str == lang.STRING && str.lastIndexOf(end) + end.length == str.length }, endWith: function(str, end) { return typeof str == lang.STRING && str.lastIndexOf(end) + end.length == str.length },
trim: function(args) { if (this.isString(args)) { return args.trim() } trim: function(args) { if (this.isString(args)) { return args.trim() }
if (this.isArray(args)) { for (var i = args.length-1; i >= 0; i--) { if (!args[i]) { args.pop() } else { break } } } if (this.isArray(args)) { for (var i = args.length-1; i >= 0; i--) { if (!args[i]) { args.pop() } else { break } } }

View File

@ -61,6 +61,7 @@ fieldset.Action.cmd>div.output>fieldset.plugin:not(.float):not(.full)>legend { f
fieldset.Action>div.output>fieldset.plugin>legend { box-shadow:4px 4px 20px 4px #626bd0; } fieldset.Action>div.output>fieldset.plugin>legend { box-shadow:4px 4px 20px 4px #626bd0; }
fieldset.plugin>form.option input[type=button][name=close]{ display:none; } fieldset.plugin>form.option input[type=button][name=close]{ display:none; }
fieldset.plugin.word fieldset.story>form.option input[type=button][name=close]{ display:none; }
fieldset.float>form.option input[type=button][name=close]{ display:block; } fieldset.float>form.option input[type=button][name=close]{ display:block; }
fieldset.full>form.option input[type=button][name=close]{ display:block; } fieldset.full>form.option input[type=button][name=close]{ display:block; }
fieldset.plug>form.option input[type=button][name=close]{ display:block; } fieldset.plug>form.option input[type=button][name=close]{ display:block; }
@ -125,8 +126,8 @@ select { font-size:1.1rem; height:31px; }
input { font-size:1.1rem; height:31px; } input { font-size:1.1rem; height:31px; }
table.content th, table.content td, div.zone>div.name, div.item, div.code, code.story, div.story[data-type=spark] { font-size:1.1rem; font-family:monospace; } table.content th, table.content td, div.zone>div.name, div.item, div.code, code.story, div.story[data-type=spark] { font-size:1.1rem; font-family:monospace; }
div.status>div.item>label { font-size:0.6rem; font-family:monospace; } div.status>div.item>label { font-size:0.6rem; font-family:monospace; }
fieldset.plugin>form.option>div.item { height:31px; } fieldset.plugin>form.option>div.item:not(.textarea) { height:31px; }
fieldset.plugin>div.action>div.item { height:31px; } fieldset.plugin>div.action>div.item:not(.textarea) { height:31px; }
div.status>div.item { padding:4px; height:22px; } div.status>div.item { padding:4px; height:22px; }
div.action>div.tabs { padding:5px 10px; height:21px; } div.action>div.tabs { padding:5px 10px; height:21px; }
svg { font-family:monospace; } svg { font-family:monospace; }

View File

@ -67,9 +67,9 @@ body.black fieldset.inner.full>div.output div.content { color:white; }
/* body.white fieldset.inner.float>div.output div.profile { color:black; } */ /* body.white fieldset.inner.float>div.output div.profile { color:black; } */
body.simple fieldset.inner>div.output td.content>div.tabs { background-color:slategrey; padding:0px; height:31px; overflow:auto; display:block; } body.simple fieldset.inner>div.output td.content>div.tabs { background-color:slategrey; padding:0px; height:31px; overflow:auto; display:block; }
body.simple fieldset.inner>div.output td.content>div.tabs div.tabs { background-color:teal; font-family:monospace; padding:7px 20px; height:17px; float:left; } body.simple fieldset.inner>div.output td.content>div.tabs div { background-color:teal; font-family:monospace; padding:7px 20px; height:17px; float:left; }
body.simple fieldset.inner>div.output td.content>div.tabs div.tabs.select { background-color:#1d3349; } body.simple fieldset.inner>div.output td.content>div.tabs div.select { background-color:#1d3349; }
body.simple fieldset.inner>div.output td.content>div.tabs div.tabs:hover { background-color:#1d3349; } body.simple fieldset.inner>div.output td.content>div.tabs div:hover { background-color:#1d3349; }
body.simple fieldset.inner>div.output td.content>div.path { background-color:#1d3349; padding:4px 10px; margin-bottom:4px; display:block; clear:both; } body.simple fieldset.inner>div.output td.content>div.path { background-color:#1d3349; padding:4px 10px; margin-bottom:4px; display:block; clear:both; }
body.simple fieldset.inner>div.output div.content td.line { padding-top:4px; border-right:none; } body.simple fieldset.inner>div.output div.content td.line { padding-top:4px; border-right:none; }
body.simple fieldset.inner>div.output div.content td.text { padding-top:2px; border:solid 1px transparent; } body.simple fieldset.inner>div.output div.content td.text { padding-top:2px; border:solid 1px transparent; }

View File

@ -1,7 +1,7 @@
Volcanos(chat.ONIMPORT, {help: "导入数据", Volcanos(chat.ONIMPORT, {help: "导入数据",
_tabs: function(can) { _tabs: function(can) {
can.ui._tabs = can.page.insertBefore(can, ["tabs"], can.ui._content), can.ui._path = can.page.insertBefore(can, ["path"], can.ui._content) can.ui._tabs = can.page.insertBefore(can, ["tabs"], can.ui._content), can.ui._path = can.page.insertBefore(can, ["path"], can.ui._content)
can.page.Append(can, can.ui._tabs, [{view: "time", style: {"float": html.RIGHT, "padding": 5}, _init: function(target) { can.page.Append(can, can.ui._tabs, [{view: [["time", "select"]], style: {"float": html.RIGHT}, _init: function(target) {
can.core.Timer({interval: 100}, function() { can.page.Appends(can, target, [{text: can.base.Time()}]) }) can.core.Timer({interval: 100}, function() { can.page.Appends(can, target, [{text: can.base.Time()}]) })
can.onappend.figure(can, {action: "date"}, target, function(sub, value) { can.onappend.figure(can, {action: "date"}, target, function(sub, value) {
can.onimport.tabview(can, can.Option(nfs.PATH), "web.team.plan", ctx.INDEX) can.onimport.tabview(can, can.Option(nfs.PATH), "web.team.plan", ctx.INDEX)