Skip to content

Commit

Permalink
Merge branch 'main' into api-jwt-test
Browse files Browse the repository at this point in the history
  • Loading branch information
4darsh-Dev authored Jul 14, 2024
2 parents 55a590e + 848dd50 commit 58cfc17
Show file tree
Hide file tree
Showing 14 changed files with 243 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version = 1

[[analyzers]]
name = "shell"

[[analyzers]]
name = "javascript"

[[analyzers]]
name = "python"

[analyzers.meta]
runtime_version = "3.x.x"
67 changes: 67 additions & 0 deletions .github/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Basic issue types
bug:
- '(bug|fix|error|issue|crash|problem|failure)'
enhancement:
- '(feature|enhancement|improvement|request|idea)'
documentation:
- '(doc|docs|documentation|typo|spelling|grammar)'

# Severity and priority
critical:
- '(critical|urgent|emergency|severe)'
high-priority:
- '(high priority|important|significant)'
low-priority:
- '(low priority|minor|trivial)'

# Component or area
frontend:
- '(frontend|ui|ux|user interface|css|html)'
backend:
- '(backend|server|database|api)'
performance:
- '(performance|speed|optimization|memory|cpu)'
security:
- '(security|vulnerability|exploit|auth|authentication)'

# Community and contribution
"good first issue":
- '(good first issue|beginner friendly|easy)'
"help wanted":
- '(help wanted|looking for help|assistance needed)'
discussion:
- '(discussion|question|clarification|opinion)'

# Project management
blocked:
- '(blocked|blocker|dependency)'
"in progress":
- '(in progress|working on it|started)'

# Type of change
"breaking change":
- '(breaking change|backwards incompatible)'
maintenance:
- '(maintenance|cleanup|refactor|technical debt)'

# Specific technologies (adjust based on your project)
javascript:
- '(javascript|js|ecmascript)'
python:
- '(python|py|pip)'
react:
- '(react|jsx|component)'

# Testing and quality
test:
- '(test|testing|unit test|integration test)'
qa:
- '(qa|quality assurance|manual testing)'

# Platforms
windows:
- '(windows|win|microsoft)'
mac:
- '(mac|macos|apple)'
linux:
- '(linux|ubuntu|debian|fedora)'
58 changes: 58 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Add 'documentation' label to any changes in documentation files
documentation:
- '**/*.md'
- 'docs/**/*'

# Add 'bug' label to any bug fix
bug:
- '**/*bug*'
- '**/*fix*'

# Add 'enhancement' label to any feature or improvement
enhancement:
- '**/*feature*'
- '**/*improve*'
- '**/*enhance*'

# Add 'dependencies' label to any changes in dependency files
dependencies:
- 'package.json'
- 'package-lock.json'
- 'yarn.lock'
- '**/requirements.txt'
- '**/Gemfile'
- '**/Gemfile.lock'

# Add 'tests' label to any changes in test files
tests:
- 'tests/**/*'
- '**/*test*'
- '**/*spec*'

# Add 'ci' label to any changes in CI configuration files
ci:
- '.github/workflows/*'
- '.travis.yml'
- '.circleci/*'

# Add 'security' label to any changes in security-related files
security:
- 'SECURITY.md'
- '**/security/**/*'

# Add 'config' label to any changes in configuration files
config:
- '**/*.config.js'
- '**/*.json'
- '.eslintrc*'
- '.prettier*'
- '.editorconfig'

# Add 'core' label to any changes in the src or lib directories
core:
- 'src/**/*'
- 'lib/**/*'

# Add 'help wanted' label to any issue or PR
'help wanted':
- '**/*'
39 changes: 39 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable
# packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency review'
on:
pull_request:
branches: [ "main" ]

# If using a dependency submission action in this workflow this permission will need to be set to:
#
# permissions:
# contents: write
#
# https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api
permissions:
contents: read
# Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
pull-requests: write

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
# Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
with:
comment-summary-in-pr: always
# fail-on-severity: moderate
# deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later
# retry-on-snapshot-warnings: true
31 changes: 31 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Issue and PR Labeler"
on:
issues:
types: [opened, edited, reopened]
pull_request_target:
types: [opened, edited]

permissions:
issues: write
pull-requests: write
contents: read

jobs:
triage-issues:
runs-on: ubuntu-latest
if: github.event_name == 'issues'
steps:
- uses: github/issue-labeler@v3.4
with:
configuration-path: .github/issue-labeler.yml
enable-versioned-regex: 0
repo-token: ${{ secrets.GITHUB_TOKEN }}

