diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 02f8349..0000000 --- a/.drone.yml +++ /dev/null @@ -1,219 +0,0 @@ ---- -kind: pipeline -type: docker -name: development - -# 常量值 -constants: - - &DEVELOPMENT_HOST test.tall.wiki - - &DEVELOPMENT_CMD - - npm config set registry http://registry.npm.taobao.org - - npm i - - npm run build - - &DEVELOPMENT_SCP_TARGET /home/experiment - - &DEVELOPMENT_URL https://test.tall.wiki/experiment/ - - &DEVELOPMENT_PORT 22 - - &DEVELOPMENT_NODE_VERSION node:16 - - &DEVELOPMENT_BRANCH develop - - &DEVELOPMENT_SCP_SOURCE dist/* - - &SCP_STRIP_DIR_LEVEL 1 - - &NOTIFY_WECHATROBOT_WEBHOOK https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=428e5c5d-f992-4349-939d-9c99556e50b8 - - -# 挂载的主机卷,可以映射到docker容器中 -volumes: - # maven构建缓存(宿主机目录) - - name: ssh_key - host: - path: /root/.ssh/ - - name: cache - host: - path: /var/lib/cache - - name: data - host: - path: /var/lib/data - -steps: - - name: restore-cache - image: drillster/drone-volume-cache - volumes: - - name: cache - path: /cache - settings: - restore: true - mount: - - ./node_modules - - - name: build - image: *DEVELOPMENT_NODE_VERSION - pull: if-not-exists # default always - # volumes: - # - name: cache - # path: /root/.m2 - commands: *DEVELOPMENT_CMD - - - name: rebuild-cache - image: drillster/drone-volume-cache - volumes: - - name: cache - path: /cache - settings: - rebuild: true - mount: - - ./node_modules - - - name: deploy-scp - image: appleboy/drone-scp - pull: if-not-exists - volumes: - - name: ssh_key - path: /root/.ssh/ - settings: - host: *DEVELOPMENT_HOST - port: *DEVELOPMENT_PORT - username: root - key_path: /root/.ssh/id_rsa - rm: true # true则会删除目标目录重建 - target: *DEVELOPMENT_SCP_TARGET - source: *DEVELOPMENT_SCP_SOURCE - strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target - - - name: notify-wechatwork - image: fifsky/drone-wechat-work - pull: if-not-exists - settings: - url: *NOTIFY_WECHATROBOT_WEBHOOK - msgtype: markdown - content: | - {{if eq .Status "success" }} - #### 🎉 ${DRONE_REPO} 测试环境构建成功 - > Branch: ${DRONE_BRANCH} - > Commit: [${DRONE_COMMIT_MESSAGE} ](${DRONE_COMMIT_LINK}) - > Author: ${DRONE_COMMIT_AUTHOR} - > PATH: https://test.tall.wiki/experiment/ - > [点击查看](https://test.tall.wiki/experiment/) - {{else}} - #### ❌ ${DRONE_REPO} 测试环境构建失败 - > Branch: ${DRONE_BRANCH} - > Commit: [${DRONE_COMMIT_MESSAGE} ](${DRONE_COMMIT_LINK}) - > Author: ${DRONE_COMMIT_AUTHOR} - > 请立即修复!!! - > [点击查看](https://test.tall.wiki/experiment/) - {{end}} - when: - status: - - failure - - success - -trigger: - branch: - - *DEVELOPMENT_BRANCH - ---- -kind: pipeline -type: docker -name: production - -# 常量值 -constants: - - &PRODUCTION_HOST www.tall.wiki - - &PRODUCTION_CMD - - npm config set registry http://registry.npm.taobao.org - - npm i - - npm run build:prod - - &PRODUCTION_SCP_TARGET /home/experiment - - &PRODUCTION_BRANCH master - - &PRODUCTION_PORT 22 - - &PRODUCTION_NODE_VERSION node:16 - - &PRODUCTION_SCP_SOURCE dist/* - - &SCP_STRIP_DIR_LEVEL 1 - - &NOTIFY_WECHATROBOT_WEBHOOK https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=428e5c5d-f992-4349-939d-9c99556e50b8 - -# 挂载的主机卷,可以映射到docker容器中 -volumes: - # maven构建缓存(宿主机目录) - - name: ssh_key - host: - path: /root/.ssh/ - - name: cache - host: - path: /var/lib/cache - - name: data - host: - path: /var/lib/data - -steps: - - name: restore-cache - image: drillster/drone-volume-cache - volumes: - - name: cache - path: /cache - settings: - restore: true - mount: - - ./node_modules - - - name: build - image: *PRODUCTION_NODE_VERSION - pull: if-not-exists # default always - # volumes: - # - name: cache - # path: /root/.m2 - commands: *PRODUCTION_CMD - - - name: rebuild-cache - image: drillster/drone-volume-cache - volumes: - - name: cache - path: /cache - settings: - rebuild: true - mount: - - ./node_modules - - - name: deploy-scp - image: appleboy/drone-scp - pull: if-not-exists - volumes: - - name: ssh_key - path: /root/.ssh/ - settings: - host: *PRODUCTION_HOST - port: *PRODUCTION_PORT - username: root - key_path: /root/.ssh/id_rsa - rm: true # true则会删除目标目录重建 - target: *PRODUCTION_SCP_TARGET - source: *PRODUCTION_SCP_SOURCE - strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target - - - name: notify-wechatwork - image: fifsky/drone-wechat-work - pull: if-not-exists - settings: - url: *NOTIFY_WECHATROBOT_WEBHOOK - msgtype: markdown - content: | - {{if eq .Status "success" }} - #### 🎉 ${DRONE_REPO} 生产环境构建成功 - > Branch: ${DRONE_BRANCH} - > Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) - > Author: ${DRONE_COMMIT_AUTHOR} - > PATH: https://www.tall.wiki/experiment/ - > [点击查看](https://www.tall.wiki/experiment/) - {{else}} - #### ❌ ${DRONE_REPO} 生产环境构建失败 - > Branch: ${DRONE_BRANCH} - > Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) - > Author: ${DRONE_COMMIT_AUTHOR} - > 请立即修复!!! - > [点击查看](https://www.tall.wiki/experiment/) - {{end}} - when: - status: - - failure - - success - -trigger: - branch: - - *PRODUCTION_BRANCH diff --git a/.env.development b/.env.development index 5317fce..9da8b22 100644 --- a/.env.development +++ b/.env.development @@ -1 +1,5 @@ -VITE_API_URL=http://localhost:3000 +VITE_BASE_URL=http://101.201.226.163 +VITE_API_URL=http://101.201.226.163/gateway +VITE_MSG_URL=ws://101.201.226.163:8196/message/v4.0/ws +VITE_SERVICELIST=['ZERO', 'CONTEST', 'PT'] +VITE_VERSION=v4.0.0 diff --git a/.env.production b/.env.production index ab22b6a..9da8b22 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,5 @@ -VITE_API_URL=https://www.tall.wiki +VITE_BASE_URL=http://101.201.226.163 +VITE_API_URL=http://101.201.226.163/gateway +VITE_MSG_URL=ws://101.201.226.163:8196/message/v4.0/ws +VITE_SERVICELIST=['ZERO', 'CONTEST', 'PT'] +VITE_VERSION=v4.0.0 diff --git a/.env.test b/.env.test index 9bcb052..9da8b22 100644 --- a/.env.test +++ b/.env.test @@ -1 +1,5 @@ -VITE_API_URL=https://test.tall.wiki +VITE_BASE_URL=http://101.201.226.163 +VITE_API_URL=http://101.201.226.163/gateway +VITE_MSG_URL=ws://101.201.226.163:8196/message/v4.0/ws +VITE_SERVICELIST=['ZERO', 'CONTEST', 'PT'] +VITE_VERSION=v4.0.0 diff --git a/index.html b/index.html index 6264214..23b952e 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ -
{{ infoOne.thesis }}/{{ infoOne.totalThesis }}
-论文
-{{ infoOne.patent }}/{{ infoOne.totalPatent }}
-专利
-{{ infoOne.theSoft }}/{{ infoOne.totalTheSoft }}
-软著
-{{ infoOne.meeting }}/{{ infoOne.totalMeeting }}
-会议
-{{ infoOne.name }}
-{{ item.name }}
-{{ item.thesis }}/{{ item.totalThesis }}
-论文
-{{ item.patent }}/{{ item.totalPatent }}
-专利
-{{ item.theSoft }}/{{ item.totalTheSoft }}
-软著
-{{ item.meeting }}/{{ item.totalMeeting }}
-会议
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-- 申请人{{ item.proposer }} -
-- 实验名称{{ item.experimentName }} -
-- 申请时间{{ dayjs(Number(item.time)).format('YYYY-MM-DD HH:mm') }} -
-- 申请原因{{ item.remark }} -
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:jpg、jpeg、rar、zip
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-点击或拖拽文件到区域内上传交付物
-格式:jpg、jpeg、rar、zip
-点击或拖拽文件到区域内上传交付物
-格式:pdf
-{{ infoOne.thesis }}/{{ infoOne.totalThesis }}
-论文
-{{ infoOne.patent }}/{{ infoOne.totalPatent }}
-专利
-{{ infoOne.theSoft }}/{{ infoOne.totalTheSoft }}
-软著
-{{ infoOne.meeting }}/{{ infoOne.totalMeeting }}
-会议
-{{ infoOne.name }}
-{{ item.name }}
-{{ item.report }}
-实验报告
-{{ item.course }}
-实验过程
-{{ item.information }}
-实验数据
-{{ item.result }}
-实验结果
-