Skip to content

Commit

Permalink
Merge branch 'master' into fixStartButton
Browse files Browse the repository at this point in the history
  • Loading branch information
TejasSaraf authored Oct 31, 2024
2 parents b0c64b2 + 2f5dca3 commit 2d97833
Show file tree
Hide file tree
Showing 36 changed files with 1,622 additions and 579 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/issue-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

name: 'open-issue reminder'

on:
schedule:
- cron: '15 4 * * *'
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run script
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: issues } = await github.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
});
for (const issue of issues) {
const issueComment = `Hi there! This issue is still open. We are looking forward to your response.
Assignees: ${issue.assignees.map(assignee => '@' + assignee.login).join(', ') || 'None'}`;
await github.issues.createComment({
issue_number: issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: issueComment
});
}
42 changes: 29 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ This project implements **Depth-First Search (DFS)** and **Breadth-First Search
### 🔮 Future Upgrades Await
This is just the beginning! With plans to incorporate advanced algorithms (Dijkstra's, A*) 🧠, user dashboards 📊, and mobile-friendly features 📱, we’re on the path to making this project an indispensable tool for graph lovers everywhere.

<table align="center">
<thead align="center">
<tr border: 2px;>
<td><b>🌟 Stars</b></td>
<td><b>🍴 Forks</b></td>
<td><b>🐛 Issues</b></td>
<td><b>🔔 Open PRs</b></td>
<td><b>🔕 Close PRs</b></td>
</tr>
</thead>
<tbody>
<tr>
<td><img alt="Stars" src="https://img.shields.io/github/stars/sakeel-103/DFS-BFS-Graph-Travers?style=flat&logo=github"/></td>
<td><img alt="Forks" src="https://img.shields.io/github/forks/sakeel-103/DFS-BFS-Graph-Travers?style=flat&logo=github"/></td>
<td><img alt="Issues" src="https://img.shields.io/github/issues/sakeel-103/DFS-BFS-Graph-Travers?style=flat&logo=github"/></td>
<td><img alt="Open Pull Requests" src="https://img.shields.io/github/issues-pr/sakeel-103/DFS-BFS-Graph-Travers?style=flat&logo=github"/></td>
<td><img alt="Close Pull Requests" src="https://img.shields.io/github/issues-pr-closed/sakeel-103/DFS-BFS-Graph-Travers?style=flat&color=critical&logo=github"/></td>
</tr>
</tbody>
</table>

<img src="https://raw.githubusercontent.com/alo7lika/DFS-BFS-Graph-Travers/refs/heads/master/Images/212284100-561aa473-3905-4a80-b561-0d28506553ee.gif" width="900">

### This project is now OFFICIALLY accepted for
Expand Down Expand Up @@ -297,20 +318,15 @@ For more detailed instructions, please refer to our full **[Contributing Guide](
- We extend our heartfelt gratitude for your invaluable contribution to our project! Your efforts play a pivotal role in elevating this project to greater heights.
- Make sure you show some love by giving ⭐ to our repository.

<div align="center">

| Contributor | Contributor | Contributor | Contributor |
|----------------------|----------------------|----------------------|----------------------|
<img src="https://github.com/sakeel-103.png" alt="Sakeel" width="100" height="100"> <br> <div align="center">[Sakeel](https://github.com/sakeel-103)</div> | <img src="https://github.com/shubhagarwal1.png" alt="Shubham Agarwal" width="100" height="100"> <br> <div align="center">[Shubham Agarwal](https://github.com/shubhagarwal1)</div> | <img src="https://github.com/mehul-m-prajapati.png" alt="Mehul Prajapati" width="100" height="100"> <br> <div align="center">[Mehul Prajapati](https://github.com/mehul-m-prajapati)</div> | | <img src="https://github.com/Jashwanth-rit.png" alt="Jashwanth R" width="100" height="100"> <br> <div align="center">[Jashwanth R](https://github.com/Jashwanth-rit)</div> |
| <img src="https://github.com/ananyag309.png" alt="Ananya Gupta" width="100" height="100"> <br> <div align="center">[Ananya Gupta](https://github.com/ananyag309)</div> | <img src="https://github.com/alo7lika.png" alt="Alolika Bhowmik" width="100" height="100"> <br> <div align="center">[Alolika Bhowmik](https://github.com/alo7lika)</div> | <img src="https://github.com/muskan171105.png" alt="Muskan Sharma" width="100" height="100"> <br> <div align="center">[Muskan Sharma](https://github.com/muskan171105)</div> | <img src="https://github.com/adityakalburgi.png" alt="Aditya Kalburgi" width="100" height="100"> <br> <div align="center">[Aditya Kalburgi](https://github.com/adityakalburgi)</div> |
| <img src="https://github.com/LifeHashed.png" alt="Life Hashed" width="100" height="100"> <br> <div align="center">[Life Hashed](https://github.com/LifeHashed)</div> | <img src="https://github.com/Varsha567.png" alt="Varsha" width="100" height="100"> <br> <div align="center">[Varsha](https://github.com/Varsha567)</div> | <img src="https://github.com/09viv.png" alt="Viv" width="100" height="100"> <br> <div align="center">[Viv](https://github.com/09viv)</div> | <img src="https://github.com/Shariq2003.png" alt="Shariq" width="100" height="100"> <br> <div align="center">[Shariq](https://github.com/Shariq2003)</div> |
| <img src="https://github.com/Himanshu-kumar025.png" alt="Himanshu Kumar" width="100" height="100"> <br> <div align="center">[Himanshu Kumar](https://github.com/Himanshu-kumar025)</div> | <img src="https://github.com/avisha191.png" alt="Avisha" width="100" height="100"> <br> <div align="center">[Avisha](https://github.com/avisha191)</div> | <img src="https://github.com/Mausumi134.png" alt="Mausumi" width="100" height="100"> <br> <div align="center">[Mausumi](https://github.com/Mausumi134)</div> | <img src="https://github.com/itbindu.png" alt="Bindu" width="100" height="100"> <br> <div align="center">[Bindu](https://github.com/itbindu)</div> |
| <img src="https://github.com/dipkulkhandelwal21.png" alt="Dipesh Kulkhandewal" width="100" height="100"> <br> <div align="center">[Dipesh Kulkhandewal](https://github.com/dipkulkhandelwal21)</div> | <img src="https://github.com/mahaveergurjar.png" alt="Mahaveer Gurjar" width="100" height="100"> <br> <div align="center">[Mahaveer Gurjar](https://github.com/mahaveergurjar)</div> | <img src="https://github.com/rudrapratap63.png" alt="Rudra Pratap" width="100" height="100"> <br> <div align="center">[Rudra Pratap](https://github.com/rudrapratap63)</div> | <img src="https://github.com/Sawan-Kushwah.png" alt="Sawan Kushwah" width="100" height="100"> <br> <div align="center">[Sawan Kushwah](https://github.com/Sawan-Kushwah)</div> |
| <img src="https://github.com/T-Rahul-prabhu-38.png" alt="T Rahul Prabhu" width="100" height="100"> <br> <div align="center">[T Rahul Prabhu](https://github.com/T-Rahul-prabhu-38)</div> | <img src="https://github.com/Aditijainnn.png" alt="Aditi Jain" width="100" height="100"> <br> <div align="center">[Aditi Jain](https://github.com/Aditijainnn)</div> | <img src="https://github.com/saurabh-dev-vns.png" alt="Saurabh" width="100" height="100"> <br> <div align="center">[Saurabh](https://github.com/saurabh-dev-vns)</div> | <img src="https://github.com/smog-root.png" alt="Smog Root" width="100" height="100"> <br> <div align="center">[Smog Root](https://github.com/smog-root)</div> |
| <img src="https://github.com/iamendless10.png" alt="I Am Endless" width="100" height="100"> <br> <div align="center">[I Am Endless](https://github.com/iamendless10)</div> | <img src="https://github.com/AswaniBolisetti.png" alt="Aswani Bolisetti" width="100" height="100"> <br> <div align="center">[Aswani Bolisetti](https://github.com/AswaniBolisetti)</div> | <img src="https://github.com/SupratitDatta.png" alt="Supratit Datta" width="100" height="100"> <br> <div align="center">[Supratit Datta](https://github.com/SupratitDatta)</div> | <img src="https://github.com/khurshed07.png" alt="Khurshed" width="100" height="100"> <br> <div align="center">[Khurshed](https://github.com/khurshed07)</div> |
| <img src="https://github.com/devxMani.png" alt="Devx Mani" width="100" height="100"> <br> <div align="center">[Devx Mani](https://github.com/devxMani)</div> | <img src="https://github.com/Dipu2552003.png" alt="Dipu" width="100" height="100"> <br> <div align="center">[Dipu](https://github.com/Dipu2552003)</div> | <img src="https://github.com/Sandigupta.png" alt="Sandi Gupta" width="100" height="100"> <br> <div align="center">[Sandi Gupta](https://github.com/Sandigupta)</div> | <img src="https://github.com/ThunderShadows.png" alt="Thunder Shadows" width="100" height="100"> <br> <div align="center">[Thunder Shadows](https://github.com/ThunderShadows)</div> |
<p align="center">
<img src="https://api.vaunt.dev/v1/github/entities/sakeel-103/repositories/DFS-BFS-Graph-Travers/contributors?format=svg&limit=54" width="700" height="250" />
</p>

</div>
<p align="center">
<a href="https://github.com/sakeel-103/DFS-BFS-Graph-Travers/graphs/contributors">
<img src="https://contrib.rocks/image?repo=sakeel-103/DFS-BFS-Graph-Travers" />
</a>
</p>

![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)

Expand Down
10 changes: 8 additions & 2 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,21 @@ app.post('/api/signup', validateSignup, async (req, res) => {
const { username, email, password } = req.body;

try {
// Check if a user with the same email or username already exists
const existingUser = await User.findOne({ $or: [{ email }, { username }] });
if (existingUser) {
return res.status(409).json({ message: 'Username or email already exists.' });
}

const hashedPassword = await bcrypt.hash(password, 10);
const newUser = new User({ username, email, password: hashedPassword });

await newUser.save();
req.session.userId = newUser._id; // Set user ID in session
res.status(201).json({ message: 'User registered successfully' });
} catch (error) {
console.error('Error during signup:', error);
res.status(500).json({ message: 'Server error' });
console.log('Server Error during signup:', error.message);
res.status(500).json({ message: 'Server error. Please try again later.' });
}
});

Expand Down
39 changes: 34 additions & 5 deletions contributor/contributor.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,28 @@ body {
margin-bottom: 2rem;
}

/*Add footer input field with icon of email*/
.input-flex {
display: flex;
align-items: center;
width: 30%;
border: 1px solid #ccc;
padding: 8px;
border-radius: 4px;
}

.input-flex i {
color: #888;
margin-right: 8px;
}

.input-flex input {
border: none;
outline: none;
flex-grow: 1;
font-size: 16px;
}

/* Buttons */
.contributor-btn {
display: inline-block;
Expand All @@ -69,23 +91,25 @@ body {
}

.contributor-btn-primary {
background-color: #fff;
color: #333;
background-color: #2257a0;
color: #fff;
box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.contributor-btn-primary:hover {
background-color: #f0f0f0;
background-color: #c94242;
transition-duration: 2s;
}

.contributor-btn-secondary {
background-color: #333;
background-color: #ca4818;
color: #fff;
box-shadow: 0 0 15px rgba(51, 51, 51, 0.3);
}

.contributor-btn-secondary:hover {
background-color: #444;
background-color: #3ad71b;
transition-duration: 2s;
}

/* Stats Section */
Expand Down Expand Up @@ -316,4 +340,9 @@ body {
width: 100%;
max-width: 300px;
}

/*add input field width for small screen */
.input-flex {
width: 50%;
}
}
5 changes: 5 additions & 0 deletions contributor/contributor.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<title>DFS-BFS-Graph-Travers Contributors</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="contributor.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">

<style>
.homeBtn {
position: fixed;
Expand Down Expand Up @@ -58,7 +60,10 @@ <h2>Meet Our Contributors</h2>
<h2>Ready to Make an Impact?</h2>
<p>Join our community and help shape the future with us.</p>
<form id="subscribeForm">
<div class="input-flex">
<i class="far fa-envelope"></i>
<input type="email" id="emailInput" placeholder="Enter your email" required>
</div>
<button type="submit" class="contributor-btn contributor-btn-secondary">Get Started</button>
</form>
<div id="notification" class="contributor-notification contributor-hidden" style="background-color: #333333; color: white;"></div>
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
publish = "dist/eccom-prj/browser"
command = "ng build"
publish = "dist/eccom-prj/browser"
command = "ng build --prod"

[[redirects]]
from = "/*"
Expand Down
4 changes: 3 additions & 1 deletion src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
provideZoneChangeDetection,
} from '@angular/core';
import { provideRouter } from '@angular/router';
import { provideAnimations } from '@angular/platform-browser/animations'; // Import animations provider

import { routes } from './app.routes';
import {provideToastr} from 'ngx-toastr'
Expand All @@ -15,7 +16,8 @@ export const appConfig: ApplicationConfig = {
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
importProvidersFrom(ReactiveFormsModule),
provideToastr()
provideToastr(),
provideAnimations()
],
};

Expand Down
23 changes: 23 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';
import { ToastrModule } from 'ngx-toastr';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; // Import this module for animations
import { provideAnimations } from '@angular/platform-browser/animations';

import { AppComponent } from './app.component';

@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
BrowserAnimationsModule, // Required for toastr animations
RouterModule.forRoot([]), // Define your routes here
ToastrModule.forRoot(), // Initialize Toastr globally
],
providers: [provideAnimations()],
bootstrap: [AppComponent]
})
export class AppModule { }
18 changes: 18 additions & 0 deletions src/app/components/Graphs/acyclicgraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@
#backToTop:hover {
background-color: #7a7a7a;
}

.gtranslate_wrapper {
position: fixed; /* Fixed position */
bottom: 20px; /* Distance from the bottom */
left: 20px; /* Distance from the left */
z-index: 1000; /* Ensure it appears above other elements */
}
</style>
</head>

Expand Down Expand Up @@ -141,6 +148,17 @@ <h2>Interactive Acyclic Graph</h2>

<button id="backToTop" onclick="scrollToTop()">Back to Top</button>

<div class="gtranslate_wrapper">
<script>
window.gtranslateSettings = {
"default_language": "en",
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper"
};
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/popup.js" defer></script>
</div>

<script>
const graphContainer = d3.select('#graphContainer');
const width = graphContainer.node().clientWidth;
Expand Down
8 changes: 8 additions & 0 deletions src/app/components/Graphs/directedgraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
background-color: #7a7a7a;
}
</style>


</head>

<body>
Expand Down Expand Up @@ -142,6 +144,12 @@ <h2>Interactive Directed Graph</h2>

<button id="backToTop" onclick="scrollToTop()">Back to Top</button>

<div style="position: fixed; left: 20px; bottom: 20px; z-index: 1000;">
<div class="gtranslate_wrapper"></div>
<script>window.gtranslateSettings = {"default_language":"en", "detect_browser_language":true,"wrapper_selector":".gtranslate_wrapper"}</script>
<script src="https://cdn.gtranslate.net/widgets/latest/popup.js" defer></script>
</div>

<script>
const graphContainer = d3.select('#graphContainer');
const width = graphContainer.node().clientWidth;
Expand Down
19 changes: 19 additions & 0 deletions src/app/components/Graphs/tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@
.back-to-top:hover {
background-color: #7a7a7a;
}


.gtranslate_wrapper {
position: fixed; /* Fixed position */
bottom: 20px; /* Distance from the bottom */
left: 20px; /* Distance from the left */
z-index: 1000; /* Ensure it appears above other elements */
}
</style>
</head>

Expand Down Expand Up @@ -141,6 +149,17 @@ <h2>Interactive Tree Visualization</h2>

<button class="back-to-top" onclick="scrollToTop()">Back to Top</button>

<div class="gtranslate_wrapper">
<script>
window.gtranslateSettings = {
"default_language": "en",
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper"
};
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/popup.js" defer></script>
</div>

<script>
const treeContainer = d3.select('#treeContainer');
const width = treeContainer.node().clientWidth;
Expand Down
20 changes: 20 additions & 0 deletions src/app/components/Graphs/undirectedgraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@
#backToTop:hover {
background-color: #7a7a7a;
}


.gtranslate_wrapper {
position: fixed; /* Fixed position */
bottom: 20px; /* Distance from the bottom */
left: 20px; /* Distance from the left */
z-index: 1000; /* Ensure it appears above other elements */
}

</style>
</head>

Expand Down Expand Up @@ -141,6 +150,17 @@ <h2>Interactive Undirected Graph</h2>

<button id="backToTop" onclick="scrollToTop()">Back to Top</button>

<div class="gtranslate_wrapper">
<script>
window.gtranslateSettings = {
"default_language": "en",
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper"
};
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/popup.js" defer></script>
</div>

<script>
const graphContainer = d3.select('#graphContainer');
const width = graphContainer.node().clientWidth;
Expand Down
Loading

0 comments on commit 2d97833

Please sign in to comment.