|
1 | 1 | <template> |
2 | 2 | <div> |
3 | | - <WidgetsStatsA /> |
| 3 | + <WidgetsStatsA class="mb-4" /> |
4 | 4 | <CRow> |
5 | 5 | <CCol :md="12"> |
6 | 6 | <CCard class="mb-4"> |
|
20 | 20 | aria-label="Basic outlined example" |
21 | 21 | > |
22 | 22 | <CButton color="secondary" variant="outline">Day</CButton> |
23 | | - <CButton color="secondary" variant="outline" active |
24 | | - >Month</CButton |
25 | | - > |
| 23 | + <CButton color="secondary" variant="outline" active>Month</CButton> |
26 | 24 | <CButton color="secondary" variant="outline">Year</CButton> |
27 | 25 | </CButtonGroup> |
28 | 26 | </CCol> |
29 | 27 | </CRow> |
30 | 28 | <CRow> |
31 | | - <MainChart |
32 | | - style="height: 300px; max-height: 300px; margin-top: 40px" |
33 | | - /> |
| 29 | + <MainChart style="height: 300px; max-height: 300px; margin-top: 40px" /> |
34 | 30 | </CRow> |
35 | 31 | </CCardBody> |
36 | 32 | <CCardFooter> |
37 | | - <CRow :xs="{ cols: 1 }" :md="{ cols: 5 }" class="text-center"> |
38 | | - <CCol class="mb-sm-2 mb-0"> |
| 33 | + <CRow |
| 34 | + :xs="{ cols: 1, gutter: 4 }" |
| 35 | + :sm="{ cols: 2 }" |
| 36 | + :lg="{ cols: 4 }" |
| 37 | + :xl="{ cols: 5 }" |
| 38 | + class="mb-2 text-center" |
| 39 | + > |
| 40 | + <CCol> |
39 | 41 | <div class="text-body-secondary">Visits</div> |
40 | | - <div class="fw-semibold">29.703 Users (40%)</div> |
41 | | - <CProgress |
42 | | - class="mt-2" |
43 | | - color="success" |
44 | | - thin |
45 | | - :precision="1" |
46 | | - :value="40" |
47 | | - /> |
| 42 | + <div class="fw-semibold text-truncate">29.703 Users (40%)</div> |
| 43 | + <CProgress class="mt-2" color="success" thin :precision="1" :value="40" /> |
48 | 44 | </CCol> |
49 | | - <CCol class="mb-sm-2 mb-0 d-md-down-none"> |
| 45 | + <CCol> |
50 | 46 | <div class="text-body-secondary">Unique</div> |
51 | | - <div class="fw-semibold">24.093 Users (20%)</div> |
52 | | - <CProgress |
53 | | - class="mt-2" |
54 | | - color="info" |
55 | | - thin |
56 | | - :precision="1" |
57 | | - :value="20" |
58 | | - /> |
| 47 | + <div class="fw-semibold text-truncate">24.093 Users (20%)</div> |
| 48 | + <CProgress class="mt-2" color="info" thin :precision="1" :value="20" /> |
59 | 49 | </CCol> |
60 | | - <CCol class="mb-sm-2 mb-0"> |
| 50 | + <CCol> |
61 | 51 | <div class="text-body-secondary">Pageviews</div> |
62 | | - <div class="fw-semibold">78.706 Views (60%)</div> |
63 | | - <CProgress |
64 | | - class="mt-2" |
65 | | - color="warning" |
66 | | - thin |
67 | | - :precision="1" |
68 | | - :value="60" |
69 | | - /> |
| 52 | + <div class="fw-semibold text-truncate">78.706 Views (60%)</div> |
| 53 | + <CProgress class="mt-2" color="warning" thin :precision="1" :value="60" /> |
70 | 54 | </CCol> |
71 | | - <CCol class="mb-sm-2 mb-0"> |
| 55 | + <CCol> |
72 | 56 | <div class="text-body-secondary">New Users</div> |
73 | | - <div class="fw-semibold">22.123 Users (80%)</div> |
74 | | - <CProgress |
75 | | - class="mt-2" |
76 | | - color="danger" |
77 | | - thin |
78 | | - :precision="1" |
79 | | - :value="80" |
80 | | - /> |
| 57 | + <div class="fw-semibold text-truncate">22.123 Users (80%)</div> |
| 58 | + <CProgress class="mt-2" color="danger" thin :precision="1" :value="80" /> |
81 | 59 | </CCol> |
82 | | - <CCol class="mb-sm-2 mb-0 d-md-down-none"> |
| 60 | + <CCol class="d-none d-xl-block"> |
83 | 61 | <div class="text-body-secondary">Bounce Rate</div> |
84 | | - <div class="fw-semibold">Average Rate (40.15%)</div> |
| 62 | + <div class="fw-semibold text-truncate">Average Rate (40.15%)</div> |
85 | 63 | <CProgress class="mt-2" :value="40" thin :precision="1" /> |
86 | 64 | </CCol> |
87 | 65 | </CRow> |
88 | 66 | </CCardFooter> |
89 | 67 | </CCard> |
90 | 68 | </CCol> |
91 | 69 | </CRow> |
92 | | - <WidgetsStatsD /> |
| 70 | + <WidgetsStatsD class="mb-4" /> |
93 | 71 | <CRow> |
94 | 72 | <CCol :md="12"> |
95 | 73 | <CCard class="mb-4"> |
|
98 | 76 | <CRow> |
99 | 77 | <CCol :sm="12" :lg="6"> |
100 | 78 | <CRow> |
101 | | - <CCol :sm="6"> |
102 | | - <div |
103 | | - class="border-start border-start-4 border-start-info py-1 px-3 mb-3" |
104 | | - > |
| 79 | + <CCol :xs="6"> |
| 80 | + <div class="border-start border-start-4 border-start-info py-1 px-3 mb-3"> |
105 | 81 | <div class="text-body-secondary small">New Clients</div> |
106 | 82 | <div class="fs-5 fw-semibold">9,123</div> |
107 | 83 | </div> |
108 | 84 | </CCol> |
109 | | - <CCol :sm="6"> |
110 | | - <div |
111 | | - class="border-start border-start-4 border-start-danger py-1 px-3 mb-3" |
112 | | - > |
113 | | - <div class="text-body-secondary small"> |
114 | | - Recurring Clients |
115 | | - </div> |
| 85 | + <CCol :xs="6"> |
| 86 | + <div class="border-start border-start-4 border-start-danger py-1 px-3 mb-3"> |
| 87 | + <div class="text-body-secondary small">Recurring Clients</div> |
116 | 88 | <div class="fs-5 fw-semibold">22,643</div> |
117 | 89 | </div> |
118 | 90 | </CCol> |
|
124 | 96 | class="progress-group mb-4" |
125 | 97 | > |
126 | 98 | <div class="progress-group-prepend"> |
127 | | - <span class="text-body-secondary small">{{ |
128 | | - item.title |
129 | | - }}</span> |
| 99 | + <span class="text-body-secondary small">{{ item.title }}</span> |
130 | 100 | </div> |
131 | 101 | <div class="progress-group-bars"> |
132 | 102 | <CProgress thin color="info" :value="item.value1" /> |
|
136 | 106 | </CCol> |
137 | 107 | <CCol :sm="12" :lg="6"> |
138 | 108 | <CRow> |
139 | | - <CCol :sm="6"> |
140 | | - <div |
141 | | - class="border-start border-start-4 border-start-warning py-1 px-3 mb-3" |
142 | | - > |
| 109 | + <CCol :xs="6"> |
| 110 | + <div class="border-start border-start-4 border-start-warning py-1 px-3 mb-3"> |
143 | 111 | <div class="text-body-secondary small">Pageviews</div> |
144 | 112 | <div class="fs-5 fw-semibold">78,623</div> |
145 | 113 | </div> |
146 | 114 | </CCol> |
147 | | - <CCol :sm="6"> |
148 | | - <div |
149 | | - class="border-start border-start-4 border-start-success py-1 px-3 mb-3" |
150 | | - > |
| 115 | + <CCol :xs="6"> |
| 116 | + <div class="border-start border-start-4 border-start-success py-1 px-3 mb-3"> |
151 | 117 | <div class="text-body-secondary small">Organic</div> |
152 | 118 | <div class="fs-5 fw-semibold">49,123</div> |
153 | 119 | </div> |
154 | 120 | </CCol> |
155 | 121 | </CRow> |
156 | 122 | <hr class="mt-0" /> |
157 | | - <div |
158 | | - v-for="item in progressGroupExample2" |
159 | | - :key="item.title" |
160 | | - class="progress-group" |
161 | | - > |
| 123 | + <div v-for="item in progressGroupExample2" :key="item.title" class="progress-group"> |
162 | 124 | <div class="progress-group-header"> |
163 | 125 | <CIcon :icon="item.icon" class="me-2" size="lg" /> |
164 | 126 | <span class="title">{{ item.title }}</span> |
|
171 | 133 |
|
172 | 134 | <div class="mb-5"></div> |
173 | 135 |
|
174 | | - <div |
175 | | - v-for="item in progressGroupExample3" |
176 | | - :key="item.title" |
177 | | - class="progress-group" |
178 | | - > |
| 136 | + <div v-for="item in progressGroupExample3" :key="item.title" class="progress-group"> |
179 | 137 | <div class="progress-group-header"> |
180 | 138 | <CIcon :icon="item.icon" class="me-2" size="lg" /> |
181 | 139 | <span class="title">{{ item.title }}</span> |
182 | 140 | <span class="ms-auto fw-semibold"> |
183 | 141 | {{ item.value }} |
184 | | - <span class="text-body-secondary small" |
185 | | - >({{ item.percent }}%)</span |
186 | | - > |
| 142 | + <span class="text-body-secondary small">({{ item.percent }}%)</span> |
187 | 143 | </span> |
188 | 144 | </div> |
189 | 145 | <div class="progress-group-bars"> |
|
194 | 150 | </CRow> |
195 | 151 | <br /> |
196 | 152 | <CTable align="middle" class="mb-0 border" hover responsive> |
197 | | - <CTableHead> |
| 153 | + <CTableHead class="text-nowrap"> |
198 | 154 | <CTableRow> |
199 | 155 | <CTableHeaderCell class="bg-body-secondary text-center"> |
200 | 156 | <CIcon name="cil-people" /> |
201 | 157 | </CTableHeaderCell> |
202 | | - <CTableHeaderCell class="bg-body-secondary"> |
203 | | - User |
204 | | - </CTableHeaderCell> |
| 158 | + <CTableHeaderCell class="bg-body-secondary"> User </CTableHeaderCell> |
205 | 159 | <CTableHeaderCell class="bg-body-secondary text-center"> |
206 | 160 | Country |
207 | 161 | </CTableHeaderCell> |
208 | | - <CTableHeaderCell class="bg-body-secondary"> |
209 | | - Usage |
210 | | - </CTableHeaderCell> |
| 162 | + <CTableHeaderCell class="bg-body-secondary"> Usage </CTableHeaderCell> |
211 | 163 | <CTableHeaderCell class="bg-body-secondary text-center"> |
212 | 164 | Payment Method |
213 | 165 | </CTableHeaderCell> |
214 | | - <CTableHeaderCell class="bg-body-secondary"> |
215 | | - Activity |
216 | | - </CTableHeaderCell> |
| 166 | + <CTableHeaderCell class="bg-body-secondary"> Activity </CTableHeaderCell> |
217 | 167 | </CTableRow> |
218 | 168 | </CTableHead> |
219 | 169 | <CTableBody> |
220 | 170 | <CTableRow v-for="item in tableExample" :key="item.name"> |
221 | 171 | <CTableDataCell class="text-center"> |
222 | | - <CAvatar |
223 | | - size="md" |
224 | | - :src="item.avatar.src" |
225 | | - :status="item.avatar.status" |
226 | | - /> |
| 172 | + <CAvatar size="md" :src="item.avatar.src" :status="item.avatar.status" /> |
227 | 173 | </CTableDataCell> |
228 | 174 | <CTableDataCell> |
229 | 175 | <div>{{ item.user.name }}</div> |
|
233 | 179 | </div> |
234 | 180 | </CTableDataCell> |
235 | 181 | <CTableDataCell class="text-center"> |
236 | | - <CIcon |
237 | | - size="xl" |
238 | | - :name="item.country.flag" |
239 | | - :title="item.country.name" |
240 | | - /> |
| 182 | + <CIcon size="xl" :name="item.country.flag" :title="item.country.name" /> |
241 | 183 | </CTableDataCell> |
242 | 184 | <CTableDataCell> |
243 | 185 | <div class="d-flex justify-content-between align-items-baseline"> |
244 | 186 | <div class="fw-semibold">{{ item.usage.value }}%</div> |
245 | | - <div class="ms-1 text-nowrap small text-body-secondary"> |
| 187 | + <div class="text-nowrap text-body-secondary small ms-3"> |
246 | 188 | {{ item.usage.period }} |
247 | 189 | </div> |
248 | 190 | </div> |
249 | | - <CProgress |
250 | | - thin |
251 | | - :color="item.usage.color" |
252 | | - :value="item.usage.value" |
253 | | - /> |
| 191 | + <CProgress thin :color="item.usage.color" :value="item.usage.value" /> |
254 | 192 | </CTableDataCell> |
255 | 193 | <CTableDataCell class="text-center"> |
256 | 194 | <CIcon size="xl" :name="item.payment.icon" /> |
|
0 commit comments