Skip to content

Commit bc83809

Browse files
authored
Merge branch 'main' into dev4
2 parents e86c204 + 91e20e2 commit bc83809

File tree

808 files changed

+101611
-7661
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

808 files changed

+101611
-7661
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ BASE_URL =
22
ALGOLIA_API_KEY =
33
ALGOLIA_APP_ID =
44
GTM_ID =
5-
GA_ID =
5+
GA_ID =

.github/dependabot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # Using npm for Docusaurus
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"
17+
18+
- package-ecosystem: "docker"
19+
directory: "/"
20+
schedule:
21+
interval: "weekly"
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
name: Comment on Issue Close
2-
3-
on:
4-
issues:
5-
types: [closed]
6-
7-
jobs:
8-
greet-on-close:
9-
runs-on: ubuntu-latest
10-
permissions:
11-
issues: write
12-
steps:
13-
- name: Greet User
14-
uses: actions/github-script@v7
15-
with:
16-
github-token: ${{ secrets.GITHUB_TOKEN }}
17-
script: |
18-
const issue = context.payload.issue;
19-
const issueCreator = issue.user.login;
20-
const issueNumber = issue.number;
21-
22-
const greetingMessage = `Hello @${issueCreator}! Your issue #${issueNumber} has been closed. Thank you for your contribution!`;
23-
24-
github.rest.issues.createComment({
25-
owner: context.repo.owner,
26-
repo: context.repo.repo,
27-
issue_number: issueNumber,
28-
body: greetingMessage
1+
name: Comment on Issue Close
2+
3+
on:
4+
issues:
5+
types: [closed]
6+
7+
jobs:
8+
greet-on-close:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- name: Greet User
14+
uses: actions/github-script@v7
15+
with:
16+
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
script: |
18+
const issue = context.payload.issue;
19+
const issueCreator = issue.user.login;
20+
const issueNumber = issue.number;
21+
22+
const greetingMessage = `Hello @${issueCreator}! Your issue #${issueNumber} has been closed. Thank you for your contribution!`;
23+
24+
github.rest.issues.createComment({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
issue_number: issueNumber,
28+
body: greetingMessage
2929
});

.github/workflows/close-old-issue.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
name: Close Old Issues
2-
on:
3-
schedule:
4-
- cron: "0 0 * * *"
5-
6-
jobs:
7-
close-issues:
8-
runs-on: ubuntu-latest
9-
10-
steps:
11-
- name: Checkout Repository
12-
uses: actions/checkout@v4
13-
14-
- name: Close Old Issues
15-
run: |
16-
open_issues=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
17-
"https://api.github.com/repos/${{ github.repository }}/issues?state=open" \
18-
| jq -r '.[] | .number')
19-
for issue in $open_issues; do
20-
# Get the last updated timestamp of the issue
21-
last_updated=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
22-
"https://api.github.com/repos/${{ github.repository }}/issues/$issue" \
23-
| jq -r '.updated_at')
24-
days_since_update=$(( ( $(date +%s) - $(date -d "$last_updated" +%s) ) / 86400 ))
25-
if [ $days_since_update -gt 30 ]; then
26-
curl -s -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
27-
-H "Accept: application/vnd.github.v3+json" \
28-
-d '{"state":"closed"}' \
29-
"https://api.github.com/repos/${{ github.repository }}/issues/$issue"
30-
31-
# Add a comment explaining when the issue will be closed
32-
curl -s -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
33-
-H "Accept: application/vnd.github.v3+json" \
34-
-d '{"body":"This issue has been automatically closed because it has been inactive for more than 30 days. If you believe this is still relevant, feel free to reopen it or create a new one. Thank you!"}' \
35-
"https://api.github.com/repos/${{ github.repository }}/issues/$issue/comments"
36-
fi
1+
name: Close Old Issues
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v4
13+
14+
- name: Close Old Issues
15+
run: |
16+
open_issues=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
17+
"https://api.github.com/repos/${{ github.repository }}/issues?state=open" \
18+
| jq -r '.[] | .number')
19+
for issue in $open_issues; do
20+
# Get the last updated timestamp of the issue
21+
last_updated=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
22+
"https://api.github.com/repos/${{ github.repository }}/issues/$issue" \
23+
| jq -r '.updated_at')
24+
days_since_update=$(( ( $(date +%s) - $(date -d "$last_updated" +%s) ) / 86400 ))
25+
if [ $days_since_update -gt 30 ]; then
26+
curl -s -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
27+
-H "Accept: application/vnd.github.v3+json" \
28+
-d '{"state":"closed"}' \
29+
"https://api.github.com/repos/${{ github.repository }}/issues/$issue"
30+
31+
# Add a comment explaining when the issue will be closed
32+
curl -s -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
33+
-H "Accept: application/vnd.github.v3+json" \
34+
-d '{"body":"This issue has been automatically closed because it has been inactive for more than 30 days. If you believe this is still relevant, feel free to reopen it or create a new one. Thank you!"}' \
35+
"https://api.github.com/repos/${{ github.repository }}/issues/$issue/comments"
36+
fi
3737
done

