Skip to content

Instantly share code, notes, and snippets.

@BerezhniyDmitro
Created May 24, 2018 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BerezhniyDmitro/5e093e088c10eefaa894585e12a42d38 to your computer and use it in GitHub Desktop.
Save BerezhniyDmitro/5e093e088c10eefaa894585e12a42d38 to your computer and use it in GitHub Desktop.
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