forked from x/icebergs
add some
This commit is contained in:
parent
4bdc6c8347
commit
6ecf44962d
@ -27,7 +27,8 @@ Volcanos(chat.ONIMPORT, {
|
||||
item: function(can, item, list) { var name = item.name, domain = item.domain, worker = list[name][""], server = list[""][domain]; item["server.type"] = server.type
|
||||
function cb(action) { return function(event) { can.Update(can.request(event, item), [ctx.ACTION, action]) } }
|
||||
return {view: [[html.ITEM, item.type, item.status, can.onimport.style(can, item, list)]], list: [
|
||||
{img: can.misc.Resource(can, item.icons, can.core.Keys(item.domain, item.name)), onclick: cb(web.DESKTOP)}, {view: wiki.TITLE, list: [
|
||||
{img: can.misc.Resource(can, item.icons, can.core.Keys(item.domain, item.name)), onclick: cb(web.DESKTOP)},
|
||||
{view: wiki.TITLE, list: [
|
||||
{text: item.name||item.domain||location.host, onclick: cb(web.OPEN)},
|
||||
item.status != cli.STOP && can.onappend.label(can, item, {version: icon.version, time: icon.compile, access: "bi bi-file-lock"}),
|
||||
{text: [item.text, "", mdb.STATUS]},
|
||||
|
@ -374,7 +374,13 @@ func init() {
|
||||
ice.Info.Inputs = append(ice.Info.Inputs, func(m *ice.Message, arg ...string) {
|
||||
switch kit.TrimPrefix(arg[0], "extra.") {
|
||||
case DREAM:
|
||||
m.Copy(AdminCmd(m, DREAM).CutTo(mdb.NAME, DREAM))
|
||||
m.SetAppend()
|
||||
AdminCmd(m, DREAM).Table(func(value ice.Maps) {
|
||||
kit.If(kit.IsIn(value[mdb.TYPE], WORKER), func() {
|
||||
m.Push(arg[0], value[mdb.NAME])
|
||||
m.PushRecord(value, nfs.VERSION, mdb.TIME, nfs.MODULE, mdb.ICONS)
|
||||
})
|
||||
})
|
||||
case SPACE:
|
||||
AdminCmd(m, SPACE).Table(func(value ice.Maps) {
|
||||
kit.If(kit.IsIn(value[mdb.TYPE], WORKER, SERVER), func() { m.Push(arg[0], value[mdb.NAME]) })
|
||||
|
@ -436,7 +436,6 @@ func init() {
|
||||
}
|
||||
|
||||
func HostPort(m *ice.Message, host, port string, arg ...string) string {
|
||||
m.Info("what %v", host, port)
|
||||
p := ""
|
||||
if len(arg) > 0 {
|
||||
kit.If(kit.Select("", arg, 0), func(pod string) { p += S(pod) })
|
||||
|
@ -1,7 +1,6 @@
|
||||
body.light fieldset.web.chat.message>div.output { background-color:white; }
|
||||
body.light fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list { background-color:#e3e3e2; }
|
||||
body.light fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item:not(.plug).send div.content { background-color:#94ec69; }
|
||||
// fieldset.web.chat.message>div.output>div.project { width:260px; flex:0 0 260px; }
|
||||
fieldset.web.chat.message>div.output>div.project>div.title { background-color:var(--plugin-bg-color); padding:var(--button-padding); display:flex; justify-content:space-between; position:sticky; top:0; z-index:2; }
|
||||
fieldset.web.chat.message>div.output>div.project>div.title i:hover { background-color:var(--hover-bg-color); cursor:pointer; }
|
||||
fieldset.web.chat.message>div.output>div.project>div.title span:hover { background-color:var(--hover-bg-color); cursor:pointer; }
|
||||
@ -31,10 +30,6 @@ fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>
|
||||
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.send div.container>span.from { float:right; }
|
||||
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.send div.container { display:flex; flex-direction:column; align-items:flex-end; }
|
||||
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.text div.content { white-space:pre; padding:var(--input-padding) var(--button-padding); }
|
||||
/* fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.plug>div.container>div.content div.item.text.path>input { width:var(--input-width); } */
|
||||
/* fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.plug>div.container>div.content fieldset.story.xterm>form.option>div.item.hash input { width:var(--form-width); } */
|
||||
/* fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.plug>div.container>div.content fieldset.story.web.chat.grant>form.option>div.item.space input { width:var(--form-width); } */
|
||||
/* fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.plug>div.container>div.content fieldset.story.iframe>form.option>div.item.hash input { width:var(--form-width); } */
|
||||
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item>div.container>div.content fieldset.story>form.option>div.item.text input { width:var(--form-width); }
|
||||
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.plug>div.container>div.content fieldset.story>div.action>div.item.chat.icons { display:none; }
|
||||
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.plug>div.container>div.content { box-shadow:var(--box-shadow); }
|
||||
|
@ -162,19 +162,13 @@ Volcanos(chat.ONFIGURE, {
|
||||
})
|
||||
Volcanos(chat.ONINPUTS, {
|
||||
_show: function(event, can, msg, target, name) {
|
||||
function show(value) { can.ui = can.ui||{}
|
||||
if (!can.ui.img) {
|
||||
can.ui.img = can.page.insertBefore(can, [{type: html.IMG}], target)
|
||||
can.ui.span = can.page.insertBefore(can, [{type: html.SPAN}], target)
|
||||
can.onappend.style(can, mdb.ICONS, can.page.parentNode(can, target, html.TR))
|
||||
can.page.style(can, target, html.COLOR, html.TRANSPARENT)
|
||||
}
|
||||
can.ui.img.src = can.misc.Resource(can, value.icons||"usr/icons/Messages.png"), can.ui.span.innerText = value.title||can.base.trimPrefix(value.zone, "ops.")
|
||||
target.value = value.hash, can.onmotion.hidden(can, can._target)
|
||||
function show(value) {
|
||||
can.showIcons(value.hash, value.icons||"usr/icons/Messages.png", value.title||can.base.trimPrefix(value.zone, "ops."))
|
||||
}
|
||||
can.page.Appends(can, can._output, msg.Table(function(value) {
|
||||
return {view: html.ITEM, list: [
|
||||
{img: can.misc.Resource(can, value.icons||"usr/icons/Messages.png")}, {text: value.title||can.base.trimPrefix(value.zone, "ops.")},
|
||||
{img: can.misc.Resource(can, value.icons||"usr/icons/Messages.png")},
|
||||
{text: value.title||can.base.trimPrefix(value.zone, "ops.")},
|
||||
], onclick: function(event) { show(value) }}
|
||||
}))
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user