formatting
This commit is contained in:
parent
c7f2f4aeae
commit
4f6623efe9
11 changed files with 2368 additions and 661 deletions
|
@ -31,4 +31,4 @@
|
||||||
"semicolons": "always"
|
"semicolons": "always"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
29
index.html
29
index.html
|
@ -1,15 +1,18 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en" data-bs-theme="dark" data-bs-core="default" id="html">
|
<html lang="en" data-bs-theme="dark" data-bs-core="default" id="html">
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
<head>
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" id="favicon" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" id="favicon" />
|
||||||
<meta name="color-scheme" content="light dark">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="description" content="A New Tab Page." />
|
<meta name="color-scheme" content="light dark">
|
||||||
<title>New Tab</title>
|
<meta name="description" content="A New Tab Page." />
|
||||||
</head>
|
<title>New Tab</title>
|
||||||
<body>
|
</head>
|
||||||
<div id="app"></div>
|
|
||||||
<script type="module" src="/src/main.tsx" defer></script>
|
<body>
|
||||||
</body>
|
<div id="app"></div>
|
||||||
</html>
|
<script type="module" src="/src/main.tsx" defer></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -21,4 +21,4 @@
|
||||||
"typescript": "~5.7.2",
|
"typescript": "~5.7.2",
|
||||||
"vite": "^6.2.0"
|
"vite": "^6.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,282 +1,282 @@
|
||||||
{
|
{
|
||||||
"0":{
|
"0": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Sunny",
|
"description": "Sunny",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Clear",
|
"description": "Clear",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"1":{
|
"1": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Mainly Sunny",
|
"description": "Mainly Sunny",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Mainly Clear",
|
"description": "Mainly Clear",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/01n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"2":{
|
"2": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Partly Cloudy",
|
"description": "Partly Cloudy",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/02d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/02d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Partly Cloudy",
|
"description": "Partly Cloudy",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/02n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/02n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"3":{
|
"3": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Cloudy",
|
"description": "Cloudy",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/03d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/03d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Cloudy",
|
"description": "Cloudy",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/03n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/03n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"45":{
|
"45": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Foggy",
|
"description": "Foggy",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Foggy",
|
"description": "Foggy",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"48":{
|
"48": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Rime Fog",
|
"description": "Rime Fog",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Rime Fog",
|
"description": "Rime Fog",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/50n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"51":{
|
"51": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Light Drizzle",
|
"description": "Light Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Light Drizzle",
|
"description": "Light Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"53":{
|
"53": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Drizzle",
|
"description": "Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Drizzle",
|
"description": "Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"55":{
|
"55": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Heavy Drizzle",
|
"description": "Heavy Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Heavy Drizzle",
|
"description": "Heavy Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"56":{
|
"56": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Light Freezing Drizzle",
|
"description": "Light Freezing Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Light Freezing Drizzle",
|
"description": "Light Freezing Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"57":{
|
"57": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Freezing Drizzle",
|
"description": "Freezing Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Freezing Drizzle",
|
"description": "Freezing Drizzle",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"61":{
|
"61": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Light Rain",
|
"description": "Light Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Light Rain",
|
"description": "Light Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"63":{
|
"63": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Rain",
|
"description": "Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Rain",
|
"description": "Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"65":{
|
"65": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Heavy Rain",
|
"description": "Heavy Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Heavy Rain",
|
"description": "Heavy Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"66":{
|
"66": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Light Freezing Rain",
|
"description": "Light Freezing Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Light Freezing Rain",
|
"description": "Light Freezing Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"67":{
|
"67": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Freezing Rain",
|
"description": "Freezing Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Freezing Rain",
|
"description": "Freezing Rain",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/10n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"71":{
|
"71": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Light Snow",
|
"description": "Light Snow",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Light Snow",
|
"description": "Light Snow",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"73":{
|
"73": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Snow",
|
"description": "Snow",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Snow",
|
"description": "Snow",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"75":{
|
"75": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Heavy Snow",
|
"description": "Heavy Snow",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Heavy Snow",
|
"description": "Heavy Snow",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"77":{
|
"77": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Snow Grains",
|
"description": "Snow Grains",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Snow Grains",
|
"description": "Snow Grains",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"80":{
|
"80": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Light Showers",
|
"description": "Light Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Light Showers",
|
"description": "Light Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"81":{
|
"81": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Showers",
|
"description": "Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Showers",
|
"description": "Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"82":{
|
"82": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Heavy Showers",
|
"description": "Heavy Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Heavy Showers",
|
"description": "Heavy Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/09n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"85":{
|
"85": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Light Snow Showers",
|
"description": "Light Snow Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Light Snow Showers",
|
"description": "Light Snow Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"86":{
|
"86": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Snow Showers",
|
"description": "Snow Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Snow Showers",
|
"description": "Snow Showers",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/13n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"95":{
|
"95": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Thunderstorm",
|
"description": "Thunderstorm",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Thunderstorm",
|
"description": "Thunderstorm",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"96":{
|
"96": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Light Thunderstorms With Hail",
|
"description": "Light Thunderstorms With Hail",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Light Thunderstorms With Hail",
|
"description": "Light Thunderstorms With Hail",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"99":{
|
"99": {
|
||||||
"day":{
|
"day": {
|
||||||
"description":"Thunderstorm With Hail",
|
"description": "Thunderstorm With Hail",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11d@2x.png"
|
||||||
},
|
},
|
||||||
"night":{
|
"night": {
|
||||||
"description":"Thunderstorm With Hail",
|
"description": "Thunderstorm With Hail",
|
||||||
"image":"https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
|
"image": "https://wsrv.nl/?l=9w=24&url=https://openweathermap.org/img/wn/11n@2x.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -93,7 +93,7 @@ export default () => {
|
||||||
</ul>
|
</ul>
|
||||||
<hr class="sidebar-divider" />
|
<hr class="sidebar-divider" />
|
||||||
|
|
||||||
<button class="btn btn-secondary" type={"button"} onClick={() => {localStorage.setItem("sidebar", "false"); location.reload()}}>Save & Close</button>
|
<button class="btn btn-secondary" type={"button"} onClick={() => { localStorage.setItem("sidebar", "false"); location.reload() }}>Save & Close</button>
|
||||||
|
|
||||||
<hr class="sidebar-divider" />
|
<hr class="sidebar-divider" />
|
||||||
<h6>About</h6>
|
<h6>About</h6>
|
||||||
|
|
|
@ -19,9 +19,9 @@ dataset.bsCore = localStorage.getItem("theme") || "default";
|
||||||
const favicon = document.getElementById("favicon") as HTMLLinkElement;
|
const favicon = document.getElementById("favicon") as HTMLLinkElement;
|
||||||
|
|
||||||
fetch(`https://wttr.in/${localStorage.getItem("location") || ""}?format=%c`)
|
fetch(`https://wttr.in/${localStorage.getItem("location") || ""}?format=%c`)
|
||||||
.then(res => res.text())
|
.then(res => res.text())
|
||||||
.then(emoji => {
|
.then(emoji => {
|
||||||
favicon.href = `data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>${emoji.trim()}</text></svg>`
|
favicon.href = `data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>${emoji.trim()}</text></svg>`
|
||||||
})
|
})
|
||||||
|
|
||||||
render(<App />, document.getElementById('app')!)
|
render(<App />, document.getElementById('app')!)
|
||||||
|
|
|
@ -4,11 +4,19 @@
|
||||||
"target": "ES2020",
|
"target": "ES2020",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
"lib": [
|
||||||
|
"ES2020",
|
||||||
|
"DOM",
|
||||||
|
"DOM.Iterable"
|
||||||
|
],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"react": ["./node_modules/preact/compat/"],
|
"react": [
|
||||||
"react-dom": ["./node_modules/preact/compat/"]
|
"./node_modules/preact/compat/"
|
||||||
|
],
|
||||||
|
"react-dom": [
|
||||||
|
"./node_modules/preact/compat/"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
|
@ -17,12 +25,13 @@
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"jsxImportSource": "preact",
|
"jsxImportSource": "preact",
|
||||||
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noUncheckedSideEffectImports": true
|
"noUncheckedSideEffectImports": true
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": [
|
||||||
}
|
"src"
|
||||||
|
]
|
||||||
|
}
|
|
@ -1,7 +1,11 @@
|
||||||
{
|
{
|
||||||
"files": [],
|
"files": [],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "./tsconfig.app.json" },
|
{
|
||||||
{ "path": "./tsconfig.node.json" }
|
"path": "./tsconfig.app.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./tsconfig.node.json"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -2,21 +2,23 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"lib": ["ES2023"],
|
"lib": [
|
||||||
|
"ES2023"
|
||||||
|
],
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noUncheckedSideEffectImports": true
|
"noUncheckedSideEffectImports": true
|
||||||
},
|
},
|
||||||
"include": ["vite.config.ts"]
|
"include": [
|
||||||
}
|
"vite.config.ts"
|
||||||
|
]
|
||||||
|
}
|
|
@ -17,7 +17,7 @@ export default defineConfig({
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
} : {transformer: "lightningcss"}
|
} : { transformer: "lightningcss" }
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
cssMinify: "lightningcss",
|
cssMinify: "lightningcss",
|
||||||
|
|
Loading…
Add table
Reference in a new issue