Skip to content

Commit

Permalink
Merge branch 'anki2003ta:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
aditiverma-21 authored Nov 9, 2024
2 parents 641bd1c + d2be66d commit 6deee55
Show file tree
Hide file tree
Showing 13 changed files with 420 additions and 107 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/greetings.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/issue-open-close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: Issue Auto Comment
on:
issues:
types: [opened, closed]

jobs:
comment:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add a comment when an issue is opened
if: github.event.action == 'opened'
uses: actions-ecosystem/action-create-comment@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.issue.number }}
body: |
👋 Thanks for opening this issue! We appreciate your contribution. Please make sure you’ve provided all the necessary details and screenshots, and don't forget to follow our Guidelines and Code of Conduct. Happy coding! 🚀
- name: Add a comment when an issue is closed
if: github.event.action == 'closed'
uses: actions-ecosystem/action-create-comment@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.issue.number }}
body: |
✅ This issue has been successfully closed. Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀
35 changes: 35 additions & 0 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

name: Merge Thank You



on:
pull_request_target:
types: [closed] # Trigger when a PR is closed

permissions:
issues: write
pull-requests: write

jobs:
post_merge_message:
if: github.event.pull_request.merged == true # Only run if the PR was merged
runs-on: ubuntu-latest

steps:
- name: Post thank you message
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }} # Ensure token is used
script: |
const prNumber = context.payload.pull_request.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
// Post a thank you message upon PR merge
await github.rest.issues.createComment({
owner: owner,
repo: repo,
issue_number: prNumber,
body: `🎉🎉 Thank you for your contribution! Your PR #${prNumber} has been merged! 🎉🎉`
});
40 changes: 40 additions & 0 deletions .github/workflows/pr-raise.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@


name: Auto Comment on PR


on:
pull_request_target:
types: [opened]

permissions:
issues: write
pull-requests: write

jobs:
comment:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Add Comment to Pull Request
run: |
COMMENT=$(cat <<EOF
{
"body": "Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our chaotic [CONTRIBUTING.md](https://github.com/vansh-codes/ChaosWeb/blob/main/CONTRIBUTING). If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊"
}
EOF
)
RESPONSE=$(curl -s -o response.json -w "%{http_code}" \
-X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \
-d "$COMMENT")
cat response.json
if [ "$RESPONSE" -ne 201 ]; then
echo "Failed to add comment"
exit 1
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39 changes: 36 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# 🏛️ Museum: A Web Application for Managing and Displaying Museum Exhibits ✨

## 📋 Participating Programs

| Name | Logo | Purpose |
|-----------------------|-----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
| GSSoC'2024-Extd | ![GSSoC Logo](assets/GSSoC-Ext.png) | The coding period is from October 1st to October 30th, during which contributors make contributions and earn points on the platform. |
| Hacktoberfest 2024 | ![Hacktoberfest Logo](assets/hacktoberfest.png) | Hacktoberfest is a month-long October event welcoming all skill levels to join the open-source community. |

---

## 📊 Project Metrics

<table align="center">
<thead align="center">
<tr>
<td><b>🌟 Stars</b></td>
<td><b>🍴 Forks</b></td>
<td><b>🐛 Issues</b></td>
<td><b>🔔 Open PRs</b></td>
<td><b>🔕 Closed PRs</b></td>
</tr>
</thead>
<tbody>
<tr>
<td><img alt="Stars" src="https://img.shields.io/github/stars/anki2003ta/Museum?style=flat&logo=github"/></td>
<td><img alt="Forks" src="https://img.shields.io/github/forks/anki2003ta/Museum?style=flat&logo=github"/></td>
<td><img alt="Issues" src="https://img.shields.io/github/issues/anki2003ta/Museum?style=flat&logo=github"/></td>
<td><img alt="Open Pull Requests" src="https://img.shields.io/github/issues-pr/anki2003ta/Museum?style=flat&logo=github"/></td>
<td><img alt="Closed Pull Requests" src="https://img.shields.io/github/issues-pr-closed/anki2003ta/Museum?style=flat&color=green&logo=github"/></td>
</tr>
</tbody>
</table>


## 📜 Description

Welcome to **Museum** – the ultimate platform that empowers museums to effortlessly manage exhibits and deliver captivating experiences for visitors! 🖼️🎨 Whether you're showcasing ancient artifacts or modern masterpieces, Museum streamlines workflows, enhances visitor engagement, and brings exhibits to life with ease.
Expand All @@ -8,15 +41,15 @@ Museum is a platform designed for museums to easily manage exhibits and engage v

---

## 📊 Stats Board

<div align="center">
<!-- <div align="center">
## 📊 Stats Board
<a href="https://github.com/anki2003ta/Museum/stargazers"><img src="https://img.shields.io/github/stars/anki2003ta/Museum" alt="Stars Badge"/></a>
<a href="https://github.com/anki2003ta/Museum/network/members"><img src="https://img.shields.io/github/forks/anki2003ta/Museum" alt="Forks Badge"/></a>
<a href="https://github.com/anki2003ta/Museum/pulls"><img src="https://img.shields.io/github/issues-pr/anki2003ta/Museum" alt="Pull Requests Badge"/></a>
<a href="https://github.com/anki2003ta/Museum/issues"><img src="https://img.shields.io/github/issues/anki2003ta/Museum" alt="Issues Badge"/></a>
<a href="https://github.com/anki2003ta/Museum/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/anki2003ta/Museum?color=2b9348"></a>
</div>
</div> -->

