From 55b8298e69124b424c300fd967337b2bf385e7d1 Mon Sep 17 00:00:00 2001
From: wont-stream <143244075+wont-stream@users.noreply.github.com>
Date: Fri, 11 Apr 2025 15:09:32 -0400
Subject: [PATCH 1/3] remove unused file
---
src/components/navbar/desc.json | 282 --------------------------------
1 file changed, 282 deletions(-)
delete mode 100644 src/components/navbar/desc.json
diff --git a/src/components/navbar/desc.json b/src/components/navbar/desc.json
deleted file mode 100644
index 8ae29a4..0000000
--- a/src/components/navbar/desc.json
+++ /dev/null
@@ -1,282 +0,0 @@
-{
- "0": {
- "day": {
- "description": "Sunny",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01d@2x.png"
- },
- "night": {
- "description": "Clear",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01n@2x.png"
- }
- },
- "1": {
- "day": {
- "description": "Mainly Sunny",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01d@2x.png"
- },
- "night": {
- "description": "Mainly Clear",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01n@2x.png"
- }
- },
- "2": {
- "day": {
- "description": "Partly Cloudy",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/02d@2x.png"
- },
- "night": {
- "description": "Partly Cloudy",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/02n@2x.png"
- }
- },
- "3": {
- "day": {
- "description": "Cloudy",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/03d@2x.png"
- },
- "night": {
- "description": "Cloudy",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/03n@2x.png"
- }
- },
- "45": {
- "day": {
- "description": "Foggy",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50d@2x.png"
- },
- "night": {
- "description": "Foggy",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50n@2x.png"
- }
- },
- "48": {
- "day": {
- "description": "Rime Fog",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50d@2x.png"
- },
- "night": {
- "description": "Rime Fog",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50n@2x.png"
- }
- },
- "51": {
- "day": {
- "description": "Light Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
- },
- "night": {
- "description": "Light Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
- }
- },
- "53": {
- "day": {
- "description": "Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
- },
- "night": {
- "description": "Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
- }
- },
- "55": {
- "day": {
- "description": "Heavy Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
- },
- "night": {
- "description": "Heavy Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
- }
- },
- "56": {
- "day": {
- "description": "Light Freezing Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
- },
- "night": {
- "description": "Light Freezing Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
- }
- },
- "57": {
- "day": {
- "description": "Freezing Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
- },
- "night": {
- "description": "Freezing Drizzle",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
- }
- },
- "61": {
- "day": {
- "description": "Light Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
- },
- "night": {
- "description": "Light Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
- }
- },
- "63": {
- "day": {
- "description": "Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
- },
- "night": {
- "description": "Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
- }
- },
- "65": {
- "day": {
- "description": "Heavy Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
- },
- "night": {
- "description": "Heavy Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
- }
- },
- "66": {
- "day": {
- "description": "Light Freezing Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
- },
- "night": {
- "description": "Light Freezing Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
- }
- },
- "67": {
- "day": {
- "description": "Freezing Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
- },
- "night": {
- "description": "Freezing Rain",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
- }
- },
- "71": {
- "day": {
- "description": "Light Snow",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
- },
- "night": {
- "description": "Light Snow",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
- }
- },
- "73": {
- "day": {
- "description": "Snow",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
- },
- "night": {
- "description": "Snow",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
- }
- },
- "75": {
- "day": {
- "description": "Heavy Snow",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
- },
- "night": {
- "description": "Heavy Snow",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
- }
- },
- "77": {
- "day": {
- "description": "Snow Grains",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
- },
- "night": {
- "description": "Snow Grains",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
- }
- },
- "80": {
- "day": {
- "description": "Light Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
- },
- "night": {
- "description": "Light Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
- }
- },
- "81": {
- "day": {
- "description": "Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
- },
- "night": {
- "description": "Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
- }
- },
- "82": {
- "day": {
- "description": "Heavy Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
- },
- "night": {
- "description": "Heavy Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
- }
- },
- "85": {
- "day": {
- "description": "Light Snow Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
- },
- "night": {
- "description": "Light Snow Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
- }
- },
- "86": {
- "day": {
- "description": "Snow Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
- },
- "night": {
- "description": "Snow Showers",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
- }
- },
- "95": {
- "day": {
- "description": "Thunderstorm",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
- },
- "night": {
- "description": "Thunderstorm",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
- }
- },
- "96": {
- "day": {
- "description": "Light Thunderstorms With Hail",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
- },
- "night": {
- "description": "Light Thunderstorms With Hail",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
- }
- },
- "99": {
- "day": {
- "description": "Thunderstorm With Hail",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
- },
- "night": {
- "description": "Thunderstorm With Hail",
- "image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
- }
- }
-}
From 9627ccc840455bfb61fcadff7b5633cf38835271 Mon Sep 17 00:00:00 2001
From: wont-stream <143244075+wont-stream@users.noreply.github.com>
Date: Fri, 11 Apr 2025 15:11:29 -0400
Subject: [PATCH 2/3] fix: handle undefined search engine name in placeholder
---
src/components/container/index.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/components/container/index.tsx b/src/components/container/index.tsx
index 499fb73..b9907d5 100644
--- a/src/components/container/index.tsx
+++ b/src/components/container/index.tsx
@@ -9,7 +9,8 @@ export default () => {
From ee4bc19ce1ff47b44ea31e28f5704fa4cefa08a1 Mon Sep 17 00:00:00 2001
From: wont-stream <143244075+wont-stream@users.noreply.github.com>
Date: Fri, 11 Apr 2025 15:12:24 -0400
Subject: [PATCH 3/3] Change with to ampersand
---
src/components/navbar/index.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/navbar/index.tsx b/src/components/navbar/index.tsx
index 3a3e909..5992cd3 100644
--- a/src/components/navbar/index.tsx
+++ b/src/components/navbar/index.tsx
@@ -5,7 +5,7 @@ export default () => {
const [wttrDesc, setWttrDesc] = useState("Loading...");
fetch(
- `https://wttr.in/${localStorage.getItem("location") || ""}?format=%t%20with%20%C%c&m`,
+ `https://wttr.in/${localStorage.getItem("location") || ""}?format=%t%20%26%20%C%c&m`,
)
.then((res) => res.text())
.then((desc) => {