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 db28db8..4276bc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,19 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased -## 0.1.11 - 2025-10-06 -### Changed -- update source code info for about page - -## 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). diff --git a/package-lock.json b/package-lock.json index 8dc30e3..a6d8881 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "myweather", - "version": "0.1.11", + "version": "0.1.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "myweather", - "version": "0.1.11", + "version": "0.1.8", "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 46a5d15..6e7c43a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "myweather", - "version": "0.1.11", + "version": "0.1.8", "private": true, "type": "module", "scripts": { diff --git a/src/stores/weather.js b/src/stores/weather.js index f02e4a9..0eb592e 100644 --- a/src/stores/weather.js +++ b/src/stores/weather.js @@ -131,7 +131,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 c1deb33..277e41c 100644 --- a/src/views/AboutView.vue +++ b/src/views/AboutView.vue @@ -28,13 +28,12 @@ import appsettings from '../appsettings'

- Source code is available at - - - - https://forgejo.wuttaproject.org/lance/myweather - - + Source code is not currently browseable online but you can get it with: +

+ +

+ git clone https://git.edbob.org/readonly/myweather.git

diff --git a/src/views/WeatherView.vue b/src/views/WeatherView.vue index 54f5423..37a609b 100644 --- a/src/views/WeatherView.vue +++ b/src/views/WeatherView.vue @@ -11,7 +11,6 @@ const weatherStore = useWeatherStore() const coordinates = ref(null) const refreshing = ref(false) -const timestamp = ref(new Date().getTime()) const panelHeadingTitle = computed(() => { @@ -25,20 +24,6 @@ const panelHeadingTitle = computed(() => { }) -const radarLatestURL = computed(() => { - if (weatherStore.weather) { - return `${weatherStore.radarLatestURL}?t=${timestamp.value}` - } -}) - - -const radarLoopURL = computed(() => { - if (weatherStore.weather) { - return `${weatherStore.radarLoopURL}?t=${timestamp.value}` - } -}) - - onActivated(() => { if (!weatherStore.coordinates) { @@ -71,7 +56,6 @@ async function fetchWeather() { async function refreshWeather() { refreshing.value = true weatherStore.clearWeather(true) - timestamp.value = new Date().getTime() await fetchWeather() refreshing.value = false } @@ -111,8 +95,7 @@ function showHourly(period) { -

+
- +
- +
diff --git a/tasks.py b/tasks.py index d6b57ab..a33596f 100644 --- a/tasks.py +++ b/tasks.py @@ -24,7 +24,7 @@ def release(c): version = js['version'] # build the app, create zip archive - c.run("bash -lc 'nvm use lts/iron; npm run build'") + c.run('npm run build') os.chdir('dist') filename = f'myweather-{version}.zip' c.run(f'zip --recurse-paths {filename} *')