From e7cf872567b8f0a67352ae60ff282bdb1f247d4f Mon Sep 17 00:00:00 2001 From: simple321vip Date: Sat, 28 Jan 2023 17:01:39 +0800 Subject: [PATCH] to add pinia modules --- Jenkinsfile | 3 -- README.md | 16 +++--- nginx.conf | 56 ------------------- src/components/layout/NavBar.vue | 14 ++--- src/components/login/login.vue | 28 +++++----- src/entity/index.ts | 2 +- src/main.ts | 5 +- src/store/index.ts | 70 ++---------------------- src/store/modules/settings.ts | 23 ++++++++ src/store/modules/strategy.ts | 51 ++++++++++++++++++ src/store/{ => modules}/table.ts | 0 src/store/modules/tenant.ts | 55 +++++++++++++++++++ src/store/strategy.ts | 43 --------------- src/store/tenant.ts | 75 -------------------------- src/view/bookmark/createTypedialog.vue | 2 +- src/view/bookmark/dialog.vue | 16 +++--- src/view/bookmark/index.vue | 38 ++++++------- src/view/capital/index.vue | 9 ++-- src/view/recommend/index.vue | 21 ++++---- src/view/trader/cta_strategy.vue | 11 ++-- src/view/trader/cta_strategy_file.vue | 7 +-- src/view/trader/dialog.vue | 8 +-- src/view/trader/index.vue | 5 +- 23 files changed, 220 insertions(+), 338 deletions(-) delete mode 100644 nginx.conf create mode 100644 src/store/modules/settings.ts create mode 100644 src/store/modules/strategy.ts rename src/store/{ => modules}/table.ts (100%) create mode 100644 src/store/modules/tenant.ts delete mode 100644 src/store/strategy.ts delete mode 100644 src/store/tenant.ts diff --git a/Jenkinsfile b/Jenkinsfile index 5412e04..bdcd1b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,9 +45,6 @@ spec: - name: "volume-m2" hostPath: path: "/root/.m2/repository" - - name: "maven-config" - configMap: - name: maven-config - name: "volume-docker" hostPath: path: "/var/run/docker.sock" diff --git a/README.md b/README.md index c1b58a5..d05b4cd 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ ## Vue 3 + Typescript + Vite + pinia + vue-router -## Create project document how to bulid a project +## about creating project document how to bulid a project before create project, you should install node to promit npm and node command is standy. npm -v node -v
// 在想要创建的工程路径下执行以下命令,3到6秒就可以结束 npm init vite@latest - // 1.填写 g-home + // 1.填写 violin-home // 2.选择vue // 3.vue.ts - cd g-home + cd violin-home npm install ## vue-router @@ -33,19 +33,19 @@ // to enter the home page: localhost:3000/home?tenantId=XXX&account=YYY&token=ABCDEFG -## 环境配置 +## profiles 添加了.env.development ebv.test .env.production 文件 development: 开发环境,使用mock,不需要后台联动 test: 测试环境需要 后台java程序支持,同时需要百度第三方认证。 prod: - 生产环境通过 jenkins cicd进行发布配置。 + 生产环境通过 jenkins 做ci 持续集成 argocd 做cd 持续发布。 -# 云服务器 - nginx as a veb server, i use the official image to build this app image. +# prod server + nginx as a web server, i use the official image to build this app image. -## 发布 +## publish - npm run build 生成dist 文件夹 ## 百度网盘开放平台 diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index df47c75..0000000 --- a/nginx.conf +++ /dev/null @@ -1,56 +0,0 @@ -server { - listen 8080; - server_name localhost; - - #access_log /var/log/nginx/host.access.log main; - - location / { - root /usr/share/nginx/html; - index index.html index.htm; - } - - location /write { - alias /usr/share/nginx/html; - index index.html index.htm; - } - - location /home { - alias /usr/share/nginx/html; - index index.html index.htm; - } - - location ~ /view { - alias /usr/share/nginx/html; - index index.html index.htm; - } - - #error_page 404 /404.html; - - # redirect server error pages to the static page /50x.html - # - error_page 500 502 503 504 /50x.html; - - - # proxy the PHP scripts to Apache listening on 127.0.0.1:80 - # - #location ~ \.php$ { - # proxy_pass http://127.0.0.1; - #} - - # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 - # - #location ~ \.php$ { - # root html; - # fastcgi_pass 127.0.0.1:9000; - # fastcgi_index index.php; - # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; - # include fastcgi_params; - #} - - # deny access to .htaccess files, if Apache's document root - # concurs with nginx's one - # - #location ~ /\.ht { - # deny all; - #} -} diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue index 37ea184..161f2a0 100644 --- a/src/components/layout/NavBar.vue +++ b/src/components/layout/NavBar.vue @@ -17,7 +17,7 @@   21:00-23:00 - + - 登录 + 登录 -