From 415a88c43c209cd4c42eb2483623e51dc7d12039 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Thu, 8 Sep 2022 14:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gps_card_admin_run.sh | 36 --- setup_development.sh | 20 +- setup_production.sh | 14 +- setup_test.sh | 18 +- src/App.vue | 4 +- src/components/TTable/TTable.vue | 4 +- .../Tinymce/components/EditorImage.vue | 111 ++++++++ src/components/Tinymce/dynamicLoadScript.js | 59 +++++ src/components/Tinymce/index.vue | 247 ++++++++++++++++++ src/components/Tinymce/plugins.js | 7 + src/components/Tinymce/toolbar.js | 6 + src/router/index.js | 8 +- src/store/localStore.js | 8 +- src/styles/index.scss | 1 + src/utils/clear-local-storage.js | 10 +- src/utils/index.js | 26 ++ .../main/add-articles/index.vue | 145 +++++++++- .../message-manage/main/add-mass/index.scss | 66 +++++ .../message-manage/main/add-mass/index.vue | 209 ++++++++++++++- telpo_user_admin_run.sh | 37 +++ 20 files changed, 942 insertions(+), 94 deletions(-) delete mode 100644 gps_card_admin_run.sh create mode 100644 src/components/Tinymce/components/EditorImage.vue create mode 100644 src/components/Tinymce/dynamicLoadScript.js create mode 100644 src/components/Tinymce/index.vue create mode 100644 src/components/Tinymce/plugins.js create mode 100644 src/components/Tinymce/toolbar.js create mode 100644 src/views/message-manage/main/add-mass/index.scss create mode 100644 telpo_user_admin_run.sh diff --git a/gps_card_admin_run.sh b/gps_card_admin_run.sh deleted file mode 100644 index 264ed36..0000000 --- a/gps_card_admin_run.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -### - # @Date: 2021-11-15 09:37:49 - # @LastEditors: JinxuChen - # @LastEditTime: 2021-12-02 15:19:14 - # @FilePath: \GpsCardAdmin\gps_card_admin_run.sh - # @description: 功能 -### -environment=$1 -version=$2 -echo "环境变量为${environment},版本为$version!" -if [[ ${environment} = 'production' ]]; then - echo "开始远程构建容器" - docker stop gps_card_admin_web || true; - docker rm gps_card_admin_web || true; - docker rmi -f $(docker images | grep registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web | awk '{print $3}') - #docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com; - docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com - docker pull registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web:$version - docker run -p 8803:80 -d --restart=always --name gps_card_admin_web registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web:$version; - #删除产生的None镜像 - docker rmi -f $(docker images | grep none | awk '{print $3}') - docker ps -a - -elif [[ ${environment} == 'test' ]]; then - echo "开始在测试环境远程构建容器" - docker stop gps_card_admin_web || true - docker rm gps_card_admin_web || true - docker rmi -f $(docker images | grep 139.224.254.18:5000/gps_card_admin_web | awk '{print $3}') - docker pull 139.224.254.18:5000/gps_card_admin_web:$version - docker run -p 8803:80 -d --restart=always --name gps_card_admin_web 139.224.254.18:5000/gps_card_admin_web:$version; - #删除产生的None镜像 - docker rmi -f $(docker images | grep none | awk '{print $3}') - docker ps -a - -fi \ No newline at end of file diff --git a/setup_development.sh b/setup_development.sh index eba347c..ab6b1b9 100644 --- a/setup_development.sh +++ b/setup_development.sh @@ -1,10 +1,10 @@ ### # @Author: JinxuChen # @Date: 2021-11-15 - # @LastEditTime: 2021-12-02 15:19:22 - # @LastEditors: JinxuChen + # @LastEditTime: 2022-09-08 14:19:26 + # @LastEditors: JinxChen # @Description: In User Settings Edit - # @FilePath: \GpsCardAdmin\setup_development.sh + # @FilePath: \TelpoUserManageAdmin\setup_development.sh ### #!/bin/bash npm -v @@ -13,18 +13,18 @@ npm config list npm install npm run build-test image_version=`date +%Y%m%d%H%M`; -docker stop gps_card_admin_web || true; +docker stop telpo_user_admin || true; # 删除gps_parent_web容器 -docker rm gps_card_admin_web || true; +docker rm telpo_user_admin || true; # 删除镜像 -docker rmi -f $(docker images | grep telpo/gps_card_admin_web | awk '{print $3}') -# 构建telpo/gps_card_admin_web:$image_version镜像 -docker build . -t telpo/gps_card_admin_web:$image_version; +docker rmi -f $(docker images | grep telpo/telpo_user_admin | awk '{print $3}') +# 构建telpo/telpo_user_admin:$image_version镜像 +docker build . -t telpo/telpo_user_admin:$image_version; #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}') # 查看镜像列表 docker images; # 启动容器 -docker run -p 8803:80 -d --restart=always --name gps_card_admin_web telpo/gps_card_admin_web:$image_version; +docker run -p 8073:80 -d --restart=always --name telpo_user_admin telpo/telpo_user_admin:$image_version; # 查看日志 -docker logs gps_card_admin_web; +docker logs telpo_user_admin; diff --git a/setup_production.sh b/setup_production.sh index b0947a5..3a95f9f 100644 --- a/setup_production.sh +++ b/setup_production.sh @@ -1,10 +1,10 @@ ### # @Author: JinxuChen # @Date: 2021-11-15 - # @LastEditTime: 2021-12-02 15:17:27 - # @LastEditors: JinxuChen + # @LastEditTime: 2022-08-12 14:21:49 + # @LastEditors: JinxChen # @Description: In User Settings Edit - # @FilePath: \GpsCardAdmin\setup_production.sh + # @FilePath: \TelpoUserManageAdmin\setup_production.sh ### #!/bin/bash npm -v @@ -12,15 +12,15 @@ npm install npm run build image_version=$version; # 删除镜像 - docker rmi -f $(docker images | grep registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web | awk '{print $3}') + docker rmi -f $(docker images | grep registry.cn-shanghai.aliyuncs.com/gps_card/telpo_user_admin | awk '{print $3}') -docker build . -t telpo/gps_card_admin_web:$image_version; +docker build . -t telpo/telpo_user_admin:$image_version; #TODO:推送镜像到阿里仓库 echo '=================开始推送镜像=======================' #docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com; docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com -docker tag telpo/gps_card_admin_web:$image_version registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web:$image_version -docker push registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web:$image_version +docker tag telpo/telpo_user_admin:$image_version registry.cn-shanghai.aliyuncs.com/gps_card/telpo_user_admin:$image_version +docker push registry.cn-shanghai.aliyuncs.com/gps_card/telpo_user_admin:$image_version echo '=================推送镜像完成=======================' #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}') diff --git a/setup_test.sh b/setup_test.sh index f15b3e0..5843632 100644 --- a/setup_test.sh +++ b/setup_test.sh @@ -1,10 +1,10 @@ ### # @Author: JinxuChen # @Date: 2021-11-15 - # @LastEditTime: 2021-12-02 15:17:38 - # @LastEditors: JinxuChen + # @LastEditTime: 2022-08-12 14:21:45 + # @LastEditors: JinxChen # @Description: In User Settings Edit - # @FilePath: \GpsCardAdmin\setup_test.sh + # @FilePath: \TelpoUserManageAdmin\setup_test.sh ### #!/usr/bin/env bash npm -v @@ -16,16 +16,16 @@ npm run build-test image_version=$version # 删除镜像 docker rmi -f $( - docker images | grep 139.224.254.18:5000/gps_card_admin_web | awk '{print $3}' + docker images | grep 139.224.254.18:5000/telpo_user_admin | awk '{print $3}' ) -# 构建gps_card_admin:$image_version镜像 -docker build . -t telpo/gps_card_admin_web:$image_version; +# 构建telpo_user_admin:$image_version镜像 +docker build . -t telpo/telpo_user_admin:$image_version; #TODO:推送镜像到私有仓库 echo '=================开始推送镜像=======================' -docker tag telpo/gps_card_admin_web:$image_version 139.224.254.18:5000/gps_card_admin_web:$image_version -docker push 139.224.254.18:5000/gps_card_admin_web:$image_version +docker tag telpo/telpo_user_admin:$image_version 139.224.254.18:5000/telpo_user_admin:$image_version +docker push 139.224.254.18:5000/telpo_user_admin:$image_version echo '=================推送镜像完成=======================' #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}') # 查看镜像列表 -docker images \ No newline at end of file +docker images diff --git a/src/App.vue b/src/App.vue index 7a4447a..3944b56 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,8 @@