diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..40b878d --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..95f1e93 --- /dev/null +++ b/.env.development @@ -0,0 +1,3 @@ +VUE_APP_API_URL=localhost:8000 +VUE_APP_API_PROTOCOL=http:// +VUE_APP_WS_PROTOCOL=ws:// \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..047eb46 --- /dev/null +++ b/.env.production @@ -0,0 +1,3 @@ +VUE_APP_API_URL=caiapi.voidcorp.nl +VUE_APP_API_PROTOCOL=https:// +VUE_APP_WS_PROTOCOL=wss:// \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b78c876 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM node:alpine as build + +# Set work dir +WORKDIR /app/ + +# Copy package files +COPY package.json ./ +COPY yarn.lock ./ + +RUN yarn install + +COPY . . + +RUN yarn build + +FROM nginx:alpine as production-stage + +RUN apk add curl --no-cache + +WORKDIR /usr/share/nginx/html + +COPY --from=build /app/dist . diff --git a/package.json b/package.json index 2ea9070..ed4da7a 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,10 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@chenfengyuan/vue-qrcode": "^1.0.1", "axios": "^0.19.0", "core-js": "^2.6.5", + "qrcode.vue": "^1.6.2", "register-service-worker": "^1.6.2", "vue": "^2.6.10", "vue-class-component": "^7.0.2", diff --git a/public/index.html b/public/index.html index 54f7328..d67b345 100644 --- a/public/index.html +++ b/public/index.html @@ -4,12 +4,13 @@ + -
+⠀⠀⠀⠀⣀⣤ +⠀⠀⠀⠀⣿⠿⣶ +⠀⠀⠀⠀⣿⣿⣀ +⠀⠀⠀⣶⣶⣿⠿⠛⣶ +⠤⣀⠛⣿⣿⣿⣿⣿⣿⣭⣿⣤ +⠒⠀⠀⠀⠉⣿⣿⣿⣿⠀⠀⠉⣀ +⠀⠤⣤⣤⣀⣿⣿⣿⣿⣀⠀⠀⣿ +⠀⠀⠛⣿⣿⣿⣿⣿⣿⣿⣭⣶⠉ +⠀⠀⠀⠤⣿⣿⣿⣿⣿⣿⣿ +⠀⠀⠀⣭⣿⣿⣿⠀⣿⣿⣿ +⠀⠀⠀⣉⣿⣿⠿⠀⠿⣿⣿ +⠀⠀⠀⠀⣿⣿⠀⠀⠀⣿⣿⣤ +⠀⠀⠀⣀⣿⣿⠀⠀⠀⣿⣿⣿ +⠀⠀⠀⣿⣿⣿⠀⠀⠀⣿⣿⣿ +⠀⠀⠀⣿⣿⠛⠀⠀⠀⠉⣿⣿ +⠀⠀⠀⠉⣿⠀⠀⠀⠀⠀⠛⣿ +⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⣿⣿ +⠀⠀⠀⠀⣛⠀⠀⠀⠀⠀⠀⠛⠿⠿⠿ +⠀⠀⠀⠛⠛ + + +⠀⠀⠀⣀⣶⣀ +⠀⠀⠀⠒⣛⣭ +⠀⠀⠀⣀⠿⣿⣶ +⠀⣤⣿⠤⣭⣿⣿ +⣤⣿⣿⣿⠛⣿⣿⠀⣀ +⠀⣀⠤⣿⣿⣶⣤⣒⣛ +⠉⠀⣀⣿⣿⣿⣿⣭⠉ +⠀⠀⣭⣿⣿⠿⠿⣿ +⠀⣶⣿⣿⠛⠀⣿⣿ +⣤⣿⣿⠉⠤⣿⣿⠿ +⣿⣿⠛⠀⠿⣿⣿ +⣿⣿⣤⠀⣿⣿⠿ +⠀⣿⣿⣶⠀⣿⣿⣶ +⠀⠀⠛⣿⠀⠿⣿⣿ +⠀⠀⠀⣉⣿⠀⣿⣿ +⠀⠶⣶⠿⠛⠀⠉⣿ +⠀⠀⠀⠀⠀⠀⣀⣿ +⠀⠀⠀⠀⠀⣶⣿⠿ + +⠀⠀⠀⠀⠀⠀⠀⠀⣤⣿⣿⠶⠀⠀⣀⣀ +⠀⠀⠀⠀⠀⠀⣀⣀⣤⣤⣶⣿⣿⣿⣿⣿⣿ +⠀⠀⣀⣶⣤⣤⠿⠶⠿⠿⠿⣿⣿⣿⣉⣿⣿ +⠿⣉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⣤⣿⣿⣿⣀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⣿⣿⣿⣿⣶⣤ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣿⣿⣿⣿⠿⣛⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⠛⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣶⣿⣿⠿⠀⣿⣿⣿⠛ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⠀⠀⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠿⠿⣿⠀⠀⣿⣶ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠛⠀⠀⣿⣿⣶ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⣿⣿⠤ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣶⣿ + +⠀⠀⣀ +⠀⠿⣿⣿⣀ +⠀⠉⣿⣿⣀ +⠀⠀⠛⣿⣭⣀⣀⣤ +⠀⠀⣿⣿⣿⣿⣿⠛⠿⣶⣀ +⠀⣿⣿⣿⣿⣿⣿⠀⠀⠀⣉⣶ +⠀⠀⠉⣿⣿⣿⣿⣀⠀⠀⣿⠉ +⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿ +⠀⣀⣿⣿⣿⣿⣿⣿⣿⣿⠿ +⠀⣿⣿⣿⠿⠉⣿⣿⣿⣿ +⠀⣿⣿⠿⠀⠀⣿⣿⣿⣿ +⣶⣿⣿⠀⠀⠀⠀⣿⣿⣿ +⠛⣿⣿⣀⠀⠀⠀⣿⣿⣿⣿⣶⣀ +⠀⣿⣿⠉⠀⠀⠀⠉⠉⠉⠛⠛⠿⣿⣶ +⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣿ +⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉ +⣀⣶⣿⠛ + +⠀⠀⠀⠀⠀⠀⠀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⣿⣿⣿⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣤⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠉⣿⣿⣿⣶⣿⣿⣿⣶⣶⣤⣶⣶⠶⠛⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⣤⣿⠿⣿⣿⣿⣿⣿⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠛⣿⣤⣤⣀⣤⠿⠉⠀⠉⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠉⠉⠉⠉⠉⠀⠀⠀⠀⠉⣿⣿⣿⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣶⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣛⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⣶⣿⣿⠛⠿⣿⣿⣿⣶⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⣿⠛⠉⠀⠀⠀⠛⠿⣿⣿⣶⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⣿⣀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠿⣶⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠛⠿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣿⣿⠿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ + +⠀⠀⠀⠀⠀⠀⣤⣶⣶ +⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣀⣀ +⠀⠀⠀⠀⠀⣀⣶⣿⣿⣿⣿⣿⣿ +⣤⣶⣀⠿⠶⣿⣿⣿⠿⣿⣿⣿⣿ +⠉⠿⣿⣿⠿⠛⠉⠀⣿⣿⣿⣿⣿ +⠀⠀⠉⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣤⣤ +⠀⠀⠀⠀⠀⠀⠀⣤⣶⣿⣿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⣀⣿⣿⣿⣿⣿⠿⣿⣿⣿⣿ +⠀⠀⠀⠀⣀⣿⣿⣿⠿⠉⠀⠀⣿⣿⣿⣿ +⠀⠀⠀⠀⣿⣿⠿⠉⠀⠀⠀⠀⠿⣿⣿⠛ +⠀⠀⠀⠀⠛⣿⣿⣀⠀⠀⠀⠀⠀⣿⣿⣀ +⠀⠀⠀⠀⠀⣿⣿⣿⠀⠀⠀⠀⠀⠿⣿⣿ +⠀⠀⠀⠀⠀⠉⣿⣿⠀⠀⠀⠀⠀⠀⠉⣿ +⠀⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⣀⣿ +⠀⠀⠀⠀⠀⠀⣀⣿⣿ +⠀⠀⠀⠀⠤⣿⠿⠿⠿ + +⠀⠀⠀⠀⣀ +⠀⠀⣶⣿⠿⠀⠀⠀⣀⠀⣤⣤ +⠀⣶⣿⠀⠀⠀⠀⣿⣿⣿⠛⠛⠿⣤⣀ +⣶⣿⣤⣤⣤⣤⣤⣿⣿⣿⣀⣤⣶⣭⣿⣶⣀ +⠉⠉⠉⠛⠛⠿⣿⣿⣿⣿⣿⣿⣿⠛⠛⠿⠿ +⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⠿ +⠀⠀⠀⠀⠀⠀⠀⠿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⣭⣿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⣤⣿⣿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⠿ +⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⠿ +⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠉⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠉⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⣿⠛⠿⣿⣤ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣿⠀⠀⠀⣿⣿⣤ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⣶⣿⠛⠉ +⠀⠀⠀⠀⠀⠀⠀⠀⣤⣿⣿⠀⠀⠉ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉ + +⠀⠀⠀⠀⠀⠀⣶⣿⣶ +⠀⠀⠀⣤⣤⣤⣿⣿⣿ +⠀⠀⣶⣿⣿⣿⣿⣿⣿⣿⣶ +⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿ +⠀⠀⣿⣉⣿⣿⣿⣿⣉⠉⣿⣶ +⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⠿⣿ +⠀⣤⣿⣿⣿⣿⣿⣿⣿⠿⠀⣿⣶ +⣤⣿⠿⣿⣿⣿⣿⣿⠿⠀⠀⣿⣿⣤ +⠉⠉⠀⣿⣿⣿⣿⣿⠀⠀⠒⠛⠿⠿⠿ +⠀⠀⠀⠉⣿⣿⣿⠀⠀⠀⠀⠀⠀⠉ +⠀⠀⠀⣿⣿⣿⣿⣿⣶ +⠀⠀⠀⠀⣿⠉⠿⣿⣿ +⠀⠀⠀⠀⣿⣤⠀⠛⣿⣿ +⠀⠀⠀⠀⣶⣿⠀⠀⠀⣿⣶ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣭⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⣤⣿⣿⠉ + +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣶ +⠀⠀⠀⠀⠀⣀⣀⠀⣶⣿⣿⠶ +⣶⣿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣤⣤ +⠀⠉⠶⣶⣀⣿⣿⣿⣿⣿⣿⣿⠿⣿⣤⣀ +⠀⠀⠀⣿⣿⠿⠉⣿⣿⣿⣿⣭⠀⠶⠿⠿ +⠀⠀⠛⠛⠿⠀⠀⣿⣿⣿⣉⠿⣿⠶ +⠀⠀⠀⠀⠀⣤⣶⣿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⠒ +⠀⠀⠀⠀⣀⣿⣿⣿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⣿⣿⣿⠛⣭⣭⠉ +⠀⠀⠀⠀⠀⣿⣿⣭⣤⣿⠛ +⠀⠀⠀⠀⠀⠛⠿⣿⣿⣿⣭ +⠀⠀⠀⠀⠀⠀⠀⣿⣿⠉⠛⠿⣶⣤ +⠀⠀⠀⠀⠀⠀⣀⣿⠀⠀⣶⣶⠿⠿⠿ +⠀⠀⠀⠀⠀⠀⣿⠛ +⠀⠀⠀⠀⠀⠀⣭⣶ + +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣤ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿ +⠀⠀⣶⠀⠀⣀⣤⣶⣤⣉⣿⣿⣤⣀ +⠤⣤⣿⣤⣿⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣀ +⠀⠛⠿⠀⠀⠀⠀⠉⣿⣿⣿⣿⣿⠉⠛⠿⣿⣤ +⠀⠀⠀⠀⠀⠀⠀⠀⠿⣿⣿⣿⠛⠀⠀⠀⣶⠿ +⠀⠀⠀⠀⠀⠀⠀⠀⣀⣿⣿⣿⣿⣤⠀⣿⠿ +⠀⠀⠀⠀⠀⠀⠀⣶⣿⣿⣿⣿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠿⣿⣿⣿⣿⣿⠿⠉⠉ +⠀⠀⠀⠀⠀⠀⠀⠉⣿⣿⣿⣿⠿ +⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⠉ +⠀⠀⠀⠀⠀⠀⠀⠀⣛⣿⣭⣶⣀ +⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠉⠛⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠀⠀⣿⣿ +⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣉⠀⣶⠿ +⠀⠀⠀⠀⠀⠀⠀⠀⣶⣿⠿ +⠀⠀⠀⠀⠀⠀⠀⠛⠿⠛ + +⠀⠀⠀⣶⣿⣶ +⠀⠀⠀⣿⣿⣿⣀ +⠀⣀⣿⣿⣿⣿⣿⣿ +⣶⣿⠛⣭⣿⣿⣿⣿ +⠛⠛⠛⣿⣿⣿⣿⠿ +⠀⠀⠀⠀⣿⣿⣿ +⠀⠀⣀⣭⣿⣿⣿⣿⣀ +⠀⠤⣿⣿⣿⣿⣿⣿⠉ +⠀⣿⣿⣿⣿⣿⣿⠉ +⣿⣿⣿⣿⣿⣿ +⣿⣿⣶⣿⣿ +⠉⠛⣿⣿⣶⣤ +⠀⠀⠉⠿⣿⣿⣤ +⠀⠀⣀⣤⣿⣿⣿ +⠀⠒⠿⠛⠉⠿⣿ +⠀⠀⠀⠀⠀⣀⣿⣿ +⠀⠀⠀⠀⣶⠿⠿⠛ ++