From 865bb1f30a0c4567522525fb0be9fd99bd796ecf Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 13 Mar 2021 17:56:37 +0100 Subject: Adding boilerplate code. --- resources/js/app.js | 20 ++++++++++++++++++++ resources/js/bootstrap.js | 2 ++ resources/js/components/activities.vue | 9 +++++++++ resources/js/components/call-sign-description.vue | 9 +++++++++ resources/js/components/call-sign-filter.vue | 9 +++++++++ resources/js/components/reservation.vue | 9 +++++++++ resources/js/components/reservations.vue | 9 +++++++++ resources/js/store.js | 15 +++++++++++++++ 8 files changed, 82 insertions(+) create mode 100644 resources/js/components/activities.vue create mode 100644 resources/js/components/call-sign-description.vue create mode 100644 resources/js/components/call-sign-filter.vue create mode 100644 resources/js/components/reservation.vue create mode 100644 resources/js/components/reservations.vue create mode 100644 resources/js/store.js diff --git a/resources/js/app.js b/resources/js/app.js index 40c55f6..6c325fa 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1 +1,21 @@ require('./bootstrap'); + +//import store from './store.js'; +require('./store'); + +import callSignDesc from './components/call-sign-description.vue'; +import callSignFilter from './components/call-sign-filter.vue'; +import activities from './components/activities.vue'; +import reservation from './components/reservation.vue'; +import reservations from './components/reservations.vue'; + +new Vue({ + el: '#vue', + components: { + callSignDesc, + callSignFilter, + activities, + reservation, + reservations + } +}); diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index ffc0a2b..c3456b8 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -4,6 +4,8 @@ window.axios = require('axios'); window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; window.Vue = require('vue'); +window.Vuex = require('vuex'); +Vue.use(Vuex); window.$ = window.jQuery = require('jquery'); window.Popper = require('popper.js'); diff --git a/resources/js/components/activities.vue b/resources/js/components/activities.vue new file mode 100644 index 0000000..48e54f5 --- /dev/null +++ b/resources/js/components/activities.vue @@ -0,0 +1,9 @@ + + + diff --git a/resources/js/components/call-sign-description.vue b/resources/js/components/call-sign-description.vue new file mode 100644 index 0000000..48e54f5 --- /dev/null +++ b/resources/js/components/call-sign-description.vue @@ -0,0 +1,9 @@ + + + diff --git a/resources/js/components/call-sign-filter.vue b/resources/js/components/call-sign-filter.vue new file mode 100644 index 0000000..48e54f5 --- /dev/null +++ b/resources/js/components/call-sign-filter.vue @@ -0,0 +1,9 @@ + + + diff --git a/resources/js/components/reservation.vue b/resources/js/components/reservation.vue new file mode 100644 index 0000000..48e54f5 --- /dev/null +++ b/resources/js/components/reservation.vue @@ -0,0 +1,9 @@ + + + diff --git a/resources/js/components/reservations.vue b/resources/js/components/reservations.vue new file mode 100644 index 0000000..48e54f5 --- /dev/null +++ b/resources/js/components/reservations.vue @@ -0,0 +1,9 @@ + + + diff --git a/resources/js/store.js b/resources/js/store.js new file mode 100644 index 0000000..e9249cc --- /dev/null +++ b/resources/js/store.js @@ -0,0 +1,15 @@ +const store = new Vuex.Store({ + state: { + callSign: "all", + data: [] + }, + getters: { + + }, + mutations: { + + }, + actions: { + + } +}); -- cgit v1.2.3