diff options
| author | Arne Schauf <git@asw.io> | 2018-03-03 01:06:44 +0100 |
|---|---|---|
| committer | Arne Schauf <git@asw.io> | 2018-03-03 01:08:55 +0100 |
| commit | 8769fc4dc19447f67a42eb941fb43ba7223772eb (patch) | |
| tree | 0a73daee2ede4cc1cdf515559429c9ba9fcc211c /src/plugins | |
| download | parry-ui-8769fc4dc19447f67a42eb941fb43ba7223772eb.tar.gz parry-ui-8769fc4dc19447f67a42eb941fb43ba7223772eb.zip | |
upgrade quasar to latest version
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/.gitkeep | 0 | ||||
| -rw-r--r-- | src/plugins/axios.js | 7 | ||||
| -rw-r--r-- | src/plugins/i18n.js | 13 |
3 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/.gitkeep b/src/plugins/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/plugins/.gitkeep diff --git a/src/plugins/axios.js b/src/plugins/axios.js new file mode 100644 index 0000000..e2957b2 --- /dev/null +++ b/src/plugins/axios.js @@ -0,0 +1,7 @@ +import axios from 'axios' + +export default ({ Vue }) => { + axios.defaults.headers.common['Accept'] = 'application/json' + axios.defaults.baseURL = process.env.API + Vue.prototype.$http = axios +} diff --git a/src/plugins/i18n.js b/src/plugins/i18n.js new file mode 100644 index 0000000..8ddacc5 --- /dev/null +++ b/src/plugins/i18n.js @@ -0,0 +1,13 @@ +import VueI18n from 'vue-i18n' +import messages from 'src/i18n' + +export default ({ app, Vue }) => { + Vue.use(VueI18n) + + // Set i18n instance on app + app.i18n = new VueI18n({ + locale: 'en', + fallbackLocale: 'en', + messages + }) +} |
