-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
59 lines (52 loc) · 1.19 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
import Vue from 'vue'
import store from '@/vue/vue-store'
import LayoutController from 'Layout/LayoutController'
import MemberList from 'Component/MemberList'
import MemberCount from 'Component/MemberCount'
import Clock from 'Component/Clock'
import Modal from 'Component/Modal'
Vue.config.productionTip = false
function main() {
new Vue({
el: '.member-list.body',
data: {
privateState: {},
sharedState: store.state,
},
store,
render: function (h) {
return h(MemberList);
}
})
new Vue({
el: '.member-list.number',
store,
render: function (h) {
return h(MemberCount);
}
})
new Vue({
el: '.vue-clock',
store,
render: function (h) {
return h(Clock);
}
})
// 우측 게임 선택 영역
new Vue({
el: '.layout-controller',
store,
render: function (h) {
return h(LayoutController);
}
})
// 결과 모달
new Vue({
el: '.modal',
store,
render: function (h) {
return h(Modal);
}
})
}
main();