Blame view

src/pages/widgets/Statistic.vue 4.72 KB
8ab31dc8b   Jatinder Singh   changes
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
  <template>
    <div id="page-statistic">
      <v-container grid-list-xl fluid>
          <v-layout row wrap>
            <v-flex sm12>
              <h4>Social</h4>
            </v-flex>
            <!-- mini statistic start -->
            <v-flex lg3 sm6 xs12>
              <mini-statistic
                icon="fa fa-facebook"
                title="100+"
                sub-title="Likes"
                color="indigo"      
              >
              </mini-statistic>  
            </v-flex>
            <v-flex lg3 sm6 xs12>
              <mini-statistic
                icon="fa fa-google"
                title="150+"
                sub-title="Connections"
                color="red"      
              >
              </mini-statistic>           
            </v-flex>          
            <v-flex lg3 sm6 xs12>
              <mini-statistic
                icon="fa fa-twitter"
                title="200+"
                sub-title="Followers"
                color="light-blue"      
              >
              </mini-statistic>            
            </v-flex>        
            <v-flex lg3 sm6 xs12>
              <mini-statistic
                icon="fa fa-instagram"
                title="50+"
                sub-title="Shots"
                color="purple"      
              >
              </mini-statistic>             
            </v-flex>   
            <!-- linear statistic  end -->  
            <v-flex sm12>
              <h4>Linear Trending</h4>
            </v-flex>          
            <v-flex lg4 sm12 v-for="(item,index) in trending" :key="'trending'+index">
              <linear-statistic
                :title="item.subheading"
                :sub-title="item.caption"
                :icon="item.icon.label"
                :color="item.icon.color"
                :value="item.linear.value"
              >
              </linear-statistic>
    
            </v-flex>
            <!-- circle statistic  end -->  
            <v-flex sm12>
              <h4>Circle Trending</h4>
            </v-flex>       
            <v-flex lg4 sm12 v-for="(item,index) in trending2" :key="'c-trending'+index">
              <circle-statistic
                :title="item.subheading"
                :sub-title="item.headline"
                :caption="item.caption"
                :icon="item.icon.label"
                :color="item.linear.color"
                :value="item.linear.value"
              >
              </circle-statistic>            
            </v-flex>                      
          </v-layout>
      </v-container>
    </div>
  </template>
  
  <script>
  import MiniStatistic from '@/components/widgets/statistic/MiniStatistic';
  import LinearStatistic from '@/components/widgets/statistic/LinearStatistic';
  import CircleStatistic from '@/components/widgets/statistic/CircleStatistic';
  export default {
    components: {
      CircleStatistic,
      MiniStatistic,
      LinearStatistic
    },
    data () {
      return {
        trending: [
          {
            subheading: 'Sales',
            headline: '2,55',
            caption: 'increase',
            percent: 15,
            icon: {
              label: 'trending_up',
              color: 'success'
            },
            linear: {
              value: 15,
              color: 'success'
            }
          },
          {
            subheading: 'Revenue',
            headline: '6,553',
            caption: 'increase',
            percent: 10,
            icon: {
              label: 'trending_down',
              color: 'error'
            },
            linear: {
              value: 15,
              color: 'error'
            }
          },
          {
            subheading: 'Orders',
            headline: '5,00',
            caption: 'increase',
            percent: 50,
            icon: {
              label: 'arrow_upward',
              color: 'info'
            },
            linear: {
              value: 50,
              color: 'info'
            }
          }
        ],
        trending2: [
          {
            subheading: 'Email',
            headline: '15+',
            caption: 'email opens',
            percent: 15,
            icon: {
              label: 'email',
              color: 'info'
            },
            linear: {
              value: 15,
              color: 'info'
            }
          },        
          {
            subheading: 'Tasks',
            headline: '90%',
            caption: 'tasks completed.',
            percent: 90,
            icon: {
              label: 'list',
              color: 'primary'
            },
            linear: {
              value: 90,
              color: 'success'
            }
          },        
          {
            subheading: 'Issues',
            headline: '100%',
            caption: 'issues fixed.',
            percent: 100,
            icon: {
              label: 'bug_report',
              color: 'primary'
            },
            linear: {
              value: 100,
              color: 'error'
            }
          },        
        ]
      };
    },
  };
  </script>
  <style lang="stylus" scoped>
  
  </style>