diff --git a/.gitignore b/.gitignore index 9f860c6..8ee54e8 100644 --- a/.gitignore +++ b/.gitignore @@ -28,4 +28,3 @@ coverage *.sw? *.tsbuildinfo -*~ diff --git a/CHANGELOG.md b/CHANGELOG.md index 6934215..f427c4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,22 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased -## 0.1.10 - 2024-06-09 -### Changed -- Fix URL bug when refreshing weather radar. - -## 0.1.9 - 2024-06-09 -### Changed -- Warning notification should not butt up against forecast panel. -- Add timestamp param to bust cache when refreshing radar images. - -## 0.1.8 - 2024-06-09 -### Added -- Add link to national radar map (live image). -- Add refresh buttons to weather data pages. -### Changed -- Convert all view components to use Composition API. - ## 0.1.7 - 2024-06-08 ### Added - Add basic support for active weather alerts. diff --git a/package-lock.json b/package-lock.json index d508ce7..3a93fc4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "myweather", - "version": "0.1.10", + "version": "0.1.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "myweather", - "version": "0.1.10", + "version": "0.1.7", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.5.2", "@fortawesome/free-solid-svg-icons": "^6.5.2", diff --git a/package.json b/package.json index 1143827..5e861f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "myweather", - "version": "0.1.10", + "version": "0.1.7", "private": true, "type": "module", "scripts": { diff --git a/src/stores/weather.js b/src/stores/weather.js index f02e4a9..cf79fcf 100644 --- a/src/stores/weather.js +++ b/src/stores/weather.js @@ -26,11 +26,9 @@ export const useWeatherStore = defineStore('weather', { actions: { - clearWeather(keepCoordinates) { - if (!keepCoordinates) { - this.setCoordinates(null) - this.setCityState(null) - } + clearWeather() { + this.setCoordinates(null) + this.setCityState(null) this.setWeather(null) this.setForecast(null) this.radarLatestURL = null @@ -105,10 +103,10 @@ export const useWeatherStore = defineStore('weather', { // put "likely" before "possible" alerts newAlerts.features.sort((a, b) => { - if (a.properties.certainty == 'Likely' && b.properties.certainty != 'Likely') { + if (a.properties.certainty == 'Likely' && b.properties.certainty == 'Possible') { return -1 } - if (a.properties.certainty != 'Likely' && b.properties.certainty == 'Likely') { + if (a.properties.certainty == 'Possible' && b.properties.certainty == 'Likely') { return 1 } @@ -131,7 +129,7 @@ export const useWeatherStore = defineStore('weather', { if (!this.forecast) { - const weather = await this.getWeather() + const weather = await this.getWeather(this.coordinates) const url = weather.properties.forecast const response = await fetch(url) diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue index 277e41c..f04a514 100644 --- a/src/views/AboutView.vue +++ b/src/views/AboutView.vue @@ -2,6 +2,17 @@ import appsettings from '../appsettings' + +