|
9 | 9 | <div class="small text-muted">November 2017</div>
|
10 | 10 | </CCol>
|
11 | 11 | <CCol sm="7" class="d-none d-md-block">
|
12 |
| - <CButton variant="primary" class="float-right"> |
| 12 | + <CButton color="primary" class="float-right"> |
13 | 13 | <i class="cui-cloud-download"></i>
|
14 | 14 | </CButton>
|
15 | 15 | <CButtonGroup class="float-right mr-3">
|
16 | 16 | <CButton
|
17 |
| - variant="outline-secondary" |
| 17 | + color="outline-secondary" |
18 | 18 | v-for="(value, key) in ['Day', 'Month', 'Year']"
|
19 | 19 | :key="key"
|
20 | 20 | class="mx-0"
|
|
36 | 36 | <CProgress
|
37 | 37 | class="progress-xs mt-2"
|
38 | 38 | :precision="1"
|
39 |
| - variant="success" |
| 39 | + color="success" |
40 | 40 | :value="40"
|
41 | 41 | />
|
42 | 42 | </CCol>
|
|
46 | 46 | <CProgress
|
47 | 47 | class="progress-xs mt-2"
|
48 | 48 | :precision="1"
|
49 |
| - variant="info" |
| 49 | + color="info" |
50 | 50 | :value="20"
|
51 | 51 | />
|
52 | 52 | </CCol>
|
|
56 | 56 | <CProgress
|
57 | 57 | class="progress-xs mt-2"
|
58 | 58 | :precision="1"
|
59 |
| - variant="warning" |
| 59 | + color="warning" |
60 | 60 | :value="60"
|
61 | 61 | />
|
62 | 62 | </CCol>
|
|
66 | 66 | <CProgress
|
67 | 67 | class="progress-xs mt-2"
|
68 | 68 | :precision="1"
|
69 |
| - variant="danger" |
| 69 | + color="danger" |
70 | 70 | :value="80"
|
71 | 71 | />
|
72 | 72 | </CCol>
|
|
90 | 90 | <CCol sm="12" lg="6">
|
91 | 91 | <CRow>
|
92 | 92 | <CCol sm="6">
|
93 |
| - <CCallout variant="info"> |
| 93 | + <CCallout color="info"> |
94 | 94 | <small class="text-muted">New Clients</small><br>
|
95 | 95 | <strong class="h4">9,123</strong>
|
96 | 96 | </CCallout>
|
97 | 97 | </CCol>
|
98 | 98 | <CCol sm="6">
|
99 |
| - <CCallout variant="danger"> |
| 99 | + <CCallout color="danger"> |
100 | 100 | <small class="text-muted">Recurring Clients</small><br>
|
101 | 101 | <strong class="h4">22,643</strong>
|
102 | 102 | </CCallout>
|
|
112 | 112 | <div class="progress-group-bars">
|
113 | 113 | <CProgress
|
114 | 114 | class="progress-xs"
|
115 |
| - variant="info" |
| 115 | + color="info" |
116 | 116 | :value="34"
|
117 | 117 | />
|
118 | 118 | <CProgress
|
119 | 119 | class="progress-xs"
|
120 |
| - variant="danger" |
| 120 | + color="danger" |
121 | 121 | :value="78"
|
122 | 122 | />
|
123 | 123 | </div>
|
|
132 | 132 | <CProgress
|
133 | 133 | class="progress-xs"
|
134 | 134 | :value="56"
|
135 |
| - variant="info" |
| 135 | + color="info" |
136 | 136 | />
|
137 | 137 | <CProgress
|
138 | 138 | class="progress-xs"
|
139 | 139 | :value="94"
|
140 |
| - variant="danger" |
| 140 | + color="danger" |
141 | 141 | />
|
142 | 142 | </div>
|
143 | 143 | </div>
|
|
151 | 151 | <CProgress
|
152 | 152 | class="progress-xs"
|
153 | 153 | :value="12"
|
154 |
| - variant="info" |
| 154 | + color="info" |
155 | 155 | />
|
156 | 156 | <CProgress
|
157 | 157 | class="progress-xs"
|
158 | 158 | :value="67"
|
159 |
| - variant="danger" |
| 159 | + color="danger" |
160 | 160 | />
|
161 | 161 | </div>
|
162 | 162 | </div>
|
|
170 | 170 | <CProgress
|
171 | 171 | class="progress-xs"
|
172 | 172 | :value="43"
|
173 |
| - variant="info" |
| 173 | + color="info" |
174 | 174 | />
|
175 | 175 | <CProgress
|
176 | 176 | class="progress-xs"
|
177 | 177 | :value="91"
|
178 |
| - variant="danger" |
| 178 | + color="danger" |
179 | 179 | />
|
180 | 180 | </div>
|
181 | 181 | </div>
|
|
189 | 189 | <CProgress
|
190 | 190 | class="progress-xs"
|
191 | 191 | :value="22"
|
192 |
| - variant="info" |
| 192 | + color="info" |
193 | 193 | />
|
194 | 194 | <CProgress
|
195 | 195 | class="progress-xs"
|
196 | 196 | :value="73"
|
197 |
| - variant="danger" |
| 197 | + color="danger" |
198 | 198 | />
|
199 | 199 | </div>
|
200 | 200 | </div>
|
|
208 | 208 | <CProgress
|
209 | 209 | class="progress-xs"
|
210 | 210 | :value="53"
|
211 |
| - variant="info" |
| 211 | + color="info" |
212 | 212 | />
|
213 | 213 | <CProgress
|
214 | 214 | class="progress-xs"
|
215 | 215 | :value="82"
|
216 |
| - variant="danger" |
| 216 | + color="danger" |
217 | 217 | />
|
218 | 218 | </div>
|
219 | 219 | </div>
|
|
227 | 227 | <CProgress
|
228 | 228 | class="progress-xs"
|
229 | 229 | :value="9"
|
230 |
| - variant="info" |
| 230 | + color="info" |
231 | 231 | />
|
232 | 232 | <CProgress
|
233 | 233 | class="progress-xs"
|
234 | 234 | :value="69"
|
235 |
| - variant="danger" |
| 235 | + color="danger" |
236 | 236 | />
|
237 | 237 | </div>
|
238 | 238 | </div>
|
239 | 239 | <div class="legend text-center">
|
240 | 240 | <small>
|
241 |
| - <sup><CBadge pill variant="info"> </CBadge></sup> |
| 241 | + <sup><CBadge pill color="info"> </CBadge></sup> |
242 | 242 | New clients
|
243 | 243 |
|
244 |
| - <sup><CBadge pill variant="danger"> </CBadge></sup> |
| 244 | + <sup><CBadge pill color="danger"> </CBadge></sup> |
245 | 245 | Recurring clients
|
246 | 246 | </small>
|
247 | 247 | </div>
|
248 | 248 | </CCol>
|
249 | 249 | <CCol sm="12" lg="6">
|
250 | 250 | <CRow>
|
251 | 251 | <CCol sm="6">
|
252 |
| - <CCallout variant="warning"> |
| 252 | + <CCallout color="warning"> |
253 | 253 | <small class="text-muted">Pageviews</small><br>
|
254 | 254 | <strong class="h4">78,623</strong>
|
255 | 255 | </CCallout>
|
256 | 256 | </CCol>
|
257 | 257 | <CCol sm="6">
|
258 |
| - <CCallout variant="success"> |
| 258 | + <CCallout color="success"> |
259 | 259 | <small class="text-muted">Organic</small><br>
|
260 | 260 | <strong class="h4">49,123</strong>
|
261 | 261 | </CCallout>
|
|
273 | 273 | <CProgress
|
274 | 274 | class="progress-xs"
|
275 | 275 | :value="43"
|
276 |
| - variant="warning" |
| 276 | + color="warning" |
277 | 277 | />
|
278 | 278 | </div>
|
279 | 279 | </div>
|
|
287 | 287 | <CProgress
|
288 | 288 | class="progress-xs"
|
289 | 289 | :value="37"
|
290 |
| - variant="warning" |
| 290 | + color="warning" |
291 | 291 | />
|
292 | 292 | </div>
|
293 | 293 | </div>
|
|
303 | 303 | <CProgress
|
304 | 304 | class="progress-xs"
|
305 | 305 | :value="56"
|
306 |
| - variant="success" |
| 306 | + color="success" |
307 | 307 | />
|
308 | 308 | </div>
|
309 | 309 | </div>
|
|
323 | 323 | <CProgress
|
324 | 324 | class="progress-xs"
|
325 | 325 | :value="15"
|
326 |
| - variant="success" |
| 326 | + color="success" |
327 | 327 | />
|
328 | 328 | </div>
|
329 | 329 | </div>
|
|
343 | 343 | <CProgress
|
344 | 344 | class="progress-xs"
|
345 | 345 | :value="11"
|
346 |
| - variant="success" |
| 346 | + color="success" |
347 | 347 | />
|
348 | 348 | </div>
|
349 | 349 | </div>
|
|
363 | 363 | <CProgress
|
364 | 364 | class="progress-xs"
|
365 | 365 | :value="8"
|
366 |
| - variant="success" |
| 366 | + color="success" |
367 | 367 | />
|
368 | 368 | </div>
|
369 | 369 | </div>
|
370 | 370 | <div class="divider text-center">
|
371 |
| - <CButton variant="link" size="sm" class="text-muted"> |
| 371 | + <CButton color="link" size="sm" class="text-muted"> |
372 | 372 | <i class="cui-options"></i>
|
373 | 373 | </CButton>
|
374 | 374 | </div>
|
|
381 | 381 | hover
|
382 | 382 | :items="tableItems"
|
383 | 383 | :fields="tableFields"
|
384 |
| - head-variant="light" |
| 384 | + head-color="light" |
385 | 385 | no-sorting
|
386 | 386 | >
|
387 | 387 | <td slot="avatar" class="text-center" slot-scope="{item}">
|
|
424 | 424 | <CProgress
|
425 | 425 | class="progress-xs"
|
426 | 426 | v-model="item.usage.value"
|
427 |
| - :variant="variant(item.usage.value)" |
| 427 | + :color="color(item.usage.value)" |
428 | 428 | />
|
429 | 429 | </td>
|
430 | 430 | <td
|
@@ -524,18 +524,18 @@ export default {
|
524 | 524 | }
|
525 | 525 | },
|
526 | 526 | methods: {
|
527 |
| - variant (value) { |
528 |
| - let $variant |
| 527 | + color (value) { |
| 528 | + let $color |
529 | 529 | if (value <= 25) {
|
530 |
| - $variant = 'info' |
| 530 | + $color = 'info' |
531 | 531 | } else if (value > 25 && value <= 50) {
|
532 |
| - $variant = 'success' |
| 532 | + $color = 'success' |
533 | 533 | } else if (value > 50 && value <= 75) {
|
534 |
| - $variant = 'warning' |
| 534 | + $color = 'warning' |
535 | 535 | } else if (value > 75 && value <= 100) {
|
536 |
| - $variant = 'danger' |
| 536 | + $color = 'danger' |
537 | 537 | }
|
538 |
| - return $variant |
| 538 | + return $color |
539 | 539 | }
|
540 | 540 | }
|
541 | 541 | }
|
|
0 commit comments