Compare commits

..

26 Commits

Author SHA1 Message Date
mzp 84a88d1062 手动解决冲突 2023-11-15 10:26:29 +08:00
xiaomeng f78510043e Merge pull request 'pc-master' (#30) from pc-master into portal
Reviewed-on: #30
2023-11-14 04:37:25 +00:00
xiaomeng e8b736299a Merge pull request 'pc-master' (#29) from pc-master into portal
Reviewed-on: #29
2023-11-11 02:01:20 +00:00
xiaomeng dde09a8564 Merge pull request 'pc-master' (#28) from pc-master into portal
Reviewed-on: #28
2023-11-10 09:48:07 +00:00
xiaomeng 3092d08a92 Merge pull request '1' (#27) from pc-master into portal
Reviewed-on: #27
2023-11-10 07:45:36 +00:00
xiaomeng 1928aeaa61 Merge pull request '1' (#26) from pc-master into portal
Reviewed-on: #26
2023-11-09 08:33:19 +00:00
xiaomeng 54ae501a7b Merge pull request 'pc-master' (#25) from pc-master into portal
Reviewed-on: #25
2023-11-09 08:15:30 +00:00
xiaomeng b352dc1bb0 Merge pull request 'pc-master' (#24) from pc-master into portal
Reviewed-on: #24
2023-11-09 06:49:11 +00:00
xiaomeng 5c01e3693d Merge pull request 'pc-master' (#23) from pc-master into portal
Reviewed-on: #23
2023-11-09 00:23:13 +00:00
xiaomeng 6d402ee265 Merge pull request 'pc-master' (#22) from pc-master into portal
Reviewed-on: #22
2023-11-08 05:29:14 +00:00
xiaomeng 4aea05d5d2 Merge pull request '折线图数据修改' (#20) from pc-master into portal
Reviewed-on: #20
2023-10-18 07:43:22 +00:00
xiaomeng e8aee0fb3e Merge pull request '添加修改参数页面状态跟随' (#19) from pc-master into portal
Reviewed-on: #19
2023-10-18 00:10:22 +00:00
xiaomeng 0e61082d16 Merge pull request 'pc-master' (#18) from pc-master into portal
Reviewed-on: #18
2023-10-17 10:08:39 +00:00
xiaomeng ceba1f0b47 Merge pull request '页面跳转逻辑修改' (#17) from pc-master into portal
Reviewed-on: #17
2023-10-17 09:48:34 +00:00
xiaomeng 72c593b4de Merge pull request 'pc-master' (#16) from pc-master into portal
Reviewed-on: #16
2023-10-17 09:22:10 +00:00
xiaomeng c9f9155367 Merge pull request 'pc-master' (#15) from pc-master into portal
Reviewed-on: #15
2023-10-16 08:45:18 +00:00
clibing 8bedf46050 Merge pull request '新问题修改' (#13) from pc-master into portal
Reviewed-on: #13
2023-10-13 07:06:00 +00:00
clibing 57d9ae8cfe Merge pull request 'pc-master' (#12) from pc-master into portal
Reviewed-on: #12
2023-10-13 02:43:37 +00:00
wmsjhappy@gmail.com 001a14ccd2 fix(package): add package-lock.json file
add package-lock.json file

Signed-off-by: wmsjhappy@gmail.com <clibing>
2023-10-12 15:28:19 +08:00
clibing 98550c0e6b Merge pull request 'pc-master' (#10) from pc-master into portal
Reviewed-on: #10
2023-10-12 02:15:39 +00:00
wmsjhappy@gmail.com 5c44f7060e add note 2023-10-08 15:25:08 +08:00
clibing d9d8544aa0 Merge pull request 'master' (#8) from master into portal
Reviewed-on: #8
2023-10-08 03:45:19 +00:00
clibing 96911cfc27 Merge pull request 'pc-master' (#7) from pc-master into master
Reviewed-on: #7
2023-10-08 03:44:03 +00:00
clibing d130143515 Merge pull request 'pc-master' (#5) from pc-master into portal
Reviewed-on: #5
2023-10-07 15:03:28 +00:00
wmsjhappy@gmail.com 299d679450 add dockerfile & nginx config 2023-10-06 22:10:56 +08:00
clibing ef9e02bf47 Merge pull request 'update' (#2) from pc-master into master
Reviewed-on: #2
2023-10-06 14:10:02 +00:00
6 changed files with 16623 additions and 2798 deletions

26
Dockerfile 100644
View File

@ -0,0 +1,26 @@
FROM nginx:1.17.9-alpine
LABEL maintainer="clibing <wmsjhappy@gmail.com>"
ARG TZ='Asia/Shanghai'
ENV TZ ${TZ}
RUN apk upgrade --update \
&& apk add bash \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone \
&& rm -rf /usr/share/nginx/html /var/cache/apk/*
COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf
COPY dist /usr/share/nginx/html
RUN chown -R nginx /usr/share/nginx/html
EXPOSE 80
STOPSIGNAL SIGTERM
CMD ["nginx", "-g", "daemon off;"]

View File

@ -1,3 +1,92 @@
# build
## with builder
```bash
docker run --rm -it -v /root/workspace/wszhyWx:/workspace clibing/alpine-build bash
cd /workspace
npm install --legacy-peer-deps
npm run build
```
## exec sh in container log
```bash
> ysws-vue@0.1.0 build
> vue-cli-service build
All browser targets in the browserslist configuration have supported ES module.
Therefore we don't build two separate bundles for differential loading.
⠋ Building for production...
WARNING Compiled with 2 warnings 11:07:23PM
warning
asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
img/index-background.6170a105.png (1.88 MiB)
fonts/ALIBABA-PUHUITI-MEDIUM.7e8661bc.OTF (6.26 MiB)
fonts/ALIBABA-PUHUITI-REGULAR.035db024.OTF (6.6 MiB)
fonts/Alimama_ShuHeiTi_Bold.0ac727c9.ttf (1.3 MiB)
img/login-bg.d0ccd5e4.png (1.44 MiB)
img/background.14e833d2.jpg (616 KiB)
js/970.9288c639.js (1.01 MiB)
css/chunk-vendors.d93d07ef.css (246 KiB)
js/chunk-vendors.b4684c39.js (2.14 MiB)
warning
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app (2.49 MiB)
css/chunk-vendors.d93d07ef.css
js/chunk-vendors.b4684c39.js
css/app.1d0469df.css
js/app.81c6b894.js
File Size Gzipped
dist/js/chunk-vendors.b4684c39.js 2192.83 KiB 587.48 KiB
dist/js/970.9288c639.js 1029.18 KiB 340.26 KiB
dist/js/899.9e1072c1.js 60.46 KiB 17.31 KiB
dist/js/app.81c6b894.js 44.54 KiB 19.10 KiB
dist/js/51.54b739ec.js 28.85 KiB 13.19 KiB
dist/js/491.f0009224.js 20.95 KiB 8.37 KiB
dist/js/617.9950aee6.js 18.03 KiB 7.03 KiB
dist/js/33.4aac9c4b.js 17.99 KiB 6.97 KiB
dist/js/573.56d9ffde.js 16.37 KiB 7.74 KiB
dist/js/985.5c7740ef.js 14.00 KiB 7.06 KiB
dist/css/chunk-vendors.d93d07ef.css 245.69 KiB 43.63 KiB
dist/css/app.1d0469df.css 63.51 KiB 30.42 KiB
dist/css/51.60c1caae.css 49.92 KiB 32.33 KiB
dist/css/33.bc37da49.css 0.72 KiB 0.34 KiB
dist/css/491.bc37da49.css 0.72 KiB 0.34 KiB
dist/css/573.bc37da49.css 0.72 KiB 0.34 KiB
dist/css/617.bc37da49.css 0.72 KiB 0.34 KiB
dist/css/899.bc37da49.css 0.72 KiB 0.34 KiB
dist/css/985.bc37da49.css 0.72 KiB 0.34 KiB
Images and other types of assets omitted.
Build at: 2023-10-07T15:07:23.981Z - Hash: d30c57e5506e3d29 - Time: 45735ms
DONE Build complete. The dist directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
```
## exit container
## build image
```` bash
./build-image.sh
````
# ysws-vue
## Project setup

6
build-image.sh 100755
View File

@ -0,0 +1,6 @@
#!/bin/bash
BRANCH=$(git branch --show-current)
BUILD_DATE=$(date "+%s")
COMMIT_SHA1=$(git rev-parse HEAD)
docker build -t lihe-control.com/iot-www:${BRANCH}-${COMMIT_SHA1:0:8}-${BUILD_DATE} -f Dockerfile .

View File

@ -0,0 +1,20 @@
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
root /usr/share/nginx/html;
index index.html index.htm;
location / {
try_files $uri $uri/index.html $uri/index.htm /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

8278
package-lock.json generated

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff