chore: turn cn comment to en for common space (#376)
This commit is contained in:
@ -16,7 +16,7 @@ BUILD_BRANCH=opencoze-local rush rebuild -o @coze-studio/app --verbose
|
||||
|
||||
popd
|
||||
|
||||
# 复制构建产物到后端静态目录
|
||||
# Copy bundle to backend static directory
|
||||
echo -e "${YELLOW}正在复制构建产物到后端静态目录...${NC}"
|
||||
BACKEND_STATIC_DIR="${SCRIPT_DIR}/../backend/static"
|
||||
BIN_STATIC_DIR="${SCRIPT_DIR}/../bin/resources/static"
|
||||
@ -27,7 +27,7 @@ rm -rf "${BIN_STATIC_DIR}"
|
||||
mkdir -p "${BACKEND_STATIC_DIR}"
|
||||
mkdir -p "${BIN_STATIC_DIR}"
|
||||
|
||||
# 清空目标目录并复制新的构建产物
|
||||
# Clear the target directory and copy the new bundle
|
||||
rm -rf "${BACKEND_STATIC_DIR}"/*
|
||||
cp -r "${FRONTEND_DIST_DIR}"/* "${BACKEND_STATIC_DIR}/"
|
||||
cp -r "${FRONTEND_DIST_DIR}"/* "${BIN_STATIC_DIR}/"
|
||||
|
||||
@ -5,7 +5,7 @@ FRONTEND_DIR="${1:-${SCRIPT_DIR}/../frontend}"
|
||||
|
||||
set -ex
|
||||
|
||||
# 设置颜色变量
|
||||
# Set color variables
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[0;33m'
|
||||
@ -14,7 +14,7 @@ NC='\033[0m' # No Color
|
||||
pushd "${FRONTEND_DIR}"
|
||||
echo "正在进入前端目录: ${FRONTEND_DIR}"
|
||||
|
||||
# 检查 Node.js 是否安装
|
||||
# Check if Node.js is installed
|
||||
echo -e "正在检查 Node.js 是否已安装..."
|
||||
if ! command -v node &> /dev/null; then
|
||||
echo -e "${RED}错误: 未检测到 Node.js${NC}"
|
||||
@ -28,7 +28,7 @@ else
|
||||
fi
|
||||
|
||||
|
||||
# 检查 Rush 是否安装
|
||||
# Check if Rush is installed
|
||||
echo -e "正在检查 Rush 是否已安装..."
|
||||
if ! command -v rush &> /dev/null; then
|
||||
echo -e "${YELLOW}未检测到 Rush,正在为您安装...${NC}"
|
||||
@ -48,6 +48,6 @@ echo -e "${GREEN}依赖安装完成!${NC}"
|
||||
|
||||
|
||||
# echo -e "${NC}"
|
||||
# echo -e "${GREEN}构建完成!${NC}"
|
||||
# Echo -e "${GREEN} build complete! ${NC}"
|
||||
|
||||
popd
|
||||
@ -144,7 +144,7 @@ func CreateMySQLWhiteList(mysqlInstanceID, ts string) (string, error) {
|
||||
ProjectName: volcengine.String(projectName),
|
||||
}
|
||||
|
||||
// 复制代码运行示例,请自行打印API返回值。
|
||||
// Copy the code to run the example, please print the API return value yourself.
|
||||
resp, err := svc.CreateAllowList(createAllowListInput)
|
||||
if err != nil {
|
||||
return "", err
|
||||
@ -164,7 +164,7 @@ func AssociateMySQLWhiteList(mysqlInstanceID, whitelistID string) error {
|
||||
InstanceIds: volcengine.StringSlice([]string{mysqlInstanceID}),
|
||||
}
|
||||
|
||||
// 复制代码运行示例,请自行打印API返回值。
|
||||
// Copy the code to run the example, please print the API return value yourself.
|
||||
_, err := svc.AssociateAllowList(associateAllowListInput)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -250,7 +250,7 @@ func CheckSafeGroupStatus(sgID string) {
|
||||
SecurityGroupId: volcengine.String(sgID),
|
||||
}
|
||||
|
||||
// 复制代码运行示例,请自行打印API返回值。
|
||||
// Copy the code to run the example, please print the API return value yourself.
|
||||
resp, err := svc.DescribeSecurityGroupAttributes(describeSecurityGroupAttributesInput)
|
||||
if err != nil {
|
||||
fmt.Printf("[SafeGroup] will retry get safe group = %s failed, err= %s\n", sgID, err.Error())
|
||||
|
||||
@ -165,7 +165,7 @@ func CreateRocketMQAccessKey(instanceID string) (string, string, error) {
|
||||
InstanceId: volcengine.String(instanceID),
|
||||
}
|
||||
|
||||
// 复制代码运行示例,请自行打印API返回值。
|
||||
// Copy the code to run the example, please print the API return value yourself.
|
||||
_, err = svc.CreateAccessKey(createAccessKeyInput)
|
||||
if err != nil {
|
||||
return "", "", err
|
||||
@ -245,7 +245,7 @@ func CreateRocketMQTopic(ak, instanceID string) error {
|
||||
TopicName: volcengine.String(topicName),
|
||||
}
|
||||
|
||||
// 复制代码运行示例,请自行打印API返回值。
|
||||
// Copy the code to run the example, please print the API return value yourself.
|
||||
_, err = svc.CreateTopic(createTopicInput)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user