mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt island
This commit is contained in:
parent
eff1c72a71
commit
b5795f61f3
1
frame.js
1
frame.js
@ -307,6 +307,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
||||
can.page.Append(can, status, [{view: html.ITEM, list: [
|
||||
{text: [can.page.Color(can.user.trans(can, item.name, null, html.INPUT)), html.LABEL]}, {text: [": ", html.LABEL]}, {text: [(item.value == undefined? "": (item.value+"").trim())+"", html.SPAN, item.name]},
|
||||
], onclick: item.onclick||function(event) {
|
||||
if (!can.misc.isDebug(can)) { return }
|
||||
if (can.base.isIn(item.name, mdb.TIME)) {
|
||||
can.onappend._float(can, {index: "can.debug"}, ["log", can.ConfIndex()])
|
||||
} else if (item.name == mdb.COUNT) {
|
||||
|
14
index.css
14
index.css
@ -102,7 +102,8 @@ table.content th.select { border:var(--notice-bg-color) solid 1px; }
|
||||
table.content th.select[data-asc="1"] i.bi-sort-down-alt { display:none; }
|
||||
table.content th.select[data-asc="0"] i.bi-sort-up { display:none; }
|
||||
table.content td { padding:var(--table-padding); }
|
||||
table.content td input.icons { display:none; }
|
||||
table.content:not(.detail) td input.icons { display:none; }
|
||||
table.content.detail td i { display:none; }
|
||||
table.content td i:hover { background-color:var(--hover-bg-color); color:var(--hover-fg-color); cursor:pointer; }
|
||||
table.content td i { padding:var(--input-padding); font-size:20px; }
|
||||
body:not(.mobile) fieldset.Action:not(.tabview):not(.horizon):not(.grid) fieldset.plugin:not(.plug):not(.float):not(.full):not(.cmd)>div.output>table.content td input.icons { display:unset; }
|
||||
@ -621,8 +622,15 @@ fieldset>div.output.form { padding:20px; display:flex; flex-direction:column; al
|
||||
fieldset>div.output.form>div.item { text-align:left; margin:10px; }
|
||||
fieldset>div.output.form>div.item>span { padding:var(--input-padding); }
|
||||
fieldset>div.output.form>div.item>span.need { color:red; }
|
||||
fieldset>div.output.form>div.item>div.item>input { width:var(--river-width); }
|
||||
fieldset>div.output.form>div.item>div.item>input[type=button] { border:var(--notice-bg-color) solid 1px; }
|
||||
fieldset>div.output.form>div.item>div.item>input {
|
||||
width:var(--river-width);
|
||||
height:38px;
|
||||
font-size:20px;
|
||||
}
|
||||
fieldset>div.output.form>div.item>div.item>input[type=button] {
|
||||
font-size:24px; height:48px; border:var(--notice-bg-color) solid 1px;
|
||||
margin-top:20px;
|
||||
}
|
||||
fieldset.draw.spides div.output svg text { cursor:pointer; }
|
||||
fieldset.draw.spides div.output svg path { stroke-width:1; }
|
||||
fieldset.draw>div.output>div.layout>div.layout>div.profile { width:var(--project-width); flex:0 0 var(--project-width); }
|
||||
|
@ -1,12 +1,11 @@
|
||||
(function() { var NTIP = "ntip", NLOG = "nlog", NCMD = "ncmd", NKEY = "nkey"
|
||||
Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) {
|
||||
Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can._wss = can.ondaemon._init(can)
|
||||
if (!can.user.isMobile && !can.misc.isDebug(can)) { can.onmotion.hidden(can); return }
|
||||
can.Conf(nfs.VERSION, can.base.trimPrefix(window._version, "?_v=").split("&")[0])
|
||||
can.ConfHeight(can.page.height()), can.ConfWidth(can.page.width())
|
||||
can.Conf(NKEY, can.core.Item(can.misc.localStorage(can)).length)
|
||||
can.onimport._title(can, msg, target), can.onimport._command(can, msg, target), can.onimport._storm(can, msg, target)
|
||||
can.misc.isDebug(can) && can.onimport._state(can, msg, target), can.onimport._toast(can, msg, target)
|
||||
can._wss = can.ondaemon._init(can)
|
||||
},
|
||||
_title: function(can, msg, target) { can.user.isMobile || can.core.List(can.Conf(chat.TITLE)||msg.result, function(item) {
|
||||
if (can.base.contains(item, ice.AT)) { item = '<a href="mailto:'+item+'">'+item+'</a>' }
|
||||
|
@ -142,8 +142,11 @@ Volcanos(chat.ONACTION, {_init: function(can) {},
|
||||
carte: function(event, can, list, cb, trans) { return can.user.carte(event, can, can.onaction, list, cb, null, trans) },
|
||||
|
||||
_params: [log.DEBUG, chat.TITLE],
|
||||
_menus: ["shareuser", cli.QRCODE, [chat.THEME], [aaa.LANGUAGE],
|
||||
[nfs.SAVE, aaa.EMAIL, web.TOIMAGE, code.WEBPACK],
|
||||
_menus: [
|
||||
cli.QRCODE,
|
||||
"shareuser",
|
||||
[chat.THEME], [aaa.LANGUAGE],
|
||||
// [nfs.SAVE, aaa.EMAIL, web.TOIMAGE, code.WEBPACK],
|
||||
[aaa.USER, "setnick", web.CLEAR, aaa.LOGOUT],
|
||||
],
|
||||
_trans: kit.Dict("shareuser", "共享用户", cli.QRCODE, "生成链接",
|
||||
|
@ -244,6 +244,7 @@ Volcanos(chat.ONSYNTAX, {
|
||||
"res": code.OBJECT, "sub": code.OBJECT, "sup": code.OBJECT,
|
||||
},
|
||||
complete: function(event, can, msg, target, pre, key) {
|
||||
return
|
||||
var ls = can.core.Split(can.core.Split(pre, "\t {(:,)}").pop(), nfs.PT), list = {can: can, msg: msg, target: target, event: event, window: window}
|
||||
can.core.ItemKeys(key == ""? list: can.core.Value(list, ls)||can.core.Value(window, ls)||window, function(k, v) {
|
||||
msg.Push(mdb.NAME, k).Push(mdb.TEXT, (v+"").split(lex.NL)[0])
|
||||
|
@ -99,11 +99,12 @@ Volcanos(chat.ONIMPORT, {
|
||||
can.page.SelectArgs(can, can._action, "", function(target) { target.value = his[i++]||"" }); break
|
||||
} can.Update(event) },
|
||||
})
|
||||
Volcanos(chat.ONACTION, {list: ["刷新数据", "刷新界面", "切换浮动", "切换全屏", "共享工具", "生成链接",
|
||||
Volcanos(chat.ONACTION, {list: ["刷新数据", "刷新界面", "切换浮动", "切换全屏", "生成链接",
|
||||
function(can) { if (!can.isCmdMode()) { return "打开链接" } }, function(can) { if (can.isCmdMode()) { return "打开首页" } },
|
||||
function(can) { if (can.ConfSpace() || can.isCmdMode() && can.misc.Search(can, ice.POD)) { return "打开空间" } },
|
||||
function(can) { if (can.misc.Search(can, ice.MSG_DEBUG)) { return "查看源码" } },
|
||||
function(can) { if (can.misc.Search(can, ice.MSG_DEBUG)) { return "查看镜像" } },
|
||||
"共享工具",
|
||||
["视图", "参数",
|
||||
function(can) { if (can._action.innerHTML) { return "操作" } },
|
||||
function(can) { if (can._status.innerHTML) { return "状态" } },
|
||||
|
Loading…
x
Reference in New Issue
Block a user