label-pr:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# CogniGuard 🕵️‍♂️✨
<br>
<br>

![Labeler](https://github.com/4darsh-Dev/CogniGaurd/actions/workflows/label.yml/badge.svg)
![Greetings](https://github.com/4darsh-Dev/CogniGaurd/actions/workflows/greetings.yml/badge.svg)
![CodeQL](https://github.com/4darsh-Dev/CogniGaurd/actions/workflows/codeql.yml/badge.svg)
![Issue Close Greet](https://github.com/4darsh-Dev/CogniGaurd/actions/workflows/issue_close_greet.yml/badge.svg)
![Dependencies](https://github.com/4darsh-Dev/CogniGaurd/actions/workflows/dependency-review.yml/badge.svg)
## Overview

CogniGuard is a powerful web extension designed to empower users by identifying and combatting dark patterns on various websites, particularly focusing on E-commerce platforms. Ensuring users a transparent and ethical online experience.

##### About Dark Patterns => https://www.deceptive.design/

<p align="center">
<img src="https://onionreads.com/wp-content/uploads/2024/01/Screenshot-2024-01-15-014420.png" alt="CogniGuard" width="600px" />
</p>
![Screenshot 2024-07-13 024617](https://github.com/user-attachments/assets/e7c2dbe5-7c9c-4759-ab72-042c90fe3b2c)


<iframe width="560" height="315" src="https://www.youtube.com/embed/1DoYa1wVWhA?si=FCnzDxHuiJs5_Q4P" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Expand Down Expand Up @@ -51,6 +58,12 @@ CogniGuard is a powerful web extension designed to empower users by identifying
</tr>
</table>

## Website SS

![Screenshot 2024-07-02 190608](https://github.com/4darsh-Dev/CogniGaurd/assets/109789509/83497dcb-1908-4925-8829-ba1e2138c92f)




## Cogni-BERT Model Scores

Expand Down
12 changes: 12 additions & 0 deletions django-web-app/static/css/know_about_dp.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
}
.patterns-grid {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
height: 1000px;
flex-wrap: wrap;
margin-top: 2rem;
}
Expand Down Expand Up @@ -140,3 +143,12 @@
}

}

@media only screen and (max-width:1250px){
.patterns-grid{
height: auto;
}
.pattern {
max-width: 80%;
}
}
1 change: 1 addition & 0 deletions django-web-app/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ nav li [class="nav-btn"]:hover {

.dropdown-menu li {
padding: 12px 16px;
list-style: none;
}

.dropdown-menu li a {
Expand Down
Binary file modified django-web-app/static/img/brain-waves-img.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 modified django-web-app/static/img/flexibility-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion django-web-app/static/img/footer-left-img.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion django-web-app/static/img/footer-right-img.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified django-web-app/static/img/sample-profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 4 additions & 9 deletions django-web-app/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{% load static %}
{% load socialaccount %}
<!DOCTYPE html>
Expand Down Expand Up @@ -37,21 +36,20 @@ <h1 class="head">Login</h1>
<label class="sub-head" for="username">
Username
</label>
<!-- <img class="input-img" src="/static/img/user2.png" alt="user"> -->
<!-- <i class='bx bxs-user input-img'></i> -->
<input class="form-f" id="username" name="username" required placeholder="Type your username" type="text">

<input class="form-f" id="username" name="username" required placeholder="Type your username" type="text">
</div>


<div class="form-c-1">
<label class="sub-head" for="password">
Password
</label>

<div class="password-container">
<input class="form-f" id="password" name="password" placeholder="Type your Password" type="password" required>
<i class="eye-icon" id="togglePassword" onclick="togglePasswordVisibility()">👁️</i>
</div>

</div>

</form>
Expand All @@ -70,17 +68,14 @@ <h4 id="forgot"> <a href="{% url 'home:password_reset' %}">Forgot password?</a><
</div>
<div class="login-img-box">
<img src="{% static 'img/login.webp' %}" alt="Login Image CogniGuard">

</div>

</div>


</div>
{% endblock main %}

{% block script %}
<script src="{% static 'js/script.js' %}"></script>
<script src="{% static 'js/login.js' %}"></script>
<script src="{% static 'js/messages.js' %}"></script>

{% endblock script %}

0 comments on commit 58cfc17

Please sign in to comment.