diff --git a/.dockerignore b/.dockerignore index ddc40ed..2922bcb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,3 @@ .dockerignore -dist +#dist node_modules diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..6dc601c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,58 @@ +--- +kind: pipeline +type: docker +name: default + +steps: +- name: build + image: node:16-alpine + pull: if_not_exists + environment: + NODE_ENV: "" + commands: + - yarn install --frozen-lockfile + - env ${NODE_ENV} yarn build:prod + +- name: publish + image: docker:dind + pull: if_not_exists + volumes: + - name: dockersock + path: /var/run/docker.sock + - name: dockerconfig + path: /root/.docker + commands: + - docker build -t hub.kszny.picaiba.com/kszny/glass-ui ./ + - docker push hub.kszny.picaiba.com/kszny/glass-ui + depends_on: + - build + +- name: deploy + image: appleboy/drone-ssh + pull: if-not-exists + settings: + host: + - 172.24.145.74 + username: root + password: Root@123 + port: 22 + command_timeout: 2m + script: + - docker pull hub.kszny.picaiba.com/kszny/glass-ui + - docker run --rm -v /data/www/ksznpt:/tmp hub.kszny.picaiba.com/kszny/glass-ui sh -c "rm -rf /tmp/* && mv -f /html /tmp" + depends_on: + - publish + +volumes: +- name: dockersock + host: + path: /var/run/docker.sock +- name: dockerconfig + host: + path: /root/.docker + +trigger: + branch: + - projects/mescc/develop + event: + - push diff --git a/.env.dev b/.env.dev index a0f83b9..2cefa71 100644 --- a/.env.dev +++ b/.env.dev @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.0.30:48080' +VUE_APP_BASE_API = 'http://192.168.1.61:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/Dockerfile b/Dockerfile index 4764e74..0aa70ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,3 @@ -FROM node:16-alpine as build-stage - -WORKDIR /admim - -COPY .npmrc package.json yarn.lock ./ -RUN --mount=type=cache,id=yarn-store,target=/root/.yarn-store \ - yarn install --frozen-lockfile - -COPY . . -ARG NODE_ENV="" -RUN env ${NODE_ENV} yarn build:prod - -## -- stage: dist => nginx -- -FROM nginx:alpine - -ENV TZ=Asia/Shanghai - -COPY ./nginx.conf /etc/nginx/conf.d/default.conf -COPY --from=build-stage /admim/dist /usr/share/nginx/html - -EXPOSE 80 +FROM busybox +LABEL maintainer thomas.hairong@gmail.com +COPY dist /html/ diff --git a/package.json b/package.json index efe8720..0a67be3 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "highlight.js": "^11.9.0", "js-beautify": "^1.15.1", "jsencrypt": "3.3.1", + "mockjs": "^1.1.0", "moment": "^2.30.1", "nprogress": "0.2.0", "quill": "^1.3.7", diff --git a/src/assets/YouSheBiaoTiHei-2.ttf b/src/assets/YouSheBiaoTiHei-2.ttf new file mode 100644 index 0000000..3729151 Binary files /dev/null and b/src/assets/YouSheBiaoTiHei-2.ttf differ diff --git a/src/assets/bgearth.png b/src/assets/bgearth.png new file mode 100644 index 0000000..66d9af2 Binary files /dev/null and b/src/assets/bgearth.png differ diff --git a/src/assets/images/copilot-bg.png b/src/assets/images/copilot-bg.png new file mode 100644 index 0000000..11ebf19 Binary files /dev/null and b/src/assets/images/copilot-bg.png differ diff --git a/src/assets/images/export-icon.png b/src/assets/images/export-icon.png new file mode 100644 index 0000000..4575cd1 Binary files /dev/null and b/src/assets/images/export-icon.png differ diff --git a/src/assets/images/full-icon.png b/src/assets/images/full-icon.png new file mode 100644 index 0000000..18a35dc Binary files /dev/null and b/src/assets/images/full-icon.png differ diff --git a/src/assets/images/homeindex/bipv-icon.png b/src/assets/images/homeindex/bipv-icon.png new file mode 100644 index 0000000..a0860c1 Binary files /dev/null and b/src/assets/images/homeindex/bipv-icon.png differ diff --git a/src/assets/images/homeindex/chip-icon-2.png b/src/assets/images/homeindex/chip-icon-2.png new file mode 100644 index 0000000..8faa317 Binary files /dev/null and b/src/assets/images/homeindex/chip-icon-2.png differ diff --git a/src/assets/images/homeindex/chip-icon.png b/src/assets/images/homeindex/chip-icon.png new file mode 100644 index 0000000..cc39d90 Binary files /dev/null and b/src/assets/images/homeindex/chip-icon.png differ diff --git a/src/assets/images/homeindex/exit-fullscreen.png b/src/assets/images/homeindex/exit-fullscreen.png new file mode 100644 index 0000000..d581c1f Binary files /dev/null and b/src/assets/images/homeindex/exit-fullscreen.png differ diff --git a/src/assets/images/homeindex/fto-icon.png b/src/assets/images/homeindex/fto-icon.png new file mode 100644 index 0000000..cc13204 Binary files /dev/null and b/src/assets/images/homeindex/fto-icon.png differ diff --git a/src/assets/images/homeindex/fullscreen.png b/src/assets/images/homeindex/fullscreen.png new file mode 100644 index 0000000..25676e5 Binary files /dev/null and b/src/assets/images/homeindex/fullscreen.png differ diff --git a/src/assets/images/homeindex/header-bg.png b/src/assets/images/homeindex/header-bg.png new file mode 100644 index 0000000..905a8a8 Binary files /dev/null and b/src/assets/images/homeindex/header-bg.png differ diff --git a/src/assets/images/homeindex/std-icon.png b/src/assets/images/homeindex/std-icon.png new file mode 100644 index 0000000..b3a492b Binary files /dev/null and b/src/assets/images/homeindex/std-icon.png differ diff --git a/src/assets/pinicon.png b/src/assets/pinicon.png new file mode 100644 index 0000000..e68458c Binary files /dev/null and b/src/assets/pinicon.png differ diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index aec7eb6..324b6e3 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,3 +1,10 @@ +