mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
add favor
This commit is contained in:
parent
2847993bf0
commit
ea6e70ddbf
@ -52,6 +52,15 @@ var Index = &ctx.Context{Name: "chat", Help: "会议中心",
|
||||
map[string]interface{}{"name": "debug",
|
||||
"tmpl": "fieldset", "view": "Debug dialog", "init": "initDebug",
|
||||
},
|
||||
map[string]interface{}{"name": "favor",
|
||||
"tmpl": "fieldset", "view": "Favor dialog", "init": "initFavor",
|
||||
"ctx": "web.chat", "cmd": "favor",
|
||||
},
|
||||
map[string]interface{}{"name": "tutor",
|
||||
"tmpl": "fieldset", "view": "Tutor dialog", "init": "initTutor",
|
||||
"ctx": "web.chat", "cmd": "tutor",
|
||||
},
|
||||
|
||||
map[string]interface{}{"name": "login",
|
||||
"tmpl": "fieldset", "view": "Login dialog", "init": "initLogin",
|
||||
"ctx": "web.chat", "cmd": "login",
|
||||
@ -498,6 +507,15 @@ var Index = &ctx.Context{Name: "chat", Help: "会议中心",
|
||||
return
|
||||
}},
|
||||
|
||||
"favor": &ctx.Command{Name: "favor", Help: "命令", Hand: func(m *ctx.Message, c *ctx.Context, key string, arg ...string) (e error) {
|
||||
m.Cmdy(arg)
|
||||
return
|
||||
}},
|
||||
"tutor": &ctx.Command{Name: "tutor", Help: "向导", Hand: func(m *ctx.Message, c *ctx.Context, key string, arg ...string) (e error) {
|
||||
m.Cmdy(arg)
|
||||
return
|
||||
}},
|
||||
|
||||
"/share/": &ctx.Command{Name: "/share/", Help: "共享链接", Hand: func(m *ctx.Message, c *ctx.Context, key string, arg ...string) (e error) {
|
||||
h := strings.TrimPrefix(key, "/share/")
|
||||
m.Confm("share", []string{"hash", h}, func(value map[string]interface{}) {
|
||||
|
@ -184,7 +184,16 @@ fieldset.dialog.Favor input.cmd {
|
||||
font-weight:bold;
|
||||
font-family:monospace;
|
||||
background-color:black;
|
||||
width:388px;
|
||||
border:solid 1px white;
|
||||
padding:4px;
|
||||
width:383px;
|
||||
}
|
||||
fieldset.dialog.Favor div.output {
|
||||
color:white;
|
||||
white-space:pre;
|
||||
max-height: 200px;
|
||||
overflow:auto;
|
||||
width:400px;
|
||||
}
|
||||
|
||||
fieldset.dialog.Toast {
|
||||
@ -192,7 +201,7 @@ fieldset.dialog.Toast {
|
||||
background-color:#ffffff;
|
||||
position:absolute;
|
||||
display:none;
|
||||
z-index:100;
|
||||
z-index:200;
|
||||
}
|
||||
fieldset.dialog.Toast>div.action {
|
||||
padding:0 0px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user