From 5cbe0eb5a6d52a62b0b47aca1a6a64bb4c439876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 19 Mar 2021 10:40:29 +0300 Subject: [PATCH] csb updated for chart demos --- src/views/chart/BarChartDoc.vue | 353 ++++++++++++-------------- src/views/chart/ComboChartDoc.vue | 150 ++++------- src/views/chart/DoughnutChartDoc.vue | 95 +++---- src/views/chart/LineChartDoc.vue | 271 ++++++++++---------- src/views/chart/PieChartDoc.vue | 96 +++---- src/views/chart/PolarAreaChartDoc.vue | 101 +++----- src/views/chart/RadarChartDoc.vue | 117 ++++----- src/views/liveeditor/LiveEditor.vue | 8 +- 8 files changed, 529 insertions(+), 662 deletions(-) diff --git a/src/views/chart/BarChartDoc.vue b/src/views/chart/BarChartDoc.vue index 6132b78a9..b783dabc1 100755 --- a/src/views/chart/BarChartDoc.vue +++ b/src/views/chart/BarChartDoc.vue @@ -1,204 +1,35 @@ \ No newline at end of file diff --git a/src/views/chart/ComboChartDoc.vue b/src/views/chart/ComboChartDoc.vue index 92e5ba729..252567c6a 100755 --- a/src/views/chart/ComboChartDoc.vue +++ b/src/views/chart/ComboChartDoc.vue @@ -1,103 +1,18 @@ \ No newline at end of file diff --git a/src/views/chart/DoughnutChartDoc.vue b/src/views/chart/DoughnutChartDoc.vue index e056fd73b..f06747b41 100755 --- a/src/views/chart/DoughnutChartDoc.vue +++ b/src/views/chart/DoughnutChartDoc.vue @@ -1,61 +1,18 @@ \ No newline at end of file diff --git a/src/views/chart/LineChartDoc.vue b/src/views/chart/LineChartDoc.vue index 12dda48ac..600f534fe 100755 --- a/src/views/chart/LineChartDoc.vue +++ b/src/views/chart/LineChartDoc.vue @@ -1,146 +1,30 @@ \ No newline at end of file diff --git a/src/views/chart/PieChartDoc.vue b/src/views/chart/PieChartDoc.vue index 115b5cf37..0930a6940 100755 --- a/src/views/chart/PieChartDoc.vue +++ b/src/views/chart/PieChartDoc.vue @@ -1,61 +1,19 @@ \ No newline at end of file diff --git a/src/views/chart/PolarAreaChartDoc.vue b/src/views/chart/PolarAreaChartDoc.vue index 67b5d5cae..600dd917e 100755 --- a/src/views/chart/PolarAreaChartDoc.vue +++ b/src/views/chart/PolarAreaChartDoc.vue @@ -1,69 +1,18 @@ \ No newline at end of file diff --git a/src/views/chart/RadarChartDoc.vue b/src/views/chart/RadarChartDoc.vue index dc539258e..72ba825eb 100755 --- a/src/views/chart/RadarChartDoc.vue +++ b/src/views/chart/RadarChartDoc.vue @@ -1,68 +1,18 @@ \ No newline at end of file diff --git a/src/views/liveeditor/LiveEditor.vue b/src/views/liveeditor/LiveEditor.vue index 5b9cd150b..63b481e79 100644 --- a/src/views/liveeditor/LiveEditor.vue +++ b/src/views/liveeditor/LiveEditor.vue @@ -97,7 +97,8 @@ export default { '@babel/cli': dependencies['@babel/cli'], 'core-js': dependencies['core-js'], 'vue-router': dependencies['vue-router'], - 'quill': dependencies['quill'] + 'quill': dependencies['quill'], + 'chart.js': dependencies['chart.js'] }, devDependencies: { '@vue/cli-plugin-babel': dependencies['@vue/cli-plugin-babel'], @@ -182,9 +183,6 @@ ${services[this.service]} extDependencies['@fullcalendar/interaction'] = "5.4.0"; extDependencies['@fullcalendar/timegrid'] = "5.4.0"; } - if(name === 'ChartDemo') { - extDependencies['chart.js'] = "2.7.3"; - } element += `import ${name} from "./${name}.vue"`; @@ -206,6 +204,7 @@ import Calendar from 'primevue/calendar'; import Card from 'primevue/card'; import CascadeSelect from 'primevue/cascadeselect'; import Carousel from 'primevue/carousel'; +import Chart from 'primevue/chart'; import Checkbox from 'primevue/checkbox'; import Chip from 'primevue/chip'; import Chips from 'primevue/chips'; @@ -306,6 +305,7 @@ app.component('Calendar', Calendar); app.component('Card', Card); app.component('Carousel', Carousel); app.component('CascadeSelect', CascadeSelect); +app.component('Chart', Chart); app.component('Checkbox', Checkbox); app.component('Chip', Chip); app.component('Chips', Chips);