Created
May 24, 2018 13:19
-
-
Save BerezhniyDmitro/5e093e088c10eefaa894585e12a42d38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Vue = require("vue"); | |
window.axios = require("axios"); | |
window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest"; | |
window.qs = require("qs"); | |
window.mainLocationPath = window.location.origin; | |
import Vuetify from "vuetify"; | |
import router from "./router"; | |
import VeeValidate from 'vee-validate'; | |
import colors from "vuetify/es5/util/colors"; | |
import VuetifyConfirm from "vuetify-confirm"; | |
import helpers from './helpers/helpers'; | |
// import messages from './validation/messages'; | |
const dictionary = { | |
en: { | |
messages: { | |
confirmed: function () { | |
return "Your password is not confirmed" | |
}, | |
email: function () { | |
return "I really dont like your email" | |
}, | |
currentLanguage: function () { | |
return "Тестовое собщение" | |
}, | |
} | |
} | |
}; | |
const config = { | |
locale: 'ru', | |
}; | |
VeeValidate.Validator.updateDictionary(dictionary); | |
Vue.use(helpers); | |
Vue.use(Vuetify, { | |
theme: { | |
primary: colors.lightBlue.darken2, | |
secondary: colors.lightBlue.lighten2, | |
accent: colors.lightBlue.base | |
} | |
}); | |
Vue.use(VeeValidate, config); | |
Vue.use(VuetifyConfirm); | |
const app = new Vue({ | |
el: "#app", | |
router, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment