فهرست منبع

【修复】添加中文天气描述并更新版本

- 在天气查询应用中添加中文天气描述,优先显示中文描述
- 将应用版本从 1.0.0 升级到 1.0.1
- 更新相关文件以适配新版本
PJ568 1 سال پیش
والد
کامیت
9f71f1ae9e

+ 2 - 2
index.json

@@ -50,9 +50,9 @@
       "name": "天气查询",
       "icon": "favicon.svg",
       "author": "PJ568",
-      "latest_version": "1.0.0",
+      "latest_version": "1.0.1",
       "description": "通过 wttr.in 获取和解析天气数据并显示的网页应用",
-      "location": "./packages/pageos-weather/1.0.0"
+      "location": "./packages/pageos-weather/1.0.1"
     }
   ],
   "source": []

+ 0 - 0
packages/pageos-weather/1.0.0/favicon.svg → packages/pageos-weather/1.0.1/favicon.svg


+ 9 - 3
packages/pageos-weather/1.0.0/index.html → packages/pageos-weather/1.0.1/index.html

@@ -398,16 +398,22 @@
         let html = `
             <h2>${area.areaName[0].value}天气</h2>
             <div class="weather-detail">
-              <strong>当前天气:</strong> ${current.weatherDesc[0].value}
+              <strong>当前天气:</strong> ${
+                current.lang_zh[0].value || current.weatherDesc[0].value
+              }
             </div>
             <div class="weather-detail">
-              <strong>温度:</strong> ${current.temp_C}°C (体感 ${current.FeelsLikeC}°C)
+              <strong>温度:</strong> ${current.temp_C}°C (体感 ${
+          current.FeelsLikeC
+        }°C)
             </div>
             <div class="weather-detail">
               <strong>湿度:</strong> ${current.humidity}%
             </div>
             <div class="weather-detail">
-              <strong>风速:</strong> ${current.windspeedKmph} km/h (${current.winddir16Point})
+              <strong>风速:</strong> ${current.windspeedKmph} km/h (${
+          current.winddir16Point
+        })
             </div>
             <div class="weather-detail">
               <strong>降水量:</strong> ${current.precipMM} mm

+ 2 - 2
packages/pageos-weather/1.0.0/metadata.json → packages/pageos-weather/1.0.1/metadata.json

@@ -1,7 +1,7 @@
 {
   "name": "天气查询",
   "id": "pageos-weather",
-  "version": "1.0.0",
+  "version": "1.0.1",
   "description": "通过 wttr.in 获取和解析天气数据并显示的网页应用",
   "icon": "favicon.svg",
   "author": "PJ568",
@@ -10,7 +10,7 @@
   "permissions": [],
   "entry": "index.html",
   "all_files": {
-    "index.html": "83007146e322556f8a42fc3fff7c06445e736f228d3a4501cfb94d0a6a2d0d8d",
+    "index.html": "aaa80966a1af9d3def42dd3a12840e5f073f637b68727a343c8eb8bff4dddf0c",
     "favicon.svg": "1f6b367fa55c2d7bfead4755d39f7c2e40b78c24cb85702619630e3f288b7c6f"
   }
 }

+ 2 - 1
packages/pageos-weather/versions.txt

@@ -1,3 +1,4 @@
 0.1.0
 0.2.0
-1.0.0
+1.0.0
+1.0.1