Add dockerfile, Start implement vuex
This commit is contained in:
parent
e30883a024
commit
d9595d64db
@ -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
|
||||
|
||||
5
basta/package-lock.json
generated
5
basta/package-lock.json
generated
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
10
basta/src/store.js
Normal file
10
basta/src/store.js
Normal file
@ -0,0 +1,10 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
export const store = new Vuex.Store({
|
||||
state: {
|
||||
authenticated: false,
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user