diff --git a/web/src/comps/WindowElem.tsx b/web/src/comps/WindowElem.tsx index 9764ff8..14eb384 100644 --- a/web/src/comps/WindowElem.tsx +++ b/web/src/comps/WindowElem.tsx @@ -1,7 +1,7 @@ import React from "react"; -export default function WindowElem(props: { title: React.ReactNode, children: React.ReactNode }) { - return
+export default function WindowElem(props: { title: React.ReactNode, className?: string, children: React.ReactNode }) { + return

{props.title}

diff --git a/web/src/pages/SyncPage.tsx b/web/src/pages/SyncPage.tsx index ffd6899..689cd52 100644 --- a/web/src/pages/SyncPage.tsx +++ b/web/src/pages/SyncPage.tsx @@ -11,54 +11,62 @@ export default function SyncPage(): React.ReactElement { useEffect(() => { getCalendarToken().then((token: string) => { setToken(token); - }).catch(() => {}); + }).catch(() => { + }); }, []); if (token === null) return
Loading...
return ( -
- Use an internal scraper}> -
-

How it's works ?

-

You provide a Microsoft session cookie below. It will stored on a - private and secured database with encryptation methods. There are multiple scrapers services, - and your Intra & MyEpitech data will be scraper by one of they. Recommanded if you can't host - your own scraper.

+
+ Use an internal scraper} + > +
+

How it's works ?

+

+ You provide a Microsoft session cookie below. It will be stored on a + private and secured database with encryption methods. There are multiple + scraper services, and your Intra & MyEpitech data will be scraped by one + of them. Recommended if you can't host your own scraper. +

- Warning: This service is not affiliated with - Epitech, and - the - data is stored on a private server. Use it at your own risk. + Warning: This service is + not affiliated with Epitech, and the data is stored on a private server. + Use it at your own risk.

- How can i get my Microsoft cookie ? + How can I get my Microsoft cookie? You can follow - this guide to get - your Microsoft session cookie. + this guide + {" "} + to get your Microsoft session cookie.

- - -
-

Update your microsoft cookie

-

If you have changed your Microsoft password, or the token is expired, you need to re - enter it - below.

- setMicroToken(e.target.value)} + +
+

Update your Microsoft cookie

+

+ If you have changed your Microsoft password, or the token is + expired, you need to re-enter it below. +

+ setMicroToken(e.target.value)} />
-
-

Disable the internal scraper mode

-

If you want to stop the scraper, you can disable it here. Your token will be deleted from - the - database.

-
-
- -
- - - Host your own scraper}> -
-

How it works ?

-

- The tekbetter data scraper is open-source. You can install on your own - server, and use it to get your data. - For authentication, you need to provide a token on the scraper configuration, to authorize it to - push your data to your account. + Host your own scraper} + > +

+

How it works ?

+

+ The tekbetter data scraper is open-source. You can install it on your own + server, and use it to get your data. For authentication, you need to + provide a token on the scraper configuration, to authorize it to push + your data to your account.

+

Install the scraper:

+ + Github repository + -

Install the scraper:

- Github repository +

Your upload token:

+ {token} -

Your upload token:

- {token} - -

This is the api url you need to use on the scraper config:

- {document.location.origin} +

+ This is the API URL you need to use in the scraper config: +

+ {document.location.origin} - -
-
+ ); } \ No newline at end of file