Browse Source

更新依赖

ZaiZai 11 months ago
parent
commit
565e835eb2
6 changed files with 9 additions and 114 deletions
  1. 0 102
      build/online.sh
  2. 2 2
      build/test.sh
  3. 1 3
      package.json
  4. 0 1
      scripts/build.js
  5. 2 2
      src/components/install.js
  6. 4 4
      yarn.lock

+ 0 - 102
build/online.sh

@@ -1,102 +0,0 @@
-#!/bin/bash
-
-#本地压缩文件名
-file_name="admin.zip"
-
-#服器上的目录地址
-file_path="measure.hczcxx.cn"
-
-#服务器演示地址
-demo_url="http://measure.hczcxx.cn/"
-
-#服务器登录密码
-passwd="%CX0&qPRk2BitWPH^tCa5jxZKPYuST"
-
-# 打包前的准备
-node ./scripts/build.js
-
-# 执行打包命令
-vite build
-
-# 恢复配置文件
-node ./scripts/restore.js
-
-# 排除打包文件
-if [ $1 == "wgt" ]; then
-    node ./scripts/public.js
-fi
-
-# 执行打包为zip
-node ./scripts/zip.js
-
- # 上传到测试服务器
-function uploadServer() {
-    expect -c "
-        spawn scp ./zip/${file_name} root@47.110.251.215:/www/wwwroot/${file_path}
-        expect {
-            \"yes/no\" {send \"yes\r\";exp_continue;}
-            \"*password\" {set timeout 500;send \"${passwd}\r\";}
-        }
-    expect eof"
-
-#服务器上的相关操作
-/usr/bin/expect << EOF
-    set time 30
-    spawn ssh root@47.110.251.215
-    expect {
-        "*yes/no" { send "yes\r"; exp_continue }
-        "*password:" { send "${passwd}\r" }
-    }
-
-    # 进入当前项目的目录
-    expect "*]#"
-    send "cd /www/wwwroot/${file_path}\r"
-
-    # 删除 static 目录
-    expect "*]#"
-    send "rm -rf static\r"
-
-    # 解压上传的文件压缩包
-    expect "*]#"
-    send "unzip -o ${file_name}\r"
-
-    # 退出
-    send "exit\r"
-    expect eof
-EOF
-    echo "编译打包后自动部署到服务器上完成"
-    echo "服务器地址:${demo_url}"
-}
-
-# 删除 plugins 等目录
-function delPublic() {
-    echo "准备移除 plugins 等目录"
-#服务器上的相关操作
-/usr/bin/expect << EOF
-    set time 30
-    spawn ssh root@47.110.251.215
-    expect {
-        "*yes/no" { send "yes\r"; exp_continue }
-        "*password:" { send "${passwd}\r" }
-    }
-
-    # 进入当前项目的目录
-    expect "*]#"
-    send "cd /www/wwwroot/${file_path}\r"
-
-    # 删除 plugins 目录
-    expect "*]#"
-    send "rm -rf plugins\r"
-
-    # 退出
-    send "exit\r"
-    expect eof
-EOF
-    echo "plugins 等目录移除完成"
-}
-
-# 上传到测试服务器
-if [ $1 == "all" ]; then
-    delPublic
-fi
-uploadServer

+ 2 - 2
build/test.sh

@@ -4,10 +4,10 @@
 file_name="admin.zip"
 
 #测试服器上的目录地址
-file_path="measure.hcxxy.com"
+file_path="admin.hczcxx.cn"
 
 #测试服务器上的演示地址
-demo_url="http://192.168.0.109:5180/"
+demo_url="http://192.168.0.109:5188/"
 
 #测试服务器上的登录密码
 passwd="admin123@"

+ 1 - 3
package.json

@@ -10,8 +10,6 @@
         "build:zip:wgt": "sh ./build/main.sh wgt",
         "build:test": "sh ./build/test.sh all",
         "build:test:wgt": "sh ./build/test.sh wgt",
-        "build:online": "sh ./build/online.sh all",
-        "build:online:wgt": "sh ./build/online.sh wgt",
         "lint": "eslint --ext .js,.vue src",
         "lint:fix": "eslint . --fix"
     },
@@ -21,7 +19,7 @@
         "dayjs": "^1.11.10",
         "echarts": "^5.5.0",
         "element-plus": "2.6.1",
-        "hc-vue3-ui": "^3.5.6",
+        "hc-vue3-ui": "^3.5.8",
         "js-base64": "^3.7.7",
         "js-fast-way": "^0.4.7",
         "js-md5": "^0.8.3",

+ 0 - 1
scripts/build.js

@@ -45,7 +45,6 @@ if(!fs.existsSync(cacheFilePath)) {
 const indexJson = JSON.parse(indexJsonContent);
 indexJson.version = dateFormat(new Date());         //版本号
 indexJson.target = "http://127.0.0.1:8090";         //接口地址
-indexJson.smsPhone = "";                            //短信接口手机号
 indexJson.vite = {};                                //vite配置
 
 //更新配置文件

+ 2 - 2
src/components/install.js

@@ -7,8 +7,8 @@ import 'dayjs/locale/zh-cn'
 
 //hc-vue3-ui
 import HcVue3UI from 'hc-vue3-ui'
-import 'hc-vue3-ui/dist/index.css'
-import 'hc-vue3-ui/style/index.scss'
+import 'hc-vue3-ui/css'
+import 'hc-vue3-ui/scss'
 
 //导入其它样式
 import '../styles/app/main.scss'

+ 4 - 4
yarn.lock

@@ -2054,10 +2054,10 @@ has-flag@^4.0.0:
   resolved "http://39.108.216.210:9000/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
   integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
 
-hc-vue3-ui@^3.5.6:
-  version "3.5.6"
-  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.5.6.tgz#7c4ffc9f7a4a6b6a22faa62df6a87c03a80ef0cb"
-  integrity sha512-6ZMkugoQum5WNOfltKTKHBSPLghAkd7EBbwrKlIEuSyivMm4l1zydllgLgLfEVxOXBg2avIshPJB/6DbA8+97A==
+hc-vue3-ui@^3.5.8:
+  version "3.5.8"
+  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.5.8.tgz#c8d560249835a5e860fe5132c757fb9708b59348"
+  integrity sha512-LJmCLC5CZPfYSKD5VGkYGehyAr2pERuxbOIuGWoNzGtrfQtqE9IMOsf+u1Q3+a6RTPhIKNwGsa3gUQ+O/0N8+w==
   dependencies:
     axios "^1.6.7"
     dayjs "^1.11.10"