forked from lizzz0523/limni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstore.js
118 lines (112 loc) · 3.59 KB
/
store.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
feeds: [
{
id: 1,
coverUrl: require('./assets/universe.jpeg'),
faceUrl: require('./assets/face4.jpeg'),
subscribers: 930,
posts: [
{
id: 1,
faceUrl: require('./assets/face1.jpeg'),
name: 'Dean McGuire',
date: new Date(),
content:
'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.'
},
{
id: 2,
faceUrl: require('./assets/face2.jpeg'),
name: 'Sue Fletcher',
date: new Date(),
content:
'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.'
}
],
goal: [99, 100, 80, 100, 60, 10, 100],
used: [150, 260, 260, 420, 220, 360],
time: [10, 70, 40, 90, 20, 90],
totalView: 999,
totalLike: 150,
totalComment: 25
},
{
id: 2,
coverUrl: require('./assets/canyon.jpeg'),
faceUrl: require('./assets/face3.jpeg'),
subscribers: 930,
posts: [
{
id: 1,
faceUrl: require('./assets/face1.jpeg'),
name: 'Dean McGuire',
date: new Date(),
content:
'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.'
},
{
id: 2,
faceUrl: require('./assets/face2.jpeg'),
name: 'Sue Fletcher',
date: new Date(),
content:
'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.'
}
],
goal: [99, 100, 80, 100, 60, 10, 100],
used: [150, 260, 260, 420, 220, 360],
time: [10, 70, 40, 90, 20, 90],
totalView: 999,
totalLike: 150,
totalComment: 25
},
{
id: 3,
coverUrl: require('./assets/airport.jpeg'),
faceUrl: require('./assets/face2.jpeg'),
subscribers: 930,
posts: [
{
id: 1,
faceUrl: require('./assets/face1.jpeg'),
name: 'Dean McGuire',
date: new Date(),
content:
'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.'
},
{
id: 2,
faceUrl: require('./assets/face2.jpeg'),
name: 'Sue Fletcher',
date: new Date(),
content:
'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.'
}
],
goal: [99, 100, 80, 100, 60, 10, 100],
used: [150, 260, 260, 420, 220, 360],
time: [10, 70, 40, 90, 20, 90],
totalView: 999,
totalLike: 150,
totalComment: 25
}
],
selected: null,
unselect: null
},
mutations: {
selectFeed (state, selected) {
state.unselect = null
state.selected = selected
},
unselectFeed (state) {
state.unselect = state.selected
state.selected = null
}
},
actions: {}
})