mirror of
https://shylinux.com/x/icebergs
synced 2025-06-27 02:37:31 +08:00
add some
This commit is contained in:
parent
04a842a1c8
commit
7fbeb2c15c
@ -421,7 +421,7 @@ func init() {
|
|||||||
DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) {
|
DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
switch m.Option(mdb.TYPE) {
|
switch m.Option(mdb.TYPE) {
|
||||||
case WORKER:
|
case WORKER:
|
||||||
m.PushButton(cli.RUNTIME, tcp.SEND, OPEN, "settings")
|
m.PushButton(cli.RUNTIME, "settings", tcp.SEND, OPEN)
|
||||||
default:
|
default:
|
||||||
m.PushButton(cli.RUNTIME, DREAM, OPEN)
|
m.PushButton(cli.RUNTIME, DREAM, OPEN)
|
||||||
}
|
}
|
||||||
|
@ -20,20 +20,20 @@ func _matrix_list(m *ice.Message, domain, icon, typ string, fields ...string) (s
|
|||||||
button := []ice.Any{}
|
button := []ice.Any{}
|
||||||
switch typ {
|
switch typ {
|
||||||
case MYSELF:
|
case MYSELF:
|
||||||
button = []ice.Any{PORTAL, WORD, STATUS, VIMER, COMPILE, DREAM, cli.RUNTIME, XTERM, DESKTOP, ADMIN, OPEN}
|
button = []ice.Any{PORTAL, WORD, STATUS, VIMER, COMPILE, DREAM, DESKTOP, ADMIN, OPEN, cli.RUNTIME, XTERM}
|
||||||
case SERVER:
|
case SERVER:
|
||||||
button = []ice.Any{PORTAL, DESKTOP, ADMIN, OPEN, UPGRADE, DREAM, cli.RUNTIME, XTERM, WORD, STATUS, VIMER}
|
button = []ice.Any{PORTAL, DESKTOP, ADMIN, OPEN, UPGRADE, DREAM, WORD, STATUS, VIMER, cli.RUNTIME, XTERM}
|
||||||
default:
|
default:
|
||||||
button = []ice.Any{PORTAL, DESKTOP, ADMIN, OPEN, XTERM, DREAM, cli.RUNTIME, WORD, STATUS, VIMER}
|
button = []ice.Any{PORTAL, DESKTOP, ADMIN, OPEN, COMPILE, DREAM, WORD, STATUS, VIMER, cli.RUNTIME, XTERM}
|
||||||
}
|
}
|
||||||
m.PushRecord(value, fields...).PushButton(button...)
|
m.PushRecord(value, fields...).PushButton(button...)
|
||||||
switch typ {
|
switch typ {
|
||||||
case MYSELF:
|
case MYSELF:
|
||||||
button = []ice.Any{PORTAL, WORD, STATUS, VIMER, COMPILE, MESSAGE, cli.RUNTIME, XTERM, DESKTOP, ADMIN, OPEN}
|
button = []ice.Any{PORTAL, WORD, STATUS, VIMER, COMPILE, MESSAGE, DESKTOP, ADMIN, OPEN, cli.RUNTIME, XTERM}
|
||||||
case SERVER:
|
case SERVER:
|
||||||
button = []ice.Any{PORTAL, DESKTOP, ADMIN, OPEN, UPGRADE, MESSAGE, cli.RUNTIME, XTERM, WORD, STATUS, VIMER}
|
button = []ice.Any{PORTAL, DESKTOP, ADMIN, OPEN, UPGRADE, MESSAGE, WORD, STATUS, VIMER, cli.RUNTIME, XTERM}
|
||||||
default:
|
default:
|
||||||
button = []ice.Any{PORTAL, DESKTOP, ADMIN, OPEN, XTERM, cli.RUNTIME, WORD, STATUS, VIMER}
|
button = []ice.Any{PORTAL, DESKTOP, ADMIN, OPEN, WORD, STATUS, VIMER, cli.RUNTIME, XTERM}
|
||||||
}
|
}
|
||||||
button = append(button, cli.STOP)
|
button = append(button, cli.STOP)
|
||||||
m.Cmd(Space(m, domain), DREAM).Table(func(value ice.Maps) {
|
m.Cmd(Space(m, domain), DREAM).Table(func(value ice.Maps) {
|
||||||
|
@ -37,12 +37,16 @@ func init() {
|
|||||||
}
|
}
|
||||||
ProcessIframe(m, m.Option(mdb.NAME), S(m.Option(mdb.NAME)), arg...)
|
ProcessIframe(m, m.Option(mdb.NAME), S(m.Option(mdb.NAME)), arg...)
|
||||||
}},
|
}},
|
||||||
OPEN: {Hand: func(m *ice.Message, arg ...string) {
|
|
||||||
ProcessIframe(m, m.Option(mdb.NAME), S(m.Option(mdb.NAME)), arg...)
|
|
||||||
}},
|
|
||||||
PORTAL: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
PORTAL: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
||||||
ProcessIframe(m, m.Option(mdb.NAME), m.Option(ORIGIN)+S(m.Option(mdb.NAME))+C(PORTAL), arg...)
|
ProcessIframe(m, m.Option(mdb.NAME), m.Option(ORIGIN)+S(m.Option(mdb.NAME))+C(m.ActionKey()), arg...)
|
||||||
}},
|
}},
|
||||||
|
DESKTOP: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
ProcessIframe(m, kit.Keys(m.Option(mdb.NAME), m.ActionKey()), S(m.Option(mdb.NAME))+C(m.ActionKey()), arg...)
|
||||||
|
}},
|
||||||
|
ADMIN: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
ProcessIframe(m, kit.Keys(m.Option(mdb.NAME), m.ActionKey()), S(m.Option(mdb.NAME))+C(m.ActionKey()), arg...)
|
||||||
|
}},
|
||||||
|
OPEN: {Hand: func(m *ice.Message, arg ...string) { m.ProcessOpen(S(m.Option(mdb.NAME))) }},
|
||||||
}, ctx.ConfAction(CLIENT_TIMEOUT, cli.TIME_3s), DREAM), Hand: func(m *ice.Message, arg ...string) {
|
}, ctx.ConfAction(CLIENT_TIMEOUT, cli.TIME_3s), DREAM), Hand: func(m *ice.Message, arg ...string) {
|
||||||
if kit.HasPrefixList(arg, ctx.ACTION) {
|
if kit.HasPrefixList(arg, ctx.ACTION) {
|
||||||
m.Cmdy(DREAM, arg)
|
m.Cmdy(DREAM, arg)
|
||||||
@ -79,7 +83,7 @@ func init() {
|
|||||||
m.Push("", value, kit.Split("time,name,icons,repos,binary,module,version"))
|
m.Push("", value, kit.Split("time,name,icons,repos,binary,module,version"))
|
||||||
m.Push(mdb.TEXT, value[nfs.REPOS]).Push(ORIGIN, origin)
|
m.Push(mdb.TEXT, value[nfs.REPOS]).Push(ORIGIN, origin)
|
||||||
if _, ok := list[value[mdb.NAME]]; ok || arg[0] == ice.OPS {
|
if _, ok := list[value[mdb.NAME]]; ok || arg[0] == ice.OPS {
|
||||||
m.PushButton(PORTAL, OPEN)
|
m.PushButton(PORTAL, DESKTOP, ADMIN, OPEN)
|
||||||
} else if ice.Info.NodeType == WORKER || !aaa.IsTechOrRoot(m) {
|
} else if ice.Info.NodeType == WORKER || !aaa.IsTechOrRoot(m) {
|
||||||
m.PushButton(PORTAL)
|
m.PushButton(PORTAL)
|
||||||
} else {
|
} else {
|
||||||
|
@ -24,7 +24,7 @@ func init() {
|
|||||||
TOAST: {Help: "进度条", Actions: ice.MergeActions(ice.Actions{
|
TOAST: {Help: "进度条", Actions: ice.MergeActions(ice.Actions{
|
||||||
ctx.PREVIEW: &ice.Action{Hand: func(m *ice.Message, arg ...string) { ProcessHashPodCmd(m, arg...) }},
|
ctx.PREVIEW: &ice.Action{Hand: func(m *ice.Message, arg ...string) { ProcessHashPodCmd(m, arg...) }},
|
||||||
mdb.PRUNES: &ice.Action{Name: "prunes status=done"},
|
mdb.PRUNES: &ice.Action{Name: "prunes status=done"},
|
||||||
}, mdb.StatusHashAction(html.CHECKBOX, ice.TRUE,
|
}, mdb.ClearOnExitHashAction(), mdb.StatusHashAction(html.CHECKBOX, ice.TRUE,
|
||||||
mdb.FIELD, "time,hash,type,name,text,cost,status,index,icons,agent,system,ip,ua",
|
mdb.FIELD, "time,hash,type,name,text,cost,status,index,icons,agent,system,ip,ua",
|
||||||
)), Hand: func(m *ice.Message, arg ...string) {
|
)), Hand: func(m *ice.Message, arg ...string) {
|
||||||
mdb.HashSelect(m, arg...).PushAction(ctx.PREVIEW, mdb.REMOVE).Action(mdb.PRUNES, html.FILTER)
|
mdb.HashSelect(m, arg...).PushAction(ctx.PREVIEW, mdb.REMOVE).Action(mdb.PRUNES, html.FILTER)
|
||||||
|
@ -32,6 +32,7 @@ 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.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.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 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.xterm.story>form.option>div.item.hash 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.xterm.story>form.option>div.item.hash 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.iframe.story>form.option>div.item.hash 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 { box-shadow:var(--box-shadow); }
|
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); }
|
||||||
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.plug>div.container>div.content:hover { box-shadow:var(--notice-box-shadow); }
|
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item.plug>div.container>div.content:hover { box-shadow:var(--notice-box-shadow); }
|
||||||
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item>div.container>div.content { display:flex; align-items:center; border-radius:var(--plugin-radius); min-height:var(--header-height); width:fit-content; }
|
fieldset.web.chat.message>div.output>div.layout>div.layout>div.content>div.list>div.item>div.container>div.content { display:flex; align-items:center; border-radius:var(--plugin-radius); min-height:var(--header-height); width:fit-content; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user