From a56dd470e1e47f5c7a0abc97fb3e97195758cb37 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Thu, 14 Jul 2022 18:39:04 +0800 Subject: [PATCH] opt vimer.js --- etc/init.shy | 2 +- src/hi/hi.go | 1 + src/hi/hi.js | 4 ++++ src/main.go | 2 ++ src/main.shy | 18 ------------------ 5 files changed, 8 insertions(+), 19 deletions(-) diff --git a/etc/init.shy b/etc/init.shy index c6009fc9..16d0a193 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -13,7 +13,7 @@ config inner meta.show.plug "" config vimer meta.show.tabs "" config vimer meta.show.exts "inner/search.js?a=1,inner/favor.js" - config vimer meta.show.plug "cli.system" + config vimer meta.show.plug "web.code.tmux.session,web.code.git.status,cli.system" ~web.code.input # wubi load file usr/wubi-dict/wubi86 diff --git a/src/hi/hi.go b/src/hi/hi.go index 377b732b..0c70454b 100644 --- a/src/hi/hi.go +++ b/src/hi/hi.go @@ -12,6 +12,7 @@ type hi struct { func (s hi) Show(m *ice.Message, arg ...string) { m.Echo("hello world") + m.StatusTime() } func (s hi) List(m *ice.Message, arg ...string) { diff --git a/src/hi/hi.js b/src/hi/hi.js index 41954ccd..43c3fe38 100644 --- a/src/hi/hi.js +++ b/src/hi/hi.js @@ -1,4 +1,8 @@ Volcanos("onimport", {help: "导入数据", _init: function(can, msg) { + msg.Echo("hello world") + msg.Echo("hello world") + msg.Echo("hello world") + msg.Echo("hello world") msg.Echo("hello world") msg.Dump(can) }}) \ No newline at end of file diff --git a/src/main.go b/src/main.go index 80d7a873..5f8dca65 100644 --- a/src/main.go +++ b/src/main.go @@ -38,6 +38,8 @@ import ( _ "shylinux.com/x/linux-story/src/busybox" _ "shylinux.com/x/linux-story/src/kernel" _ "shylinux.com/x/linux-story/src/qemu" + + _ "shylinux.com/x/contexts/src/hi" ) func main() { print(ice.Run()) } \ No newline at end of file diff --git a/src/main.shy b/src/main.shy index 3608f37e..3e264764 100644 --- a/src/main.shy +++ b/src/main.shy @@ -59,21 +59,3 @@ chapter "项目开发" source "../usr/icebergs/misc/node/vue.shy" source "../usr/icebergs/misc/java/spring.shy" source "../usr/icebergs/core/chat/oauth/oauth.shy" - -label ` -Windows MacOSX Linux iOS Android -c/c++ golang python java javascript -` - -source h2/h2.shy -source h4/h4.shy -source h5/h5.shy -source h6/h6.shy -source h7/h7.shy -source h8/h8.shy -source h9/h9.shy -source h10/h10.shy -source h1/h1.shy -source h2/h2.shy -source h3/h3.shy -source h4/h4.shy \ No newline at end of file