From 32f4d8fa8ebbf0926d8e05f6c254f0361935234d Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sat, 15 Oct 2022 23:18:17 +0800 Subject: [PATCH] opt plan --- etc/webview.txt | 4 ++++ src/webview.go | 1 + src/webview.txt | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 etc/webview.txt delete mode 100644 src/webview.txt diff --git a/etc/webview.txt b/etc/webview.txt new file mode 100644 index 00000000..f1421851 --- /dev/null +++ b/etc/webview.txt @@ -0,0 +1,4 @@ +shylinux https://shylinux.com +localhost http://localhost:9020 +vimer "http://localhost:9020/chat/cmd/web.code.vimer?path=src/,usr/icebergs/,usr/volcanos/&file=main.go" +plan "http://localhost:9020/chat/cmd/web.team.plan" diff --git a/src/webview.go b/src/webview.go index 35e60502..7fead786 100644 --- a/src/webview.go +++ b/src/webview.go @@ -23,6 +23,7 @@ func main() { } } else { go ice.Run(web.SERVE, tcp.START) + defer ice.Pulse.Cmd(ice.EXIT) time.Sleep(time.Second) webview.Run(func(w *webview.WebView) ice.Any { return view{w} }) } diff --git a/src/webview.txt b/src/webview.txt deleted file mode 100644 index 1ed2d3ab..00000000 --- a/src/webview.txt +++ /dev/null @@ -1,3 +0,0 @@ -shylinux https://shylinux.com -localhost http://localhost:9020 -vimer "http://localhost:9020/chat/cmd/web.code.vimer?topic=black&path=src/,usr/icebergs/,usr/volcanos/&file=main.go"