From e5092362fdf2ab2477134c33bf43cf3fce62f48a Mon Sep 17 00:00:00 2001
From: MAXOUXAX <24844231+MAXOUXAX@users.noreply.github.com>
Date: Mon, 20 May 2024 20:30:01 +0200
Subject: [PATCH] feat: updated missing page
---
expo/app/[...missing].tsx | 43 ++++-
expo/package-lock.json | 349 +++++++++++++++++++++++++++++++++++++-
2 files changed, 384 insertions(+), 8 deletions(-)
diff --git a/expo/app/[...missing].tsx b/expo/app/[...missing].tsx
index 402c25f5..00e6aa80 100644
--- a/expo/app/[...missing].tsx
+++ b/expo/app/[...missing].tsx
@@ -1,15 +1,44 @@
-import { Link, Stack } from "expo-router";
-import { Text, View } from "react-native";
+import { Stack, useRouter } from "expo-router";
+import ArrowSquareOut from "phosphor-react-native/src/icons/ArrowSquareOut";
+import LinkBreak from "phosphor-react-native/src/icons/LinkBreak";
+import { View } from "react-native";
+
+import Button from "../components/ui/Button";
+import { H1 } from "../components/ui/typography/Titles";
export default function NotFoundScreen() {
+ const expoRouter = useRouter();
+
+ const goBack = () => {
+ if (expoRouter.canGoBack()) {
+ expoRouter.back();
+ } else {
+ expoRouter.replace("/");
+ }
+ };
+
return (
<>
-
- This screen doesn't exist.
-
- Go to home screen!
-
+
+
+
+ Cette page n'existe pas
+
+ }>
+ {expoRouter.canGoBack() && "Retourner à la page précédente"}
+ {!expoRouter.canGoBack() && "Retourner à la page d'accueil"}
+
>
);
diff --git a/expo/package-lock.json b/expo/package-lock.json
index 85eb8ee3..14c30e96 100644
--- a/expo/package-lock.json
+++ b/expo/package-lock.json
@@ -15,6 +15,7 @@
"@react-native-community/netinfo": "11.1.0",
"@react-native-community/slider": "4.4.2",
"@react-navigation/native": "^6.0.2",
+ "@sentry/react-native": "~5.22.0",
"@spotify/web-api-ts-sdk": "^1.1.2",
"@supabase/ssr": "^0.0.10",
"@supabase/supabase-js": "^2.39.2",
@@ -7278,6 +7279,332 @@
"join-component": "^1.1.0"
}
},
+ "node_modules/@sentry-internal/feedback": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-7.113.0.tgz",
+ "integrity": "sha512-eEmL8QXauUnM3FXGv0GT29RpL0Jo0pkn/uMu3aqjhQo7JKNqUGVYIUxJxiGWbVMbDXqPQ7L66bjjMS3FR1GM2g==",
+ "dependencies": {
+ "@sentry/core": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@sentry-internal/replay-canvas": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-7.113.0.tgz",
+ "integrity": "sha512-K8uA42aobNF/BAXf14el15iSAi9fonLBUrjZi6nPDq7zaA8rPvfcTL797hwCbqkETz2zDf52Jz7I3WFCshDoUw==",
+ "dependencies": {
+ "@sentry/core": "7.113.0",
+ "@sentry/replay": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@sentry-internal/tracing": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.113.0.tgz",
+ "integrity": "sha512-8MDnYENRMnEfQjvN4gkFYFaaBSiMFSU/6SQZfY9pLI3V105z6JQ4D0PGMAUVowXilwNZVpKNYohE7XByuhEC7Q==",
+ "dependencies": {
+ "@sentry/core": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@sentry/browser": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.113.0.tgz",
+ "integrity": "sha512-PdyVHPOprwoxGfKGsP2dXDWO0MBDW1eyP7EZlfZvM1A4hjk6ZRNfCv30g+TrqX4hiZDKzyqN3+AdP7N/J2IX0Q==",
+ "dependencies": {
+ "@sentry-internal/feedback": "7.113.0",
+ "@sentry-internal/replay-canvas": "7.113.0",
+ "@sentry-internal/tracing": "7.113.0",
+ "@sentry/core": "7.113.0",
+ "@sentry/integrations": "7.113.0",
+ "@sentry/replay": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@sentry/cli": {
+ "version": "2.30.4",
+ "resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-2.30.4.tgz",
+ "integrity": "sha512-5zYdNGK2sNiP0zbnzMWuwm71KlCWLISbiJDyFQk6YYTKLh2RIYBPLF5mNLBxE2Ns4/wuKuBZjqE2ESLS5FzoOw==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "https-proxy-agent": "^5.0.0",
+ "node-fetch": "^2.6.7",
+ "progress": "^2.0.3",
+ "proxy-from-env": "^1.1.0",
+ "which": "^2.0.2"
+ },
+ "bin": {
+ "sentry-cli": "bin/sentry-cli"
+ },
+ "engines": {
+ "node": ">= 10"
+ },
+ "optionalDependencies": {
+ "@sentry/cli-darwin": "2.30.4",
+ "@sentry/cli-linux-arm": "2.30.4",
+ "@sentry/cli-linux-arm64": "2.30.4",
+ "@sentry/cli-linux-i686": "2.30.4",
+ "@sentry/cli-linux-x64": "2.30.4",
+ "@sentry/cli-win32-i686": "2.30.4",
+ "@sentry/cli-win32-x64": "2.30.4"
+ }
+ },
+ "node_modules/@sentry/cli-darwin": {
+ "version": "2.30.4",
+ "resolved": "https://registry.npmjs.org/@sentry/cli-darwin/-/cli-darwin-2.30.4.tgz",
+ "integrity": "sha512-d61JxgtPvUtUZ58T4WgzFDsRODAQbKcRxhK9DY7Y/+q7fH1gWc6J8s8RwxxhYu/N/UuWnAcXNtIH9daUanKTjQ==",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@sentry/cli-linux-arm": {
+ "version": "2.30.4",
+ "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm/-/cli-linux-arm-2.30.4.tgz",
+ "integrity": "sha512-2+L8FVOc8XLD2k4rUklsIG8gCoawOZJv1TdlHcIvsHIt6e55vVil6JDBc7dOD/tzJlJPAs+LMOuHHe8e/F+Y5A==",
+ "cpu": [
+ "arm"
+ ],
+ "optional": true,
+ "os": [
+ "linux",
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@sentry/cli-linux-arm64": {
+ "version": "2.30.4",
+ "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm64/-/cli-linux-arm64-2.30.4.tgz",
+ "integrity": "sha512-XxRBiZAj84umr+i4n6zNGkbdJIX76G6SFalv4466XZkbhPuAeSABFQ5PxRVc+j7pLyOBGao4q2yiO8wrBLsJug==",
+ "cpu": [
+ "arm64"
+ ],
+ "optional": true,
+ "os": [
+ "linux",
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@sentry/cli-linux-i686": {
+ "version": "2.30.4",
+ "resolved": "https://registry.npmjs.org/@sentry/cli-linux-i686/-/cli-linux-i686-2.30.4.tgz",
+ "integrity": "sha512-ruouCpmxJXumNxvZ4asQzz2gzAKeUhg9dofB9h5PEmemceTLKfOAyfplD5l1iLWL3+JfF88SNeuu2/sWHP7aBg==",
+ "cpu": [
+ "x86",
+ "ia32"
+ ],
+ "optional": true,
+ "os": [
+ "linux",
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@sentry/cli-linux-x64": {
+ "version": "2.30.4",
+ "resolved": "https://registry.npmjs.org/@sentry/cli-linux-x64/-/cli-linux-x64-2.30.4.tgz",
+ "integrity": "sha512-Kcb1Fn5wNSQW5bKkF35MpJSATtvgzGAHDzJkuEXPfF9xQMhOaYPnMN/D0aLYZgTpQawL4CM7dcfLuaafGmiazQ==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "linux",
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@sentry/cli-win32-i686": {
+ "version": "2.30.4",
+ "resolved": "https://registry.npmjs.org/@sentry/cli-win32-i686/-/cli-win32-i686-2.30.4.tgz",
+ "integrity": "sha512-FJ6IS+N7CsacDiHrFbE4Ic9UmumsiaBSD4SiQMIG2wfM7Ig1hc7+F4xoMC3MjivAIM7F94ZdSt0aZDGwE+zYeg==",
+ "cpu": [
+ "x86",
+ "ia32"
+ ],
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@sentry/cli-win32-x64": {
+ "version": "2.30.4",
+ "resolved": "https://registry.npmjs.org/@sentry/cli-win32-x64/-/cli-win32-x64-2.30.4.tgz",
+ "integrity": "sha512-wzvMpj+AVEaLKKLkN1vZxuEwQJa5s8qiasYMBJTXFtD7+LqrONerHCRqk79W+60IBXX7MQSRFF3IsjVJzJGEjA==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@sentry/cli/node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@sentry/core": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.113.0.tgz",
+ "integrity": "sha512-pg75y3C5PG2+ur27A0Re37YTCEnX0liiEU7EOxWDGutH17x3ySwlYqLQmZsFZTSnvzv7t3MGsNZ8nT5O0746YA==",
+ "dependencies": {
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@sentry/hub": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-7.113.0.tgz",
+ "integrity": "sha512-aoerhlAw3vnY9a27eKAoK862oMXFbyMFWbaZuCeR5gfg7sHsOkVQkCl3yiYfF5hfw9MbwbbY6GqWbCrA89Ci/A==",
+ "dependencies": {
+ "@sentry/core": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@sentry/integrations": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.113.0.tgz",
+ "integrity": "sha512-w0sspGBQ+6+V/9bgCkpuM3CGwTYoQEVeTW6iNebFKbtN7MrM3XsGAM9I2cW1jVxFZROqCBPFtd2cs5n0j14aAg==",
+ "dependencies": {
+ "@sentry/core": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0",
+ "localforage": "^1.8.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@sentry/react": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry/react/-/react-7.113.0.tgz",
+ "integrity": "sha512-+zVPz+h5Wydq4ntekw3/dXq5jeHIpZoQ2iqhB96PA9Y94JIq178i/xIP204S1h6rN7cmWAqtR93vnPKdxnlUbQ==",
+ "dependencies": {
+ "@sentry/browser": "7.113.0",
+ "@sentry/core": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0",
+ "hoist-non-react-statics": "^3.3.2"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "peerDependencies": {
+ "react": "15.x || 16.x || 17.x || 18.x"
+ }
+ },
+ "node_modules/@sentry/react-native": {
+ "version": "5.22.2",
+ "resolved": "https://registry.npmjs.org/@sentry/react-native/-/react-native-5.22.2.tgz",
+ "integrity": "sha512-q/Yg+oE2+jHIH2gRXI2NGYr4+vMGTAU2um4WGrMgEWWYc3QpG78SW7CVFHbdId7VETN3cLKB//twexWRuvvfZg==",
+ "dependencies": {
+ "@sentry/browser": "7.113.0",
+ "@sentry/cli": "2.30.4",
+ "@sentry/core": "7.113.0",
+ "@sentry/hub": "7.113.0",
+ "@sentry/integrations": "7.113.0",
+ "@sentry/react": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0"
+ },
+ "bin": {
+ "sentry-expo-upload-sourcemaps": "scripts/expo-upload-sourcemaps.js"
+ },
+ "peerDependencies": {
+ "expo": ">=49.0.0",
+ "react": ">=17.0.0",
+ "react-native": ">=0.65.0"
+ },
+ "peerDependenciesMeta": {
+ "expo": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@sentry/replay": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-7.113.0.tgz",
+ "integrity": "sha512-UD2IaphOWKFdeGR+ZiaNAQ+wFsnwbJK6PNwcW6cHmWKv9COlKufpFt06lviaqFZ8jmNrM4H+r+R8YVTrqCuxgg==",
+ "dependencies": {
+ "@sentry-internal/tracing": "7.113.0",
+ "@sentry/core": "7.113.0",
+ "@sentry/types": "7.113.0",
+ "@sentry/utils": "7.113.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@sentry/types": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.113.0.tgz",
+ "integrity": "sha512-PJbTbvkcPu/LuRwwXB1He8m+GjDDLKBtu3lWg5xOZaF5IRdXQU2xwtdXXsjge4PZR00tF7MO7X8ZynTgWbYaew==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@sentry/utils": {
+ "version": "7.113.0",
+ "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.113.0.tgz",
+ "integrity": "sha512-nzKsErwmze1mmEsbW2AwL2oB+I5v6cDEJY4sdfLekA4qZbYZ8pV5iWza6IRl4XfzGTE1qpkZmEjPU9eyo0yvYw==",
+ "dependencies": {
+ "@sentry/types": "7.113.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/@sideway/address": {
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz",
@@ -13017,6 +13344,11 @@
"node": ">=16.x"
}
},
+ "node_modules/immediate": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="
+ },
"node_modules/import-fresh": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz",
@@ -16239,6 +16571,14 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/lie": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz",
+ "integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==",
+ "dependencies": {
+ "immediate": "~3.0.5"
+ }
+ },
"node_modules/lighthouse-logger": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.4.2.tgz",
@@ -16442,6 +16782,14 @@
"version": "1.2.4",
"license": "MIT"
},
+ "node_modules/localforage": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz",
+ "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==",
+ "dependencies": {
+ "lie": "3.1.1"
+ }
+ },
"node_modules/locate-path": {
"version": "6.0.0",
"license": "MIT",
@@ -18500,7 +18848,6 @@
},
"node_modules/proxy-from-env": {
"version": "1.1.0",
- "dev": true,
"license": "MIT"
},
"node_modules/psl": {