chore: 清理未使用的依赖
移除以下未使用的 npm 依赖: - fullcalendar(仅 CSS 引用,已删除相关 SCSS) - @splidejs/react-splide - @tanstack/react-virtual - @tippyjs/react - react-custom-scrollbars-2 - react-force-graph-3d - react-just-parallax - react-responsive - react-scroll-into-view - recharts - styled-components 同时清理: - craco.config.js 中的 @fullcalendar 分包配置 - SCSS 中的 fullcalendar 样式文件和 import
This commit is contained in:
@@ -74,9 +74,9 @@ module.exports = {
|
||||
priority: 20,
|
||||
reuseExistingChunk: true,
|
||||
},
|
||||
// 日期/日历库
|
||||
// 日期库
|
||||
calendar: {
|
||||
test: /[\\/]node_modules[\\/](dayjs|date-fns|@fullcalendar)[\\/]/,
|
||||
test: /[\\/]node_modules[\\/](dayjs|date-fns)[\\/]/,
|
||||
name: 'calendar-lib',
|
||||
priority: 18,
|
||||
reuseExistingChunk: true,
|
||||
|
||||
11
package.json
11
package.json
@@ -15,9 +15,6 @@
|
||||
"@fontsource/raleway": "^4.5.0",
|
||||
"@fontsource/roboto": "^4.5.0",
|
||||
"@reduxjs/toolkit": "^2.9.2",
|
||||
"@splidejs/react-splide": "^0.7.12",
|
||||
"@tanstack/react-virtual": "^3.13.12",
|
||||
"@tippyjs/react": "^4.2.6",
|
||||
"antd": "^5.27.4",
|
||||
"axios": "^1.10.0",
|
||||
"classnames": "^2.5.1",
|
||||
@@ -27,34 +24,26 @@
|
||||
"echarts-for-react": "^3.0.2",
|
||||
"echarts-wordcloud": "^2.1.0",
|
||||
"framer-motion": "^12.23.24",
|
||||
"fullcalendar": "^5.9.0",
|
||||
"history": "^5.3.0",
|
||||
"klinecharts": "^10.0.0-beta1",
|
||||
"lucide-react": "^0.540.0",
|
||||
"posthog-js": "^1.295.0",
|
||||
"react": "^19.0.0",
|
||||
"react-custom-scrollbars-2": "^4.4.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"react-force-graph-3d": "^1.29.0",
|
||||
"react-github-btn": "^1.2.1",
|
||||
"react-icons": "^4.12.0",
|
||||
"react-input-pin-code": "^1.1.5",
|
||||
"react-is": "^19.0.0",
|
||||
"react-just-parallax": "^3.1.16",
|
||||
"react-markdown": "^10.1.0",
|
||||
"react-redux": "^9.2.0",
|
||||
"react-responsive": "^10.0.1",
|
||||
"react-router-dom": "^6.30.1",
|
||||
"react-scripts": "^5.0.1",
|
||||
"react-scroll": "^1.8.4",
|
||||
"react-scroll-into-view": "^2.1.3",
|
||||
"react-table": "^7.7.0",
|
||||
"react-to-print": "^3.0.3",
|
||||
"recharts": "^3.1.2",
|
||||
"remark-gfm": "^4.0.1",
|
||||
"sass": "^1.49.9",
|
||||
"socket.io-client": "^4.7.4",
|
||||
"styled-components": "^5.3.11",
|
||||
"stylis": "^4.0.10",
|
||||
"stylis-plugin-rtl": "^2.1.1",
|
||||
"typescript": "^5.9.3"
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
/*!
|
||||
FullCalendar v5.6.0
|
||||
Docs & License: https://fullcalendar.io/
|
||||
(c) 2020 Adam Shaw
|
||||
*/
|
||||
|
||||
// Creative Tim Changes
|
||||
|
||||
.fc-theme-standard .fc-scrollgrid,
|
||||
.fc-scrollgrid {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.fc-theme-standard td,
|
||||
.fc-theme-standard th {
|
||||
border-color: $gray-200;
|
||||
}
|
||||
|
||||
.fc-theme-standard thead tr th{
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.fc-theme-standard td{
|
||||
&:last-child{
|
||||
border-right: none;
|
||||
}
|
||||
}
|
||||
|
||||
.fc-theme-standard tr{
|
||||
&:last-child td{
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.fc-h-event{
|
||||
border: none;
|
||||
}
|
||||
|
||||
.fc-daygrid-block-event .fc-event-time,
|
||||
.fc-daygrid-block-event .fc-event-title{
|
||||
font-weight: $font-weight-bold;
|
||||
padding: $fc-event-title-padding-y $fc-event-title-padding-x;
|
||||
}
|
||||
|
||||
.fc .fc-daygrid-body-natural .fc-daygrid-day-events{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.fc .fc-col-header-cell-cushion{
|
||||
font-size: $font-size-sm;
|
||||
font-weight: $font-weight-bold;
|
||||
color: $gray-500;
|
||||
}
|
||||
|
||||
.fc .fc-daygrid-day-number{
|
||||
color: $gray-700;
|
||||
font-size: $font-size-sm;
|
||||
font-weight: $font-weight-bold;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fc .fc-toolbar-title{
|
||||
font-size: $font-size-lg;
|
||||
}
|
||||
|
||||
.fc .fc-button{
|
||||
font-size: $font-size-sm;
|
||||
padding-top: $spacer*0.25;
|
||||
box-shadow: $btn-box-shadow;
|
||||
transition: $btn-transition;
|
||||
.fc-icon{
|
||||
font-size: $font-size-sm;
|
||||
}
|
||||
}
|
||||
|
||||
.fc .fc-button-primary{
|
||||
background-color: $secondary;
|
||||
border-color: $secondary;
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:not(:disabled):active,
|
||||
&:not(:disabled):active:focus{
|
||||
transform: $btn-hover-transform;
|
||||
box-shadow: $btn-hover-box-shadow;
|
||||
background-color: $secondary;
|
||||
border-color: $secondary;
|
||||
}
|
||||
}
|
||||
|
||||
.fc-event.fc-daygrid-event{
|
||||
border-radius: $fc-daygrid-event-border-radius;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,8 +3,6 @@
|
||||
@import "choices";
|
||||
@import "glidejs";
|
||||
@import "green-audio-player";
|
||||
@import "fullcalendar";
|
||||
@import "fullcalendar-extend";
|
||||
@import "datatable";
|
||||
@import "datatable-extend";
|
||||
@import "dragula";
|
||||
|
||||
Reference in New Issue
Block a user