mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt matrix
This commit is contained in:
parent
aa139537a9
commit
10c9624738
3
const.js
3
const.js
@ -391,11 +391,12 @@ var icon = {
|
||||
record1: "bi bi-images", record2: "bi bi-record-circle", record: "bi bi-record-circle",
|
||||
"export": "bi bi-box-arrow-up", "import": "bi bi-box-arrow-in-down",
|
||||
|
||||
runtime: "bi bi-info-square",
|
||||
compile: "bi bi-tools", publish: "bi bi-send-check", version: "bi bi-tags", upgrade: "bi bi-rocket-takeoff", install: "bi bi-box-arrow-in-down",
|
||||
// vimer: "bi bi-code-slash",
|
||||
vimer: "bi bi-file-earmark-code",
|
||||
repos: "bi bi-git", build: "bi bi-tools", tag: "bi bi-tags",
|
||||
xterm: "bi bi-terminal", cmds: "bi bi-terminal",
|
||||
xterm: "bi bi-terminal", cmds: "bi bi-terminal",
|
||||
|
||||
portal: "bi bi-globe",
|
||||
desktop: "bi bi-window-desktop", admin: "bi bi-window-sidebar", dream: "bi bi-grid-3x3-gap", space: "bi bi-grid-3x3-gap",
|
||||
|
12
frame.js
12
frame.js
@ -457,9 +457,17 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
||||
},
|
||||
buttons: function(can, value) {
|
||||
return {view: html.ACTION, inner: value.action, _init: function(target) {
|
||||
can.page.Select(can, target, html.INPUT, function(target) { if (!icon[target.name]) { return }
|
||||
can.onappend.mores(can, target, value, 5)
|
||||
can.page.Select(can, target, html.INPUT, function(target) {
|
||||
if (!icon[target.name]) {
|
||||
target.onclick = function(event) {
|
||||
can.Update(can.request(event, value), [ctx.ACTION, target.name])
|
||||
}
|
||||
return
|
||||
}
|
||||
can.page.insertBefore(can, [{icon: icon[target.name], onclick: function(event) {
|
||||
can.Update(can.request(event, value), [ctx.ACTION, target.name])
|
||||
target.onclick(event)
|
||||
// can.Update(can.request(event, value), [ctx.ACTION, target.name])
|
||||
}}], target), can.onappend.style(can, mdb.ICONS, target)
|
||||
})
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user