Skip to content

Commit dc914fd

Browse files
committed
Support Nova5
1 parent 172f430 commit dc914fd

13 files changed

+7695
-6415
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
}
1818
],
1919
"require": {
20-
"php": ">=7.1.0",
21-
"laravel/nova": "^4.0"
20+
"php": ">=8.0",
21+
"laravel/nova": "^5.0"
2222
},
2323
"autoload": {
2424
"psr-4": {

dist/js/chart-js-integration.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
/*!
2-
* Chart.js v3.7.1
2+
* @kurkle/color v0.2.1
3+
* https://github.com/kurkle/color#readme
4+
* (c) 2022 Jukka Kurkela
5+
* Released under the MIT License
6+
*/
7+
8+
/*!
9+
* Chart.js v3.9.1
310
* https://www.chartjs.org
411
* (c) 2022 Chart.js Contributors
512
* Released under the MIT License
613
*/
14+
15+
/*!
16+
* chartjs-plugin-annotation v2.2.1
17+
* https://www.chartjs.org/chartjs-plugin-annotation/index
18+
* (c) 2023 chartjs-plugin-annotation Contributors
19+
* Released under the MIT License
20+
*/

package-lock.json

Lines changed: 5592 additions & 4854 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"vue-template-compiler": "^2.6.14"
1414
},
1515
"dependencies": {
16-
"chart.js": "^3.7.0",
17-
"chartjs-plugin-datalabels": "^2.0.0",
16+
"chart.js": "^3.9.1",
17+
"chartjs-plugin-annotation": "^2.2.1",
18+
"chartjs-plugin-datalabels": "^2.2.0",
1819
"serialize-javascript": "^4.0.0",
1920
"sweetalert2": "^9.17.1",
20-
"vue": "^3.2.31",
21-
"vue-chartjs": "^4.0.0"
21+
"vue": "^3.5.14",
22+
"vue-chartjs": "^4.1.2"
2223
}
2324
}
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import ChartDataLabels from 'chartjs-plugin-datalabels';
2+
import AnnotationPlugin from 'chartjs-plugin-annotation';
23
import { Chart, registerables } from 'chart.js';
34

4-
import StackedChart from './components/StackedChart'
5-
import BarChart from './components/BarChart'
6-
import LineChart from './components/StripeChart'
7-
import DoughnutChart from './components/DoughnutChart'
8-
import PieChart from './components/PieChart'
9-
import PolarAreaChart from './components/PolarAreaChart'
10-
import ScatterChart from './components/ScatterChart'
5+
import StackedChart from './components/StackedChart';
6+
import BarChart from './components/BarChart';
7+
import LineChart from './components/StripeChart';
8+
import DoughnutChart from './components/DoughnutChart';
9+
import PieChart from './components/PieChart';
10+
import PolarAreaChart from './components/PolarAreaChart';
11+
import ScatterChart from './components/ScatterChart';
1112

1213
Nova.booting((Vue) => {
13-
const textColor = getComputedStyle(document.documentElement)
14-
.getPropertyValue('--colors-gray-400');
14+
const textColor = getComputedStyle(document.documentElement).getPropertyValue('--colors-gray-400');
1515

16-
Chart.unregister(ChartDataLabels);
16+
// Chart.register(ChartDataLabels);
17+
Chart.register(AnnotationPlugin);
1718
Chart.register(...registerables);
1819
Chart.defaults.color = `rgba(${textColor}, 1)`;
1920

@@ -24,5 +25,4 @@ Nova.booting((Vue) => {
2425
Vue.component('pie-chart', PieChart);
2526
Vue.component('polar-area-chart', PolarAreaChart);
2627
Vue.component('scatter-chart', ScatterChart);
27-
})
28-
28+
});

0 commit comments

Comments
 (0)