fix: enhance back navigation in NotFoundPage component and remove unused deps #9341
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✍️ Description
This pull request primarily focuses on cleaning up unused dependencies, updating the fallback behavior for the "Go Back" button on the Not Found page, and making minor configuration and import adjustments. The most important changes are summarized below:
Dependency Cleanup:
Removed several unused dependencies from
frontend/package.json, includingframer-motion,fuse.js,pocketbase,react-code-blocks,react-datepicker,react-simple-typewriter, andsimple-icons. This reduces bundle size and potential security risks.Updated imports in
number-ticker.tsxto usemotion/reactinstead offramer-motion, reflecting the dependency cleanup.Removed the import of
react-datepicker's CSS fromdata/page.tsx, since the dependency was removed.UX Improvements:
Configuration Updates:
basePathinsite-config.tsxfrom an empty string to"ProxmoxVE", ensuring a consistent fallback for routing and navigation.🔗 Related PR / Issue
Link: #
✅ Prerequisites (X in brackets)
🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.