mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 18:22:02 +08:00
add some
This commit is contained in:
parent
c26e2030e8
commit
8ad2fd8e32
@ -6,6 +6,11 @@ const (
|
|||||||
WHITE = "white"
|
WHITE = "white"
|
||||||
BLACK = "black"
|
BLACK = "black"
|
||||||
SILVER = "silver"
|
SILVER = "silver"
|
||||||
|
|
||||||
|
PROJECT = "project"
|
||||||
|
CONTENT = "content"
|
||||||
|
PROFILE = "profile"
|
||||||
|
DISPLAY = "display"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -96,7 +96,9 @@ func _spide_body(m *ice.Message, method string, arg ...string) (io.Reader, ice.M
|
|||||||
switch kit.If(len(arg) == 1, func() { arg = []string{SPIDE_DATA, arg[0]} }); arg[0] {
|
switch kit.If(len(arg) == 1, func() { arg = []string{SPIDE_DATA, arg[0]} }); arg[0] {
|
||||||
case SPIDE_FORM:
|
case SPIDE_FORM:
|
||||||
arg = kit.Simple(arg, func(v string) string { return url.QueryEscape(v) })
|
arg = kit.Simple(arg, func(v string) string { return url.QueryEscape(v) })
|
||||||
head[ContentType], body = ContentFORM, bytes.NewBufferString(kit.JoinKV("=", "&", arg[1:]...))
|
_data := kit.JoinKV("=", "&", arg[1:]...)
|
||||||
|
m.Debug("post %v %v", len(_data), _data)
|
||||||
|
head[ContentType], body = ContentFORM, bytes.NewBufferString(_data)
|
||||||
case SPIDE_PART:
|
case SPIDE_PART:
|
||||||
head[ContentType], body = _spide_part(m, arg...)
|
head[ContentType], body = _spide_part(m, arg...)
|
||||||
case SPIDE_FILE:
|
case SPIDE_FILE:
|
||||||
|
@ -91,7 +91,7 @@ func init() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
m.Cmd(cli.SYSTEM, "osascript", "-e", `tell app "System Events" to tell appearance preferences to set dark mode to `+
|
m.Cmd(cli.SYSTEM, "osascript", "-e", `tell app "System Events" to tell appearance preferences to set dark mode to `+
|
||||||
kit.Select(ice.FALSE, ice.TRUE, kit.IsIn(kit.Select(html.DARK, arg, 0), html.DARK, html.BLACK, html.SILVER)))
|
kit.Select(ice.TRUE, ice.FALSE, kit.IsIn(kit.Select(html.LIGHT, arg, 0), html.LIGHT, html.WHITE)))
|
||||||
}},
|
}},
|
||||||
}, ctx.ConfAction(SSO, "")), Hand: func(m *ice.Message, arg ...string) {
|
}, ctx.ConfAction(SSO, "")), Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Option("language.list", m.Cmd(nfs.DIR, path.Join(ice.SRC_TEMPLATE, m.PrefixKey(), aaa.LANGUAGE), nfs.FILE).Appendv(nfs.FILE))
|
m.Option("language.list", m.Cmd(nfs.DIR, path.Join(ice.SRC_TEMPLATE, m.PrefixKey(), aaa.LANGUAGE), nfs.FILE).Appendv(nfs.FILE))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user