diff --git a/iut-expo-starter/.expo/packager-info.json b/iut-expo-starter/.expo/packager-info.json index fc8b3e65..f76bd557 100644 --- a/iut-expo-starter/.expo/packager-info.json +++ b/iut-expo-starter/.expo/packager-info.json @@ -5,5 +5,5 @@ "expoServerNgrokUrl": null, "packagerNgrokUrl": null, "ngrokPid": null, - "webpackServerPort": 19006 + "webpackServerPort": null } diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/295296b39fc587b499e36dda489fca41.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/295296b39fc587b499e36dda489fca41.json new file mode 100644 index 00000000..b6b54c84 --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/295296b39fc587b499e36dda489fca41.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home(navigation) {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n _jsx(Text, {\n children: favoriteCity.name\n });\n } else {\n return _jsx(Text, {\n children: \"Pas de city\"\n });\n }\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","navigation","insets","statusBarHeight","top","favoriteCity","alignItems","marginTop","name","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(navigation){\n const insets = useSafeAreaInsets();\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n {favoriteCity.name}\n }\n else{\n return(\n Pas de city\n )\n }\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAI9C,eAAe,SAASC,IAAI,CAACC,UAAU,EAAC;EACpC,IAAMC,MAAM,GAAGJ,iBAAiB,EAAE;EAClC,IAAMK,eAAe,GAAGD,MAAM,CAACE,GAAG;EAClC,IAAMC,YAAY,GAAGR,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACS,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACvB,KAAC,IAAI;UAAA,UAAEA,YAAY,CAACG;QAAI,EAAQ;MAClC,CAAC,MACG;QACF,OACI,KAAC,IAAI;UAAA,UAAC;QAAW,EAAO;MAE9B;IACF,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMC,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPN,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/533bbda5b16a1ddb14432e37bf3a7e37.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/533bbda5b16a1ddb14432e37bf3a7e37.json new file mode 100644 index 00000000..f6ac98bb --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/533bbda5b16a1ddb14432e37bf3a7e37.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home(navigation) {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n navigation.navigate(\"CityDetails\", {\n \"city\": favoriteCity\n });\n }\n return null;\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","navigation","insets","statusBarHeight","top","favoriteCity","alignItems","marginTop","navigate","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(navigation){\n const insets = useSafeAreaInsets();\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n navigation.navigate(\"CityDetails\", {\"city\": favoriteCity})\n }\n \n return null;\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAI9C,eAAe,SAASC,IAAI,CAACC,UAAU,EAAC;EACpC,IAAMC,MAAM,GAAGJ,iBAAiB,EAAE;EAClC,IAAMK,eAAe,GAAGD,MAAM,CAACE,GAAG;EAClC,IAAMC,YAAY,GAAGR,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACS,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACvBJ,UAAU,CAACO,QAAQ,CAAC,aAAa,EAAE;UAAC,MAAM,EAAEH;QAAY,CAAC,CAAC;MAC5D;MAEA,OAAO,IAAI;IACb,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMI,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPN,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/53733fd40dde973411eca269b51ceac8.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/53733fd40dde973411eca269b51ceac8.json new file mode 100644 index 00000000..3f1ace21 --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/53733fd40dde973411eca269b51ceac8.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home() {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n return _jsx(Text, {\n children: \"data\"\n });\n }\n return null;\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","insets","statusBarHeight","top","favoriteCity","alignItems","marginTop","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\n\n\nexport default function Home(){\n const insets = useSafeAreaInsets();\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n return (\n data\n )\n }\n \n return null;\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAG9C,eAAe,SAASC,IAAI,GAAE;EAC1B,IAAMC,MAAM,GAAGH,iBAAiB,EAAE;EAClC,IAAMI,eAAe,GAAGD,MAAM,CAACE,GAAG;EAClC,IAAMC,YAAY,GAAGP,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACQ,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACrB,OACI,KAAC,IAAI;UAAA,UAAC;QAAI,EAAO;MAEzB;MAEA,OAAO,IAAI;IACb,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMG,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPL,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/630b0bb6005b29c6e238de8f59a761d8.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/630b0bb6005b29c6e238de8f59a761d8.json new file mode 100644 index 00000000..2f61152e --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/630b0bb6005b29c6e238de8f59a761d8.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home(navigation) {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {}\n return _jsx(Text, {\n children: \"Pas de city\"\n });\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","navigation","insets","statusBarHeight","top","favoriteCity","alignItems","marginTop","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(navigation){\n const insets = useSafeAreaInsets();\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n //navigation.navigate(\"CityDetails\", {\"city\": favoriteCity})\n }\n \n return(\n Pas de city\n )\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAI9C,eAAe,SAASC,IAAI,CAACC,UAAU,EAAC;EACpC,IAAMC,MAAM,GAAGJ,iBAAiB,EAAE;EAClC,IAAMK,eAAe,GAAGD,MAAM,CAACE,GAAG;EAClC,IAAMC,YAAY,GAAGR,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACS,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC,CAEzB;MAEA,OACE,KAAC,IAAI;QAAA,UAAC;MAAW,EAAO;IAE5B,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMG,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPL,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/7519572539dd18b61c8a21d2c7a1b2cf.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/7519572539dd18b61c8a21d2c7a1b2cf.json new file mode 100644 index 00000000..192b9c2f --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/7519572539dd18b61c8a21d2c7a1b2cf.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home(navigation) {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n _jsx(Text, {\n children: favoriteCity.name\n });\n }\n return _jsx(Text, {\n children: \"Pas de city\"\n });\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","navigation","insets","statusBarHeight","top","favoriteCity","alignItems","marginTop","name","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(navigation){\n const insets = useSafeAreaInsets();\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n {favoriteCity.name}\n }\n \n return(\n Pas de city\n )\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAI9C,eAAe,SAASC,IAAI,CAACC,UAAU,EAAC;EACpC,IAAMC,MAAM,GAAGJ,iBAAiB,EAAE;EAClC,IAAMK,eAAe,GAAGD,MAAM,CAACE,GAAG;EAClC,IAAMC,YAAY,GAAGR,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACS,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACvB,KAAC,IAAI;UAAA,UAAEA,YAAY,CAACG;QAAI,EAAQ;MAClC;MAEA,OACE,KAAC,IAAI;QAAA,UAAC;MAAW,EAAO;IAE5B,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMC,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPN,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/9c9e934a2d20db93e43854a288f2b759.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/9c9e934a2d20db93e43854a288f2b759.json new file mode 100644 index 00000000..0398023f --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/9c9e934a2d20db93e43854a288f2b759.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home() {\n var insets = useSafeAreaInsets(navigation);\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n navigation.navigate(\"CityDetails\", favoriteCity);\n }\n return null;\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","insets","navigation","statusBarHeight","top","favoriteCity","alignItems","marginTop","navigate","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(){\n const insets = useSafeAreaInsets(navigation);\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n navigation.navigate(\"CityDetails\", favoriteCity)\n }\n \n return null;\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAI9C,eAAe,SAASC,IAAI,GAAE;EAC1B,IAAMC,MAAM,GAAGH,iBAAiB,CAACI,UAAU,CAAC;EAC5C,IAAMC,eAAe,GAAGF,MAAM,CAACG,GAAG;EAClC,IAAMC,YAAY,GAAGR,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACS,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACrBH,UAAU,CAACM,QAAQ,CAAC,aAAa,EAAEH,YAAY,CAAC;MACpD;MAEA,OAAO,IAAI;IACb,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMI,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPN,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/9fb965297ec2087ede156e58243500f4.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/9fb965297ec2087ede156e58243500f4.json new file mode 100644 index 00000000..a6d65b76 --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/9fb965297ec2087ede156e58243500f4.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home() {\n var insets = useSafeAreaInsets(navigation);\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n return _jsx(CityDetails, {\n route: navigation\n });\n }\n return null;\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","CityDetails","Home","insets","navigation","statusBarHeight","top","favoriteCity","alignItems","marginTop","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(){\n const insets = useSafeAreaInsets(navigation);\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n return (\n \n )\n }\n \n return null;\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AACf,OAAOC,WAAW;AAAsB;AAAA;AAGxC,eAAe,SAASC,IAAI,GAAE;EAC1B,IAAMC,MAAM,GAAGJ,iBAAiB,CAACK,UAAU,CAAC;EAC5C,IAAMC,eAAe,GAAGF,MAAM,CAACG,GAAG;EAClC,IAAMC,YAAY,GAAGT,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACU,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACrB,OACI,KAAC,WAAW;UAAC,KAAK,EAAEH;QAAW,EAAE;MAEzC;MAEA,OAAO,IAAI;IACb,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMM,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPL,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/a15b06f579e8c82e870da23df4e094e7.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/a15b06f579e8c82e870da23df4e094e7.json new file mode 100644 index 00000000..95094cb3 --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/a15b06f579e8c82e870da23df4e094e7.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home() {\n var insets = useSafeAreaInsets(navigation);\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n navigation.navigate(\"CityDetails\", {\n \"city\": favoriteCity\n });\n }\n return null;\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","insets","navigation","statusBarHeight","top","favoriteCity","alignItems","marginTop","navigate","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(){\n const insets = useSafeAreaInsets(navigation);\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n navigation.navigate(\"CityDetails\", {\"city\": favoriteCity})\n }\n \n return null;\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAI9C,eAAe,SAASC,IAAI,GAAE;EAC1B,IAAMC,MAAM,GAAGH,iBAAiB,CAACI,UAAU,CAAC;EAC5C,IAAMC,eAAe,GAAGF,MAAM,CAACG,GAAG;EAClC,IAAMC,YAAY,GAAGR,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACS,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACvBH,UAAU,CAACM,QAAQ,CAAC,aAAa,EAAE;UAAC,MAAM,EAAEH;QAAY,CAAC,CAAC;MAC5D;MAEA,OAAO,IAAI;IACb,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMI,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPN,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/a81f782d1df4c2c3ecb4a631dbd23d69.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/a81f782d1df4c2c3ecb4a631dbd23d69.json new file mode 100644 index 00000000..31152374 --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/a81f782d1df4c2c3ecb4a631dbd23d69.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home(navigation) {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n console.log(favoriteCity);\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n _jsx(Text, {\n children: favoriteCity.name\n });\n } else {\n return _jsx(Text, {\n children: \"Pas de city\"\n });\n }\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","navigation","insets","statusBarHeight","top","favoriteCity","console","log","alignItems","marginTop","name","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(navigation){\n const insets = useSafeAreaInsets();\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n console.log(favoriteCity)\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n {favoriteCity.name}\n }\n else{\n return(\n Pas de city\n )\n }\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAI9C,eAAe,SAASC,IAAI,CAACC,UAAU,EAAC;EACpC,IAAMC,MAAM,GAAGJ,iBAAiB,EAAE;EAClC,IAAMK,eAAe,GAAGD,MAAM,CAACE,GAAG;EAClC,IAAMC,YAAY,GAAGR,kBAAkB;EACvCS,OAAO,CAACC,GAAG,CAACF,YAAY,CAAC;EAEzB,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACG,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEN;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACvB,KAAC,IAAI;UAAA,UAAEA,YAAY,CAACK;QAAI,EAAQ;MAClC,CAAC,MACG;QACF,OACI,KAAC,IAAI;UAAA,UAAC;QAAW,EAAO;MAE9B;IACF,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMC,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPN,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/.expo/web/cache/development/babel-loader/df319a49e350b9e5c3fc30cfd7a51f0d.json b/iut-expo-starter/.expo/web/cache/development/babel-loader/df319a49e350b9e5c3fc30cfd7a51f0d.json new file mode 100644 index 00000000..76c7a347 --- /dev/null +++ b/iut-expo-starter/.expo/web/cache/development/babel-loader/df319a49e350b9e5c3fc30cfd7a51f0d.json @@ -0,0 +1 @@ +{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FAVORITE_CITY_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home(navigation) {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n var favoriteCity = FAVORITE_CITY_DATA;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), function () {\n if (favoriteCity != null) {\n navigation.navigate(\"CityDetails\", {\n \"city\": favoriteCity\n });\n }\n return _jsx(Text, {\n children: \"Pas de city\"\n });\n }()]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FAVORITE_CITY_DATA","useSafeAreaInsets","TopBar","Home","navigation","insets","statusBarHeight","top","favoriteCity","alignItems","marginTop","navigate","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport CityDetails from \"./CityDetails\";\n\n\nexport default function Home(navigation){\n const insets = useSafeAreaInsets();\n const statusBarHeight = insets.top;\n const favoriteCity = FAVORITE_CITY_DATA;\n\n return (\n \n \n {(() => {\n if (favoriteCity != null){\n navigation.navigate(\"CityDetails\", {\"city\": favoriteCity})\n }\n \n return(\n Pas de city\n )\n })()}\n\n \n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;;AAEA,SAA4BA,kBAAkB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM;AAA+B;AAAA;AAI9C,eAAe,SAASC,IAAI,CAACC,UAAU,EAAC;EACpC,IAAMC,MAAM,GAAGJ,iBAAiB,EAAE;EAClC,IAAMK,eAAe,GAAGD,MAAM,CAACE,GAAG;EAClC,IAAMC,YAAY,GAAGR,kBAAkB;EAEvC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACS,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEJ;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACP,YAAM;MACN,IAAIE,YAAY,IAAI,IAAI,EAAC;QACvBJ,UAAU,CAACO,QAAQ,CAAC,aAAa,EAAE;UAAC,MAAM,EAAEH;QAAY,CAAC,CAAC;MAC5D;MAEA,OACE,KAAC,IAAI;QAAA,UAAC;MAAW,EAAO;IAE5B,CAAC,EAAG;EAAA,EAED;AAEf;AAGA,IAAMI,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPN,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/iut-expo-starter/components/TopBar.tsx b/iut-expo-starter/components/TopBar.tsx index e57bc970..3931dc5f 100644 --- a/iut-expo-starter/components/TopBar.tsx +++ b/iut-expo-starter/components/TopBar.tsx @@ -1,23 +1,6 @@ import React from "react" import { View, Text, StyleSheet, Platform } from "react-native"; import { useSafeAreaInsets } from "react-native-safe-area-context"; -/* -import { getStatusBarHeight } from 'react-native-status-bar-height'; - - -function topBarTopDistance(){ - if(Platform.OS === 'ios'){ - return{ - paddingTop : getStatusBarHeight(), - paddingBottom : getStatusBarHeight()/2.5, - } - } - return{ - paddingTop : 20, - flex: 0.15, - } -} -*/ export function TopBar(){ const insets = useSafeAreaInsets(); diff --git a/iut-expo-starter/navigation/StackNavigation.tsx b/iut-expo-starter/navigation/StackNavigation.tsx index b696ff84..0fdb8ff9 100644 --- a/iut-expo-starter/navigation/StackNavigation.tsx +++ b/iut-expo-starter/navigation/StackNavigation.tsx @@ -11,8 +11,12 @@ export default function StackNavigation() { const Stack = createStackNavigator(); return ( - - + + diff --git a/iut-expo-starter/navigation/TabNavigation.tsx b/iut-expo-starter/navigation/TabNavigation.tsx index 693283b9..a173226d 100644 --- a/iut-expo-starter/navigation/TabNavigation.tsx +++ b/iut-expo-starter/navigation/TabNavigation.tsx @@ -9,14 +9,16 @@ export default function TabNavigation() { const BottomTabNavigator = createBottomTabNavigator(); return ( - + - diff --git a/iut-expo-starter/screens/CityDetails.tsx b/iut-expo-starter/screens/CityDetails.tsx index 979e30ab..211b3e5c 100644 --- a/iut-expo-starter/screens/CityDetails.tsx +++ b/iut-expo-starter/screens/CityDetails.tsx @@ -7,10 +7,10 @@ export default function CityDetails({route}){ const insets = useSafeAreaInsets(); const statusBarHeight = insets.top; - const city = route.param.city; + const city = route.params.city; return ( - + {city.name} diff --git a/iut-expo-starter/screens/CityList.tsx b/iut-expo-starter/screens/CityList.tsx index 979cfd95..59294dc9 100644 --- a/iut-expo-starter/screens/CityList.tsx +++ b/iut-expo-starter/screens/CityList.tsx @@ -11,7 +11,7 @@ export default function CityList({navigation}){ const statusBarHeight = insets.top; return ( - + navigation.navigate("CityDetails", {"city": item})}>} style={{width: "100%", alignSelf: "center"}} /> - - Toto ) } diff --git a/iut-expo-starter/screens/Home.tsx b/iut-expo-starter/screens/Home.tsx index c16594c3..559e2799 100644 --- a/iut-expo-starter/screens/Home.tsx +++ b/iut-expo-starter/screens/Home.tsx @@ -4,16 +4,30 @@ import { CITIES_DATA, City, FAVORITE_CITY_DATA } from "../data/stub" import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { VilleCompopo } from "../components/VilleCompopo"; import { TopBar } from "../components/TopBar"; +import CityDetails from "./CityDetails"; -export default function Home(){ +export default function Home(navigation){ const insets = useSafeAreaInsets(); const statusBarHeight = insets.top; - const favoriteCity = FAVORITE_CITY_DATA; + const favoriteCity: City | null = FAVORITE_CITY_DATA; return ( - + + {(() => { + if (favoriteCity != null){ + return ( + {favoriteCity.name} + ) + } + else{ + return( + Pas de city + ) + } + })()} + ) }