Update requirement files with new feature templates and fix backend API error message, along with mobile project config updates and documentation improvements

This commit is contained in:
louiscklaw
2025-06-13 12:11:47 +08:00
parent f23a6b7d9c
commit 346992d4ec
3102 changed files with 220182 additions and 2896 deletions

View File

@@ -33,7 +33,7 @@ function Tab1() {
getAddress(coordinates.coords);
};
const getAddress = async (coords) => {
const getAddress = async (coords: { latitude: number; longitude: number }) => {
const query = `${coords.latitude},${coords.longitude}`;
const response = await fetch(
`https://api.weatherapi.com/v1/current.json?key=f93eb660b2424258bf5155016210712&q=${query}`

View File

@@ -20,7 +20,7 @@ function Tab2() {
getAddress(search);
};
const getAddress = async (city) => {
const getAddress = async (city: any) => {
const response = await fetch(
`https://api.weatherapi.com/v1/current.json?key=f93eb660b2424258bf5155016210712&q=${city}&aqi=no`
);
@@ -51,7 +51,7 @@ function Tab2() {
placeholder="Try 'London'"
animated
value={search}
onIonChange={(e) => setSearch(e.target.value)}
onIonChange={(e: CustomEvent) => setSearch((e.target as HTMLInputElement).value)}
/>
</IonCol>