mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 18:22:02 +08:00
opt some
This commit is contained in:
parent
f208c8114d
commit
d2bf427703
@ -28,13 +28,11 @@ func _js_main_script(m *ice.Message, arg ...string) (res []string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const TS = "ts"
|
|
||||||
const JS = "js"
|
const JS = "js"
|
||||||
const CSS = "css"
|
const CSS = "css"
|
||||||
const HTML = "html"
|
const HTML = "html"
|
||||||
const JSON = "json"
|
const JSON = "json"
|
||||||
const NODE = "node"
|
const NODE = "node"
|
||||||
const VUE = "vue"
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
Index.Register(&ice.Context{Name: JS, Help: "前端", Commands: map[string]*ice.Command{
|
Index.Register(&ice.Context{Name: JS, Help: "前端", Commands: map[string]*ice.Command{
|
||||||
@ -42,9 +40,7 @@ func init() {
|
|||||||
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
|
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
for _, cmd := range []string{mdb.SEARCH, mdb.ENGINE, mdb.RENDER, mdb.PLUGIN} {
|
for _, cmd := range []string{mdb.SEARCH, mdb.ENGINE, mdb.RENDER, mdb.PLUGIN} {
|
||||||
m.Cmd(cmd, mdb.CREATE, JSON, m.PrefixKey())
|
m.Cmd(cmd, mdb.CREATE, JSON, m.PrefixKey())
|
||||||
m.Cmd(cmd, mdb.CREATE, VUE, m.PrefixKey())
|
|
||||||
m.Cmd(cmd, mdb.CREATE, JS, m.PrefixKey())
|
m.Cmd(cmd, mdb.CREATE, JS, m.PrefixKey())
|
||||||
m.Cmd(cmd, mdb.CREATE, TS, m.PrefixKey())
|
|
||||||
}
|
}
|
||||||
LoadPlug(m, JS)
|
LoadPlug(m, JS)
|
||||||
}},
|
}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user