mirror of
https://shylinux.com/x/icebergs
synced 2025-06-27 18:52:58 +08:00
add some
This commit is contained in:
parent
a9ebeed451
commit
941e97f98b
@ -217,6 +217,9 @@ func ShortCmd(key string) string {
|
||||
return key
|
||||
}
|
||||
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) {
|
||||
return 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 {
|
||||
if strings.Contains(dir, "bi ") {
|
||||
return dir
|
||||
}
|
||||
if dir == "" || kit.HasPrefix(dir, HTTP) {
|
||||
return dir
|
||||
}
|
||||
|
@ -268,6 +268,9 @@ func (m *Message) DisplayCSS(file string, arg ...Any) *Message {
|
||||
return m
|
||||
}
|
||||
func (m *Message) Resource(file string, arg ...string) string {
|
||||
if strings.Contains(file, "bi ") {
|
||||
return file
|
||||
}
|
||||
if len(arg) > 0 && arg[0] != "" {
|
||||
if strings.HasPrefix(file, HTTP) {
|
||||
return file
|
||||
|
Loading…
x
Reference in New Issue
Block a user