refactor: view refactors, snapshot update

This commit is contained in:
woothu
2020-01-29 16:31:11 +01:00
parent d57a73a8a1
commit f0533a9b2e
24 changed files with 152 additions and 393 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ Inspired by Sparkbox's awesome article on [semantic commit messages](http://sees
- fix (bug fix) -> ```git commit -m 'fix: commit-message-here'``` - fix (bug fix) -> ```git commit -m 'fix: commit-message-here'```
- refactor (refactoring production code) -> ```git commit -m 'refactor: commit-message-here'``` - refactor (refactoring production code) -> ```git commit -m 'refactor: commit-message-here'```
- style (formatting, missing semi colons, etc; no code change) -> ```git commit -m 'style: commit-message-here'``` - style (formatting, missing semi colons, etc; no code change) -> ```git commit -m 'style: commit-message-here'```
- test (adding missing tests, refactoring tests; no production code change) -> ```git test -m 'refactor: commit-message-here'``` - test (adding missing tests, refactoring tests; no production code change) -> ```git commit -m 'test: commit-message-here'```
## Code guidelines ## Code guidelines
+1 -1
View File
@@ -2,7 +2,7 @@
<CFooter> <CFooter>
<div> <div>
<a href="https://coreui.io" target="_blank">CoreUI</a> <a href="https://coreui.io" target="_blank">CoreUI</a>
<span class="ml-1">&copy; 2019 creativeLabs.</span> <span class="ml-1">&copy; 2020 creativeLabs.</span>
</div> </div>
<div class="ml-auto"> <div class="ml-auto">
<span class="mr-1">Powered by</span> <span class="mr-1">Powered by</span>
+4 -8
View File
@@ -30,13 +30,13 @@
<!-- Right aligned nav items --> <!-- Right aligned nav items -->
<CNavbarNav class="ml-auto"> <CNavbarNav class="ml-auto">
<CForm inline> <CForm inline class="align-middle">
<CInput <CInput
class="mr-sm-2" class="mr-2 my-0"
placeholder="Search" placeholder="Search"
size="sm" size="sm"
/> />
<CButton color="light" size="sm" class="my-2 my-sm-0"> <CButton color="light" size="sm">
Search Search
</CButton> </CButton>
</CForm> </CForm>
@@ -44,7 +44,6 @@
<CDropdown <CDropdown
toggler-text="Lang" toggler-text="Lang"
in-nav in-nav
placement="bottom-end"
> >
<CDropdownItem>EN</CDropdownItem> <CDropdownItem>EN</CDropdownItem>
<CDropdownItem>ES</CDropdownItem> <CDropdownItem>ES</CDropdownItem>
@@ -55,7 +54,6 @@
<CDropdown <CDropdown
in-nav in-nav
toggler-text="User" toggler-text="User"
placement="bottom-end"
> >
<CDropdownItem>Profile</CDropdownItem> <CDropdownItem>Profile</CDropdownItem>
<CDropdownItem>Signout</CDropdownItem> <CDropdownItem>Signout</CDropdownItem>
@@ -112,7 +110,6 @@
<!-- Navbar dropdowns --> <!-- Navbar dropdowns -->
<CDropdown <CDropdown
toggler-text="Lang" toggler-text="Lang"
placement="bottom-end"
in-nav in-nav
> >
<CDropdownItem>EN</CDropdownItem> <CDropdownItem>EN</CDropdownItem>
@@ -122,7 +119,6 @@
</CDropdown> </CDropdown>
<CDropdown <CDropdown
toggler-text="User" toggler-text="User"
placement="bottom-end"
in-nav in-nav
> >
<CDropdownItem>Account</CDropdownItem> <CDropdownItem>Account</CDropdownItem>
@@ -176,7 +172,7 @@ export default {
return { return {
show: false, show: false,
navbarText: false, navbarText: false,
navbarDropdown: false, navbarDropdown: false
} }
} }
} }
+1 -1
View File
@@ -111,7 +111,7 @@
<div> <div>
<CDropdown <CDropdown
color="secondary" color="secondary"
:offset="25" :offset="[10, 5]"
toggler-text="Offset Dropdown" toggler-text="Offset Dropdown"
class="m-2" class="m-2"
> >
+2 -2
View File
@@ -19,7 +19,7 @@ export default {
defaultDatasets () { defaultDatasets () {
return [ return [
{ {
label: '2017', label: '2019',
backgroundColor: 'rgba(179,181,198,0.2)', backgroundColor: 'rgba(179,181,198,0.2)',
borderColor: 'rgba(179,181,198,1)', borderColor: 'rgba(179,181,198,1)',
pointBackgroundColor: 'rgba(179,181,198,1)', pointBackgroundColor: 'rgba(179,181,198,1)',
@@ -30,7 +30,7 @@ export default {
data: [65, 59, 90, 81, 56, 55, 40] data: [65, 59, 90, 81, 56, 55, 40]
}, },
{ {
label: '2018', label: '2020',
backgroundColor: 'rgba(255,99,132,0.2)', backgroundColor: 'rgba(255,99,132,0.2)',
borderColor: 'rgba(255,99,132,1)', borderColor: 'rgba(255,99,132,1)',
pointBackgroundColor: 'rgba(255,99,132,1)', pointBackgroundColor: 'rgba(255,99,132,1)',
+1 -1
View File
@@ -188,7 +188,7 @@ export default {
this.dismissCountDown = this.dismissSecs this.dismissCountDown = this.dismissSecs
}, },
showDismissibleAlerts () { showDismissibleAlerts () {
['alert1', 'alert2', 'alert3'].forEach(alert => this[alert] = true) ['alert1', 'alert2'].forEach(alert => this[alert] = true)
} }
} }
} }
@@ -16,7 +16,7 @@ exports[`TheFooter.vue renders correctly 1`] = `
<span <span
class="ml-1" class="ml-1"
> >
© 2019 creativeLabs. © 2020 creativeLabs.
</span> </span>
</div> </div>
@@ -7,7 +7,7 @@ exports[`TheHeaderDropdownAccnt.vue renders correctly 1`] = `
class="c-header-nav-items" class="c-header-nav-items"
flip="true" flip="true"
innav="true" innav="true"
offset="0" offset="0,0"
placement="bottom-end" placement="bottom-end"
togglertext="Dropdown" togglertext="Dropdown"
> >
@@ -950,6 +950,7 @@ exports[`Dashboard.vue renders correctly 1`] = `
class="mb-0 table-outline" class="mb-0 table-outline"
fields="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" fields="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
head-color="light" head-color="light"
header="true"
hover="true" hover="true"
items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
itemsperpage="10" itemsperpage="10"
@@ -15,12 +15,10 @@ exports[`Breadcrumbs.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
<strong> <strong>
@@ -76,12 +76,10 @@ exports[`Cards.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilCheck
</title>
undefined undefined
</svg> </svg>
Card with icon Card with icon
@@ -729,12 +727,10 @@ exports[`Cards.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilSettings
</title>
undefined undefined
</svg> </svg>
</a> </a>
@@ -746,12 +742,10 @@ exports[`Cards.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilChevronBottom
</title>
undefined undefined
</svg> </svg>
</a> </a>
@@ -763,12 +757,10 @@ exports[`Cards.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilXCircle
</title>
undefined undefined
</svg> </svg>
</a> </a>
@@ -15,12 +15,10 @@ exports[`Carousels.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -15,12 +15,10 @@ exports[`Collapses.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -90,10 +90,11 @@ exports[`Navbars.vue renders correctly 1`] = `
tag="ul" tag="ul"
> >
<cform-stub <cform-stub
class="align-middle"
inline="true" inline="true"
> >
<cinput-stub <cinput-stub
class="mr-sm-2" class="mr-2 my-0"
lazy="400" lazy="400"
placeholder="Search" placeholder="Search"
size="sm" size="sm"
@@ -102,7 +103,6 @@ exports[`Navbars.vue renders correctly 1`] = `
<cbutton-stub <cbutton-stub
activeclass="active" activeclass="active"
class="my-2 my-sm-0"
color="light" color="light"
event="click" event="click"
exactactiveclass="active" exactactiveclass="active"
@@ -121,8 +121,8 @@ exports[`Navbars.vue renders correctly 1`] = `
caret="true" caret="true"
flip="true" flip="true"
innav="true" innav="true"
offset="0" offset="0,0"
placement="bottom-end" placement="bottom-start"
togglertext="Lang" togglertext="Lang"
> >
<cdropdownitem-stub <cdropdownitem-stub
@@ -170,8 +170,8 @@ exports[`Navbars.vue renders correctly 1`] = `
caret="true" caret="true"
flip="true" flip="true"
innav="true" innav="true"
offset="0" offset="0,0"
placement="bottom-end" placement="bottom-start"
togglertext="User" togglertext="User"
> >
<cdropdownitem-stub <cdropdownitem-stub
@@ -360,8 +360,8 @@ exports[`Navbars.vue renders correctly 1`] = `
caret="true" caret="true"
flip="true" flip="true"
innav="true" innav="true"
offset="0" offset="0,0"
placement="bottom-end" placement="bottom-start"
togglertext="Lang" togglertext="Lang"
> >
<cdropdownitem-stub <cdropdownitem-stub
@@ -409,8 +409,8 @@ exports[`Navbars.vue renders correctly 1`] = `
caret="true" caret="true"
flip="true" flip="true"
innav="true" innav="true"
offset="0" offset="0,0"
placement="bottom-end" placement="bottom-start"
togglertext="User" togglertext="User"
> >
<cdropdownitem-stub <cdropdownitem-stub
@@ -453,7 +453,7 @@ exports[`Navs.vue renders correctly 1`] = `
flip="true" flip="true"
id="nav7_ddown" id="nav7_ddown"
nav="" nav=""
offset="0" offset="0,0"
placement="bottom-end" placement="bottom-end"
togglertext="Dropdown" togglertext="Dropdown"
> >
@@ -1684,6 +1684,7 @@ exports[`Switches.vue renders correctly 1`] = `
<cdatatable-stub <cdatatable-stub
class="table-align-middle mb-0" class="table-align-middle mb-0"
fields="[object Object],[object Object],[object Object]" fields="[object Object],[object Object],[object Object]"
header="true"
hover="true" hover="true"
items="[object Object],[object Object],[object Object]" items="[object Object],[object Object],[object Object]"
itemsperpage="10" itemsperpage="10"
@@ -13,6 +13,7 @@ exports[`Table.vue renders correctly 1`] = `
<ccardbody-stub> <ccardbody-stub>
<cdatatable-stub <cdatatable-stub
fields="username,registered,role,status" fields="username,registered,role,status"
header="true"
itemsperpage="5" itemsperpage="5"
pagination="true" pagination="true"
responsive="true" responsive="true"
File diff suppressed because it is too large Load Diff
@@ -16,12 +16,10 @@ exports[`Dropdowns.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -229,12 +227,10 @@ exports[`Dropdowns.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -498,12 +494,10 @@ exports[`Dropdowns.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -586,12 +580,10 @@ exports[`Dropdowns.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -809,12 +801,10 @@ exports[`Dropdowns.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -939,12 +929,10 @@ exports[`Dropdowns.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -381,7 +381,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
caret="true" caret="true"
color="success" color="success"
flip="true" flip="true"
offset="0" offset="0,0"
placement="bottom-start" placement="bottom-start"
right="" right=""
text="Menu" text="Menu"
@@ -439,7 +439,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
caret="true" caret="true"
color="info" color="info"
flip="true" flip="true"
offset="0" offset="0,0"
placement="bottom-start" placement="bottom-start"
right="" right=""
split="true" split="true"
@@ -809,7 +809,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
class="mx-1" class="mx-1"
color="secondary" color="secondary"
flip="true" flip="true"
offset="0" offset="0,0"
placement="bottom-end" placement="bottom-end"
togglertext="Dropdown" togglertext="Dropdown"
> >
@@ -15,12 +15,10 @@ exports[`Badges.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
@@ -126,12 +124,10 @@ exports[`Badges.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
Badge Badge
@@ -202,12 +198,10 @@ exports[`Badges.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
Badge Badge
@@ -278,12 +272,10 @@ exports[`Badges.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilJustifyCenter
</title>
undefined undefined
</svg> </svg>
Badge Badge
@@ -10,12 +10,10 @@ exports[`Colors.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilDrop
</title>
undefined undefined
</svg> </svg>
Theme colors Theme colors
@@ -415,12 +413,10 @@ exports[`Colors.vue renders correctly 1`] = `
> >
<svg <svg
class="c-icon" class="c-icon"
role="img"
viewBox="0 0 64 64" viewBox="0 0 64 64"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
> >
<title>
cilDrop
</title>
undefined undefined
</svg> </svg>
Grays Grays
@@ -21,6 +21,7 @@ exports[`User.vue renders correctly 1`] = `
<cdatatable-stub <cdatatable-stub
fields="[object Object],[object Object]" fields="[object Object],[object Object]"
fixed="true" fixed="true"
header="true"
items="[object Object]" items="[object Object]"
itemsperpage="10" itemsperpage="10"
responsive="true" responsive="true"
@@ -23,6 +23,7 @@ exports[`Users.vue renders correctly 1`] = `
<cdatatable-stub <cdatatable-stub
clickablerows="true" clickablerows="true"
fields="[object Object],[object Object],[object Object],[object Object]" fields="[object Object],[object Object],[object Object],[object Object]"
header="true"
hover="true" hover="true"
index-column="" index-column=""
items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"