first commit

This commit is contained in:
2020-03-21 15:52:49 +01:00
commit 3f96cc6fe3
126 changed files with 57882 additions and 0 deletions

27
resources/js/store/modules/title.js vendored Normal file
View File

@@ -0,0 +1,27 @@
const state = {
title: 'Welcome'
}
const getter = {
pageTitle: state => {
return state.title
}
}
const actions = {
setPageTitle({commit, state}, title) {
commit('setTitle', title)
document.title = state.title
}
}
const mutations = {
setTitle(state, title) {
state.title = title + ' | Facebook'
}
}
export default {
state, getter, actions, mutations,
}