From a76a06e1f1e80ebda1e7c8a219074a15312bfb1e Mon Sep 17 00:00:00 2001 From: Josh Pinto Date: Wed, 13 Aug 2025 08:12:58 -0400 Subject: [PATCH] :fire: Remove unnecessary template files --- CHANGELOG.md | 3 --- src/hello.tsx | 5 ----- weather.tsx | 44 -------------------------------------------- 3 files changed, 52 deletions(-) delete mode 100644 CHANGELOG.md delete mode 100644 src/hello.tsx delete mode 100644 weather.tsx diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 2495636..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -# Weather Changelog - -## [Initial Version] - {PR_MERGE_DATE} \ No newline at end of file diff --git a/src/hello.tsx b/src/hello.tsx deleted file mode 100644 index 17de1fc..0000000 --- a/src/hello.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Detail } from "@raycast/api"; - -export default function Command() { - return ; -} diff --git a/weather.tsx b/weather.tsx deleted file mode 100644 index 251cf20..0000000 --- a/weather.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import { Detail } from "@raycast/api"; -import { useEffect, useState } from "react"; - -type WeatherData = { - temperature: string; - wind: string; - description: string; -}; - -export default function Command() { - const [weather, setWeather] = useState(null); - const [error, setError] = useState(null); - - useEffect(() => { - fetch("https://goweather.xyz/weather/berlin") - .then((res) => { - if (!res.ok) throw new Error("Network response was not ok"); - return res.json(); - }) - .then((data) => { - const weatherData = data as { temperature: string; wind: string; description: string }; - setWeather({ - temperature: weatherData.temperature, - wind: weatherData.wind, - description: weatherData.description, - }); - }) - .catch((e) => setError(e.message)); - }, []); - - if (error) { - return ; - } - - if (!weather) { - return ; - } - - return ( - - ); -} -- 2.51.2