forked from topfullstack/adminify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
74 lines (62 loc) · 1.67 KB
/
Copy pathmain.js
File metadata and controls
74 lines (62 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import Vue from 'vue'
import helper from './helper'
global.helper = helper
import config from './config'
import store from './store/'
global.store = store
import router from './router'
import i18n from './i18n/'
import menu from './menu'
import Vuetify from 'vuetify'
Vue.use(Vuetify)
import './http'
import 'vuetify/src/stylus/main.styl'
import 'vuetify/src/stylus/settings/_colors.styl'
import '@/styles/main.styl'
import App from './App.vue'
import VueTimeago from 'vue-timeago'
Vue.use(VueTimeago, {
name: 'timeago', // component name, `timeago` by default
locale: config.locale,
locales: {
'en': require('vue-timeago/locales/en-US.json'),
[config.locale]: require(`vue-timeago/locales/${config.locale}.json`)
}
})
import Dropzone from 'vue2-dropzone'
import VueQuillEditor from 'vue-quill-editor'
Vue.use(VueQuillEditor)
Vue.component('dropzone', Dropzone)
// import validator from 'indicative'
import validator from 'Validator'
global.validator = validator
import VForm from './components/Form.vue'
import VGrid from './components/Grid.vue'
import VField from './components/Field.vue'
// import Modal from './components/Modal'
// Vue.use(Modal)
Vue.component('v-form', VForm)
Vue.component('v-grid', VGrid)
Vue.component('v-field', VField)
/* eslint-disable no-new */
new Vue({
el: '#app',
i18n,
store,
router,
render: h => h(App),
mounted () {
},
methods: {
back () {
this.$router.go(-1)
}
},
created () {
// this.$http.get('/users/1').then(({data}) => console.log(data))
global.$t = this.$t
this.$store.commit('setMenu', menu)
this.$store.dispatch('checkPageTitle', this.$route.path)
this.$store.dispatch('checkAuth')
}
})