forked from M0Yi/mychat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
executable file
·96 lines (59 loc) · 2.15 KB
/
main.js
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import Vue from 'vue'
import App from './App'
import * as Config from './common/config.js'
Vue.prototype.$config = Config;
// import * as Lang from './common/lang.js'
// Vue.prototype.__ = Lang.__;
import * as Db from './common/db.js'
import * as Api from './common/api.js'
import * as Common from './common/common.js'
import * as Socket from './common/socket.js'
import * as Audio from './common/audio.js'
import * as mySocket from './common/mysocket.js'
Vue.prototype.$api = Api;
Vue.prototype.$common = Common;
Vue.prototype.$db = Db;
Vue.prototype.$socket = Socket;
Vue.prototype.$audio = Audio;
Vue.prototype.$mysocket = mySocket;
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)
// 按钮
import myButton from './colorui/components/my-button.vue';
Vue.component('myButton', myButton)
// 输入框
import myInput from './colorui/components/my-input.vue';
Vue.component('myInput', myInput)
// 提示消息
import myMessage from './colorui/components/my-message.vue';
Vue.component('myMessage', myMessage)
// 顶部条
import myBar from './colorui/components/my-bar.vue';
Vue.component('myBar',myBar)
// 自定义预览界面
import preview from './colorui/components/my-preview.vue';
Vue.component('preview',preview)
import loadModal from './moyiui/components/load-modal.vue';
Vue.component('loadModal',loadModal)
import bottomMenu from './moyiui/components/bottom-menu.vue';
Vue.component('bottomMenu',bottomMenu)
import moreModal from './moyiui/components/more-modal.vue';
Vue.component('moreModal',moreModal)
import previewModal from './moyiui/components/preview-modal.vue';
Vue.component('previewModal',previewModal)
import cosmos from './pages/cosmos/index.vue'
Vue.component('cosmos',cosmos)
import chat from './pages/list/chat.vue'
Vue.component('chat',chat)
import contacts from './pages/list/contacts.vue'
Vue.component('contacts',contacts)
import center from './pages/user/center.vue'
Vue.component('center',center)
// import plugin from './pages/plugin/home.vue'
// Vue.component('plugin',plugin)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()