diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index db6de142..395ca3a9 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -33,9 +33,8 @@ const webpackConfig = merge(commonConfig(true), { compress: true, historyApiFallback: true, hot: true, - open: true, overlay: true, - port: 8000, + port: 8080, stats: { normal: true } diff --git a/frontend/App.vue b/frontend/App.vue index ab83167d..f2f366ac 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -1,7 +1,9 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/frontend/components/Player.vue b/frontend/components/Player.vue index 7d1c910a..8543837f 100644 --- a/frontend/components/Player.vue +++ b/frontend/components/Player.vue @@ -1,13 +1,93 @@ + + \ No newline at end of file diff --git a/frontend/main.js b/frontend/main.js index da93ebe2..3f8c4349 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -1,7 +1,7 @@ import Vue from 'vue' import VueRouter from 'vue-router' import router from './routes' -// import store from './store' +import store from './store' import App from './App.vue' @@ -10,7 +10,7 @@ Vue.use(VueRouter) new Vue({ el: '#app', router, - // store, + store, components: { App }, render: h => h(App) }) \ No newline at end of file diff --git a/frontend/modules/playerModule.js b/frontend/modules/playerModule.js new file mode 100644 index 00000000..102a4a73 --- /dev/null +++ b/frontend/modules/playerModule.js @@ -0,0 +1,21 @@ +export default { + namespaced: true, + state: { + player: undefined + }, + getters: { + player: (state) => { + return state.player; + } + }, + mutations: { + SET_PLAYER: (state, player) => { + state.player = player; + } + }, + actios: { + setPlayer({ commit }, player) { + commit('SET_PLAYER', player) + } + } +} diff --git a/frontend/store.js b/frontend/store.js new file mode 100644 index 00000000..076c50ca --- /dev/null +++ b/frontend/store.js @@ -0,0 +1,12 @@ +import Vue from 'vue'; +import Vuex from 'vuex'; + +import playerModule from '@/modules/playerModule'; + +Vue.use(Vuex); + +const store = new Vuex.Store({ + modules: { + playerModule + } +}) \ No newline at end of file diff --git a/frontend/styles/normalize.scss b/frontend/styles/normalize.scss new file mode 100644 index 00000000..5d531962 --- /dev/null +++ b/frontend/styles/normalize.scss @@ -0,0 +1,5 @@ + +body { + margin: 0; + padding: 0; +} \ No newline at end of file