1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-08-26 22:45:49 +08:00
parent b33c98c634
commit 58d94c80bb
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ func init() {
AppInstall(m, "", web.CODE_VIMER, mdb.ICON, "usr/icons/vimer.png") AppInstall(m, "", web.CODE_VIMER, mdb.ICON, "usr/icons/vimer.png")
AppInstall(m, "", web.CHAT_FLOWS, mdb.ICON, "usr/icons/flows.png") AppInstall(m, "", web.CHAT_FLOWS, mdb.ICON, "usr/icons/flows.png")
AppInstall(m, "", web.CODE_COMPILE, mdb.ICON, "usr/icons/go.png") AppInstall(m, "", web.CODE_COMPILE, mdb.ICON, "usr/icons/go.png")
AppInstall(m, "", web.CODE_GIT_STATUS, mdb.ICON, "usr/icons/git.jpg") AppInstall(m, "", web.CODE_GIT_STATUS, mdb.ICON, "usr/icons/git.png")
}}, }},
code.INSTALL: {Hand: func(m *ice.Message, arg ...string) { AppInstall(m, arg[0], arg[1], arg[2:]...) }}, code.INSTALL: {Hand: func(m *ice.Message, arg ...string) { AppInstall(m, arg[0], arg[1], arg[2:]...) }},
mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) { mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) {

View File

@ -58,8 +58,8 @@ Volcanos(chat.ONIMPORT, {
item.left = 100, item.top = 125, item.height = can.base.Min(can.ConfHeight()-345, 480, 800), item.width = can.base.Min(can.ConfWidth()-360, 640, 1200) item.left = 100, item.top = 125, item.height = can.base.Min(can.ConfHeight()-345, 480, 800), item.width = can.base.Min(can.ConfWidth()-360, 640, 1200)
if (can.ConfHeight() < 800) { item.top = 25, item.height = can.ConfHeight()-125, item.width = can.ConfWidth()-110 } if (can.ConfHeight() < 800) { item.top = 25, item.height = can.ConfHeight()-125, item.width = can.ConfWidth()-110 }
if (can.user.isMobile) { item.left = 0, item.top = 25, item.height = can.ConfHeight()-125, item.width = can.ConfWidth() } if (can.user.isMobile) { item.left = 0, item.top = 25, item.height = can.ConfHeight()-125, item.width = can.ConfWidth() }
item._space = can.ConfSpace()
can.onappend.plugin(can, item, function(sub) { can.ondetail.select(can, sub._target) can.onappend.plugin(can, item, function(sub) { can.ondetail.select(can, sub._target)
// can.page.style(can, sub._target, html.MIN_WIDTH, 480)
var index = 0; can.core.Item({ var index = 0; can.core.Item({
"#f95f57": function(event) { sub.onaction._close(event, sub) }, "#f95f57": function(event) { sub.onaction._close(event, sub) },
"#fcbc2f": function(event) { var dock = can.page.Append(can, can.ui.dock._output, [{view: html.ITEM, list: [{view: html.ICON, list: [{img: can.misc.PathJoin(item.icon)}]}], onclick: function() { "#fcbc2f": function(event) { var dock = can.page.Append(can, can.ui.dock._output, [{view: html.ITEM, list: [{view: html.ICON, list: [{img: can.misc.PathJoin(item.icon)}]}], onclick: function() {