From ca7e3ae53956cf826182456bf87963dddad3591b Mon Sep 17 00:00:00 2001 From: Skkypy Date: Thu, 25 Aug 2022 13:25:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?WeBASE=20Task=206:=20=E5=9C=A8=E5=B7=B2?= =?UTF-8?q?=E6=9C=89=E6=8F=90=E7=A4=BA=E8=AF=AD=E4=B8=AD=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0Struct=20Tuple=E7=B1=BB=E5=9E=8B=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/en.js | 2 +- src/lang/zh.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lang/en.js b/src/lang/en.js index 40bc5d13..79e65b05 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -631,7 +631,7 @@ export default { folderSameFail: "The new folder has the same name as the existing folder", user: "User", params: "Params", - paramsInfo: 'If the parameter type is an array, enter the following format, comma separated, with double quotes for non-numeric and Boolean values, such as ["aaa","bbb"] and [100,101]; Escape if array parameters contain double quotes, for example: ["aaa\\"bbb","ccc"].', + paramsInfo: 'If the parameter type is an array, struct or tuple, enter the following format, comma separated, with double quotes for non-numeric and Boolean values, such as ["aaa","bbb"] and [100,101]; Escape if array, struct or tuple parameters contain double quotes, for example: ["aaa\\"bbb","ccc"].', contractAddress: "Address", method: "Method", contractAddressInput: "Please enter the contract address", diff --git a/src/lang/zh.js b/src/lang/zh.js index 81d68eb8..0044f121 100644 --- a/src/lang/zh.js +++ b/src/lang/zh.js @@ -632,7 +632,7 @@ export default { folderSameFail: "新建文件夹与已存在的文件夹名称相同", user: "用户", params: "参数", - paramsInfo: '如果参数类型是数组,请按照以下格式输入,以逗号分隔,非数值和布尔值须使用双引号,例如:["aaa","bbb"]和[100,101];如果数组参数包含双引号,需转义,例如:["aaa\\"bbb","ccc"]。', + paramsInfo: '如果参数类型是数组、Struct或Tuple,请按照以下格式输入,以逗号分隔,非数值和布尔值须使用双引号,例如:["aaa","bbb"]和[100,101];如果数组、Struct或Tuple参数包含双引号,需转义,例如:["aaa\\"bbb","ccc"]。', contractAddress: "合约地址", method: "方法", contractAddressInput: "请输入合约地址", From 208516354700e71602cd33ea8bd038db6840a095 Mon Sep 17 00:00:00 2001 From: lyh <81232339+carpONE@users.noreply.github.com> Date: Mon, 29 Aug 2022 22:39:02 +0800 Subject: [PATCH 2/3] Add files via upload --- ...47\233\256\344\270\255\347\232\204logo.md" | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 "task10--\344\277\256\346\224\271WeBASE-Web\345\211\215\347\253\257\351\241\271\347\233\256\344\270\255\347\232\204logo.md" diff --git "a/task10--\344\277\256\346\224\271WeBASE-Web\345\211\215\347\253\257\351\241\271\347\233\256\344\270\255\347\232\204logo.md" "b/task10--\344\277\256\346\224\271WeBASE-Web\345\211\215\347\253\257\351\241\271\347\233\256\344\270\255\347\232\204logo.md" new file mode 100644 index 00000000..36c201ab --- /dev/null +++ "b/task10--\344\277\256\346\224\271WeBASE-Web\345\211\215\347\253\257\351\241\271\347\233\256\344\270\255\347\232\204logo.md" @@ -0,0 +1,107 @@ +# Second quarter 第二季 + +## task11:修改WeBASE-Web前端项目中的logo + +### 第一步:克隆WeBASE-Web项目 + +``git clone https://gitee.com/WeBank/WeBASE-Web.git`` + +#### 进入目录: + +`cd WeBASE-Web` + +#### 然后 下载solc-bin +执行脚本get_solc_js.sh会自动下载solc-bin,即下面v0.4.25.js等文件。 在WeBASE-Web/目录中直接执行脚本get_solc_js.sh((脚本与dist文件夹同级)) + +```bash +./get_solc_js.sh +``` + +### 第二步:修改配置 + +> 需要安装 nginx [安装教程](https://webasedoc.readthedocs.io/zh_CN/latest/docs/WeBASE-Web/appendix.html#code_fail) +> 若已安装nginx 可以输入 ``ps -ef | grep nginx`` 查看nginx的安装目录 nginx.config +> 查看配置文件 nginx.conf 路径 ``nginx -t`` + +在docs目录下有配置文件nginx.conf,修改完后替换安装的nginx的配置文件nginx.conf(这里nginx安装配置文件在/usr/local/nginx/conf下面,如果这里没找到,可以到/etc下寻找,如有权限问题,请加上sudo)。 + +修改配置: + +```bash +# 修改服务器ip,也可以使用域名 +sed -i "s%127.0.0.1%${your_ip}%g" docs/nginx.conf + +# 修改WeBASE-Web服务端口(端口需要开通策略且不能被占用) +sed -i "s%5000%${your_port}%g" docs/nginx.conf + +# 修改静态文件路径(文件需要有权限访问) +sed -i "s%/data/WeBASE-Web/dist%${your_file_dir}%g" docs/nginx.conf + +# 节点管理服务ip和端口 +sed -i "s%10.0.0.1:5001%${your_node_manager}%g" docs/nginx.conf + +``` + +第一种情况: +复制配置文件nginx.conf到默认配置目录中 +也可以直接通过nginx -c docs/nginx.conf命令加载docs/nginx.conf配置 +```bash +cp -rf docs/nginx.conf /usr/local/nginx/conf +``` + +第二种情况:可在原配置文件nginx.conf增加一个server + + +```lombok.config + upstream node_mgr_server{ + server 10.0.0.1:5001; # 节点管理服务ip和端口 + } + server { + listen 5000 default_server; # 前端端口(端口需要开通策略且不能被占用) + server_name 127.0.0.1; # 服务器ip,也可配置为域名 + location / { + root /data/WeBASE-Web/dist; # 前端文件路径(文件需要有权限访问) + # 下面是移动端nginx配置 + if ( $http_user_agent ~ "(MIDP)|(WAP)|(UP.Browser)|(Smartphone)|(Obigo)|(Mobile)|(AU.Browser)|(wxd.Mms)|(WxdB.Browser)|(CLDC)|(UP.Link)|(KM.Browser)|(UCWEB)|(SEMC-Browser)|(Mini)|(Symbian)|(Palm)|(Nokia)|(Panasonic)|(MOT-)|(SonyEricsson)|(NEC-)|(Alcatel)|(Ericsson)|(BENQ)|(BenQ)|(Amoisonic)|(Amoi-)|(Capitel)|(PHILIPS)|(SAMSUNG)|(Lenovo)|(Mitsu)|(Motorola)|(SHARP)|(WAPPER)|(LG-)|(LG/)|(EG900)|(CECT)|(Compal)|(kejian)|(Bird)|(BIRD)|(G900/V1.0)|(Arima)|(CTL)|(TDG)|(Daxian)|(DAXIAN)|(DBTEL)|(Eastcom)|(EASTCOM)|(PANTECH)|(Dopod)|(Haier)|(HAIER)|(KONKA)|(KEJIAN)|(LENOVO)|(Soutec)|(SOUTEC)|(SAGEM)|(SEC-)|(SED-)|(EMOL-)|(INNO55)|(ZTE)|(iPhone)|(Android)|(Windows CE)|(Wget)|(Java)|(curl)|(Opera)" ) + { + root /data/WeBASE-Web-Mobile/dist; + } + index index.html index.htm; + try_files $uri $uri/ /index.html =404; + } + + include /etc/nginx/default.d/*.conf; + + location /mgr { + proxy_pass http://node_mgr_server/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + } +``` + + +### 第三步:修改WeBASE-Web前端项目logo + +> 注意:修改的logo图片类型以及名称需要跟原来的一致 + +在 /WeBASE-Web/dist/static/image 目录下找到 webase_logo.png 将其替换调即可 + +### 第四步:重启nginx + +```bash +/usr/sbin/nginx -s reload + +# usr 为你nginx安装的nginx目录 +# 如:我安装的nginx目录在 /root 下 +# 则 我重启nginx的命令应该为:/root/nginx/sbin/nginx -s reload +``` +#### 第五步:访问页面 +``http://{deployIP}:{webPort}`` +``示例:http://127.0.0.1:5000`` + +> 如果是在原配置文件nginx.conf增加一个server出现 403 状态 +> 需要修改用户为root ``user root`` + + From 687ee6e5457aa11e054c399f2fcd4752e8fc703f Mon Sep 17 00:00:00 2001 From: CN-XIANGJIANXIONG <111106471+CN-XIANGJIANXIONG@users.noreply.github.com> Date: Thu, 17 Aug 2023 16:28:28 +0800 Subject: [PATCH 3/3] =?UTF-8?q?2023=E7=AC=AC=E4=BA=8C=E5=AD=A3task15?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99=E5=86=85=E5=AE=B9=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2023第二季task15修改报错内容文件 --- src/util/errcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/errcode.js b/src/util/errcode.js index de5de4d1..59bc5af3 100755 --- a/src/util/errcode.js +++ b/src/util/errcode.js @@ -1006,7 +1006,7 @@ let errCode = { }, "202002": { en: "not found any front for this group", - zh: "组织已经存在" + zh: "所有前置无法连上当前群组" }, "202003": { en: "organization not exists",