diff --git a/src/Components/Repository/TopRepoStatus.tsx b/src/Components/Repository/TopRepoStatus.tsx index 88345b0..974b185 100644 --- a/src/Components/Repository/TopRepoStatus.tsx +++ b/src/Components/Repository/TopRepoStatus.tsx @@ -19,9 +19,9 @@ const TopRepoStatus: React.FC = ({ topRepo }) => {

{topRepo.Name}

-

Stars Count: {topRepo.StarsCount}

-

Language: {topRepo.Language}

-

Date of Creation: {new Date(topRepo.DateOfCreation).toLocaleString()}

+

Stars Count - {topRepo.StarsCount}

+

Language - {topRepo.Language}

+

Creation - {new Date(topRepo.DateOfCreation).toLocaleString()}

); diff --git a/src/Services/analysis.service.ts b/src/Services/analysis.service.ts index e59816e..d2a6251 100644 --- a/src/Services/analysis.service.ts +++ b/src/Services/analysis.service.ts @@ -98,4 +98,37 @@ export const getTopRepo = async(userId:string)=>{ return err; } +} + +export const getPushEventAnalysis = async(userId:string)=>{ + const endPoint ="getUserPushEventsAnalysis" + try{ + const response = await fetch(`${BASE_API}${endPoint}?id=${userId}`) + return response; + } + catch(err){ + return err; + } +} + +export const getWatchEventAnalysis = async(userId:string)=>{ + const endPoint ="getUserWatchEventsAnalysis" + try{ + const response = await fetch(`${BASE_API}${endPoint}?id=${userId}`) + return response; + } + catch(err){ + return err; + } +} + +export const getPullEventAnalysis = async(userId:string)=>{ + const endPoint ="getUserWatchEventsAnalysis" + try{ + const response = await fetch(`${BASE_API}${endPoint}?id=${userId}`) + return response; + } + catch(err){ + return err; + } } \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index 3b6febe..0309ffe 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -17,7 +17,7 @@ } body{ - background-color:black; + background-color: black; }