Skip to content

Commit

Permalink
fix: bump highcharts/dashboards to v2, resolve #22 and #6 (#44)
Browse files Browse the repository at this point in the history
* resolve #22 and #6

* chore: update lock file

---------

Co-authored-by: Northword <northword@outlook.com>
  • Loading branch information
volatile-static and northword authored Jun 2, 2024
1 parent 1e6ffa6 commit 6240791
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 49 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"dependencies": {
"@element-plus/icons-vue": "2.3.1",
"@giscus/vue": "^3.0.0",
"@highcharts/dashboards": "1.3.1",
"@highcharts/dashboards": "2.1.0",
"@mdit/plugin-footnote": "0.10.1",
"@vueuse/core": "^10.9.0",
"element-plus": "2.7.3",
"feed": "4.2.2",
"highcharts": "11.4.1",
"highcharts": "11.4.3",
"highcharts-vue": "2.0.1",
"vitepress": "1.2.0",
"vue": "3.4.27"
Expand All @@ -50,7 +50,7 @@
"typescript": "5.4.5",
"unplugin-auto-import": "0.17.6",
"unplugin-vue-components": "0.27.0",
"vite": "5.2.11",
"vite": "5.2.12",
"vite-plugin-inspect": "^0.8.4",
"vite-plugin-vue-devtools": "^7.2.0",
"vue-tsc": "2.0.19"
Expand Down
84 changes: 42 additions & 42 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions src/plugins/components/PluginsChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { data as chartsData } from "../data/charts.data";
import { useData } from "vitepress";
import { onMounted } from "vue";
import * as Highcharts from "highcharts/highcharts";
import Highcharts from "highcharts";
import HighchartsMore from "highcharts/highcharts-more";
HighchartsMore(Highcharts);
import WordCloudGraph from "highcharts/modules/wordcloud";
Expand All @@ -34,11 +34,16 @@ import HighchartsExportData from "highcharts/modules/export-data";
HighchartsExportData(Highcharts);
import NoDataToDisplay from "highcharts/modules/no-data-to-display";
NoDataToDisplay(Highcharts);
import HighchartsPlugin from "@highcharts/dashboards/es-modules/Dashboards/Plugins/HighchartsPlugin";
HighchartsPlugin.custom.connectHighcharts(Highcharts);
import Dashboards from "@highcharts/dashboards";
import type { Board } from "@highcharts/dashboards";
Dashboards.PluginHandler.addPlugin(HighchartsPlugin);
import DataGrid from "@highcharts/dashboards/datagrid";
import LayoutModule from "@highcharts/dashboards/modules/layout";
LayoutModule(Dashboards);
Dashboards.HighchartsPlugin.custom.connectHighcharts(Highcharts);
Dashboards.DataGridPlugin.custom.connectDataGrid(DataGrid);
Dashboards.PluginHandler.addPlugin(Dashboards.HighchartsPlugin);
Dashboards.PluginHandler.addPlugin(Dashboards.DataGridPlugin);
const darkMode = useData().isDark;
Expand Down

0 comments on commit 6240791

Please sign in to comment.