diff --git a/etc/init.shy b/etc/init.shy index 52b5ae69..12cb2735 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -14,6 +14,6 @@ event action listen event dream.create cmd web.code.tmux.session ~ssh - target web.code.tmux + target web.code source local.shy diff --git a/go.mod b/go.mod index e244f426..f58c4ac3 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module shylinux.com/x/contexts go 1.11 -require shylinux.com/x/ice v0.7.6 +require shylinux.com/x/ice v0.7.7 require ( shylinux.com/x/golang-story v0.3.5 diff --git a/go.sum b/go.sum index 7f8bcb10..9653e264 100644 --- a/go.sum +++ b/go.sum @@ -4,10 +4,12 @@ shylinux.com/x/go-sql-mysql v0.0.1 h1:VX5SrwLBKzfkRouj39LgJ9reIXOWmMsScRpr+e0qdp shylinux.com/x/go-sql-mysql v0.0.1/go.mod h1:47OfAZK24HRJMy7dAu/jrksGCf9yzJaAUFwWYjhDFDA= shylinux.com/x/golang-story v0.3.5 h1:52GzwjyFSL1/opzcIcZnSCK6V5wj0cNlyeTYvgq+l0g= shylinux.com/x/golang-story v0.3.5/go.mod h1:4nkJ5zyhNNC2ulPsf6WowneJ+axCw8eWMpsLwiQrvgg= -shylinux.com/x/ice v0.7.6 h1:ThYvIuq0x6dOHqS2k04ULfIQLNBGKb/1SylmnM8HY+o= shylinux.com/x/ice v0.7.6/go.mod h1:cnR4S2jWpPKuUsmnnul1gZCIZeuFeO17ieHbXmWjwpM= -shylinux.com/x/icebergs v1.0.3 h1:1LMMWPnuxl0pbocxvhWz03j6mOTrkgze1nYMQjrpBEg= +shylinux.com/x/ice v0.7.7 h1:rM7mREc4sZQi54p68pBdxP9yyGj139X9EFvJ6nv2A1Y= +shylinux.com/x/ice v0.7.7/go.mod h1:IgRTxU8QmUXY+Kn2RGo45c1cKY8A8+gHZCuDxFvsfPs= shylinux.com/x/icebergs v1.0.3/go.mod h1:1fRX95S0HcbeVk1emgtPugJPaR15xhGo3qNYxqIUgCw= +shylinux.com/x/icebergs v1.0.4 h1:ID9xOYkLagvlm8lgI9+lDAecekXZBVmVxHjri8u44jg= +shylinux.com/x/icebergs v1.0.4/go.mod h1:1fRX95S0HcbeVk1emgtPugJPaR15xhGo3qNYxqIUgCw= shylinux.com/x/linux-story v0.3.4 h1:1YHGOYac0vvzTNcJCT0bPYdImhuZMfM6JBec/DYzmS4= shylinux.com/x/linux-story v0.3.4/go.mod h1:Fj+ojz6nFPPzVGdiroS2LwvLTP7QaeVMRlfuGp/VbiE= shylinux.com/x/mysql-story v0.3.6 h1:uIdHEvNlHTOPfnfhA3zSfdYx+eyTu5Out62mXlOfGCY= diff --git a/src/debug/go.mod b/src/debug/go.mod index cc125e64..b72a6454 100644 --- a/src/debug/go.mod +++ b/src/debug/go.mod @@ -2,7 +2,7 @@ module shylinux.com/x/contexts go 1.11 -require shylinux.com/x/ice v0.7.6 +require shylinux.com/x/ice v0.7.7 require ( shylinux.com/x/golang-story v0.3.5 diff --git a/src/hi/he.js b/src/hi/he.js index 5f18b93f..5cb706ae 100644 --- a/src/hi/he.js +++ b/src/hi/he.js @@ -3,10 +3,11 @@ Volcanos("onimport", {help: "导入数据", list: [ {type: "button", name: "back"}, {type: "button", name: "show"}, ], _init: function(can, msg, cb, target) { - can.page.Modify(can, can._legend, "示例") - msg.Push("hi", "hello") - msg.Push("he", "world") - msg.Echo("hello world") + if (msg.Length() == 0) { + msg.Push("hi", "hello") + msg.Push("he", "world") + msg.Echo("hello world") + } can.onmotion.clear(can) can.onappend.table(can, msg) can.onappend.board(can, msg) diff --git a/src/release/go.mod b/src/release/go.mod index e244f426..f58c4ac3 100644 --- a/src/release/go.mod +++ b/src/release/go.mod @@ -2,7 +2,7 @@ module shylinux.com/x/contexts go 1.11 -require shylinux.com/x/ice v0.7.6 +require shylinux.com/x/ice v0.7.7 require ( shylinux.com/x/golang-story v0.3.5 diff --git a/src/release/go.sum b/src/release/go.sum index 7f8bcb10..9653e264 100644 --- a/src/release/go.sum +++ b/src/release/go.sum @@ -4,10 +4,12 @@ shylinux.com/x/go-sql-mysql v0.0.1 h1:VX5SrwLBKzfkRouj39LgJ9reIXOWmMsScRpr+e0qdp shylinux.com/x/go-sql-mysql v0.0.1/go.mod h1:47OfAZK24HRJMy7dAu/jrksGCf9yzJaAUFwWYjhDFDA= shylinux.com/x/golang-story v0.3.5 h1:52GzwjyFSL1/opzcIcZnSCK6V5wj0cNlyeTYvgq+l0g= shylinux.com/x/golang-story v0.3.5/go.mod h1:4nkJ5zyhNNC2ulPsf6WowneJ+axCw8eWMpsLwiQrvgg= -shylinux.com/x/ice v0.7.6 h1:ThYvIuq0x6dOHqS2k04ULfIQLNBGKb/1SylmnM8HY+o= shylinux.com/x/ice v0.7.6/go.mod h1:cnR4S2jWpPKuUsmnnul1gZCIZeuFeO17ieHbXmWjwpM= -shylinux.com/x/icebergs v1.0.3 h1:1LMMWPnuxl0pbocxvhWz03j6mOTrkgze1nYMQjrpBEg= +shylinux.com/x/ice v0.7.7 h1:rM7mREc4sZQi54p68pBdxP9yyGj139X9EFvJ6nv2A1Y= +shylinux.com/x/ice v0.7.7/go.mod h1:IgRTxU8QmUXY+Kn2RGo45c1cKY8A8+gHZCuDxFvsfPs= shylinux.com/x/icebergs v1.0.3/go.mod h1:1fRX95S0HcbeVk1emgtPugJPaR15xhGo3qNYxqIUgCw= +shylinux.com/x/icebergs v1.0.4 h1:ID9xOYkLagvlm8lgI9+lDAecekXZBVmVxHjri8u44jg= +shylinux.com/x/icebergs v1.0.4/go.mod h1:1fRX95S0HcbeVk1emgtPugJPaR15xhGo3qNYxqIUgCw= shylinux.com/x/linux-story v0.3.4 h1:1YHGOYac0vvzTNcJCT0bPYdImhuZMfM6JBec/DYzmS4= shylinux.com/x/linux-story v0.3.4/go.mod h1:Fj+ojz6nFPPzVGdiroS2LwvLTP7QaeVMRlfuGp/VbiE= shylinux.com/x/mysql-story v0.3.6 h1:uIdHEvNlHTOPfnfhA3zSfdYx+eyTu5Out62mXlOfGCY= diff --git a/src/website/hi.txt b/src/website/hi.txt index a368d2ab..3a11b926 100644 --- a/src/website/hi.txt +++ b/src/website/hi.txt @@ -1,9 +1,5 @@ hi - hi - nfs.dir - cli.qrcode - cli.runtime - web.code.hi.hi - he - cli.runtime - web.code.hi.hi + h1 + hi/he.js "示例" + hi/hi.go + hi/hi.js \ No newline at end of file