From 1de172f5ba9e4131ddf26f5e4d8dbad32ae58132 Mon Sep 17 00:00:00 2001 From: G Date: Mon, 14 Apr 2025 10:55:33 +0000 Subject: [PATCH] somehow forgot to commit all of those... --- app.json | 7 ++++--- eas.json | 3 +++ src/screens/HomePageWithPaymentOptions.tsx | 2 +- src/utils/logger.ts | 29 ++++++++++++----------------- src/utils/requests/authenticateUser.ts | 2 +- 5 files changed, 21 insertions(+), 22 deletions(-) diff --git a/app.json b/app.json index 876a116..c53057f 100644 --- a/app.json +++ b/app.json @@ -1,7 +1,7 @@ { "expo": { "name": "beasy-mobile", - "slug": "beasy-mobile", + "slug": "barnoinpay-tpe", "version": "1.0.0", "orientation": "portrait", "icon": "./assets/beasy_icon.png", @@ -54,7 +54,7 @@ ], "extra": { "eas": { - "projectId": "5fb441c9-b1c8-4a96-a132-3295cd732a55" + "projectId": "7cec043f-3c93-4935-9880-8a0248135d0c" } }, "runtimeVersion": { @@ -62,6 +62,7 @@ }, "updates": { "url": "https://u.expo.dev/5fb441c9-b1c8-4a96-a132-3295cd732a55" - } + }, + "owner": "barnoin-informatique" } } diff --git a/eas.json b/eas.json index 83a6fe4..88af8e1 100644 --- a/eas.json +++ b/eas.json @@ -5,6 +5,9 @@ }, "build": { "development": { + "env": { + "EXPO_PUBLIC_API_URL": "http://192.168.1.223:8001" + }, "developmentClient": true, "distribution": "internal", "channel": "development" diff --git a/src/screens/HomePageWithPaymentOptions.tsx b/src/screens/HomePageWithPaymentOptions.tsx index 570c656..cf5fcec 100644 --- a/src/screens/HomePageWithPaymentOptions.tsx +++ b/src/screens/HomePageWithPaymentOptions.tsx @@ -75,7 +75,7 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith paymentTypesWithActiveStatus.map((paymentType) => ( navigation.navigate( "paymentAmountInputScreen", diff --git a/src/utils/logger.ts b/src/utils/logger.ts index dd48f23..259c0da 100644 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -1,4 +1,4 @@ -import { type configLoggerType, consoleTransport, logger } from "react-native-logs"; +import { consoleTransport, logger } from "react-native-logs"; const levels = { error: 6, @@ -10,30 +10,25 @@ const levels = { silly: 0, }; -const colors = { - error: "redBright", - warn: "yellowBright", - info: "whiteBright", - http: "blueBright", - verbose: "cyanBright", - debug: "greenBright", - silly: "magentaBright", -}; - -const defaultConfig: configLoggerType = { +const LOG = logger.createLogger({ levels, - severity: "silly", transport: consoleTransport, transportOptions: { - colors, + colors: { + error: "redBright", + warn: "yellowBright", + info: "whiteBright", + http: "blueBright", + verbose: "cyanBright", + debug: "greenBright", + silly: "magentaBright", + }, }, async: true, dateFormat: "iso", printLevel: true, printDate: true, enabled: true, -}; - -const LOG = logger.createLogger(defaultConfig); +}); export { LOG }; diff --git a/src/utils/requests/authenticateUser.ts b/src/utils/requests/authenticateUser.ts index d5031af..b6ad52c 100644 --- a/src/utils/requests/authenticateUser.ts +++ b/src/utils/requests/authenticateUser.ts @@ -8,7 +8,7 @@ const log = LOG.extend("authenticateUser"); const authenticateUser = async ({ username, password }: { username: string; password: string }) => { log.http({ username, password }); const response = await axiosRequest({ - url: "/api/token/", + url: "/login/token/", method: "POST", data: { username: username, -- libgit2 0.27.1