Skip to content

Commit

Permalink
night time hurricane icons
Browse files Browse the repository at this point in the history
  • Loading branch information
netbymatt committed Oct 9, 2024
1 parent c7889ea commit 4aa0ab1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ module.exports = {
indent: [
'error',
'tab',
{
SwitchCase: 1
},
],
'no-tabs': 0,
'no-console': 0,
Expand Down
7 changes: 4 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"format": "compressed",
"extensionName": ".css",
"savePath": "/server/styles",
"savePathSegmentKeys": null,
"savePathReplaceSegmentsWith": null
}
],
"search.exclude": {
Expand All @@ -21,5 +19,8 @@
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"eslint.validate": [
"javascript"
]
}
30 changes: 16 additions & 14 deletions server/scripts/modules/icons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ const getWeatherRegionalIconFromIconLink = (link, _isNightTime) => {
case 'rain-n':
return addPath('Rain-1992.gif');

// case 'snow':
// return addPath('Light-Snow.gif');
// break;
// case 'snow':
// return addPath('Light-Snow.gif');
// break;

// case 'cc_snowshowers.gif':
// //case "heavy-snow.gif":
// return addPath('AM-Snow-1994.gif');
// break;
// case 'cc_snowshowers.gif':
// //case "heavy-snow.gif":
// return addPath('AM-Snow-1994.gif');
// break;

case 'snow':
case 'snow-n':
Expand Down Expand Up @@ -120,6 +120,8 @@ const getWeatherRegionalIconFromIconLink = (link, _isNightTime) => {
case 'tsra_hi-n':
case 'hurricane':
case 'tropical_storm':
case 'hurricane-n':
case 'tropical_storm-n':
return addPath('Thunderstorm.gif');

case 'wind':
Expand Down Expand Up @@ -228,14 +230,14 @@ const getWeatherIconFromIconLink = (link, _isNightTime) => {
case 'rain-n':
return addPath('CC_Rain.gif');

// case 'snow':
// return addPath('Light-Snow.gif');
// break;
// case 'snow':
// return addPath('Light-Snow.gif');
// break;

// case 'cc_snowshowers.gif':
// //case "heavy-snow.gif":
// return addPath('AM-Snow-1994.gif');
// break;
// case 'cc_snowshowers.gif':
// //case "heavy-snow.gif":
// return addPath('AM-Snow-1994.gif');
// break;

case 'snow':
case 'snow-n':
Expand Down

0 comments on commit 4aa0ab1

Please sign in to comment.