Browse Source

fix: moved all svgs into public / dist folder (#615)

pull/617/head
Dan Ditomaso 1 year ago
committed by GitHub
parent
commit
1180b9afb0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 0
      public/chirpy.svg
  2. 5
      public/devices/README.md
  3. 0
      public/diy.svg
  4. 0
      public/heltec-ht62-esp32c3-sx1262.svg
  5. 0
      public/heltec-mesh-node-t114-case.svg
  6. 0
      public/heltec-mesh-node-t114.svg
  7. 0
      public/heltec-v3-case.svg
  8. 0
      public/heltec-v3.svg
  9. 0
      public/heltec-vision-master-e213.svg
  10. 0
      public/heltec-vision-master-e290.svg
  11. 0
      public/heltec-vision-master-t190.svg
  12. 0
      public/heltec-wireless-paper-V1_0.svg
  13. 0
      public/heltec-wireless-paper.svg
  14. 0
      public/heltec-wireless-tracker-V1-0.svg
  15. 0
      public/heltec-wireless-tracker.svg
  16. 0
      public/heltec-wsl-v3.svg
  17. 0
      public/nano-g2-ultra.svg
  18. 0
      public/pico.svg
  19. 0
      public/promicro.svg
  20. 0
      public/rak-wismeshtap.svg
  21. 0
      public/rak11310.svg
  22. 0
      public/rak2560.svg
  23. 0
      public/rak4631.svg
  24. 0
      public/rak4631_case.svg
  25. 0
      public/rpipicow.svg
  26. 0
      public/seeed-sensecap-indicator.svg
  27. 0
      public/seeed-xiao-s3.svg
  28. 0
      public/station-g2.svg
  29. 0
      public/t-deck.svg
  30. 0
      public/t-echo.svg
  31. 0
      public/t-watch-s3.svg
  32. 0
      public/tbeam-s3-core.svg
  33. 0
      public/tbeam.svg
  34. 0
      public/tlora-c6.svg
  35. 0
      public/tlora-t3s3-epaper.svg
  36. 0
      public/tlora-t3s3-v1.svg
  37. 0
      public/tlora-v2-1-1_6.svg
  38. 0
      public/tlora-v2-1-1_8.svg
  39. 0
      public/tracker-t1000-e.svg
  40. 0
      public/unknown.svg
  41. 0
      public/wio-tracker-wm1110.svg
  42. 0
      public/wm1110_dev_kit.svg
  43. 2
      src/components/UI/ErrorPage.tsx
  44. 2
      src/components/generic/DeviceImage.tsx

0
public/images/chirpy.svg → public/chirpy.svg

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

5
public/devices/README.md

@ -1,5 +0,0 @@
# Copyright Notice
Copyright © 2024 Meshtastic LLC. All Rights Reserved.
## In reference to the GNU GPLv3 License terms defined in Section 7e
Images (or assets) in this directory are protected under international copyright laws and treaties. Unauthorized reproduction, distribution, modification, or use of these images in any form, commercial or otherwise, outside of official Meshtastic creative works or its Backers and Partners is strictly prohibited without prior written consent from the copyright holder (Meshtastic LLC).

0
public/devices/diy.svg → public/diy.svg

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

0
public/devices/heltec-ht62-esp32c3-sx1262.svg → public/heltec-ht62-esp32c3-sx1262.svg

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

0
public/devices/heltec-mesh-node-t114-case.svg → public/heltec-mesh-node-t114-case.svg

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
public/devices/heltec-mesh-node-t114.svg → public/heltec-mesh-node-t114.svg

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

0
public/devices/heltec-v3-case.svg → public/heltec-v3-case.svg

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
public/devices/heltec-v3.svg → public/heltec-v3.svg

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

0
public/devices/heltec-vision-master-e213.svg → public/heltec-vision-master-e213.svg

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

0
public/devices/heltec-vision-master-e290.svg → public/heltec-vision-master-e290.svg

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

0
public/devices/heltec-vision-master-t190.svg → public/heltec-vision-master-t190.svg

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

0
public/devices/heltec-wireless-paper-V1_0.svg → public/heltec-wireless-paper-V1_0.svg

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

0
public/devices/heltec-wireless-paper.svg → public/heltec-wireless-paper.svg

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

0
public/devices/heltec-wireless-tracker-V1-0.svg → public/heltec-wireless-tracker-V1-0.svg

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

0
public/devices/heltec-wireless-tracker.svg → public/heltec-wireless-tracker.svg

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

0
public/devices/heltec-wsl-v3.svg → public/heltec-wsl-v3.svg

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

0
public/devices/nano-g2-ultra.svg → public/nano-g2-ultra.svg

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

0
public/devices/pico.svg → public/pico.svg

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

0
public/devices/promicro.svg → public/promicro.svg

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

0
public/devices/rak-wismeshtap.svg → public/rak-wismeshtap.svg

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

0
public/devices/rak11310.svg → public/rak11310.svg

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 164 KiB

0
public/devices/rak2560.svg → public/rak2560.svg

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
public/devices/rak4631.svg → public/rak4631.svg

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

0
public/devices/rak4631_case.svg → public/rak4631_case.svg

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

0
public/devices/rpipicow.svg → public/rpipicow.svg

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

0
public/devices/seeed-sensecap-indicator.svg → public/seeed-sensecap-indicator.svg

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

0
public/devices/seeed-xiao-s3.svg → public/seeed-xiao-s3.svg

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

0
public/devices/station-g2.svg → public/station-g2.svg

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

0
public/devices/t-deck.svg → public/t-deck.svg

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

0
public/devices/t-echo.svg → public/t-echo.svg

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

0
public/devices/t-watch-s3.svg → public/t-watch-s3.svg

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
public/devices/tbeam-s3-core.svg → public/tbeam-s3-core.svg

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

0
public/devices/tbeam.svg → public/tbeam.svg

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

0
public/devices/tlora-c6.svg → public/tlora-c6.svg

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
public/devices/tlora-t3s3-epaper.svg → public/tlora-t3s3-epaper.svg

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

0
public/devices/tlora-t3s3-v1.svg → public/tlora-t3s3-v1.svg

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
public/devices/tlora-v2-1-1_6.svg → public/tlora-v2-1-1_6.svg

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
public/devices/tlora-v2-1-1_8.svg → public/tlora-v2-1-1_8.svg

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
public/devices/tracker-t1000-e.svg → public/tracker-t1000-e.svg

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

0
public/devices/unknown.svg → public/unknown.svg

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

0
public/devices/wio-tracker-wm1110.svg → public/wio-tracker-wm1110.svg

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

0
public/devices/wm1110_dev_kit.svg → public/wm1110_dev_kit.svg

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

2
src/components/UI/ErrorPage.tsx

@ -53,7 +53,7 @@ export function ErrorPage({ error }: { error: Error }) {
<div className="hidden md:block md:max-w-64 lg:max-w-80 w-full aspect-suqare">
<img
src="/images/chirpy.svg"
src="chirpy.svg"
alt="Chirpy the Meshtastic error"
className="max-w-full h-auto"
/>

2
src/components/generic/DeviceImage.tsx

@ -47,7 +47,7 @@ const hardwareModelToFilename: { [key: string]: string } = {
};
export const DeviceImage = ({ deviceType, className }: DeviceImageProps) => {
const getPath = (device: string) => `/devices/${device}`;
const getPath = (device: string) => `/${device}`;
const device = hardwareModelToFilename[deviceType] || "unknown.svg";
return <img className={className} src={getPath(device)} alt={device} />;
};

Loading…
Cancel
Save