chore: update import paths and snapshots
This commit is contained in:
+3
-1
@@ -1,3 +1,5 @@
|
|||||||
|
const ignoredModules = ['@coreui/icons', '@coreui/utils'].join('|')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
moduleFileExtensions: [
|
moduleFileExtensions: [
|
||||||
'js',
|
'js',
|
||||||
@@ -10,7 +12,7 @@ module.exports = {
|
|||||||
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
|
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
|
||||||
'^.+\\.(js|jsx)?$': '<rootDir>/node_modules/babel-jest'
|
'^.+\\.(js|jsx)?$': '<rootDir>/node_modules/babel-jest'
|
||||||
},
|
},
|
||||||
transformIgnorePatterns: ['/node_modules/(?!@coreui/icons)'],
|
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${ignoredModules})`],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'^@/(.*)$': '<rootDir>/src/$1'
|
'^@/(.*)$': '<rootDir>/src/$1'
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartBar } from '@coreui/coreui-vue-chartjs'
|
import { CChartBar } from '@coreui/vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CChartBarExample',
|
name: 'CChartBarExample',
|
||||||
|
|||||||
@@ -7,8 +7,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartBar } from '@coreui/coreui-vue-chartjs'
|
import { CChartBar } from '@coreui/vue-chartjs'
|
||||||
import { getColor, deepObjectsMerge } from '@coreui/coreui/dist/js/coreui-utilities'
|
import { getColor, deepObjectsMerge } from '@coreui/utils/src'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CChartBarSimple',
|
name: 'CChartBarSimple',
|
||||||
components: { CChartBar },
|
components: { CChartBar },
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartDoughnut } from '@coreui/coreui-vue-chartjs'
|
import { CChartDoughnut } from '@coreui/vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CChartDoughnutExample',
|
name: 'CChartDoughnutExample',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartLine } from '@coreui/coreui-vue-chartjs'
|
import { CChartLine } from '@coreui/vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CChartLineExample',
|
name: 'CChartLineExample',
|
||||||
|
|||||||
@@ -7,8 +7,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartLine } from '@coreui/coreui-vue-chartjs'
|
import { CChartLine } from '@coreui/vue-chartjs'
|
||||||
import { getColor, deepObjectsMerge } from '@coreui/coreui/dist/js/coreui-utilities'
|
import { getColor, deepObjectsMerge } from '@coreui/utils/src'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CChartLineSimple',
|
name: 'CChartLineSimple',
|
||||||
components: { CChartLine },
|
components: { CChartLine },
|
||||||
@@ -48,19 +49,12 @@ export default {
|
|||||||
data: this.dataPoints,
|
data: this.dataPoints,
|
||||||
borderColor: getColor(this.borderColor),
|
borderColor: getColor(this.borderColor),
|
||||||
backgroundColor: getColor(this.backgroundColor),
|
backgroundColor: getColor(this.backgroundColor),
|
||||||
pointBackgroundColor: this.pointBackgroundColor,
|
pointBackgroundColor: getColor(this.pointHoverColor),
|
||||||
pointHoverBackgroundColor: getColor(this.pointHoverColor),
|
pointHoverBackgroundColor: getColor(this.pointHoverColor),
|
||||||
label: this.label
|
label: this.label
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
pointBackgroundColor () {
|
|
||||||
if (this.backgroundColor === 'transparent') {
|
|
||||||
return '#fff'
|
|
||||||
} else {
|
|
||||||
return getColor(this.backgroundColor)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
pointedOptions () {
|
pointedOptions () {
|
||||||
return {
|
return {
|
||||||
scales: {
|
scales: {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartPie } from '@coreui/coreui-vue-chartjs'
|
import { CChartPie } from '@coreui/vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CChartPieExample',
|
name: 'CChartPieExample',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartPolarArea } from '@coreui/coreui-vue-chartjs'
|
import { CChartPolarArea } from '@coreui/vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CChartPolarAreaExample',
|
name: 'CChartPolarAreaExample',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartRadar } from '@coreui/coreui-vue-chartjs'
|
import { CChartRadar } from '@coreui/vue-chartjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CChartRadarExample',
|
name: 'CChartRadarExample',
|
||||||
|
|||||||
@@ -56,9 +56,9 @@
|
|||||||
</CCardGroup>
|
</CCardGroup>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as Charts from './index.js'
|
import * as Charts from './index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Charts',
|
name: 'Charts',
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CChartLine } from '@coreui/coreui-vue-chartjs'
|
import { CChartLine } from '@coreui/vue-chartjs'
|
||||||
import { getColor, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'
|
import { getColor, hexToRgba } from '@coreui/utils/src'
|
||||||
|
|
||||||
function random (min, max) {
|
function random (min, max) {
|
||||||
return Math.floor(Math.random() * (max - min + 1) + min)
|
return Math.floor(Math.random() * (max - min + 1) + min)
|
||||||
|
|||||||
@@ -7,6 +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"
|
||||||
placement="bottom-end"
|
placement="bottom-end"
|
||||||
togglertext="Dropdown"
|
togglertext="Dropdown"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ exports[`Navbars.vue renders correctly 1`] = `
|
|||||||
caret="true"
|
caret="true"
|
||||||
flip="true"
|
flip="true"
|
||||||
innav="true"
|
innav="true"
|
||||||
|
offset="0"
|
||||||
placement="bottom-end"
|
placement="bottom-end"
|
||||||
togglertext="Lang"
|
togglertext="Lang"
|
||||||
>
|
>
|
||||||
@@ -169,6 +170,7 @@ exports[`Navbars.vue renders correctly 1`] = `
|
|||||||
caret="true"
|
caret="true"
|
||||||
flip="true"
|
flip="true"
|
||||||
innav="true"
|
innav="true"
|
||||||
|
offset="0"
|
||||||
placement="bottom-end"
|
placement="bottom-end"
|
||||||
togglertext="User"
|
togglertext="User"
|
||||||
>
|
>
|
||||||
@@ -358,6 +360,7 @@ exports[`Navbars.vue renders correctly 1`] = `
|
|||||||
caret="true"
|
caret="true"
|
||||||
flip="true"
|
flip="true"
|
||||||
innav="true"
|
innav="true"
|
||||||
|
offset="0"
|
||||||
placement="bottom-end"
|
placement="bottom-end"
|
||||||
togglertext="Lang"
|
togglertext="Lang"
|
||||||
>
|
>
|
||||||
@@ -406,6 +409,7 @@ exports[`Navbars.vue renders correctly 1`] = `
|
|||||||
caret="true"
|
caret="true"
|
||||||
flip="true"
|
flip="true"
|
||||||
innav="true"
|
innav="true"
|
||||||
|
offset="0"
|
||||||
placement="bottom-end"
|
placement="bottom-end"
|
||||||
togglertext="User"
|
togglertext="User"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -453,6 +453,7 @@ exports[`Navs.vue renders correctly 1`] = `
|
|||||||
flip="true"
|
flip="true"
|
||||||
id="nav7_ddown"
|
id="nav7_ddown"
|
||||||
nav=""
|
nav=""
|
||||||
|
offset="0"
|
||||||
placement="bottom-end"
|
placement="bottom-end"
|
||||||
togglertext="Dropdown"
|
togglertext="Dropdown"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -381,6 +381,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
|
|||||||
caret="true"
|
caret="true"
|
||||||
color="success"
|
color="success"
|
||||||
flip="true"
|
flip="true"
|
||||||
|
offset="0"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
right=""
|
right=""
|
||||||
text="Menu"
|
text="Menu"
|
||||||
@@ -438,6 +439,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
|
|||||||
caret="true"
|
caret="true"
|
||||||
color="info"
|
color="info"
|
||||||
flip="true"
|
flip="true"
|
||||||
|
offset="0"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
right=""
|
right=""
|
||||||
split="true"
|
split="true"
|
||||||
@@ -807,6 +809,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
|
|||||||
class="mx-1"
|
class="mx-1"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
flip="true"
|
flip="true"
|
||||||
|
offset="0"
|
||||||
placement="bottom-end"
|
placement="bottom-end"
|
||||||
togglertext="Dropdown"
|
togglertext="Dropdown"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user