Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
1de172f5
Commit
1de172f5
authored
Apr 14, 2025
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
somehow forgot to commit all of those...
parent
89166354
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
22 deletions
+21
-22
app.json
app.json
+4
-3
eas.json
eas.json
+3
-0
HomePageWithPaymentOptions.tsx
src/screens/HomePageWithPaymentOptions.tsx
+1
-1
logger.ts
src/utils/logger.ts
+12
-17
authenticateUser.ts
src/utils/requests/authenticateUser.ts
+1
-1
No files found.
app.json
View file @
1de172f5
{
{
"expo"
:
{
"expo"
:
{
"name"
:
"beasy-mobile"
,
"name"
:
"beasy-mobile"
,
"slug"
:
"b
easy-mobil
e"
,
"slug"
:
"b
arnoinpay-tp
e"
,
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"orientation"
:
"portrait"
,
"orientation"
:
"portrait"
,
"icon"
:
"./assets/beasy_icon.png"
,
"icon"
:
"./assets/beasy_icon.png"
,
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
],
],
"extra"
:
{
"extra"
:
{
"eas"
:
{
"eas"
:
{
"projectId"
:
"
5fb441c9-b1c8-4a96-a132-3295cd732a55
"
"projectId"
:
"
7cec043f-3c93-4935-9880-8a0248135d0c
"
}
}
},
},
"runtimeVersion"
:
{
"runtimeVersion"
:
{
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
},
},
"updates"
:
{
"updates"
:
{
"url"
:
"https://u.expo.dev/5fb441c9-b1c8-4a96-a132-3295cd732a55"
"url"
:
"https://u.expo.dev/5fb441c9-b1c8-4a96-a132-3295cd732a55"
}
},
"owner"
:
"barnoin-informatique"
}
}
}
}
eas.json
View file @
1de172f5
...
@@ -5,6 +5,9 @@
...
@@ -5,6 +5,9 @@
},
},
"build"
:
{
"build"
:
{
"development"
:
{
"development"
:
{
"env"
:
{
"EXPO_PUBLIC_API_URL"
:
"http://192.168.1.223:8001"
},
"developmentClient"
:
true
,
"developmentClient"
:
true
,
"distribution"
:
"internal"
,
"distribution"
:
"internal"
,
"channel"
:
"development"
"channel"
:
"development"
...
...
src/screens/HomePageWithPaymentOptions.tsx
View file @
1de172f5
...
@@ -75,7 +75,7 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
...
@@ -75,7 +75,7 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
paymentTypesWithActiveStatus
.
map
((
paymentType
)
=>
(
paymentTypesWithActiveStatus
.
map
((
paymentType
)
=>
(
<
PaymentOptionContainer
key=
{
paymentType
.
id
}
>
<
PaymentOptionContainer
key=
{
paymentType
.
id
}
>
<
PaymentOption
<
PaymentOption
key=
{
paymentType
.
id
}
//
key=
{
paymentType
.
id
}
onPress=
{
()
=>
onPress=
{
()
=>
navigation
.
navigate
(
navigation
.
navigate
(
"paymentAmountInputScreen"
,
"paymentAmountInputScreen"
,
...
...
src/utils/logger.ts
View file @
1de172f5
import
{
type
configLoggerType
,
consoleTransport
,
logger
}
from
"react-native-logs"
;
import
{
consoleTransport
,
logger
}
from
"react-native-logs"
;
const
levels
=
{
const
levels
=
{
error
:
6
,
error
:
6
,
...
@@ -10,30 +10,25 @@ const levels = {
...
@@ -10,30 +10,25 @@ const levels = {
silly
:
0
,
silly
:
0
,
};
};
const
colors
=
{
const
LOG
=
logger
.
createLogger
({
error
:
"redBright"
,
warn
:
"yellowBright"
,
info
:
"whiteBright"
,
http
:
"blueBright"
,
verbose
:
"cyanBright"
,
debug
:
"greenBright"
,
silly
:
"magentaBright"
,
};
const
defaultConfig
:
configLoggerType
=
{
levels
,
levels
,
severity
:
"silly"
,
transport
:
consoleTransport
,
transport
:
consoleTransport
,
transportOptions
:
{
transportOptions
:
{
colors
,
colors
:
{
error
:
"redBright"
,
warn
:
"yellowBright"
,
info
:
"whiteBright"
,
http
:
"blueBright"
,
verbose
:
"cyanBright"
,
debug
:
"greenBright"
,
silly
:
"magentaBright"
,
},
},
},
async
:
true
,
async
:
true
,
dateFormat
:
"iso"
,
dateFormat
:
"iso"
,
printLevel
:
true
,
printLevel
:
true
,
printDate
:
true
,
printDate
:
true
,
enabled
:
true
,
enabled
:
true
,
};
});
const
LOG
=
logger
.
createLogger
<
keyof
typeof
levels
>
(
defaultConfig
);
export
{
LOG
};
export
{
LOG
};
src/utils/requests/authenticateUser.ts
View file @
1de172f5
...
@@ -8,7 +8,7 @@ const log = LOG.extend("authenticateUser");
...
@@ -8,7 +8,7 @@ const log = LOG.extend("authenticateUser");
const
authenticateUser
=
async
({
username
,
password
}:
{
username
:
string
;
password
:
string
})
=>
{
const
authenticateUser
=
async
({
username
,
password
}:
{
username
:
string
;
password
:
string
})
=>
{
log
.
http
({
username
,
password
});
log
.
http
({
username
,
password
});
const
response
=
await
axiosRequest
<
IauthenticationData
>
({
const
response
=
await
axiosRequest
<
IauthenticationData
>
({
url
:
"/
api
/token/"
,
url
:
"/
login
/token/"
,
method
:
"POST"
,
method
:
"POST"
,
data
:
{
data
:
{
username
:
username
,
username
:
username
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment