From 38a548f187d5ae41f9e0aa3c0a93a38f1b83c767 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sat, 26 Jan 2019 23:13:22 +0800 Subject: [PATCH] fix tmpl --- etc/bootstrap.sh | 8 +++----- etc/init.shy | 6 ++++-- src/examples/code/code.go | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/etc/bootstrap.sh b/etc/bootstrap.sh index 123731c0..86b13b7b 100755 --- a/etc/bootstrap.sh +++ b/etc/bootstrap.sh @@ -1,14 +1,12 @@ #!/usr/bin/env bash -bench=bin/bench.win64.exe -[ `uname` = "Darwin" ] && bench=bin/bench.darwin -[ `uname` = "Linux" ] && bench=bin/bench.linux64 -[ -e "$bench" ] || bench=bench +bench=bench +[ -e bin/bench ] && bench=bin/bench echo "bench: $bench"> var/boot.log while true; do - $bench stdio 2>var/error.log && break + $bench 2>var/error.log && break echo "bench run error" echo "restarting..." sleep 3 diff --git a/etc/init.shy b/etc/init.shy index 3f6cbd5e..0a2cc917 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -2,8 +2,10 @@ remote listen :9090 ~aaa role tech componet index command source + role tech componet index command context + + role tech componet source command nfs.pwd ls + user tech shy shy ~web serve - -~aaa diff --git a/src/examples/code/code.go b/src/examples/code/code.go index a5b566b6..40f165dd 100644 --- a/src/examples/code/code.go +++ b/src/examples/code/code.go @@ -32,8 +32,8 @@ var Index = &ctx.Context{Name: "code", Help: "代码中心", map[string]interface{}{"name": "login", "help": "login", "template": "componet", "componet_ctx": "aaa", "componet_cmd": "auth", "arguments": []interface{}{"@sessid", "ship", "username", "@username", "password", "@password"}, "inputs": []interface{}{ - map[string]interface{}{"type": "text", "name": "username", "label": "username"}, - map[string]interface{}{"type": "password", "name": "password", "label": "password"}, + map[string]interface{}{"type": "text", "name": "username", "label": "username", "value": ""}, + map[string]interface{}{"type": "password", "name": "password", "label": "password", "value": ""}, map[string]interface{}{"type": "button", "value": "login"}, }, "display_append": "", "display_result": "",