From 592e2464268f9f7ab4079986992297cd089a588d Mon Sep 17 00:00:00 2001 From: zhangheng Date: Sat, 28 Mar 2026 16:39:10 +0800 Subject: [PATCH] feat(ci): add file --- .gitlab-ci.yml | 2 +- components/label/api/const.ts | 2 +- components/layout/common.ts | 19 ++++++++++++++++++- components/login/api/index.ts | 2 +- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ffd9f5..610a3a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,6 @@ sync_github: - rm -rf ${CI_PROJECT_NAME} - git clone https://oauth2:glpat-EdU8a_84jpSH2nOlNTkpnW86MQp1OjY1CA.01.0y1rtht99@git.cowarobot.com/${CI_PROJECT_PATH} - cd ${CI_PROJECT_NAME} - - bash build.sh + - bash build.sh prod rules: - if: $CI_COMMIT_BRANCH == "main" diff --git a/components/label/api/const.ts b/components/label/api/const.ts index 85a96fa..5e1fb07 100644 --- a/components/label/api/const.ts +++ b/components/label/api/const.ts @@ -1,6 +1,6 @@ export const BASE_LABEL_API = process.env.NEXT_PUBLIC_ENV === "production" - ? "https://label.cowarobot.com" + ? "https://label.soft.cowarobot.com" : process.env.NEXT_PUBLIC_ENV === "staging" ? "http://172.16.115.128:9110" : "https://label.softtest.cowarobot.com" diff --git a/components/layout/common.ts b/components/layout/common.ts index 7b353c1..f854411 100644 --- a/components/layout/common.ts +++ b/components/layout/common.ts @@ -47,7 +47,24 @@ export const subConfigList: { source: string; url: string }[] = url: "http://172.16.115.128:5535", }, ] - : [] + : [ + { + source: "/image", + url: "https://label.soft.cowarobot.com", + }, + { + source: "/video", + url: "https://label.soft.cowarobot.com", + }, + { + source: "/lidar", + url: "https://label.soft.cowarobot.com", + }, + { + source: "/mgt", + url: "https://label.soft.cowarobot.com", + }, + ] const currentComponentList: MenuItem[] = [ { diff --git a/components/login/api/index.ts b/components/login/api/index.ts index c3d63e8..2075b43 100644 --- a/components/login/api/index.ts +++ b/components/login/api/index.ts @@ -4,7 +4,7 @@ import { Login } from "./types" const BASE_PATH = process.env.NEXT_PUBLIC_ENV === "production" - ? "https://label.cowarobot.com" + ? "https://label.soft.cowarobot.com" : process.env.NEXT_PUBLIC_ENV === "staging" ? "http://172.16.115.128:9110" : "https://label.softtest.cowarobot.com"