.github/workflows/close-old-pr.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
name: Close Stale PRs
2-
3-
on:
4-
schedule:
5-
- cron: '0 0 * * *' # Runs daily at midnight
6-
pull_request:
7-
types:
8-
- opened
9-
- reopened
10-
- synchronize
11-
12-
permissions:
13-
pull-requests: write
14-
issues: write
15-
16-
jobs:
17-
close_stale_prs:
18-
runs-on: ubuntu-latest
19-
permissions:
20-
pull-requests: write
21-
22-
steps:
23-
- uses: actions/stale@v9
24-
with:
25-
repo-token: ${{ secrets.GITHUB_TOKEN }}
26-
stale-pr-message: 'This PR has been automatically closed due to inactivity from the owner for 15 days.'
27-
days-before-pr-stale: 15
28-
days-before-pr-close: 0
29-
exempt-pr-author: false
30-
exempt-pr-labels: ''
31-
only-labels: ''
32-
operations-per-run: 30
33-
remove-stale-when-updated: true
1+
name: Close Stale PRs
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Runs daily at midnight
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
12+
permissions:
13+
pull-requests: write
14+
issues: write
15+
16+
jobs:
17+
close_stale_prs:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
pull-requests: write
21+
22+
steps:
23+
- uses: actions/stale@v9
24+
with:
25+
repo-token: ${{ secrets.GITHUB_TOKEN }}
26+
stale-pr-message: 'This PR has been automatically closed due to inactivity from the owner for 15 days.'
27+
days-before-pr-stale: 15
28+
days-before-pr-close: 0
29+
exempt-pr-author: false
30+
exempt-pr-labels: ''
31+
only-labels: ''
32+
operations-per-run: 30
33+
remove-stale-when-updated: true
3434
debug-only: false

.github/workflows/greetings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
with:
2525
repo-token: ${{ secrets.GITHUB_TOKEN }}
2626
issue-message: |
27-
Hi there! 👋 Thank you for opening your issue on CodeHarborHub. We're excited to hear your thoughts and help you out. You've raised a great topic! Please provide as much detail as you can so we can assist you effectively. Welcome aboard!
27+
Hi @${{ github.actor }}! 👋 Thank you for opening your first issue on CodeHarborHub. We're excited to hear your thoughts and help you out. You've raised a great topic! Please provide as much detail as you can so we can assist you effectively. Welcome aboard!
2828
pr-message: |
29-
Hi there! 👋 Thank you for submitting your pull request to CodeHarborHub. Great job on the contribution! 🎉 We appreciate your efforts and our team will review it soon. If you have any questions or need further assistance, feel free to reach out. Keep up the great work!
29+
Hi @${{ github.actor }}! 👋 Thank you for submitting your first pull request to CodeHarborHub. Great job on the contribution! 🎉 We appreciate your efforts and our team will review it soon. If you have any questions or need further assistance, feel free to reach out. Keep up the great work!
3030
3131
- name: Assign issue or pull request to team member
3232
if: github.event_name == 'issues' || github.event_name == 'pull_request_target'

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine AS builder
1+
FROM node:22-alpine AS builder
22

33
WORKDIR /app
44

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Welcome to CodeHarborHub! Your gateway to top-notch tech education. **Tired of l
66

77
<a href="https://github.com/Ajay-Dhangar"><img src="https://readme-typing-svg.demolab.com?font=Fira+Code&pause=1000&color=DEF72C&random=false&center=false &width=1000&lines=Hi%2C+there.+If+you+like+CodeHarborHub,+give+it+a+Star" alt="Typing SVG" /></a>
88

