From eeb738ba659bdda0e746e35469b138f14b0cdbb8 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sun, 30 Jul 2023 09:48:36 +0800 Subject: [PATCH] add web.flows --- src/template/web.chat.header/light.css | 4 +++- src/webview.go | 3 +++ usr/local/export/web.chat.favor/hash.json | 16 ++++++++++++++++ usr/local/export/web.chat.river/hash.json | 2 +- 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/template/web.chat.header/light.css b/src/template/web.chat.header/light.css index 057e5a7f..b97ee35e 100644 --- a/src/template/web.chat.header/light.css +++ b/src/template/web.chat.header/light.css @@ -1,3 +1,5 @@ +body.light.cmd { --body-bg-color:aliceblue; } +body.white.cmd { --body-bg-color:white; } body.light { --body-bg-color:#4a566e; --body-fg-color:black; @@ -32,5 +34,5 @@ body.light { --tr-hover-bg-color:var(--hover-bg-color); --code-fg-color:white; - --box-shadow:gray 3px 3px 10px; + --box-shadow:gray 2px 2px 8px; } diff --git a/src/webview.go b/src/webview.go index 620f184b..ab30b8e6 100644 --- a/src/webview.go +++ b/src/webview.go @@ -2,6 +2,7 @@ package main import ( "os" + "time" "shylinux.com/x/ice" _ "shylinux.com/x/icebergs/misc/alpha" @@ -14,8 +15,10 @@ import ( ) func main() { + os.Setenv("PATH", "/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin") os.Chdir(kit.HomePath(ice.CONTEXTS)) go ice.Run(ice.SERVE, ice.START) defer ice.Pulse.Cmd(ice.EXIT) + time.Sleep(time.Second) webview.Run(nil) } diff --git a/usr/local/export/web.chat.favor/hash.json b/usr/local/export/web.chat.favor/hash.json index 0facdbcd..f2b7632f 100644 --- a/usr/local/export/web.chat.favor/hash.json +++ b/usr/local/export/web.chat.favor/hash.json @@ -1,4 +1,12 @@ { + "2598af": { + "meta": { + "name": "busybox", + "text": "docker run -w /root -it busybox", + "time": "2023-07-29 11:33:27.816", + "type": "shell" + } + }, "329132": { "meta": { "name": "2021.shylinux.com:20000", @@ -23,6 +31,14 @@ "type": "link" } }, + "45f8b9": { + "meta": { + "name": "alpine", + "text": "docker run -w /root -it alpine", + "time": "2023-07-29 11:33:50.015", + "type": "shell" + } + }, "6722d8": { "meta": { "name": "2021.shylinux.com:20001", diff --git a/usr/local/export/web.chat.river/hash.json b/usr/local/export/web.chat.river/hash.json index d33d5e13..cf6fcdc5 100644 --- a/usr/local/export/web.chat.river/hash.json +++ b/usr/local/export/web.chat.river/hash.json @@ -132,7 +132,7 @@ "name": "build", "text": "hello", "time": "2023-07-28 00:59:01.274", - "type": "root" + "type": "tech" } } }