1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
root 2025-01-29 12:00:59 +08:00
parent c045033e55
commit 92a2fcac3c
4 changed files with 14 additions and 8 deletions

View File

@ -161,6 +161,7 @@ const (
USR_PUBLISH = ice.USR_PUBLISH USR_PUBLISH = ice.USR_PUBLISH
USR_LOCAL = ice.USR_LOCAL USR_LOCAL = ice.USR_LOCAL
USR_LOCAL_WORK = ice.USR_LOCAL_WORK USR_LOCAL_WORK = ice.USR_LOCAL_WORK
USR_IMAGE = "usr/image/"
USR_LOCAL_IMAGE = "usr/local/image/" USR_LOCAL_IMAGE = "usr/local/image/"
USR_LEARNING_PORTAL = "usr/learning/portal/" USR_LEARNING_PORTAL = "usr/learning/portal/"
USR_MODULES = "usr/node_modules/" USR_MODULES = "usr/node_modules/"

View File

@ -335,8 +335,8 @@ func init() {
aaa.White(m, SPACE, ice.MAIN) aaa.White(m, SPACE, ice.MAIN)
if kit.IsIn(ice.Info.NodeIcon, "src/main.ico", "") { if kit.IsIn(ice.Info.NodeIcon, "src/main.ico", "") {
nfs.Exists(m, "src/main.ico", func(p string) { ice.Info.NodeIcon = p }) nfs.Exists(m, "src/main.ico", func(p string) { ice.Info.NodeIcon = p })
nfs.Exists(m, "src/main.png", func(p string) { ice.Info.NodeIcon = p })
nfs.Exists(m, "src/main.jpg", func(p string) { ice.Info.NodeIcon = p }) nfs.Exists(m, "src/main.jpg", func(p string) { ice.Info.NodeIcon = p })
nfs.Exists(m, "src/main.png", func(p string) { ice.Info.NodeIcon = p })
} }
}}, }},
mdb.ICONS: {Hand: func(m *ice.Message, arg ...string) { mdb.ICONS: {Hand: func(m *ice.Message, arg ...string) {
@ -504,9 +504,10 @@ func init() {
m.Options(nfs.DIR_DEEP, ice.TRUE, nfs.DIR_REG, kit.ExtReg(nfs.PNG, nfs.JPG, nfs.JPEG)) m.Options(nfs.DIR_DEEP, ice.TRUE, nfs.DIR_REG, kit.ExtReg(nfs.PNG, nfs.JPG, nfs.JPEG))
m.Cmdy(nfs.DIR, nfs.SRC, nfs.PATH) m.Cmdy(nfs.DIR, nfs.SRC, nfs.PATH)
if aaa.IsTechOrRoot(m) { if aaa.IsTechOrRoot(m) {
m.Cmdy(nfs.DIR, ice.USR_LOCAL_IMAGE, nfs.PATH) m.Cmdy(nfs.DIR, nfs.USR_LOCAL_IMAGE, nfs.PATH)
} }
m.Cmdy(nfs.DIR, ice.USR_ICONS, nfs.PATH) m.Cmdy(nfs.DIR, nfs.USR_IMAGE, nfs.PATH)
m.Cmdy(nfs.DIR, nfs.USR_ICONS, nfs.PATH)
m.CutTo(nfs.PATH, arg[0]) m.CutTo(nfs.PATH, arg[0])
case ctx.INDEX, ice.CMD: case ctx.INDEX, ice.CMD:
m.OptionFields(ctx.INDEX) m.OptionFields(ctx.INDEX)

View File

@ -171,7 +171,7 @@ func init() {
m.PushButton(kit.Dict(m.CommandKey(), "编程")) m.PushButton(kit.Dict(m.CommandKey(), "编程"))
}) })
}}, }},
}, web.DreamTablesAction("编程"), ctx.ConfAction(ctx.TOOLS, "compile,runtime,xterm", web.ONLINE, ice.TRUE)), Hand: func(m *ice.Message, arg ...string) { }, web.DreamTablesAction("编程"), ctx.ConfAction(ctx.TOOLS, "xterm,runtime,compile", web.ONLINE, ice.TRUE)), Hand: func(m *ice.Message, arg ...string) {
if m.Cmdy(INNER, arg); arg[0] == ctx.ACTION { if m.Cmdy(INNER, arg); arg[0] == ctx.ACTION {
return return
} else if len(arg) == 1 { } else if len(arg) == 1 {

View File

@ -511,13 +511,17 @@ func init() {
case INIT: case INIT:
m.Push(arg[0], ice.Info.Make.Remote) m.Push(arg[0], ice.Info.Make.Remote)
m.Push(arg[0], kit.MergeURL2(web.UserHost(m), web.X(path.Base(kit.Path(""))))) m.Push(arg[0], kit.MergeURL2(web.UserHost(m), web.X(path.Base(kit.Path("")))))
m.Cmd(web.SPIDE, ice.OptionFields(web.CLIENT_ORIGIN)).Sort(web.CLIENT_ORIGIN).Table(func(value ice.Maps) { m.Cmd(web.SPIDE, ice.OptionFields(web.CLIENT_ORIGIN, web.CLIENT_TYPE)).Sort(web.CLIENT_ORIGIN).Table(func(value ice.Maps) {
if value[web.CLIENT_TYPE] == nfs.REPOS {
m.Push(arg[0], value[web.CLIENT_ORIGIN]+web.X(path.Base(kit.Path("")))) m.Push(arg[0], value[web.CLIENT_ORIGIN]+web.X(path.Base(kit.Path(""))))
}
}) })
case INSTEADOF: case INSTEADOF:
m.Push(arg[0], kit.MergeURL2(web.UserHost(m), web.X())) m.Push(arg[0], kit.MergeURL2(web.UserHost(m), web.X()))
m.Cmd(web.SPIDE, ice.OptionFields(web.CLIENT_ORIGIN)).Sort(web.CLIENT_ORIGIN).Table(func(value ice.Maps) { m.Cmd(web.SPIDE, ice.OptionFields(web.CLIENT_ORIGIN, web.CLIENT_TYPE)).Sort(web.CLIENT_ORIGIN).Table(func(value ice.Maps) {
if value[web.CLIENT_TYPE] == nfs.REPOS {
m.Push(arg[0], value[web.CLIENT_ORIGIN]+web.X()) m.Push(arg[0], value[web.CLIENT_ORIGIN]+web.X())
}
}) })
default: default:
switch arg[0] { switch arg[0] {