9+
<img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=464236&theme=light" alt="CodeHarborHub - Tired&#0032;of&#0032;limitations&#0063;&#0032;CodeHarborHub&#0032;shatters&#0032;them&#0046; | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
10+
911
[![Website](https://img.shields.io/website?url=https%3A%2F%2Fwww.codeharborhub.live%2F)](https://www.codeharborhub.live/)
1012
[![License](https://img.shields.io/github/license/CodeHarborHub/codeharborhub)](https://github.com/CodeHarborHub/codeharborhub/blob/main/LICENSE)
1113
[![Contributors](https://img.shields.io/github/contributors/CodeHarborHub/codeharborhub)](https://github.com/CodeHarborHub/codeharborhub/graphs/contributors)
@@ -71,7 +73,15 @@ Follow these steps:
7173
7274
## Support
7375
74-
For any questions or issues, feel free to reach out to us through our [website](https://www.codeharborhub.live/) or by opening an [issue](https://github.com/CodeHarborHub/codeharborhub/issues) on GitHub.
76+
---
77+
78+
### If you're facing any issues, connect with our live chat support! 💬
79+
80+
> **Visit:** 🔗https://codeharborhub.github.io/community/supports/#-how-to-get-support (our support page) and let us know your issue. We'll solve it for you! 🚀
81+
82+
---
83+
84+
For any questions or issues, feel free to reach out to us through our [website](https://codeharborhub.github.io/community/supports/#-how-to-get-support) or by opening an [issue](https://github.com/CodeHarborHub/codeharborhub/issues) on GitHub.
7585

7686
Stay updated with the latest news and announcements:
7787

@@ -85,7 +95,7 @@ This project is licensed under the [MIT License](LICENSE).
8595
8696
## Badges
8797
88-
[![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io.svg/?label=active+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io/) [![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io.svg/?label=resolved+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io/) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=bugs)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub.github.io&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub.github.io) [![DeepScan grade](https://deepscan.io/api/teams/24046/projects/27285/branches/870905/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=24046&pid=27285&bid=870905) [![Docker Image CI](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/docker-image.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/docker-image.yml) [![Close Old Issues](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-issue.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-issue.yml) [![Close Stale PRs](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-pr.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-pr.yml) [![CodeQL](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/github-code-scanning/codeql) [![Comment on Issue Close](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/autocomment-iss-close.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/autocomment-iss-close.yml) [![Greetings](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/greetings.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/greetings.yml) ![GitHub commit activity](https://img.shields.io/github/commit-activity/t/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/CodeHarborHub/codeharborhub) ![GitHub Org's stars](https://img.shields.io/github/stars/CodeHarborHub%2Fcodeharborhub) ![GitHub License](https://img.shields.io/github/license/CodeHarborHub/codeharborhub) ![GitHub forks](https://img.shields.io/github/forks/CodeHarborHub/codeharborhub) ![GitHub watchers](https://img.shields.io/github/watchers/CodeHarborHub/codeharborhub) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/CodeHarborHub/codeharborhub) ![GitHub file size in bytes](https://img.shields.io/github/size/CodeHarborHub/codeharborhub/docusaurus.config.js) ![GitHub repo file or directory count](https://img.shields.io/github/directory-file-count/CodeHarborHub/codeharborhub) ![GitHub repo size](https://img.shields.io/github/repo-size/CodeHarborHub/codeharborhub)
98+
[![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io.svg/?label=active+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io/) [![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io.svg/?label=resolved+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.github.io/) [![DeepScan grade](https://deepscan.io/api/teams/24046/projects/27285/branches/870905/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=24046&pid=27285&bid=870905) [![Docker Image CI](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/docker-image.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/docker-image.yml) [![Close Old Issues](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-issue.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-issue.yml) [![Close Stale PRs](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-pr.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/close-old-pr.yml) [![CodeQL](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/github-code-scanning/codeql) [![Comment on Issue Close](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/autocomment-iss-close.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/autocomment-iss-close.yml) [![Greetings](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/greetings.yml/badge.svg)](https://github.com/CodeHarborHub/codeharborhub/actions/workflows/greetings.yml) ![GitHub commit activity](https://img.shields.io/github/commit-activity/t/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/CodeHarborHub/codeharborhub) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/CodeHarborHub/codeharborhub) ![GitHub Org's stars](https://img.shields.io/github/stars/CodeHarborHub%2Fcodeharborhub) ![GitHub License](https://img.shields.io/github/license/CodeHarborHub/codeharborhub) ![GitHub forks](https://img.shields.io/github/forks/CodeHarborHub/codeharborhub) ![GitHub watchers](https://img.shields.io/github/watchers/CodeHarborHub/codeharborhub) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/CodeHarborHub/codeharborhub) ![GitHub file size in bytes](https://img.shields.io/github/size/CodeHarborHub/codeharborhub/docusaurus.config.js) ![GitHub repo file or directory count](https://img.shields.io/github/directory-file-count/CodeHarborHub/codeharborhub) ![GitHub repo size](https://img.shields.io/github/repo-size/CodeHarborHub/codeharborhub)
8999
90100
## Contributors
91101

assets/606 ex1.png

32.6 KB
Loading

assets/606 ex2.png

30.1 KB
Loading

assets/Avl-Tree.png

22.4 KB
Loading

assets/Hash-Table-Search.png

327 KB
Loading

assets/Jump_Search.jpg

14.9 KB
Loading
141 KB
Loading

authors.json

Whitespace-only changes.

0 commit comments

Comments
 (0)