diff --git a/basta/Dockerfile b/basta/Dockerfile index c121dc3..8695448 100644 --- a/basta/Dockerfile +++ b/basta/Dockerfile @@ -5,5 +5,8 @@ WORKDIR /app RUN npm install && npm run build -FROM httpd:2.4-alpine -COPY --from=build /app/dist/ /usr/local/apache2/htdocs/ +# FROM httpd:2.4-alpine +# COPY --from=build /app/dist/ /usr/local/apache2/htdocs/ + +FROM nginx:alpine +COPY --from=build /app/dist/ /usr/share/nginx/html diff --git a/basta/package-lock.json b/basta/package-lock.json index 7c92154..c4b3d21 100644 --- a/basta/package-lock.json +++ b/basta/package-lock.json @@ -10736,6 +10736,11 @@ "resolved": "https://registry.npmjs.org/vuelidate/-/vuelidate-0.6.2.tgz", "integrity": "sha512-rowo/OSwC8XEGdWg+ZgTpcgxYtmbQKbGOw4Z+lfT/BkNPoNyPEVgIeObUhhFO7Q7Lz0u0p429qfus/BHs9tMpg==" }, + "vuex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.0.1.tgz", + "integrity": "sha512-wLoqz0B7DSZtgbWL1ShIBBCjv22GV5U+vcBFox658g6V0s4wZV9P4YjCNyoHSyIBpj1f29JBoNQIqD82cR4O3w==" + }, "watchpack": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.5.0.tgz", diff --git a/basta/package.json b/basta/package.json index 49db192..e13acce 100644 --- a/basta/package.json +++ b/basta/package.json @@ -19,7 +19,8 @@ "vue-rate-it": "^2.1.0", "vue-router": "^3.0.1", "vue-star-rating": "^1.5.1", - "vuelidate": "^0.6.2" + "vuelidate": "^0.6.2", + "vuex": "^3.0.1" }, "devDependencies": { "autoprefixer": "^7.1.2", diff --git a/basta/src/store.js b/basta/src/store.js new file mode 100644 index 0000000..2d3b975 --- /dev/null +++ b/basta/src/store.js @@ -0,0 +1,10 @@ +import Vue from 'vue' +import Vuex from 'vuex' + +Vue.use(Vuex); + +export const store = new Vuex.Store({ + state: { + authenticated: false, + } +});