Skip to content

Commit 80f3ecd

Browse files
Merge pull request #3 from CodeHarborHub/main
Updates
2 parents 72a00ab + 8d8430c commit 80f3ecd

File tree

272 files changed

+49937
-615
lines changed

Some content is hidden

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

272 files changed

+49937
-615
lines changed

.github/workflows/add_label.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Add Label to Pull Requests
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
add-label:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Add PR Review in Progress Label
12+
uses: actions/github-script@v7
13+
with:
14+
github-token: ${{ secrets.GITHUB_TOKEN }}
15+
script: |
16+
const labelName = 'PR Review in Progress';
17+
const { data: labels } = await github.issues.listLabelsForRepo({
18+
owner: context.repo.owner,
19+
repo: context.repo.repo
20+
});
21+
const labelExists = labels.some(label => label.name === labelName);
22+
if (!labelExists) {
23+
await github.issues.createLabel({
24+
owner: context.repo.owner,
25+
repo: context.repo.repo,
26+
name: labelName,
27+
color: '3498DB'
28+
});
29+
}
30+
await github.issues.addLabels({
31+
owner: context.repo.owner,
32+
repo: context.repo.repo,
33+
issue_number: context.issue.number,
34+
labels: [labelName]
35+
});

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+
jobs:
11+
build:
12+
name: Build CodeHarborHub
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm install --frozen-lockfile
25+
- name: Build website
26+
run: npm run build
27+
28+
- name: Upload Build Artifact
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: build
32+
33+
deploy:
34+
name: Deploy to GitHub Pages
35+
needs: build
36+
37+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38+
permissions:
39+
pages: write # to deploy to Pages
40+
id-token: write # to verify the deployment originates from an appropriate source
41+
42+
# Deploy to the github-pages environment
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Issue Creation Workflow
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
check-contributor-issues:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '14'
19+
20+
- name: Retrieve Contributors
21+
run: |
22+
CONTRIBUTORS=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/contributors | jq -r '.[].login')
23+
echo "::set-output name=contributors::$CONTRIBUTORS"
24+
25+
- name: Count Open Issues for Each Contributor
26+
id: count-issues
27+
run: |
28+
for contributor in ${{ steps.retrieve-contributors.outputs.contributors }}; do
29+
ISSUE_COUNT=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/search/issues?q=is:open+author:${contributor}+repo:${{ github.repository }}" | jq -r '.total_count')
30+
echo "::set-output name=${contributor}_issue_count::$ISSUE_COUNT"
31+
done
32+
33+
- name: Check Contributor's Open Issues Count
34+
run: |
35+
contributor=${{ github.event.issue.user.login }}
36+
issue_count=${{ steps.count-issues.outputs["${contributor}_issue_count"] }}
37+
if [ "$issue_count" -ge 4 ]; then
38+
echo "Contributor $contributor has $issue_count open issues. Please complete your existing open issues before creating a new one."
39+
exit 1
40+
fi

.github/workflows/test-deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+
jobs:
11+
test-deploy:
12+
name: Test deployment
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm install --frozen-lockfile
25+
- name: Test build website
26+
run: npm run build

CONTRIBUTING.md

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,28 +72,65 @@ If you find this project helpful, please consider giving it a star on GitHub! Yo
7272

7373

7474
## Code Style
75-
7675
Please adhere to the coding style guidelines used in this project. Consistent coding style helps make the codebase more maintainable and readable for everyone.
7776

78-
## Testing
7977

78+
## Testing
8079
Before submitting a PR, ensure that your changes pass any relevant tests. If you're adding new features or fixing bugs, consider adding tests to cover the changes you've made.
8180

82-
## Resources for Guidance
8381

82+
## Pull Request Process
83+
1.Ensure that you have self reviewed your code.
84+
2.Make sure you have added the proper description for the functionality of the code.
85+
3.I have commented my code, particularly in hard-to-understand areas.
86+
4.Add screenshot it help in review.
87+
5.Submit your PR by giving the necesarry information in PR template and hang tight we will review it really soon.
88+
89+
90+
## Community Guidelines
91+
We expect all contributors to adhere to the following community guidelines:
92+
93+
1.Be respectful and considerate towards others.
94+
2.Use inclusive language and promote a welcoming environment.
95+
3.Avoid personal attacks, harassment, or discrimination.
96+
4.Keep discussions on-topic and constructive.
97+
5.Help others and contribute positively to the community.
98+
99+
100+
## Resources for Guidance
84101
Here are some resources that may be helpful as you contribute to Code Harbor Hub:
85102
- [Docusaurus Documentation](https://docusaurus.io/docs/docs-introduction)
86103
- [React.js Documentation](https://legacy.reactjs.org/docs/getting-started.html)
87104
- [Markdown Guide](https://www.markdownguide.org/)
88105
- [MDX Documentation](https://mdxjs.com/docs/)
89106
- [Mermaid Documentation](https://mermaid.js.org/)
90107

91-
## Code of Conduct
92108

109+
## Code Reviews
110+
Be open to feedback and constructive criticism from other contributors.
111+
Participate in code reviews by reviewing and providing feedback.
112+
113+
114+
## Feature Requests
115+
Suggest new features or improvements that you believe would enhance the project.
116+
117+
## Contributing Guidelines
118+
Issue Creation Limit
119+
Each contributor is allowed to create up to 4 issues per day. If a contributor exceeds this limit, any additional issues beyond the fourth will be closed automatically.
120+
Please adhere to this guideline to ensure a manageable and productive workflow for all participants.
121+
122+
123+
## Code of Conduct
93124
By participating in this project, you agree to abide by our [Code of Conduct](CODE_OF_CONDUCT.md). Please ensure that all interactions are respectful and constructive.
94125

95-
## Questions or Need Help?
96126

127+
## Spread the Word
128+
Share your experience and the project with others.
129+
Spread the word about the project on social media, developer forums, or any relevant community platforms.
130+
Thank you for your valuable contribution and for being a part of the Clueless Community! Together, we can make a difference.
131+
132+
133+
## Questions or Need Help?
97134
If you have any questions about contributing or need assistance with anything, feel free to reach out to us by opening an issue or contacting one of the maintainers listed in the `README.md` file.
98135

99136
Thank you for contributing to CodeHarborHub!

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,15 @@ This project is licensed under the [MIT License](LICENSE).
8585

8686
[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=CodeHarborHub_codeharborhub)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub)
8787

88-
[![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.svg/?label=active+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub/) [![DeepSource](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub.svg/?label=resolved+issues&show_trend=true&token=D5-vPYsEG8PSYlzqpUGIbsiB)](https://app.deepsource.com/gh/CodeHarborHub/codeharborhub/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=bugs)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![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)
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/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=bugs)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=CodeHarborHub_codeharborhub&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=CodeHarborHub_codeharborhub) [![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)
8989

9090
## Contributors
9191

92+
<!--
9293
[![Contributors](https://contributors-img.web.app/image?repo=codeharborhub/codeharborhub)](https://github.com/CodeHarborHub/codeharborhub/graphs/contributors)
94+
-->
95+
96+
![Contributors](https://opencollective.com/codeharborhub/contributors.svg?button=false&avatarHeight=50&width=1000)
9397

9498
## Chat with us
9599

assets/knnclassifier.png

12.8 KB
Loading

assets/kthNearest.png

6.69 KB
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"label": "Module 16: Redux Toolkit",
3+
"position": 6,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "In this module, you will learn how to create a new module using the Reduc Toolkit library and create a new module using the new module syntax and about Utilities"
7+
}
8+
}
9+

0 commit comments

Comments
 (0)