1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-28 18:22:02 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-18 00:31:30 +08:00
parent 06f8f8ebe1
commit 06eb4a2582

View File

@ -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,14 +18,12 @@ 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",
}, func(p string) {
// m.Cmd(WEBPACK, mdb.INSERT, p)
m.Cmd(web.BINPACK, mdb.INSERT, nfs.USR_MODULES+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) {
m.Cmd(lex.SPLIT, nfs.USR_MODULES+mdb.Config(m, nfs.PATH), kit.Dict(lex.SPLIT_SPACE, " {:;}"), func(text string, ls []string) { m.Cmd(lex.SPLIT, nfs.USR_MODULES+mdb.Config(m, nfs.PATH), kit.Dict(lex.SPLIT_SPACE, " {:;}"), func(text string, ls []string) {