refactor: minor code refactors and fixes, update packages
This commit is contained in:
Generated
+490
-615
File diff suppressed because it is too large
Load Diff
+16
-16
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@coreui/coreui-free-vue-admin-template",
|
"name": "@coreui/coreui-free-vue-admin-template",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "Open Source Bootstrap Admin Template",
|
"description": "Open Source Bootstrap Admin Template",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "CoreUI",
|
"name": "CoreUI",
|
||||||
@@ -27,29 +27,29 @@
|
|||||||
"release": "npm-run-all clearCache lint build test:unit test:e2e"
|
"release": "npm-run-all clearCache lint build test:unit test:e2e"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@coreui/coreui": "~3.0.0",
|
"@coreui/coreui": "^3.0.0",
|
||||||
"@coreui/icons": "~1.0.1",
|
"@coreui/icons": "^1.0.1",
|
||||||
"@coreui/utils": "~1.2.2",
|
"@coreui/utils": "^1.2.4",
|
||||||
"@coreui/vue": "~3.0.0",
|
"@coreui/vue": "^3.0.5",
|
||||||
"@coreui/vue-chartjs": "~1.0.3",
|
"@coreui/vue-chartjs": "^1.0.4",
|
||||||
"vue": "~2.6.11",
|
"vue": "~2.6.11",
|
||||||
"vue-router": "~3.1.5",
|
"vue-router": "~3.1.6",
|
||||||
"vuex": "~3.1.2"
|
"vuex": "~3.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "~7.8.4",
|
"@babel/core": "~7.8.7",
|
||||||
"@vue/cli-plugin-babel": "~4.2.2",
|
"@vue/cli-plugin-babel": "~4.2.3",
|
||||||
"@vue/cli-plugin-e2e-nightwatch": "~4.2.2",
|
"@vue/cli-plugin-e2e-nightwatch": "~4.2.3",
|
||||||
"@vue/cli-plugin-eslint": "~4.2.2",
|
"@vue/cli-plugin-eslint": "~4.2.3",
|
||||||
"@vue/cli-plugin-unit-jest": "~4.2.2",
|
"@vue/cli-plugin-unit-jest": "~4.2.3",
|
||||||
"@vue/cli-service": "~4.2.2",
|
"@vue/cli-service": "~4.2.3",
|
||||||
"@vue/test-utils": "1.0.0-beta.29",
|
"@vue/test-utils": "1.0.0-beta.29",
|
||||||
"babel-eslint": "~10.0.3",
|
"babel-eslint": "~10.1.0",
|
||||||
"babel-jest": "~25.1.0",
|
"babel-jest": "~25.1.0",
|
||||||
"chromedriver": "~80.0.1",
|
"chromedriver": "~80.0.1",
|
||||||
"core-js": "~3.6.4",
|
"core-js": "~3.6.4",
|
||||||
"eslint": "~6.8.0",
|
"eslint": "~6.8.0",
|
||||||
"eslint-plugin-vue": "~6.2.1",
|
"eslint-plugin-vue": "~6.2.2",
|
||||||
"node-sass": "~4.13.1",
|
"node-sass": "~4.13.1",
|
||||||
"npm-run-all": "~4.1.5",
|
"npm-run-all": "~4.1.5",
|
||||||
"sass-loader": "~8.0.2",
|
"sass-loader": "~8.0.2",
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// Example of SVG converted to js array, so it can be used with CIcon.
|
||||||
|
// the first argument is two last values of svg viewBox,
|
||||||
|
// the second argument is the SVG content stripped of SVG tags
|
||||||
export const logo = ['556 134',`
|
export const logo = ['556 134',`
|
||||||
<g>
|
<g>
|
||||||
<g style="fill:#1bbd93;">
|
<g style="fill:#1bbd93;">
|
||||||
@@ -23,4 +26,4 @@ export const logo = ['556 134',`
|
|||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
`];
|
`]
|
||||||
|
|||||||
@@ -7,11 +7,18 @@
|
|||||||
>
|
>
|
||||||
<CSidebarBrand class="d-md-down-none" to="/">
|
<CSidebarBrand class="d-md-down-none" to="/">
|
||||||
<CIcon
|
<CIcon
|
||||||
class="d-block"
|
class="c-sidebar-brand-full"
|
||||||
name="logo"
|
name="logo"
|
||||||
size="custom-size"
|
size="custom-size"
|
||||||
:height="35"
|
:height="35"
|
||||||
:viewBox="`0 0 ${minimize ? 110 : 556} 134`"
|
viewBox="0 0 556 134"
|
||||||
|
/>
|
||||||
|
<CIcon
|
||||||
|
class="c-sidebar-brand-minimized"
|
||||||
|
name="logo"
|
||||||
|
size="custom-size"
|
||||||
|
:height="35"
|
||||||
|
viewBox="0 0 110 134"
|
||||||
/>
|
/>
|
||||||
</CSidebarBrand>
|
</CSidebarBrand>
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import store from './store'
|
|||||||
|
|
||||||
Vue.config.performance = true
|
Vue.config.performance = true
|
||||||
Vue.use(CoreuiVue)
|
Vue.use(CoreuiVue)
|
||||||
|
Vue.prototype.$log = console.log.bind(console)
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CButton @click="collapse = !collapse" color="primary">
|
<CButton @click="collapse = !collapse" color="primary" class="mb-2">
|
||||||
Toggle Collapse
|
Toggle Collapse
|
||||||
</CButton>
|
</CButton>
|
||||||
<CCollapse :show="collapse" class="mt-2">
|
<CCollapse :show="collapse" :duration="400">
|
||||||
<CCard body-wrapper>
|
<CCard body-wrapper>
|
||||||
<CCardText>Collapse contents Here</CCardText>
|
<CCardText>Collapse contents Here</CCardText>
|
||||||
<CButton
|
<CButton
|
||||||
@@ -37,15 +37,20 @@
|
|||||||
</CCollapse>
|
</CCollapse>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
</CCard>
|
</CCard>
|
||||||
|
</CCol>
|
||||||
|
<CCol col="12" md="6">
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader @click.native="cardCollapse = !cardCollapse">
|
<CCardHeader
|
||||||
|
@click="cardCollapse = !cardCollapse"
|
||||||
|
class="btn text-left"
|
||||||
|
>
|
||||||
<strong>Collapsible card</strong>
|
<strong>Collapsible card</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCollapse :show="cardCollapse">
|
||||||
<CCollapse :show="cardCollapse" class="mt-2">
|
<CCardBody class="m-1">
|
||||||
<CCardText>Collapse contents Here</CCardText>
|
{{text}}
|
||||||
|
</CCardBody>
|
||||||
</CCollapse>
|
</CCollapse>
|
||||||
</CCardBody>
|
|
||||||
</CCard>
|
</CCard>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
|
|||||||
+11
-17
@@ -184,7 +184,7 @@
|
|||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
<template v-for="(name, key) in checkboxNames">
|
<template v-for="(name, key) in checkboxNames">
|
||||||
<div class="form-group form-row" :key="name">
|
<CRow form class="form-group" :key="name">
|
||||||
<CCol tag="label" sm="3" class="col-form-label">
|
<CCol tag="label" sm="3" class="col-form-label">
|
||||||
{{name}}
|
{{name}}
|
||||||
</CCol>
|
</CCol>
|
||||||
@@ -200,27 +200,21 @@
|
|||||||
:inline="key % 2 === 1"
|
:inline="key % 2 === 1"
|
||||||
/>
|
/>
|
||||||
</CCol>
|
</CCol>
|
||||||
</div>
|
</CRow>
|
||||||
</template>
|
</template>
|
||||||
<template v-for="(name, key) in radioNames">
|
<template v-for="(name, key) in radioNames">
|
||||||
<div class="form-row form-group" :key="name">
|
<CRow form class="form-group" :key="name">
|
||||||
<CCol sm="3">
|
<CCol sm="3">
|
||||||
{{name}}
|
{{name}}
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol sm="9" :class="key % 2 === 1 ? 'form-inline' : ''">
|
<CInputRadioGroup
|
||||||
<CInputRadio
|
class="col-sm-9"
|
||||||
v-for="(option, optionIndex) in options"
|
:options="options"
|
||||||
:key="key + option"
|
:custom="key > 1"
|
||||||
:label="option"
|
:checked="`Option ${key}`"
|
||||||
type="radio"
|
:inline="key % 2 === 1"
|
||||||
:value="option"
|
/>
|
||||||
:custom="key > 1"
|
</CRow>
|
||||||
:name="`Option 1${key}`"
|
|
||||||
:checked="optionIndex === key"
|
|
||||||
:inline="key % 2 === 1"
|
|
||||||
/>
|
|
||||||
</CCol>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<CInputFile
|
<CInputFile
|
||||||
label="File input"
|
label="File input"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
clickable-rows
|
clickable-rows
|
||||||
:active-page="activePage"
|
:active-page="activePage"
|
||||||
@row-clicked="rowClicked"
|
@row-clicked="rowClicked"
|
||||||
:pagination="{ doubleArrows: false, align: center}"
|
:pagination="{ doubleArrows: false, align: 'center'}"
|
||||||
@page-change="pageChange"
|
@page-change="pageChange"
|
||||||
>
|
>
|
||||||
<template #status="data">
|
<template #status="data">
|
||||||
|
|||||||
@@ -20,12 +20,20 @@ exports[`TheSidebar.vue renders correctly 1`] = `
|
|||||||
to="/"
|
to="/"
|
||||||
>
|
>
|
||||||
<cicon-stub
|
<cicon-stub
|
||||||
class="d-block"
|
class="c-sidebar-brand-full"
|
||||||
height="35"
|
height="35"
|
||||||
name="logo"
|
name="logo"
|
||||||
size="custom-size"
|
size="custom-size"
|
||||||
viewbox="0 0 556 134"
|
viewbox="0 0 556 134"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<cicon-stub
|
||||||
|
class="c-sidebar-brand-minimized"
|
||||||
|
height="35"
|
||||||
|
name="logo"
|
||||||
|
size="custom-size"
|
||||||
|
viewbox="0 0 110 134"
|
||||||
|
/>
|
||||||
</csidebarbrand-stub>
|
</csidebarbrand-stub>
|
||||||
|
|
||||||
<crenderfunction-stub
|
<crenderfunction-stub
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ exports[`Collapses.vue renders correctly 1`] = `
|
|||||||
class="card-body"
|
class="card-body"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="btn btn-primary"
|
class="btn mb-2 btn-primary"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ exports[`Collapses.vue renders correctly 1`] = `
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="mt-2"
|
class=""
|
||||||
style="display: none;"
|
style="display: none;"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -100,12 +100,16 @@ exports[`Collapses.vue renders correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="col-12 col-md-6"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="card"
|
class="card"
|
||||||
>
|
>
|
||||||
<header
|
<header
|
||||||
class="card-header"
|
class="card-header btn text-left"
|
||||||
>
|
>
|
||||||
<strong>
|
<strong>
|
||||||
Collapsible card
|
Collapsible card
|
||||||
@@ -113,16 +117,23 @@ exports[`Collapses.vue renders correctly 1`] = `
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="card-body"
|
class=""
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="mt-2"
|
class="card-body m-1"
|
||||||
>
|
>
|
||||||
<p
|
|
||||||
class="card-text"
|
|
||||||
>
|
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry
|
||||||
Collapse contents Here
|
richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor
|
||||||
</p>
|
brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon
|
||||||
|
tempor, sunt aliqua put a bird on it squid single-origin coffee nulla
|
||||||
|
assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore
|
||||||
|
wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher
|
||||||
|
vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic
|
||||||
|
synth nesciunt you probably haven't heard of them accusamus labore VHS.
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user