Skip to content

Commit 394d8a1

Browse files
committed
Optimize bundle package
1 parent 67a0f7b commit 394d8a1

File tree

27 files changed

+46
-38
lines changed

27 files changed

+46
-38
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
2828
"@babel/preset-env": "^7.25.3",
2929
"@crowdin/crowdin-api-client": "^1.35.0",
30-
"@types/chrome": "0.0.269",
30+
"@types/chrome": "0.0.270",
3131
"@types/copy-webpack-plugin": "^8.0.1",
3232
"@types/echarts": "^4.9.22",
3333
"@types/generate-json-webpack-plugin": "^0.3.7",
3434
"@types/jest": "^29.5.12",
35-
"@types/node": "^22.1.0",
35+
"@types/node": "^22.4.1",
3636
"@types/psl": "^1.1.3",
3737
"@types/punycode": "^2.1.4",
3838
"@types/webpack": "^5.28.5",
@@ -41,7 +41,7 @@
4141
"babel-loader": "^9.1.3",
4242
"copy-webpack-plugin": "^12.0.2",
4343
"css-loader": "^7.1.2",
44-
"eslint": "^9.8.0",
44+
"eslint": "^9.9.0",
4545
"filemanager-webpack-plugin": "^8.0.0",
4646
"generate-json-webpack-plugin": "^2.0.0",
4747
"html-webpack-plugin": "^5.6.0",
@@ -64,13 +64,13 @@
6464
},
6565
"dependencies": {
6666
"@element-plus/icons-vue": "^2.3.1",
67-
"@vueuse/core": "^10.11.0",
67+
"@vueuse/core": "^11.0.0",
6868
"countup.js": "^2.8.0",
6969
"echarts": "^5.5.1",
70-
"element-plus": "2.7.8",
70+
"element-plus": "2.8.0",
7171
"punycode": "^2.3.1",
7272
"stream-browserify": "^3.0.0",
73-
"vue": "^3.4.36",
73+
"vue": "^3.4.38",
7474
"vue-router": "^4.4.3"
7575
},
7676
"engines": {

src/app/components/Analysis/components/Summary/Calendar/Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This software is released under the MIT License.
55
* https://opensource.org/licenses/MIT
66
*/
7-
import { EchartsWrapper } from "@hooks"
7+
import { EchartsWrapper } from "@hooks/useEcharts"
88
import {
99
ComposeOption,
1010
GridComponentOption,

src/app/components/Analysis/components/Summary/Calendar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This software is released under the MIT License.
55
* https://opensource.org/licenses/MIT
66
*/
7-
import { useEcharts } from "@hooks"
7+
import { useEcharts } from "@hooks/useEcharts"
88
import { computed, defineComponent } from "vue"
99
import { useAnalysisRows, useAnalysisTimeFormat } from "../../../context"
1010
import Wrapper, { BizOption } from "./Wrapper"

src/app/components/Analysis/components/Trend/Dimension/Chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { DimensionEntry, ValueFormatter } from "@app/components/Analysis/ut
1010

1111
import { defineComponent, watch } from "vue"
1212
import Wrapper from "./Wrapper"
13-
import { useEcharts } from "@hooks"
13+
import { useEcharts } from "@hooks/useEcharts"
1414

1515
const _default = defineComponent({
1616
props: {

src/app/components/Analysis/components/Trend/Dimension/Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { SVGRenderer } from "echarts/renderers"
2020
import { TitleComponent, TooltipComponent, GridComponent } from "echarts/components"
2121
import { ValueFormatter } from "@app/components/Analysis/util"
2222
import { getRegularTextColor } from "@util/style"
23-
import { EchartsWrapper } from "@hooks"
23+
import { EchartsWrapper } from "@hooks/useEcharts"
2424
import { getLineSeriesPalette, tooltipDot, tooltipFlexLine } from "@app/util/echarts"
2525
import { TopLevelFormatterParams } from "echarts/types/dist/shared"
2626

src/app/components/Dashboard/components/Calendar/Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use([
2020
TitleComponent,
2121
])
2222

23-
import { EchartsWrapper } from "@hooks"
23+
import { EchartsWrapper } from "@hooks/useEcharts"
2424
import { formatPeriodCommon, getAllDatesBetween, MILL_PER_HOUR, MILL_PER_MINUTE } from "@util/time"
2525
import { groupBy, rotate, sum } from "@util/array"
2626
import { t } from "@app/locale"

src/app/components/Dashboard/components/Calendar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This software is released under the MIT License.
55
* https://opensource.org/licenses/MIT
66
*/
7-
import { useEcharts } from "@hooks"
7+
import { useEcharts } from "@hooks/useEcharts"
88
import { locale } from "@i18n"
99
import statService from "@service/stat-service"
1010
import { getWeeksAgo } from "@util/time"

src/app/components/Dashboard/components/MonthOnMonth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { getPrimaryTextColor } from "@util/style"
2929
import DateIterator from "@util/date-iterator"
3030
import { cvt2LocaleTime } from "@app/util/time"
3131
import { getCompareColor, getDiffColor, tooltipDot } from "@app/util/echarts"
32-
import { EchartsWrapper, useEcharts } from "@hooks"
32+
import { EchartsWrapper, useEcharts } from "@hooks/useEcharts"
3333

3434
type EcOption = ComposeOption<
3535
| BarSeriesOption

src/app/components/Dashboard/components/TopKVisit/Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { use } from "echarts/core"
1212
import { PieChart } from "echarts/charts"
1313
import { TitleComponent, TooltipComponent } from "echarts/components"
1414
import { SVGRenderer } from "echarts/renderers"
15-
import { EchartsWrapper } from "@hooks"
15+
import { EchartsWrapper } from "@hooks/useEcharts"
1616
import { getPrimaryTextColor } from "@util/style"
1717
import { BASE_TITLE_OPTION } from "../../common"
1818
import { t } from "@app/locale"

src/app/components/Dashboard/components/TopKVisit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use([PieChart, TitleComponent, TooltipComponent, SVGRenderer])
1616
import statService from "@service/stat-service"
1717
import { MILL_PER_DAY } from "@util/time"
1818
import { defineComponent } from "vue"
19-
import { useEcharts } from "@hooks"
19+
import { useEcharts } from "@hooks/useEcharts"
2020
import Wrapper, { BizOption, DAY_NUM, TOP_NUM } from "./Wrapper"
2121

2222
const fetchData = async () => {

0 commit comments

Comments
 (0)