Skip to content

Commit

Permalink
Added necessary libraries for phone field, #725
Browse files Browse the repository at this point in the history
  • Loading branch information
fjalili committed Jul 30, 2019
1 parent 34dd9ca commit 1fb2c6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ 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)

function initialState () {
return {
// MAIN ENTITIES

countries: countries,
releases: [],
selectedRelease: null,
projects: [],
Expand Down

0 comments on commit 1fb2c6d

Please sign in to comment.