Skip to content

Commit 0d2b619

Browse files
committed
refactor: minor code refactors and fixes, update packages
1 parent e1972c2 commit 0d2b619

File tree

10 files changed

+575
-671
lines changed

10 files changed

+575
-671
lines changed

Diff for: package-lock.json

+490-615
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-vue-admin-template",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Open Source Bootstrap Admin Template",
55
"author": {
66
"name": "CoreUI",
@@ -27,29 +27,29 @@
2727
"release": "npm-run-all clearCache lint build test:unit test:e2e"
2828
},
2929
"dependencies": {
30-
"@coreui/coreui": "~3.0.0",
31-
"@coreui/icons": "~1.0.1",
32-
"@coreui/utils": "~1.2.2",
33-
"@coreui/vue": "~3.0.0",
34-
"@coreui/vue-chartjs": "~1.0.3",
30+
"@coreui/coreui": "^3.0.0",
31+
"@coreui/icons": "^1.0.1",
32+
"@coreui/utils": "^1.2.4",
33+
"@coreui/vue": "^3.0.5",
34+
"@coreui/vue-chartjs": "^1.0.4",
3535
"vue": "~2.6.11",
36-
"vue-router": "~3.1.5",
37-
"vuex": "~3.1.2"
36+
"vue-router": "~3.1.6",
37+
"vuex": "~3.1.3"
3838
},
3939
"devDependencies": {
40-
"@babel/core": "~7.8.4",
41-
"@vue/cli-plugin-babel": "~4.2.2",
42-
"@vue/cli-plugin-e2e-nightwatch": "~4.2.2",
43-
"@vue/cli-plugin-eslint": "~4.2.2",
44-
"@vue/cli-plugin-unit-jest": "~4.2.2",
45-
"@vue/cli-service": "~4.2.2",
40+
"@babel/core": "~7.8.7",
41+
"@vue/cli-plugin-babel": "~4.2.3",
42+
"@vue/cli-plugin-e2e-nightwatch": "~4.2.3",
43+
"@vue/cli-plugin-eslint": "~4.2.3",
44+
"@vue/cli-plugin-unit-jest": "~4.2.3",
45+
"@vue/cli-service": "~4.2.3",
4646
"@vue/test-utils": "1.0.0-beta.29",
47-
"babel-eslint": "~10.0.3",
47+
"babel-eslint": "~10.1.0",
4848
"babel-jest": "~25.1.0",
4949
"chromedriver": "~80.0.1",
5050
"core-js": "~3.6.4",
5151
"eslint": "~6.8.0",
52-
"eslint-plugin-vue": "~6.2.1",
52+
"eslint-plugin-vue": "~6.2.2",
5353
"node-sass": "~4.13.1",
5454
"npm-run-all": "~4.1.5",
5555
"sass-loader": "~8.0.2",

Diff for: src/assets/icons/logo.js

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/containers/TheSidebar.vue

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@
77
>
88
<CSidebarBrand class="d-md-down-none" to="/">
99
<CIcon
10-
class="d-block"
10+
class="c-sidebar-brand-full"
1111
name="logo"
1212
size="custom-size"
1313
:height="35"
14-
:viewBox="`0 0 ${minimize ? 110 : 556} 134`"
14+
viewBox="0 0 556 134"
15+
/>
16+
<CIcon
17+
class="c-sidebar-brand-minimized"
18+
name="logo"
19+
size="custom-size"
20+
:height="35"
21+
viewBox="0 0 110 134"
1522
/>
1623
</CSidebarBrand>
1724

Diff for: src/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import store from './store'
88

99
Vue.config.performance = true
1010
Vue.use(CoreuiVue)
11+
Vue.prototype.$log = console.log.bind(console)
1112

1213
new Vue({
1314
el: '#app',

Diff for: src/views/base/Collapses.vue

+12-7
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
</div>
1818
</CCardHeader>
1919
<CCardBody>
20-
<CButton @click="collapse = !collapse" color="primary">
20+
<CButton @click="collapse = !collapse" color="primary" class="mb-2">
2121
Toggle Collapse
2222
</CButton>
23-
<CCollapse :show="collapse" class="mt-2">
23+
<CCollapse :show="collapse" :duration="400">
2424
<CCard body-wrapper>
2525
<CCardText>Collapse contents Here</CCardText>
2626
<CButton
@@ -37,15 +37,20 @@
3737
</CCollapse>
3838
</CCardBody>
3939
</CCard>
40+
</CCol>
41+
<CCol col="12" md="6">
4042
<CCard>
41-
<CCardHeader @click.native="cardCollapse = !cardCollapse">
43+
<CCardHeader
44+
@click="cardCollapse = !cardCollapse"
45+
class="btn text-left"
46+
>
4247
<strong>Collapsible card</strong>
4348
</CCardHeader>
44-
<CCardBody>
45-
<CCollapse :show="cardCollapse" class="mt-2">
46-
<CCardText>Collapse contents Here</CCardText>
49+
<CCollapse :show="cardCollapse">
50+
<CCardBody class="m-1">
51+
{{text}}
52+
</CCardBody>
4753
</CCollapse>
48-
</CCardBody>
4954
</CCard>
5055
</CCol>
5156
</CRow>

Diff for: src/views/base/Forms.vue

+11-17
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
disabled
185185
/>
186186
<template v-for="(name, key) in checkboxNames">
187-
<div class="form-group form-row" :key="name">
187+
<CRow form class="form-group" :key="name">
188188
<CCol tag="label" sm="3" class="col-form-label">
189189
{{name}}
190190
</CCol>
@@ -200,27 +200,21 @@
200200
:inline="key % 2 === 1"
201201
/>
202202
</CCol>
203-
</div>
203+
</CRow>
204204
</template>
205205
<template v-for="(name, key) in radioNames">
206-
<div class="form-row form-group" :key="name">
206+
<CRow form class="form-group" :key="name">
207207
<CCol sm="3">
208208
{{name}}
209209
</CCol>
210-
<CCol sm="9" :class="key % 2 === 1 ? 'form-inline' : ''">
211-
<CInputRadio
212-
v-for="(option, optionIndex) in options"
213-
:key="key + option"
214-
:label="option"
215-
type="radio"
216-
:value="option"
217-
:custom="key > 1"
218-
:name="`Option 1${key}`"
219-
:checked="optionIndex === key"
220-
:inline="key % 2 === 1"
221-
/>
222-
</CCol>
223-
</div>
210+
<CInputRadioGroup
211+
class="col-sm-9"
212+
:options="options"
213+
:custom="key > 1"
214+
:checked="`Option ${key}`"
215+
:inline="key % 2 === 1"
216+
/>
217+
</CRow>
224218
</template>
225219
<CInputFile
226220
label="File input"

Diff for: src/views/users/Users.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
clickable-rows
1616
:active-page="activePage"
1717
@row-clicked="rowClicked"
18-
:pagination="{ doubleArrows: false, align: center}"
18+
:pagination="{ doubleArrows: false, align: 'center'}"
1919
@page-change="pageChange"
2020
>
2121
<template #status="data">

Diff for: tests/unit/containers/__snapshots__/TheSidebar.spec.js.snap

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,20 @@ exports[`TheSidebar.vue renders correctly 1`] = `
2020
to="/"
2121
>
2222
<cicon-stub
23-
class="d-block"
23+
class="c-sidebar-brand-full"
2424
height="35"
2525
name="logo"
2626
size="custom-size"
2727
viewbox="0 0 556 134"
2828
/>
29+
30+
<cicon-stub
31+
class="c-sidebar-brand-minimized"
32+
height="35"
33+
name="logo"
34+
size="custom-size"
35+
viewbox="0 0 110 134"
36+
/>
2937
</csidebarbrand-stub>
3038
3139
<crenderfunction-stub

Diff for: tests/unit/views/base/__snapshots__/Collapses.spec.js.snap

+22-11
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ exports[`Collapses.vue renders correctly 1`] = `
4848
class="card-body"
4949
>
5050
<button
51-
class="btn btn-primary"
51+
class="btn mb-2 btn-primary"
5252
type="button"
5353
>
5454
@@ -57,7 +57,7 @@ exports[`Collapses.vue renders correctly 1`] = `
5757
</button>
5858
5959
<div
60-
class="mt-2"
60+
class=""
6161
style="display: none;"
6262
>
6363
<div
@@ -100,29 +100,40 @@ exports[`Collapses.vue renders correctly 1`] = `
100100
</div>
101101
</div>
102102
</div>
103-
103+
</div>
104+
105+
<div
106+
class="col-12 col-md-6"
107+
>
104108
<div
105109
class="card"
106110
>
107111
<header
108-
class="card-header"
112+
class="card-header btn text-left"
109113
>
110114
<strong>
111115
Collapsible card
112116
</strong>
113117
</header>
114118
115119
<div
116-
class="card-body"
120+
class=""
117121
>
118122
<div
119-
class="mt-2"
123+
class="card-body m-1"
120124
>
121-
<p
122-
class="card-text"
123-
>
124-
Collapse contents Here
125-
</p>
125+
126+
127+
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry
128+
richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor
129+
brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon
130+
tempor, sunt aliqua put a bird on it squid single-origin coffee nulla
131+
assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore
132+
wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher
133+
vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic
134+
synth nesciunt you probably haven't heard of them accusamus labore VHS.
135+
136+
126137
</div>
127138
</div>
128139
</div>

0 commit comments

Comments
 (0)