Skip to content

Commit b696666

Browse files
committed
refactor: fix small bugs, update unit tests
1 parent 760dc7b commit b696666

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+45759
-1710
lines changed

src/views/base/Cards.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
</CCol>
2424
<CCol sm="6" md="4">
2525
<CCard>
26-
<CCardFooter>Card Footer</CCardFooter>
2726
<CCardBody>{{loremIpsum}}</CCardBody>
27+
<CCardFooter>Card Footer</CCardFooter>
2828
</CCard>
2929
</CCol>
3030
<CCol sm="6" md="4">

src/views/base/Forms.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@
772772
placeholder="Password"
773773
type="password"
774774
autocomplete="current-password"
775-
/>
775+
>
776776
<template #prepend-content><CIcon name="shield-alt"/></template>
777777
</CInput>
778778
<div class="form-group form-actions">

src/views/base/Switches.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@
330330
<template #example="{item}">
331331
<td>
332332
<CSwitch
333-
:shape="item.example.shape"
333+
:variant="item.example.variant"
334334
:color="item.example.color"
335335
:size="item.example.size"
336336
:checked="item.example.checked"
@@ -366,17 +366,17 @@ export default {
366366
items: [
367367
{
368368
size: 'Large',
369-
example: { shape: '3d', color: 'primary', size: 'lg', checked: true },
369+
example: { variant: '3d', color: 'primary', size: 'lg', checked: true },
370370
size_prop: 'Add following prop <code>size="lg"</code>'
371371
},
372372
{
373373
size: 'Normal',
374-
example: { shape: '3d', color: 'primary', size: '', checked: true },
374+
example: { variant: '3d', color: 'primary', size: '', checked: true },
375375
size_prop: '-'
376376
},
377377
{
378378
size: 'Small',
379-
example: {shape: '3d', color: 'primary', size: 'sm', checked: true},
379+
example: { variant: '3d', color: 'primary', size: 'sm', checked: true},
380380
size_prop: 'Add following prop <code>size="sm"</code>'
381381
}
382382
],

src/views/base/Table.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
:items-per-page="small ? 10 : 5"
1616
:dark="dark"
1717
pagination
18-
items-per-page-select
1918
>
2019
<template #status="{item}">
2120
<td>
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`TheHeader.vue renders correctly 1`] = `
4+
<cheader-stub
5+
colorscheme="light"
6+
fixed="true"
7+
light=""
8+
tag="header"
9+
withsubheader="true"
10+
>
11+
<ctoggler-stub
12+
class="ml-3 d-lg-none"
13+
inheader="true"
14+
tag="button"
15+
/>
16+
17+
<ctoggler-stub
18+
class="ml-3 d-md-down-none"
19+
inheader="true"
20+
tag="button"
21+
/>
22+
23+
<cheaderbrand-stub
24+
alt="CoreUI Logo"
25+
class="mx-auto d-lg-none"
26+
height="46"
27+
src="img/brand/coreui-base.svg"
28+
width="97"
29+
wrappedinlink="[object Object]"
30+
/>
31+
32+
<cheadernav-stub
33+
class="d-md-down-none mr-auto"
34+
>
35+
<cheadernavitem-stub
36+
class="px-3"
37+
to="/dashboard"
38+
>
39+
<cheadernavlink-stub
40+
activeclass="active"
41+
event="click"
42+
exactactiveclass="active"
43+
innavitem="true"
44+
routertag="a"
45+
tag="span"
46+
target="_self"
47+
>
48+
49+
Dashboard
50+
51+
</cheadernavlink-stub>
52+
</cheadernavitem-stub>
53+
54+
<cheadernavitem-stub
55+
class="px-3"
56+
exact=""
57+
to="/users"
58+
>
59+
<cheadernavlink-stub
60+
activeclass="active"
61+
event="click"
62+
exactactiveclass="active"
63+
innavitem="true"
64+
routertag="a"
65+
tag="span"
66+
target="_self"
67+
>
68+
69+
Users
70+
71+
</cheadernavlink-stub>
72+
</cheadernavitem-stub>
73+
74+
<cheadernavitem-stub
75+
class="px-3"
76+
>
77+
<cheadernavlink-stub
78+
activeclass="active"
79+
event="click"
80+
exactactiveclass="active"
81+
innavitem="true"
82+
routertag="a"
83+
tag="span"
84+
target="_self"
85+
>
86+
87+
Settings
88+
89+
</cheadernavlink-stub>
90+
</cheadernavitem-stub>
91+
</cheadernav-stub>
92+
93+
<cheadernav-stub
94+
class="mr-4"
95+
>
96+
<cheadernavitem-stub
97+
class="d-md-down-none mx-2"
98+
>
99+
<cheadernavlink-stub
100+
activeclass="active"
101+
event="click"
102+
exactactiveclass="active"
103+
innavitem="true"
104+
routertag="a"
105+
tag="span"
106+
target="_self"
107+
>
108+
<cicon-stub
109+
name="bell"
110+
/>
111+
</cheadernavlink-stub>
112+
</cheadernavitem-stub>
113+
114+
<cheadernavitem-stub
115+
class="d-md-down-none mx-2"
116+
>
117+
<cheadernavlink-stub
118+
activeclass="active"
119+
event="click"
120+
exactactiveclass="active"
121+
innavitem="true"
122+
routertag="a"
123+
tag="span"
124+
target="_self"
125+
>
126+
<cicon-stub
127+
name="list"
128+
/>
129+
</cheadernavlink-stub>
130+
</cheadernavitem-stub>
131+
132+
<cheadernavitem-stub
133+
class="d-md-down-none mx-2"
134+
>
135+
<cheadernavlink-stub
136+
activeclass="active"
137+
event="click"
138+
exactactiveclass="active"
139+
innavitem="true"
140+
routertag="a"
141+
tag="span"
142+
target="_self"
143+
>
144+
<cicon-stub
145+
name="envelope-open"
146+
/>
147+
</cheadernavlink-stub>
148+
</cheadernavitem-stub>
149+
150+
<theheaderdropdownaccnt-stub />
151+
</cheadernav-stub>
152+
153+
<csubheader-stub
154+
class="px-3"
155+
tag="div"
156+
>
157+
<cbreadcrumbrouter-stub
158+
class="border-0"
159+
/>
160+
</csubheader-stub>
161+
</cheader-stub>
162+
`;

0 commit comments

Comments
 (0)