## 🔑 Key Features

Expand Down
25 changes: 25 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Security Policy
Supported Versions
The following versions of Museum are currently supported with security updates:

Version Supported
1.x.x ✅ Supported
0.x.x ❌ Not supported
Reporting a Vulnerability
If you discover a security vulnerability in Museum, we encourage you to report it as soon as possible. We will investigate all legitimate reports and do our best to quickly fix the issue.

# How to Report
Please report vulnerabilities by emailing us at [email protected]. Include as much detail as possible to help us identify and fix the issue swiftly.
Do not share the vulnerability publicly until it has been addressed and a patch is available.
Security Updates
We will notify users via GitHub releases for any critical security updates.
Minor security patches will be included in regular updates as needed.

# Security Best Practices
Make sure to use the latest version of Museum for the latest security features and patches.
Follow password best practices, such as using strong, unique passwords for each account.
Regularly update your dependencies to the latest versions.

# Acknowledgements
We appreciate contributions from the community and researchers who help us improve the security of Museum. Thank you for keeping the platform secure for everyone!

Binary file added assets/GSSoC-Ext.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/hacktoberfest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/image
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

77 changes: 76 additions & 1 deletion public/css/rating.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,23 @@
border: none;
}


.starability-result {
transition: all 0.3s ease-in-out;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 5px;
}

.starability-result:hover {
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.starability-result:after {
transition: width 0.3s ease;
}


.starability-slot > input {
position: absolute;
margin-right: -100%;
Expand Down Expand Up @@ -194,4 +211,62 @@
.starability-slot > input:focus ~ label {
-webkit-transition: background-position .7s;
transition: background-position .7s;
}
}


.starability-result {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 400px;
margin: 0 auto;
padding: 1rem;
box-sizing: border-box;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
.starability-result:hover {
transform: scale(1.03);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
}

.starability-result span,
.starability-result i {
font-size: 1.2rem;
line-height: 1.4;
color: #333;
margin: 0 0.5rem;
}


@media (max-width: 768px) {
.starability-result {
padding: 0.8rem;
max-width: 90%;
}

.starability-result span,
.starability-result i {
font-size: 1rem;
}
}


@media (max-width: 480px) {
.starability-result {
padding: 0.6rem;
box-shadow: none;
max-width: 100%;
}


.starability-result span,
.starability-result i {
font-size: 0.9rem;
}
}
21 changes: 20 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,26 @@ We ❤️ contributions! Here’s how you can join the effort:

6. **Open a pull request**.

---

<!--line-->
<img src="https://www.animatedimages.org/data/media/562/animated-line-image-0184.gif" width="1920" />



## This project is now OFFICIALLY accepted for

<div align="center">
<img src="https://github.com/amiya-cyber/banner/blob/main/329829127-e79eb6de-81b1-4ffb-b6ed-f018bb977e88.png" alt="GSSoC 2024 Extd" width="60%">
</div>

<div align="center">
<img src="https://github.com/amiya-cyber/banner/blob/main/hacktober.png" alt="Hacktober fest 2024" width="60%">
</div>


<!--line-->
<img src="https://www.animatedimages.org/data/media/562/animated-line-image-0184.gif" width="1920" />


## 📝 License

Expand Down
51 changes: 35 additions & 16 deletions views/users/login.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@

<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input name="password" id="password" placeholder="Enter your password" type="password" class="form-control form-control-lg rounded-pill" required>
<div class="valid-feedback">
Looks good!
</div>
<div class="invalid-feedback">
Please enter a valid password.
<div class="position-relative">
<input name="password" id="password" placeholder="Enter your password" type="password" class="form-control form-control-lg rounded-pill" required>
<button type="button" id="togglePassword" class="btn btn-link position-absolute end-0 top-0 mt-2 me-3" style="color: black;">
<i class="fas fa-eye"></i>
</button>
<div class="valid-feedback">
Looks good!
</div>
<div class="invalid-feedback">
Please enter a valid password.
</div>
</div>
</div>

Expand All @@ -37,20 +42,34 @@
</div>
</div>

<!-- Bootstrap form validation -->
<!-- Bootstrap form validation and password toggle script -->
<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields
// Form validation
(function () {
'use strict'
var forms = document.querySelectorAll('.needs-validation')
'use strict';
var forms = document.querySelectorAll('.needs-validation');
Array.prototype.slice.call(forms).forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated')
}, false)
})
})()
form.classList.add('was-validated');
}, false);
});
})();
// Password visibility toggle
const togglePassword = document.querySelector("#togglePassword");
const passwordField = document.querySelector("#password");
togglePassword.addEventListener("click", function () {
// Toggle the type attribute
const type = passwordField.getAttribute("type") === "password" ? "text" : "password";
passwordField.setAttribute("type", type);
// Toggle the eye icon
this.querySelector("i").classList.toggle("fa-eye");
this.querySelector("i").classList.toggle("fa-eye-slash");
});
</script>
Loading

0 comments on commit 6deee55

Please sign in to comment.