Skip to content

Commit f0533a9

Browse files
committed
refactor: view refactors, snapshot update
1 parent d57a73a commit f0533a9

24 files changed

+152
-393
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Inspired by Sparkbox's awesome article on [semantic commit messages](http://sees
144144
- fix (bug fix) -> ```git commit -m 'fix: commit-message-here'```
145145
- refactor (refactoring production code) -> ```git commit -m 'refactor: commit-message-here'```
146146
- style (formatting, missing semi colons, etc; no code change) -> ```git commit -m 'style: commit-message-here'```
147-
- test (adding missing tests, refactoring tests; no production code change) -> ```git test -m 'refactor: commit-message-here'```
147+
- test (adding missing tests, refactoring tests; no production code change) -> ```git commit -m 'test: commit-message-here'```
148148

149149
## Code guidelines
150150

src/containers/TheFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<CFooter>
33
<div>
44
<a href="https://coreui.io" target="_blank">CoreUI</a>
5-
<span class="ml-1">&copy; 2019 creativeLabs.</span>
5+
<span class="ml-1">&copy; 2020 creativeLabs.</span>
66
</div>
77
<div class="ml-auto">
88
<span class="mr-1">Powered by</span>

src/views/base/Navbars.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,20 @@
3030

3131
<!-- Right aligned nav items -->
3232
<CNavbarNav class="ml-auto">
33-
<CForm inline>
33+
<CForm inline class="align-middle">
3434
<CInput
35-
class="mr-sm-2"
35+
class="mr-2 my-0"
3636
placeholder="Search"
3737
size="sm"
3838
/>
39-
<CButton color="light" size="sm" class="my-2 my-sm-0">
39+
<CButton color="light" size="sm">
4040
Search
4141
</CButton>
4242
</CForm>
4343

4444
<CDropdown
4545
toggler-text="Lang"
4646
in-nav
47-
placement="bottom-end"
4847
>
4948
<CDropdownItem>EN</CDropdownItem>
5049
<CDropdownItem>ES</CDropdownItem>
@@ -55,7 +54,6 @@
5554
<CDropdown
5655
in-nav
5756
toggler-text="User"
58-
placement="bottom-end"
5957
>
6058
<CDropdownItem>Profile</CDropdownItem>
6159
<CDropdownItem>Signout</CDropdownItem>
@@ -112,7 +110,6 @@
112110
<!-- Navbar dropdowns -->
113111
<CDropdown
114112
toggler-text="Lang"
115-
placement="bottom-end"
116113
in-nav
117114
>
118115
<CDropdownItem>EN</CDropdownItem>
@@ -122,7 +119,6 @@
122119
</CDropdown>
123120
<CDropdown
124121
toggler-text="User"
125-
placement="bottom-end"
126122
in-nav
127123
>
128124
<CDropdownItem>Account</CDropdownItem>
@@ -176,7 +172,7 @@ export default {
176172
return {
177173
show: false,
178174
navbarText: false,
179-
navbarDropdown: false,
175+
navbarDropdown: false
180176
}
181177
}
182178
}

src/views/buttons/Dropdowns.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<div>
112112
<CDropdown
113113
color="secondary"
114-
:offset="25"
114+
:offset="[10, 5]"
115115
toggler-text="Offset Dropdown"
116116
class="m-2"
117117
>

src/views/charts/CChartRadarExample.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
defaultDatasets () {
2020
return [
2121
{
22-
label: '2017',
22+
label: '2019',
2323
backgroundColor: 'rgba(179,181,198,0.2)',
2424
borderColor: 'rgba(179,181,198,1)',
2525
pointBackgroundColor: 'rgba(179,181,198,1)',
@@ -30,7 +30,7 @@ export default {
3030
data: [65, 59, 90, 81, 56, 55, 40]
3131
},
3232
{
33-
label: '2018',
33+
label: '2020',
3434
backgroundColor: 'rgba(255,99,132,0.2)',
3535
borderColor: 'rgba(255,99,132,1)',
3636
pointBackgroundColor: 'rgba(255,99,132,1)',

src/views/notifications/Alerts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export default {
188188
this.dismissCountDown = this.dismissSecs
189189
},
190190
showDismissibleAlerts () {
191-
['alert1', 'alert2', 'alert3'].forEach(alert => this[alert] = true)
191+
['alert1', 'alert2'].forEach(alert => this[alert] = true)
192192
}
193193
}
194194
}

tests/unit/containers/__snapshots__/TheFooter.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports[`TheFooter.vue renders correctly 1`] = `
1616
<span
1717
class="ml-1"
1818
>
19-
© 2019 creativeLabs.
19+
© 2020 creativeLabs.
2020
</span>
2121
</div>
2222

tests/unit/containers/__snapshots__/TheHeaderDropdownAccnt.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`TheHeaderDropdownAccnt.vue renders correctly 1`] = `
77
class="c-header-nav-items"
88
flip="true"
99
innav="true"
10-
offset="0"
10+
offset="0,0"
1111
placement="bottom-end"
1212
togglertext="Dropdown"
1313
>

tests/unit/views/__snapshots__/Dashboard.spec.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@ exports[`Dashboard.vue renders correctly 1`] = `
950950
class="mb-0 table-outline"
951951
fields="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
952952
head-color="light"
953+
header="true"
953954
hover="true"
954955
items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
955956
itemsperpage="10"

tests/unit/views/base/__snapshots__/Breadcrumbs.spec.js.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ exports[`Breadcrumbs.vue renders correctly 1`] = `
1515
>
1616
<svg
1717
class="c-icon"
18+
role="img"
1819
viewBox="0 0 64 64"
1920
xmlns="http://www.w3.org/2000/svg"
2021
>
21-
<title>
22-
cilJustifyCenter
23-
</title>
2422
undefined
2523
</svg>
2624
<strong>

0 commit comments

Comments
 (0)