This file contains the settings page of the application
- Source:
Members
(inner, constant) styles :Object
Styles of the page
Type:
- Object
- Source:
Methods
(inner) Deconnexion - The deconnexion div()
It returns a div with a clickable image and a text
- Source:
Returns:
A deconnexion button
(inner) encodeQueryString(params)
Encode Uri
Parameters:
Name | Type | Description |
---|---|---|
params |
* | contains the elements to be added to the url. |
- Source:
Returns:
a string separated by an "&".
(inner) fetchWithTimeout(resource, optionsopt)
It fetches a resource, but if the fetch takes longer than the timeout, it
aborts the fetch
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
resource |
string | The URL to fetch. | |
options |
* |
<optional> |
An object containing any custom settings that you want to apply to the request. |
- Source:
Returns:
A function that takes two parameters, resource and options.
(inner) generateRandomString(length) → {string}
Generates a random string containing numbers and letters
Parameters:
Name | Type | Description |
---|---|---|
length |
number | The length of the string |
- Source:
Returns:
The generated string
- Type
- string
(inner) goHome - The function that is called when the user clicks on the "Home" button()
The function goHome() is called when the user clicks on the "Home" button
- Source:
(inner) googleConnexion()
Empty for the moment
- Source:
(inner) Header - The header div()
This function returns a div with a Google image, a title, and a blank div
- Source:
Returns:
A div with a header image, a header title, and a div.
(inner) Location - The location div()
It returns a div with an image and a text element
- Source:
Returns:
A div with a location image and a text that says the city of the
user.
(inner) Profile - The profile div()
It returns a div with a profile picture and an email address
- Source:
Returns:
A div with a profile picture and the email of the user.
(inner) Service - The service div(props)
It returns a div with an image, a text and another image
Parameters:
Name | Type | Description |
---|---|---|
props |
the props object |
- Source:
Returns:
A div with an image, a text and an arrow.
(inner) ServicesAuth - The services auth div()
It returns a div with a style of connexionServices, which contains 5
Service components
- Source:
Returns:
A div with the className connexionServices and a list of Service
components.
(inner) SettingsPage - The settings page(props)
Settings page of the application
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | contains the user information and allAreas |
- Source:
Returns:
The html page
(async, inner) spotifyConnexion()
Ensure the log in of the user on Spotify
- Source:
(async, inner) stravaConnection()
Authenticates the user with Strava API.
- Source:
(inner) stravaConnexion()
Empty for the moment
- Source:
(async, inner) twitchAuth(scopes, twitch_oauth_url, response_type)
Authenticates the user with Twitch OAuth and send an access token to the back.
Parameters:
Name | Type | Description |
---|---|---|
scopes |
string | The list of scopes to be authorized by the user. |
twitch_oauth_url |
string | The URL for the Twitch OAuth endpoint. |
response_type |
string | The response type for the authorization request. |
- Source:
(inner) twitchConnexion()
Authenticates the user with Twitch API.
- Source:
(async, inner) twitterConnexion()
Empty for the moment
- Source:
(inner) updateCursor - The function that is called when the user hovers over a div()
If the cursor is a pointer, make it default. If the cursor is default, make
it a pointer.
- Source:
(inner) updateIP(event)
It updates the IP address of the user in the state of the application
Parameters:
Name | Type | Description |
---|---|---|
event |
the event that triggered the function |
- Source: