From e3055c16b6f42c76a6fb210307e2985cea3aabbf Mon Sep 17 00:00:00 2001 From: pengYYY Date: Wed, 16 Feb 2022 19:56:36 +0800 Subject: [PATCH 1/4] refactor(setup): use setup script --- cache.dockerfile | 15 - docker/nginx.conf | 20 -- src/App.vue | 23 +- src/components/card/Card.vue | 86 ++--- src/components/card/index.vue | 103 +++--- src/components/color/index.vue | 35 +-- src/components/result/index.vue | 67 ++-- src/components/thumbnail/index.vue | 44 ++- src/components/trend/index.vue | 59 ++-- src/layouts/components/Breadcrumb.vue | 40 +-- src/layouts/components/Footer.vue | 12 +- src/layouts/components/Header.vue | 195 +++++------- src/layouts/components/Notice.vue | 56 ++-- src/layouts/components/Search.vue | 36 +-- src/layouts/setting.vue | 230 +++++++------- src/pages/dashboard/base/index.vue | 293 ++++++++---------- src/pages/dashboard/detail/index.vue | 150 ++++----- src/pages/detail/advanced/index.vue | 134 ++++---- src/pages/detail/base/index.vue | 13 +- src/pages/detail/deploy/index.vue | 212 ++++++------- src/pages/detail/secondary/index.vue | 98 +++--- src/pages/form/base/index.vue | 71 ++--- src/pages/form/step/index.vue | 77 ++--- src/pages/list/base/index.vue | 207 ++++++------- src/pages/list/card/index.vue | 138 ++++----- src/pages/list/components/CommonTable.vue | 192 +++++------- src/pages/list/filter/index.vue | 10 +- src/pages/list/tree/index.vue | 40 +-- src/pages/login/components/Header.vue | 34 +- src/pages/login/components/Login.vue | 66 ++-- src/pages/login/components/Register.vue | 61 ++-- src/pages/login/index.vue | 28 +- src/pages/result/403/index.vue | 8 +- src/pages/result/404/index.vue | 8 +- src/pages/result/500/index.vue | 8 +- .../result/browser-incompatible/index.vue | 8 +- src/pages/result/fail/index.vue | 8 - src/pages/result/network-error/index.vue | 8 +- src/pages/result/success/index.vue | 8 - src/pages/user/index.vue | 134 ++++---- 40 files changed, 1229 insertions(+), 1806 deletions(-) delete mode 100644 cache.dockerfile delete mode 100644 docker/nginx.conf diff --git a/cache.dockerfile b/cache.dockerfile deleted file mode 100644 index bf62cd3..0000000 --- a/cache.dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -# 选择一个 Base 镜像 -FROM node:16 - -# 设置工作目录 -WORKDIR /space - -# 将 by 中的文件列表 COPY 过来 -COPY . . - -# 根据 COPY 过来的文件进行依赖的安装 -RUN npm i - -# 设置好需要的环境变量 -ENV NODE_PATH=/space/node_modules - diff --git a/docker/nginx.conf b/docker/nginx.conf deleted file mode 100644 index 62b7d40..0000000 --- a/docker/nginx.conf +++ /dev/null @@ -1,20 +0,0 @@ -server { - if ($request_method = HEAD) { - return 200; - } - - location / { - alias /usr/share/nginx/html/; - index index.html index.htm; - try_files $uri $uri/ /index.html; - } - - access_log /var/log/nginx/access.log main; - error_log /var/log/nginx/error.log error; - - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } -} \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 2f7e2ca..8780345 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,26 +1,19 @@ -