mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
7c21cbaf63
commit
0fb30b2266
@ -193,11 +193,9 @@ Volcanos("misc", {
|
||||
},
|
||||
ResourceFavicon(can) { return can.misc.Resource(can, nfs.SRC_MAIN_ICO) },
|
||||
Resource(can, path, space, serve) {
|
||||
if (serve && can.base.beginWith(path, nfs.PS)) { return serve+path }
|
||||
if (can.base.beginWith(path, web.HTTP, nfs.PS)) { return path }
|
||||
var p = can.base.MergeURL(nfs.REQUIRE+path+_version, ice.POD, space||can.ConfSpace()||can.misc.Search(can, ice.POD))
|
||||
if (serve && serve.indexOf(location.origin) == -1) { var u = can.base.ParseURL(serve); p = u.origin + p }
|
||||
return p
|
||||
if (!can.base.beginWith(path, web.HTTP, nfs.PS)) { path = nfs.REQUIRE+path+_version }
|
||||
if (!can.base.beginWith(path, web.HTTP)) { if (serve && serve.indexOf(location.origin) == -1) { var u = can.base.ParseURL(serve); path = u.origin + path } }
|
||||
return can.base.MergeURL(path, ice.POD, space||can.ConfSpace()||can.misc.Search(can, ice.POD))
|
||||
},
|
||||
ShareLocal(can, path, space) { if (can.base.beginWith(path, web.HTTP, nfs.PS)) { return path }
|
||||
return can.base.MergeURL(nfs.SHARE_LOCAL+path+_version, ice.POD, space||can.ConfSpace())
|
||||
|
Loading…
x
Reference in New Issue
Block a user