chore: delete obsolete files, packages, imports and polyfills
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
# Editor configuration, see http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
max_line_length = off
|
||||
trim_trailing_whitespace = false
|
||||
+5
-16
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@coreui/coreui-free-vue-admin-template",
|
||||
"version": "3.0.0-alpha.2",
|
||||
"version": "3.0.0-alpha.3",
|
||||
"description": "Open Source Bootstrap Admin Template",
|
||||
"author": "Łukasz Holeczek",
|
||||
"homepage": "http://coreui.io",
|
||||
@@ -16,21 +16,10 @@
|
||||
"dependencies": {
|
||||
"@coreui/coreui": "next",
|
||||
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.3.0",
|
||||
"@coreui/coreui-vue-chartjs": "file:../coreui-vue-chartjs",
|
||||
"@coreui/icons": "../coreui-icons",
|
||||
"@coreui/vue": "file:../coreui-vue",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"bootstrap": "^4.1.3",
|
||||
"chart.js": "^2.7.3",
|
||||
"core-js": "^2.5.7",
|
||||
"css-vars-ponyfill": "^1.11.1",
|
||||
"current-script-polyfill": "^1.0.0",
|
||||
"element-resize-detector": "^1.2.0",
|
||||
"perfect-scrollbar": "^1.4.0",
|
||||
"tooltip.js": "^1.3.1",
|
||||
"vue": "^2.6.6",
|
||||
"vue-chartjs": "^3.4.0",
|
||||
"vue-perfect-scrollbar": "^0.1.0",
|
||||
"@coreui/coreui-vue-chartjs": "coreui/coreui-vue-chartjs",
|
||||
"@coreui/icons": "coreui/coreui-icons#v1-alpha",
|
||||
"@coreui/vue": "../coreui-vue",
|
||||
"vue": "^2.6.10",
|
||||
"vue-router": "^3.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+1
-10
@@ -1,12 +1,3 @@
|
||||
// The Vue build version to load with the `import` command
|
||||
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
||||
|
||||
import 'core-js/es6/promise'
|
||||
import 'core-js/es6/string'
|
||||
import 'core-js/es7/array'
|
||||
import '@babel/polyfill'
|
||||
|
||||
// import cssVars from 'css-vars-ponyfill'
|
||||
import Vue from 'vue'
|
||||
import App from './App'
|
||||
import router from './router'
|
||||
@@ -14,7 +5,7 @@ import router from './router'
|
||||
import { CIconPlugin } from '@coreui/icons/vue'
|
||||
import { iconsSet } from './assets/icons/icons.js'
|
||||
|
||||
import CoreuiVue from '@coreui/vue'
|
||||
import CoreuiVue from '@coreui/vue/src'
|
||||
|
||||
Vue.config.performance = true
|
||||
Vue.use(CoreuiVue)
|
||||
|
||||
@@ -452,14 +452,12 @@
|
||||
import MainChartExample from './charts/MainChartExample'
|
||||
import WidgetsDropdown from './widgets/WidgetsDropdown'
|
||||
import WidgetsSocial from './widgets/WidgetsSocial'
|
||||
import CalloutChartExample from './charts/CalloutChartExample'
|
||||
import CChartLineSimple from './charts/CChartLineSimple'
|
||||
|
||||
export default {
|
||||
name: 'Dashboard',
|
||||
components: {
|
||||
MainChartExample,
|
||||
CalloutChartExample,
|
||||
WidgetsDropdown,
|
||||
WidgetsSocial,
|
||||
CChartLineSimple
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
<template>
|
||||
<CChartLine
|
||||
:datasets="defaultDatasets"
|
||||
:options="defaultOptions"
|
||||
:labels="['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { CChartLine } from '@coreui/coreui-vue-chartjs'
|
||||
import { customTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
|
||||
import { getColor } from '@coreui/coreui/dist/js/coreui-utilities'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
CChartLine
|
||||
},
|
||||
props: ['data', 'borderColor'],
|
||||
computed: {
|
||||
defaultDatasets () {
|
||||
return [
|
||||
{
|
||||
backgroundColor: 'transparent',
|
||||
borderColor: getColor(this.borderColor) || '#c2cfd6',
|
||||
data: this.data
|
||||
}
|
||||
]
|
||||
},
|
||||
defaultOptions () {
|
||||
return {
|
||||
tooltips: {
|
||||
enabled: false,
|
||||
custom: customTooltips,
|
||||
intersect: true,
|
||||
mode: 'index',
|
||||
position: 'nearest',
|
||||
callbacks: {
|
||||
labelColor: function (tooltipItem, chart) {
|
||||
return { backgroundColor: chart.data.datasets[tooltipItem.datasetIndex].backgroundColor }
|
||||
}
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
xAxes: [{
|
||||
display: false
|
||||
}],
|
||||
yAxes: [{
|
||||
display: false
|
||||
}]
|
||||
},
|
||||
elements: {
|
||||
line: {
|
||||
borderWidth: 2
|
||||
},
|
||||
point: {
|
||||
radius: 0,
|
||||
hitRadius: 10,
|
||||
hoverRadius: 4,
|
||||
hoverBorderWidth: 3
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
display: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user