diff --git a/.gitignore b/.gitignore index 8ee54e8..9f860c6 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ coverage *.sw? *.tsbuildinfo +*~ diff --git a/CHANGELOG.md b/CHANGELOG.md index f427c4a..6934215 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,22 @@ 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 3a93fc4..d508ce7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "myweather", - "version": "0.1.7", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "myweather", - "version": "0.1.7", + "version": "0.1.10", "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 5e861f0..1143827 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "myweather", - "version": "0.1.7", + "version": "0.1.10", "private": true, "type": "module", "scripts": { diff --git a/src/stores/weather.js b/src/stores/weather.js index cf79fcf..f02e4a9 100644 --- a/src/stores/weather.js +++ b/src/stores/weather.js @@ -26,9 +26,11 @@ export const useWeatherStore = defineStore('weather', { actions: { - clearWeather() { - this.setCoordinates(null) - this.setCityState(null) + clearWeather(keepCoordinates) { + if (!keepCoordinates) { + this.setCoordinates(null) + this.setCityState(null) + } this.setWeather(null) this.setForecast(null) this.radarLatestURL = null @@ -103,10 +105,10 @@ export const useWeatherStore = defineStore('weather', { // put "likely" before "possible" alerts newAlerts.features.sort((a, b) => { - if (a.properties.certainty == 'Likely' && b.properties.certainty == 'Possible') { + if (a.properties.certainty == 'Likely' && b.properties.certainty != 'Likely') { return -1 } - if (a.properties.certainty == 'Possible' && b.properties.certainty == 'Likely') { + if (a.properties.certainty != 'Likely' && b.properties.certainty == 'Likely') { return 1 } @@ -129,7 +131,7 @@ export const useWeatherStore = defineStore('weather', { if (!this.forecast) { - const weather = await this.getWeather(this.coordinates) + const weather = await this.getWeather() const url = weather.properties.forecast const response = await fetch(url) diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue index f04a514..277e41c 100644 --- a/src/views/AboutView.vue +++ b/src/views/AboutView.vue @@ -2,17 +2,6 @@ import appsettings from '../appsettings' - -