Skip to content

Commit 860d8d5

Browse files
committed
chore: update import paths and snapshots
1 parent 20a24e9 commit 860d8d5

15 files changed

+28
-22
lines changed

jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const ignoredModules = ['@coreui/icons', '@coreui/utils'].join('|')
2+
13
module.exports = {
24
moduleFileExtensions: [
35
'js',
@@ -10,7 +12,7 @@ module.exports = {
1012
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
1113
'^.+\\.(js|jsx)?$': '<rootDir>/node_modules/babel-jest'
1214
},
13-
transformIgnorePatterns: ['/node_modules/(?!@coreui/icons)'],
15+
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${ignoredModules})`],
1416
moduleNameMapper: {
1517
'^@/(.*)$': '<rootDir>/src/$1'
1618
},

src/views/charts/CChartBarExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import { CChartBar } from '@coreui/coreui-vue-chartjs'
9+
import { CChartBar } from '@coreui/vue-chartjs'
1010
1111
export default {
1212
name: 'CChartBarExample',

src/views/charts/CChartBarSimple.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
</template>
88

99
<script>
10-
import { CChartBar } from '@coreui/coreui-vue-chartjs'
11-
import { getColor, deepObjectsMerge } from '@coreui/coreui/dist/js/coreui-utilities'
10+
import { CChartBar } from '@coreui/vue-chartjs'
11+
import { getColor, deepObjectsMerge } from '@coreui/utils/src'
12+
1213
export default {
1314
name: 'CChartBarSimple',
1415
components: { CChartBar },

src/views/charts/CChartDoughnutExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import { CChartDoughnut } from '@coreui/coreui-vue-chartjs'
9+
import { CChartDoughnut } from '@coreui/vue-chartjs'
1010
1111
export default {
1212
name: 'CChartDoughnutExample',

src/views/charts/CChartLineExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import { CChartLine } from '@coreui/coreui-vue-chartjs'
9+
import { CChartLine } from '@coreui/vue-chartjs'
1010
1111
export default {
1212
name: 'CChartLineExample',

src/views/charts/CChartLineSimple.vue

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
</template>
88

99
<script>
10-
import { CChartLine } from '@coreui/coreui-vue-chartjs'
11-
import { getColor, deepObjectsMerge } from '@coreui/coreui/dist/js/coreui-utilities'
10+
import { CChartLine } from '@coreui/vue-chartjs'
11+
import { getColor, deepObjectsMerge } from '@coreui/utils/src'
12+
1213
export default {
1314
name: 'CChartLineSimple',
1415
components: { CChartLine },
@@ -48,19 +49,12 @@ export default {
4849
data: this.dataPoints,
4950
borderColor: getColor(this.borderColor),
5051
backgroundColor: getColor(this.backgroundColor),
51-
pointBackgroundColor: this.pointBackgroundColor,
52+
pointBackgroundColor: getColor(this.pointHoverColor),
5253
pointHoverBackgroundColor: getColor(this.pointHoverColor),
5354
label: this.label
5455
}
5556
]
5657
},
57-
pointBackgroundColor () {
58-
if (this.backgroundColor === 'transparent') {
59-
return '#fff'
60-
} else {
61-
return getColor(this.backgroundColor)
62-
}
63-
},
6458
pointedOptions () {
6559
return {
6660
scales: {

src/views/charts/CChartPieExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import { CChartPie } from '@coreui/coreui-vue-chartjs'
9+
import { CChartPie } from '@coreui/vue-chartjs'
1010
1111
export default {
1212
name: 'CChartPieExample',

src/views/charts/CChartPolarAreaExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script>
13-
import { CChartPolarArea } from '@coreui/coreui-vue-chartjs'
13+
import { CChartPolarArea } from '@coreui/vue-chartjs'
1414
1515
export default {
1616
name: 'CChartPolarAreaExample',

src/views/charts/CChartRadarExample.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script>
13-
import { CChartRadar } from '@coreui/coreui-vue-chartjs'
13+
import { CChartRadar } from '@coreui/vue-chartjs'
1414
1515
export default {
1616
name: 'CChartRadarExample',

src/views/charts/Charts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
</CCardGroup>
5757
</div>
5858
</template>
59+
5960
<script>
6061
import * as Charts from './index.js'
61-
6262
export default {
6363
name: 'Charts',
6464
components: {

0 commit comments

Comments
 (0)