1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2023-02-20 09:12:15 +08:00
parent 672b1a91d0
commit 689dd69894
5 changed files with 14 additions and 4 deletions

4
go.mod
View File

@ -30,7 +30,7 @@ require (
) )
require ( require (
shylinux.com/x/ice v1.2.9 shylinux.com/x/ice v1.3.0
shylinux.com/x/icebergs v1.5.3 shylinux.com/x/icebergs v1.5.4
shylinux.com/x/toolkits v0.7.4 shylinux.com/x/toolkits v0.7.4
) )

View File

@ -30,7 +30,7 @@ require (
) )
require ( require (
shylinux.com/x/ice v1.2.9 shylinux.com/x/ice v1.3.0
shylinux.com/x/icebergs v1.5.3 shylinux.com/x/icebergs v1.5.4
shylinux.com/x/toolkits v0.7.4 shylinux.com/x/toolkits v0.7.4
) )

1
src/hi/he.sh Normal file
View File

@ -0,0 +1 @@
echo "hello world"

View File

@ -1,4 +1,8 @@
Volcanos(chat.ONIMPORT, {_init: function(can, msg) { Volcanos(chat.ONIMPORT, {_init: function(can, msg) {
msg.Defer(function() { msg.Dump() }) msg.Defer(function() { msg.Dump() })
msg.Echo("hello world\n"+(can.Conf("content")||"")) msg.Echo("hello world\n"+(can.Conf("content")||""))
can.require(["he.js"], function() { }, function() { })
can.require(["/require/shylinux.com/x/contexts@v2.9.2/src/hi/he.js"], function() { }, function() { })
can.require(["http://localhost:9020/require/shylinux.com/x/contexts@v2.9.2/src/hi/he.js"], function() { }, function() { })
can.require(["https://shylinux.com/x/contexts@v2.9.2/src/hi/he.js?content=what"], function() { }, function() { })
}}) }})

View File

@ -4,6 +4,11 @@ function show() {
echo "hello world" echo "hello world"
} }
require "he.sh"
require "/require/shylinux.com/x/contexts@v2.9.2/src/hi/he.sh"
require "http://localhost:9020/require/shylinux.com/x/contexts@v2.9.2/src/hi/he.sh"
require "https://shylinux.com/x/contexts@v2.9.2/src/hi/he.sh?content=what"
show show
_list _list
echo echo