1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00

add island

This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-02-02 17:29:45 +08:00
parent 04b3991922
commit 17d7f3c9ac
2 changed files with 29 additions and 23 deletions

View File

@ -370,32 +370,33 @@ var icon = {
CHEVRON_DOWN: "bi bi-chevron-down", SEARCH: "bi bi-search", TERMINAL: "bi bi-terminal",
SUN: "bi bi-sun", MOON: "bi bi-moon-stars",
admin: "bi bi-window-sidebar", dream: "bi bi-grid-3x3-gap", space: "bi bi-grid-3x3-gap", desktop: "bi bi-window-desktop",
configs: "bi bi-gear", conf: "bi bi-gear", logs: "bi bi-calendar4-week",
sso: "bi bi-shield-check", login: "bi bi-person-check",
start: "bi bi-play-circle", stop: "bi bi-stop-circle",
modify: "bi bi-pencil-square", remove: "bi bi-trash",
save: "bi bi-floppy", trash: "bi bi-trash",
push: "bi bi-cloud-upload", pull: "bi bi-cloud-download",
upload: "bi bi-box-arrow-in-up", download: "bi bi-box-arrow-down",
record1: "bi bi-images", record2: "bi bi-record-circle", record: "bi bi-record-circle",
full: "bi bi-arrows-fullscreen", open: "bi bi-box-arrow-up-right",
search: "bi bi-search", favor: "bi bi-star", qrcode: "bi bi-qr-code",
chat: "bi bi-chat-dots",
notifications: "bi bi-chat-right-text",
help: "bi bi-question-square", doc: "bi bi-question-square",
"export": "bi bi-box-arrow-up", "import": "bi bi-box-arrow-in-down",
play: "bi bi-play-circle", app: "bi bi-box-arrow-down-left",
main: "bi bi-box-arrow-up-right", portal: "bi bi-box-arrow-up-right",
install: "bi bi-box-arrow-in-down",
search: "bi bi-search", favor: "bi bi-star",
more: "bi bi-three-dots-vertical", actions: "bi bi-three-dots",
preview: "bi bi-window-stack", show: "bi bi-window-stack",
display: "bi bi-window-desktop", exec: "bi bi-window-desktop",
compile: "bi bi-tools", publish: "bi bi-send-check", version: "bi bi-tags", upgrade: "bi bi-rocket-takeoff",
full: "bi bi-arrows-fullscreen", open: "bi bi-box-arrow-up-right", qrcode: "bi bi-qr-code",
chat: "bi bi-chat-dots", help: "bi bi-question-square", doc: "bi bi-question-square",
modify: "bi bi-pencil-square", remove: "bi bi-trash",
enable: "bi bi-toggle-off", disable: "bi bi-toggle-on",
start: "bi bi-play-circle", stop: "bi bi-stop-circle",
sso: "bi bi-shield-check", login: "bi bi-person-check",
pull: "bi bi-cloud-download", push: "bi bi-cloud-upload",
upload: "bi bi-box-arrow-in-up", download: "bi bi-box-arrow-down",
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",
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", repos: "bi bi-git", build: "bi bi-tools", tag: "bi bi-tags",
xterm: "bi bi-terminal", cmds: "bi bi-terminal",
enable: "bi bi-toggle-off", disable: "bi bi-toggle-on",
desktop: "bi bi-window-desktop", admin: "bi bi-window-sidebar", dream: "bi bi-grid-3x3-gap", space: "bi bi-grid-3x3-gap",
config: "bi bi-gear", conf: "bi bi-gear", logs: "bi bi-calendar4-week",
save: "bi bi-floppy", trash: "bi bi-trash",
notifications: "bi bi-chat-right-text",
play: "bi bi-play-circle", app: "bi bi-box-arrow-down-left",
main: "bi bi-box-arrow-up-right", portal: "bi bi-box-arrow-up-right",
}
var svg = {
GROUP: "group", PID: "pid", GRID: "grid",

View File

@ -3,8 +3,13 @@ Volcanos(chat.ONIMPORT, {
if (can.isCmdMode()) { can.onappend.style(can, html.OUTPUT) }
can.page.Append(can, can._output, msg.Table(function(item) {
return {view: [[html.ITEM, item.type]], list: [item.type != html.BUTTON && {text: [can.user.trans(can, item.name, item._trans, html.INPUT), "", mdb.NAME]}, item.need == "must" && {text: ["*", "", "need"]}], _init: function(target) {
can.onappend.input(can, item, "", target)
}, onclick: function(event) { can.page.Select(can, event.currentTarget, html.INPUT, function(target) { target.focus() }) }}
item.type == html.BUTTON && (item.onclick = function(event) { var args = []
can.core.Item(can.page.SelectArgs(can, can._output)[0], function(key, value) { args.push(key, value) })
can.Update(can.request(event, {_handle: ice.TRUE}), [ctx.ACTION, item.name].concat(args))
}), can.onappend.input(can, item, "", target)
}, onclick: function(event) {
can.page.Select(can, event.currentTarget, html.INPUT, function(target) { target.focus() })
}}
})), can.onappend.board(can, msg)
},
})