-
+
-
+
{{ userProfile.login }}
-- No issues or pull requests found for this contributor. -
+ {{errorMessage}} +diff --git a/webiu-server/controllers/contributorController.js b/webiu-server/controllers/contributorController.js index d40a696..e637083 100644 --- a/webiu-server/controllers/contributorController.js +++ b/webiu-server/controllers/contributorController.js @@ -11,6 +11,8 @@ const getAllContributors = async (req, res) => { let finalResponse = {}; const orgName = 'c2siorg'; const repositories = await fetchRepositories(orgName); + console.log(repositories); + if (!repositories) { return res.status(500).json({ error: 'Failed to fetch repositories' }); diff --git a/webiu-ui/src/app/components/navbar/navbar.component.html b/webiu-ui/src/app/components/navbar/navbar.component.html index fb09a50..58f382f 100644 --- a/webiu-ui/src/app/components/navbar/navbar.component.html +++ b/webiu-ui/src/app/components/navbar/navbar.component.html @@ -1,8 +1,12 @@
- \ No newline at end of file + diff --git a/webiu-ui/src/app/components/navbar/navbar.component.scss b/webiu-ui/src/app/components/navbar/navbar.component.scss index 60be9c2..96a6649 100644 --- a/webiu-ui/src/app/components/navbar/navbar.component.scss +++ b/webiu-ui/src/app/components/navbar/navbar.component.scss @@ -1,7 +1,7 @@ .navbar { width: 100%; display: flex; - padding: 10px 50px; + padding: 10px 20px; justify-content: space-between; align-items: center; background: var(--navbar-bg); diff --git a/webiu-ui/src/app/components/navbar/navbar.component.ts b/webiu-ui/src/app/components/navbar/navbar.component.ts index f0c598d..0801bb7 100644 --- a/webiu-ui/src/app/components/navbar/navbar.component.ts +++ b/webiu-ui/src/app/components/navbar/navbar.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, HostListener, OnInit } from '@angular/core'; import { CommonModule } from '@angular/common'; import { Router, RouterModule } from '@angular/router'; import { ThemeService } from '../../services/theme.service'; @@ -68,4 +68,17 @@ export class NavbarComponent implements OnInit { window.location.href = 'http://localhost:5000/auth/github'; } + // Close login options if clicked outside + @HostListener('document:click', ['$event']) + onClickOutside(event: MouseEvent): void { + const loginOptionsElement = document.querySelector('.login-options'); + const loginButton = document.querySelector('.Login_Logout'); + + // If the click is outside of the login options or login button, close the login options + if (this.showLoginOptions && !loginOptionsElement?.contains(event.target as Node) && !loginButton?.contains(event.target as Node)) { + this.showLoginOptions = false; + } + } + } + diff --git a/webiu-ui/src/app/page/contributor-search/contributor-search.component.html b/webiu-ui/src/app/page/contributor-search/contributor-search.component.html index 8390646..b9259f0 100644 --- a/webiu-ui/src/app/page/contributor-search/contributor-search.component.html +++ b/webiu-ui/src/app/page/contributor-search/contributor-search.component.html @@ -1,27 +1,38 @@ -