From 32e1963d5a72beb87b752986d5f1409e14eee72d Mon Sep 17 00:00:00 2001 From: Envision <9063072+elapsingdreams@user.noreply.gitee.com> Date: Mon, 12 Aug 2024 16:47:16 +0800 Subject: [PATCH 1/3] =?UTF-8?q?:art:=E7=83=AD=E4=BF=AE=E5=A4=8D=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=98=BE=E7=A4=BA=20:see=5Fno=5Fevil:=E6=9B=B4?= =?UTF-8?q?=E6=96=B0.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ src/resources/liteyuki_weather/templates/css/weather_now.css | 2 +- src/resources/liteyuki_weather/templates/js/weather_now.js | 4 ++-- src/resources/liteyuki_weather/templates/weather_now.html | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a80db66f..67716fee 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ .vscode/ .cache/ +venv/ + node_modules/ data/ db/ diff --git a/src/resources/liteyuki_weather/templates/css/weather_now.css b/src/resources/liteyuki_weather/templates/css/weather_now.css index c8d83d2a..dd1f4298 100644 --- a/src/resources/liteyuki_weather/templates/css/weather_now.css +++ b/src/resources/liteyuki_weather/templates/css/weather_now.css @@ -227,7 +227,7 @@ justify-content: center; } -.attribution-info { +#attribution-info { backdrop-filter: blur(10px); padding: 0 5px 0; background-color: rgba(0, 0, 0, 0.5); diff --git a/src/resources/liteyuki_weather/templates/js/weather_now.js b/src/resources/liteyuki_weather/templates/js/weather_now.js index d822caec..8e9b9e7a 100644 --- a/src/resources/liteyuki_weather/templates/js/weather_now.js +++ b/src/resources/liteyuki_weather/templates/js/weather_now.js @@ -179,6 +179,6 @@ function get_time_hour(fxTime) { } let attrinfo = document.getElementById('attribution-info'); -if (!is_dev & !attr) attrinfo.parentElement.style.display = "none" +if (!is_dev & !attr) attrinfo.parentElement.style.display = "none"; -attrinfo.innerText = is_dev ? "Weather Service Drived by QWeather" : (attr ? attr : "Weather Service Drived by QWeather") +attrinfo.innerText = is_dev ? "Weather Service Drived by QWeather" : (attr ? attr : "Weather Service Drived by QWeather"); \ No newline at end of file diff --git a/src/resources/liteyuki_weather/templates/weather_now.html b/src/resources/liteyuki_weather/templates/weather_now.html index 6d0f9154..3cb2de7c 100644 --- a/src/resources/liteyuki_weather/templates/weather_now.html +++ b/src/resources/liteyuki_weather/templates/weather_now.html @@ -83,7 +83,7 @@
-
+
From e801a99f67d8912c7c3aa66bf6647ef36741f9a1 Mon Sep 17 00:00:00 2001 From: Envision <9063072+elapsingdreams@user.noreply.gitee.com> Date: Mon, 12 Aug 2024 19:13:03 +0800 Subject: [PATCH 2/3] =?UTF-8?q?:adhesive=5Fbandage:=E9=9D=9E=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E9=97=AE=E9=A2=98=E7=9A=84=E7=AE=80=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D:=E6=8F=92=E4=BB=B6=E6=9C=8D=E5=8A=A1=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/liteyuki_weather/templates/js/weather_now.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/resources/liteyuki_weather/templates/js/weather_now.js b/src/resources/liteyuki_weather/templates/js/weather_now.js index 8e9b9e7a..4e02fdd3 100644 --- a/src/resources/liteyuki_weather/templates/js/weather_now.js +++ b/src/resources/liteyuki_weather/templates/js/weather_now.js @@ -178,7 +178,6 @@ function get_time_hour(fxTime) { return fxTime.split("T")[1].split("+")[0] } -let attrinfo = document.getElementById('attribution-info'); -if (!is_dev & !attr) attrinfo.parentElement.style.display = "none"; + attrinfo.innerText = is_dev ? "Weather Service Drived by QWeather" : (attr ? attr : "Weather Service Drived by QWeather"); \ No newline at end of file From 61c0cf2c2d0fd623f7f04a73910dd9470432cc34 Mon Sep 17 00:00:00 2001 From: ElapsingDreams <159739277+ElapsingDreams@users.noreply.github.com> Date: Mon, 12 Aug 2024 20:01:29 +0800 Subject: [PATCH 3/3] Update weather_now.js --- src/resources/liteyuki_weather/templates/js/weather_now.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/liteyuki_weather/templates/js/weather_now.js b/src/resources/liteyuki_weather/templates/js/weather_now.js index 4e02fdd3..3dc87a23 100644 --- a/src/resources/liteyuki_weather/templates/js/weather_now.js +++ b/src/resources/liteyuki_weather/templates/js/weather_now.js @@ -179,5 +179,5 @@ function get_time_hour(fxTime) { } - -attrinfo.innerText = is_dev ? "Weather Service Drived by QWeather" : (attr ? attr : "Weather Service Drived by QWeather"); \ No newline at end of file +let attrinfo = document.getElementById('attribution-info'); +attrinfo.innerText = is_dev ? "Weather Service Drived by QWeather" : (attr ? attr : "Weather Service Drived by QWeather");