mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 10:12:02 +08:00
add some
This commit is contained in:
parent
06f8f8ebe1
commit
06eb4a2582
@ -4,6 +4,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
ice "shylinux.com/x/icebergs"
|
ice "shylinux.com/x/icebergs"
|
||||||
|
"shylinux.com/x/icebergs/base/cli"
|
||||||
"shylinux.com/x/icebergs/base/ctx"
|
"shylinux.com/x/icebergs/base/ctx"
|
||||||
"shylinux.com/x/icebergs/base/lex"
|
"shylinux.com/x/icebergs/base/lex"
|
||||||
"shylinux.com/x/icebergs/base/mdb"
|
"shylinux.com/x/icebergs/base/mdb"
|
||||||
@ -17,13 +18,11 @@ const ICON = "icon"
|
|||||||
func init() {
|
func init() {
|
||||||
Index.MergeCommands(ice.Commands{
|
Index.MergeCommands(ice.Commands{
|
||||||
ICON: {Help: "图标", Actions: ice.MergeActions(ice.Actions{
|
ICON: {Help: "图标", Actions: ice.MergeActions(ice.Actions{
|
||||||
ice.CTX_OPEN: {Hand: func(m *ice.Message, arg ...string) {
|
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
kit.For([]string{
|
m.GoSleep(cli.TIME_30ms, func() {
|
||||||
"bootstrap-icons/font/fonts/bootstrap-icons.woff2",
|
kit.For([]string{"bootstrap-icons/font/bootstrap-icons.css", "bootstrap-icons/font/fonts/bootstrap-icons.woff2"}, func(p string) {
|
||||||
"bootstrap-icons/font/bootstrap-icons.css",
|
m.Cmd(web.BINPACK, mdb.INSERT, nfs.USR_MODULES+p)
|
||||||
}, func(p string) {
|
})
|
||||||
// m.Cmd(WEBPACK, mdb.INSERT, p)
|
|
||||||
m.Cmd(web.BINPACK, mdb.INSERT, nfs.USR_MODULES+p)
|
|
||||||
})
|
})
|
||||||
}},
|
}},
|
||||||
}, ctx.ConfAction(nfs.PATH, "bootstrap-icons/font/bootstrap-icons.css")), Hand: func(m *ice.Message, arg ...string) {
|
}, ctx.ConfAction(nfs.PATH, "bootstrap-icons/font/bootstrap-icons.css")), Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user