From 08e9e4e80efd2ef6682084135ae8f108185d5416 Mon Sep 17 00:00:00 2001 From: shaoying Date: Thu, 14 May 2020 22:55:27 +0800 Subject: [PATCH] opt some --- Makefile | 6 +++++- usr/publish/order.js | 25 ++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d474089f..94d5bcfa 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +export CGO_ENABLED=0 +export GOPRIVATE=github.com +export GOPROXY=https://goproxy.cn + all: @echo && date - GOPRIVATE=github.com GOPROXY=https://goproxy.cn CGO_ENABLED=0 go build -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart + go build -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart diff --git a/usr/publish/order.js b/usr/publish/order.js index a7ea6674..4d2cb746 100644 --- a/usr/publish/order.js +++ b/usr/publish/order.js @@ -1,5 +1,28 @@ Volcanos("onengine", { river: { - "one": {name: "第一组", storm: { + "main": {name: "main", storm: { + "main": {name: "main", action: [ + {name: "free", help: "内存", inputs: [ + {type: "text", name: "name", value: "free"}, + {type: "text", name: "value", value: "-h"}, + {type: "button", name: "查看"}, + ], index: "cli.system"}, + {name: "df", help: "磁盘", inputs: [ + {type: "text", name: "name", value: "df"}, + {type: "text", name: "value", value: "-h"}, + {type: "button", name: "查看"}, + ], index: "cli.system"}, + {name: "ps", help: "进程", inputs: [ + {type: "text", name: "name", value: "ps"}, + {type: "button", name: "查看"}, + ], index: "cli.system"}, + {name: "ls", help: "文件", inputs: [ + {type: "text", name: "name", value: "ls"}, + {type: "text", name: "value", value: "-l"}, + {type: "button", name: "查看"}, + ], index: "cli.system"}, + {name: "ifconfig", help: "网卡", index: "tcp.ifconfig"}, + ]}, + "hello": {name: "应用1", action: [ {name: "some", help: "some", inputs: [ {type: "text", name: "one"},