Skip to content

Commit

Permalink
Changing line separators
Browse files Browse the repository at this point in the history
  • Loading branch information
hgorges committed Aug 18, 2024
1 parent ea078c0 commit d79dc93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"tabWidth": 4,
"trailingComma": "all",
"useTabs": false,
"endOfLine": "lf",
"overrides": [
{
"files": ["*.json", "*.{yml,yaml}"],
Expand Down
5 changes: 3 additions & 2 deletions public/css/content/dashboard/calendar-widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@
background: var(--secondary-color);
color: var(--primary-color);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
transition: transform 0.2s ease,
box-shadow 0.2s ease;
transition:
transform 0.2s ease,
box-shadow 0.2s ease;
margin-bottom: 10px;
}

Expand Down
3 changes: 2 additions & 1 deletion src/models/weatherModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ const weatherModel = {

const gps = isHome ? user.home_gps : user.work_gps;

const dateIsoString = new Date().toISOString().substring(0, 10);
const response = await axios.get(
`https://api.openweathermap.org/data/3.0/onecall?lat=${gps.x}&lon=${gps.y}&date=${new Date().toISOString().substring(0, 10)}&appid=${api_key}&units=metric`,
`https://api.openweathermap.org/data/3.0/onecall?lat=${gps.x}&lon=${gps.y}&date=${dateIsoString}&appid=${api_key}&units=metric`,
);

const weatherData: WeatherData = response.data.daily[0];
Expand Down

0 comments on commit d79dc93

Please sign in to comment.