diff --git a/src/main.js b/src/main.js index bffe855c..61250708 100644 --- a/src/main.js +++ b/src/main.js @@ -5,6 +5,7 @@ import Vuelidate from 'vuelidate' import store from './store' import VueSimpleSVG from 'vue-simple-svg' import VSelect from 'vue-select' +import 'flag-icon-css/css/flag-icon.css' Vue.config.productionTip = false diff --git a/src/store.js b/src/store.js index 70893c43..b00fe690 100644 --- a/src/store.js +++ b/src/store.js @@ -4,6 +4,12 @@ import { default as server, casServer, jaguarServer } from './server' import { SCOPES, APPLICATION_ID, CAS_FRONTEND_BASE_URL } from './settings' import router from './router' import localDB from './localdb' +let countries = require('country-data').callingCountries +countries = countries.all.map(country => { + country.countryCallingCodes = country.countryCallingCodes[0] + country.emojiWithCode = `${country.emoji} ${country.name}` + return country +}) Vue.use(Vuex) @@ -11,6 +17,7 @@ function initialState () { return { // MAIN ENTITIES + countries: countries, releases: [], selectedRelease: null, projects: [],