Refactor Dropdown Handlers and Update WordPress Integration

- Updated dropdown onChange handlers across multiple components to use direct value passing instead of event target value for improved clarity and consistency.
- Changed `url` to `site_url` in WordPress integration configuration for better semantic clarity.
- Enhanced Vite configuration to include `fast-deep-equal` for compatibility with `react-dnd`.
- Updated navigation paths in `SiteContentEditor` and `SiteList` for consistency with new routing structure.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 08:38:59 +00:00
parent b05421325c
commit 8508af37c7
12 changed files with 69 additions and 56 deletions

View File

@@ -120,6 +120,8 @@ export default defineConfig(({ mode, command }) => {
"zustand/middleware", // Required for persist middleware used in stores
// Include apexcharts for proper module resolution (skip during marketing-only build)
...(isMarketingBuild ? [] : ["apexcharts", "react-apexcharts"]),
// Force include fast-deep-equal for react-dnd compatibility
"fast-deep-equal",
],
// Exclude heavy dependencies that are only used in specific pages
// They will be lazy-loaded when needed
@@ -132,8 +134,6 @@ export default defineConfig(({ mode, command }) => {
"@fullcalendar/timegrid",
"@react-jvectormap/core",
"@react-jvectormap/world",
"react-dnd",
"react-dnd-html5-backend",
"swiper",
],
esbuildOptions: {