refactor(View): remove unused dependencies and optimize image info component

This commit is contained in:
ShiYu
2025-05-21 23:02:57 +08:00
parent 17f900aac2
commit 26c5b2fc78
3 changed files with 0 additions and 10 deletions

View File

@@ -11,7 +11,6 @@
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-router": "^7.5.3",
"react-zoom-pan-pinch": "^3.7.0",
"uuid": "^11.1.0",
},
"devDependencies": {
@@ -554,8 +553,6 @@
"react-router": ["react-router@7.6.0", "", { "dependencies": { "cookie": "^1.0.1", "set-cookie-parser": "^2.6.0" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" }, "optionalPeers": ["react-dom"] }, "sha512-GGufuHIVCJDbnIAXP3P9Sxzq3UUsddG3rrI3ut1q6m0FI6vxVBF3JoPQ38+W/blslLH4a5Yutp8drkEpXoddGQ=="],
"react-zoom-pan-pinch": ["react-zoom-pan-pinch@3.7.0", "", { "peerDependencies": { "react": "*", "react-dom": "*" } }, "sha512-UmReVZ0TxlKzxSbYiAj+LeGRW8s8LraAFTXRAxzMYnNRgGPsxCudwZKVkjvGmjtx7SW/hZamt69NUmGf4xrkXA=="],
"resize-observer-polyfill": ["resize-observer-polyfill@1.5.1", "", {}, "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="],
"resolve-from": ["resolve-from@4.0.0", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="],

View File

@@ -17,7 +17,6 @@
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-router": "^7.5.3",
"react-zoom-pan-pinch": "^3.7.0",
"uuid": "^11.1.0"
},
"devDependencies": {

View File

@@ -394,12 +394,6 @@ const ImageInfo: React.FC<ImageInfoProps> = ({
<div style={styles.specValue}>{image.exifInfo.width}×{image.exifInfo.height}</div>
<div style={styles.specLabel}></div>
</div>
{image.exifInfo.cameraModel && (
<div style={styles.specItem}>
<div style={styles.specValue}>{image.exifInfo.cameraModel}</div>
<div style={styles.specLabel}></div>
</div>
)}
{image.exifInfo.focalLength && (
<div style={styles.specItem}>
<div style={styles.specValue}>{image.exifInfo.focalLength}</div>