diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..6d46b7d --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +registry=https://registry.npm.taobao.org/ +sass_binary_site="https://npm.taobao.org/mirrors/node-sass" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1a27724 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:12.13.1 +WORKDIR /workload + +COPY nuxt.config.js /workload/nuxt.config.js +COPY package.json /workload/package.json +COPY .nuxt /workload/.nuxt + +RUN npm config set registry https://registry.npm.taobao.org \ + && npm install + +EXPOSE 3000 +CMD npm run start diff --git a/assets/scss/global.scss b/assets/scss/global.scss index 16f282e..f367c3b 100644 --- a/assets/scss/global.scss +++ b/assets/scss/global.scss @@ -1,5 +1,6 @@ @import './flex.scss'; +@import './util.scss'; * { -webkit-box-sizing: border-box; box-sizing: border-box; diff --git a/components/BsLogin.vue b/components/BsLogin.vue new file mode 100644 index 0000000..18896fc --- /dev/null +++ b/components/BsLogin.vue @@ -0,0 +1,255 @@ + + + diff --git a/components/UiButton.vue b/components/UiButton.vue new file mode 100644 index 0000000..99f397e --- /dev/null +++ b/components/UiButton.vue @@ -0,0 +1,103 @@ + + + + \ No newline at end of file diff --git a/constants/index.js b/constants/index.js new file mode 100644 index 0000000..549e11f --- /dev/null +++ b/constants/index.js @@ -0,0 +1,8 @@ +/** + * 全局常量,请避免使用魔法数字 + */ +const TOKEN_KEY = 'msbPcToken'; + +export { + TOKEN_KEY +} \ No newline at end of file diff --git a/deploy.yaml b/deploy.yaml new file mode 100644 index 0000000..2be772f --- /dev/null +++ b/deploy.yaml @@ -0,0 +1,54 @@ +kind: Deployment +apiVersion: apps/v1 +metadata: + labels: + app: $IMAGES + name: $IMAGES + namespace: yanxuan +spec: + progressDeadlineSeconds: 600 + replicas: 1 + selector: + matchLabels: + app: $IMAGES + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 25% + maxSurge: 25% + template: + metadata: + labels: + app: $IMAGES + spec: + imagePullSecrets: + - name: aliyun-docker-hub + containers: + - image: '$REGISTRY/$DOCKERHUB_NAMESPACE/$IMAGES:$BUILD_NUMBER' + name: app + ports: + - containerPort: $JAR_PORD + protocol: TCP + resources: + limits: + cpu: '0.5' + memory: 500Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + terminationGracePeriodSeconds: 30 +--- +kind: Service +apiVersion: v1 +metadata: + name: $IMAGES + namespace: yanxuan +spec: + ports: + - port: 3000 + protocol: TCP + targetPort: 3000 + selector: + app: $IMAGES + type: ClusterIP diff --git a/layouts/default.vue b/layouts/default.vue index c2678e9..2ca99f1 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -7,21 +7,30 @@ --> diff --git a/layouts/module/header/HeaderInfoBar.vue b/layouts/module/header/HeaderInfoBar.vue index 12de5bc..a62300b 100644 --- a/layouts/module/header/HeaderInfoBar.vue +++ b/layouts/module/header/HeaderInfoBar.vue @@ -6,12 +6,11 @@
- - -