mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
add some
This commit is contained in:
parent
72943d78a9
commit
2b136906f7
@ -175,5 +175,6 @@ const (
|
|||||||
CODE_GIT_STATUS = "web.code.git.status"
|
CODE_GIT_STATUS = "web.code.git.status"
|
||||||
CODE_GIT_REPOS = "web.code.git.repos"
|
CODE_GIT_REPOS = "web.code.git.repos"
|
||||||
CHAT_FAVOR = "web.chat.favor"
|
CHAT_FAVOR = "web.chat.favor"
|
||||||
|
CHAT_FLOWS = "web.chat.flows"
|
||||||
CHAT_IFRAME = "web.chat.iframe"
|
CHAT_IFRAME = "web.chat.iframe"
|
||||||
)
|
)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package web
|
package chat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
ice "shylinux.com/x/icebergs"
|
ice "shylinux.com/x/icebergs"
|
@ -96,8 +96,8 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
rect.Value(html.CLASS, item.status)
|
rect.Value(html.CLASS, item.status)
|
||||||
text.Value(html.CLASS, item.status)
|
text.Value(html.CLASS, item.status)
|
||||||
}
|
}
|
||||||
if (can.ui._height < y+height) { can.ui._height = y+height, can.onimport.layout(can), rect.scrollIntoView() }
|
if (can.ui._height < y+height) { can.ui._height = y+height, can.onimport.layout(can), can.isCmdMode() && rect.scrollIntoView() }
|
||||||
if (can.ui._width < x+width) { can.ui._width = x+width, can.onimport.layout(can), rect.scrollIntoView() }
|
if (can.ui._width < x+width) { can.ui._width = x+width, can.onimport.layout(can), can.isCmdMode() && rect.scrollIntoView() }
|
||||||
},
|
},
|
||||||
layout: function(can) {
|
layout: function(can) {
|
||||||
if (can.page.isDisplay(can.ui.profile)) { var profile = can._profile_plugin
|
if (can.page.isDisplay(can.ui.profile)) { var profile = can._profile_plugin
|
||||||
@ -124,7 +124,7 @@ Volcanos(chat.ONDETAIL, {
|
|||||||
if (_class.indexOf(html.SELECT) > -1) { target.Value(html.CLASS, _class.filter(function(c) { return c != html.SELECT }).join(lex.SP).trim()) }
|
if (_class.indexOf(html.SELECT) > -1) { target.Value(html.CLASS, _class.filter(function(c) { return c != html.SELECT }).join(lex.SP).trim()) }
|
||||||
}
|
}
|
||||||
}), can.page.Select(can, item._tr.parentNode, "", function(target) { can.page.ClassList.set(can, target, html.SELECT, target == item._tr) })
|
}), can.page.Select(can, item._tr.parentNode, "", function(target) { can.page.ClassList.set(can, target, html.SELECT, target == item._tr) })
|
||||||
item._rect.scrollIntoView()
|
can.isCmdMode() && item._rect.scrollIntoView()
|
||||||
},
|
},
|
||||||
onclick: function(event, can, _sub, item) { switch (_sub.svg.style.cursor) {
|
onclick: function(event, can, _sub, item) { switch (_sub.svg.style.cursor) {
|
||||||
case "e-resize": can.Update(can.request(event, can.Action("direct") == "horizon"? {prev: item.hash}: {from: item.hash}), [ctx.ACTION, mdb.INSERT]); break
|
case "e-resize": can.Update(can.request(event, can.Action("direct") == "horizon"? {prev: item.hash}: {from: item.hash}), [ctx.ACTION, mdb.INSERT]); break
|
@ -30,6 +30,7 @@ func init() {
|
|||||||
AppInstall(m, "", cli.RUNTIME, mdb.ICON, "usr/icons/info.png")
|
AppInstall(m, "", cli.RUNTIME, mdb.ICON, "usr/icons/info.png")
|
||||||
AppInstall(m, "", web.DREAM, mdb.ICON, "usr/icons/Mission Control.png")
|
AppInstall(m, "", web.DREAM, mdb.ICON, "usr/icons/Mission Control.png")
|
||||||
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.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.jpg")
|
||||||
}},
|
}},
|
||||||
|
@ -21,6 +21,7 @@ func init() {
|
|||||||
DeskAppend(m, "Photos", web.WIKI_FEEL)
|
DeskAppend(m, "Photos", web.WIKI_FEEL)
|
||||||
DeskAppend(m, "Grapher", web.WIKI_DRAW)
|
DeskAppend(m, "Grapher", web.WIKI_DRAW)
|
||||||
DeskAppend(m, "Calendar", web.TEAM_PLAN, ctx.ARGS, team.MONTH)
|
DeskAppend(m, "Calendar", web.TEAM_PLAN, ctx.ARGS, team.MONTH)
|
||||||
|
DeskAppend(m, "flows", web.CHAT_FLOWS)
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
ice.CTX_EXIT: {Hand: func(m *ice.Message, arg ...string) { mdb.HashExport(m) }},
|
ice.CTX_EXIT: {Hand: func(m *ice.Message, arg ...string) { mdb.HashExport(m) }},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user