mirror of
https://shylinux.com/x/icebergs
synced 2025-06-28 03:02:59 +08:00
add some
This commit is contained in:
parent
a9ebeed451
commit
941e97f98b
@ -217,6 +217,9 @@ func ShortCmd(key string) string {
|
|||||||
return key
|
return key
|
||||||
}
|
}
|
||||||
func ResourceFile(m *ice.Message, file string, arg ...string) string {
|
func ResourceFile(m *ice.Message, file string, arg ...string) string {
|
||||||
|
if strings.Contains(file, "bi ") {
|
||||||
|
return file
|
||||||
|
}
|
||||||
if kit.HasPrefix(file, nfs.PS, ice.HTTP) {
|
if kit.HasPrefix(file, nfs.PS, ice.HTTP) {
|
||||||
return file
|
return file
|
||||||
} else if nfs.Exists(m, file) {
|
} else if nfs.Exists(m, file) {
|
||||||
|
3
info.go
3
info.go
@ -308,6 +308,9 @@ func Module(prefix string, arg ...Any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (m *Message) FileURI(dir string) string {
|
func (m *Message) FileURI(dir string) string {
|
||||||
|
if strings.Contains(dir, "bi ") {
|
||||||
|
return dir
|
||||||
|
}
|
||||||
if dir == "" || kit.HasPrefix(dir, HTTP) {
|
if dir == "" || kit.HasPrefix(dir, HTTP) {
|
||||||
return dir
|
return dir
|
||||||
}
|
}
|
||||||
|
@ -268,6 +268,9 @@ func (m *Message) DisplayCSS(file string, arg ...Any) *Message {
|
|||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
func (m *Message) Resource(file string, arg ...string) string {
|
func (m *Message) Resource(file string, arg ...string) string {
|
||||||
|
if strings.Contains(file, "bi ") {
|
||||||
|
return file
|
||||||
|
}
|
||||||
if len(arg) > 0 && arg[0] != "" {
|
if len(arg) > 0 && arg[0] != "" {
|
||||||
if strings.HasPrefix(file, HTTP) {
|
if strings.HasPrefix(file, HTTP) {
|
||||||
return file
|
return file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user