Skip to content

Commit

Permalink
Apply fixes from pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilDhillon21 committed Nov 13, 2024
1 parent ddca92e commit 95dc670
Show file tree
Hide file tree
Showing 27 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ repos:
- id: djlint
args:
- --reformat
- --lint
- --lint
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
<img alt="Views" src="https://blt.owasp.org/projects/blt/badge"></a>

------
Everything is on our <a href="https://blt.owasp.org">homepage</a>
Everything is on our <a href="https://blt.owasp.org">homepage</a>
2 changes: 1 addition & 1 deletion company/static/company/js/hunt_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,4 @@ function getCookie(name) {
}
}
return cookieValue;
}
}
2 changes: 1 addition & 1 deletion website/documents/BltAboutUs.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ Organizations
We want everyone to love your website.
You want to keep your customers happy by giving them a consistent bug-free user experience. BLT offers monthly Bug Bounties through 4 different subscription plans to help you achieve this.

BLT is 100% free to use, Open Source and a non-commercial, not for profit initiative.
BLT is 100% free to use, Open Source and a non-commercial, not for profit initiative.
2 changes: 1 addition & 1 deletion website/documents/BltBLTV.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ The component is designed with several features to enhance performance and user
- **Optimized Loading**: The page is optimized to load quickly, allowing users to browse and play videos without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices to ensure a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Lazy Loading**: Video thumbnails and other media elements are loaded as needed, reducing initial load times and improving overall performance.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display video tutorials quickly, minimizing wait times and enhancing user satisfaction.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display video tutorials quickly, minimizing wait times and enhancing user satisfaction.
2 changes: 1 addition & 1 deletion website/documents/BltChangePassword.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ The layout is simple and focused, ensuring users can easily update their passwor
- **Minimal Distractions**: The focused design ensures users can complete the task quickly without unnecessary distractions or elements.

#### URL Mention
This detailed information pertains to the "Change Password" page of the BugLog tool, accessible at: [https://blt.owasp.org/accounts/password/change/](https://blt.owasp.org/accounts/password/change/).
This detailed information pertains to the "Change Password" page of the BugLog tool, accessible at: [https://blt.owasp.org/accounts/password/change/](https://blt.owasp.org/accounts/password/change/).
2 changes: 1 addition & 1 deletion website/documents/BltCommunityMembers.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ The component is designed with several features to enhance performance and user
- **Optimized Loading**: The page is optimized to load quickly, allowing users to browse member profiles without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices to ensure a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Lazy Loading**: Member photos and other media elements are loaded as needed, reducing initial load times and improving overall performance.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display member profiles quickly, minimizing wait times and enhancing user satisfaction.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display member profiles quickly, minimizing wait times and enhancing user satisfaction.
2 changes: 1 addition & 1 deletion website/documents/BltCompanyDashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ The dashboard is designed with several features to enhance performance and user
- **Optimized Loading**: The page is optimized to load quickly, with asynchronous loading of non-critical elements to ensure that users can start interacting with the content without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices, ensuring a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Lazy Loading**: Bug report items and other media elements are loaded as needed, reducing initial load times and improving overall performance.
- **Efficient Data Retrieval**: The page uses efficient data retrieval techniques to fetch and display bug reports quickly, minimizing wait times and enhancing user satisfaction.
- **Efficient Data Retrieval**: The page uses efficient data retrieval techniques to fetch and display bug reports quickly, minimizing wait times and enhancing user satisfaction.
2 changes: 1 addition & 1 deletion website/documents/BltCompanyListingPage.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ The page is designed with several features to enhance performance and user exper
- **Optimized Loading**: The page is optimized to load quickly, with asynchronous loading of non-critical elements to ensure that users can start interacting with the content without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices, ensuring a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Lazy Loading**: Company logos and other media elements are loaded as needed, reducing initial load times and improving overall performance.
- **Efficient Data Retrieval**: The page uses efficient data retrieval techniques to fetch and display company details quickly, minimizing wait times and enhancing user satisfaction.
- **Efficient Data Retrieval**: The page uses efficient data retrieval techniques to fetch and display company details quickly, minimizing wait times and enhancing user satisfaction.
2 changes: 1 addition & 1 deletion website/documents/BltCompanyScoreboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ The scoreboard is designed with several features to enhance performance and user
- **Optimized Loading**: The page is optimized to load quickly, with asynchronous loading of non-critical elements to ensure that users can start interacting with the content without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices, ensuring a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Lazy Loading**: Company logos and other media elements are loaded as needed, reducing initial load times and improving overall performance.
- **Efficient Data Retrieval**: The page uses efficient data retrieval techniques to fetch and display company metrics quickly, minimizing wait times and enhancing user satisfaction.
- **Efficient Data Retrieval**: The page uses efficient data retrieval techniques to fetch and display company metrics quickly, minimizing wait times and enhancing user satisfaction.
2 changes: 1 addition & 1 deletion website/documents/BltDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ Anyone interested in contributing to the OWASP BLT project can:
- **Participate in Bug Hunts**: Join company-sponsored bug hunts to earn rewards.
- **Contribute to Development**: Follow the contribution guidelines available on the OWASP website to get started with development and enhancement of BLT.

BLT means Bug Logging Tool project from OWASP foundation .
BLT means Bug Logging Tool project from OWASP foundation .
2 changes: 1 addition & 1 deletion website/documents/BltDetailsFromOwasp.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,4 @@ Corporate Supporters

G@ surerowr Bloomberg’
Fa CUARDSQUARE BIONIC
4:SailPoint root
4:SailPoint root
2 changes: 1 addition & 1 deletion website/documents/BltGlobalLeaderboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ The leaderboard is designed with several features to enhance performance and use
- **Optimized Loading**: The page is optimized to load quickly, with asynchronous loading of non-critical elements to ensure that users can start interacting with the content without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices, ensuring a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Lazy Loading**: User avatars and other media elements are loaded as needed, reducing initial load times and improving overall performance.
- **Efficient Data Retrieval**: The page uses efficient data retrieval techniques to fetch and display user rankings quickly, minimizing wait times and enhancing user satisfaction.
- **Efficient Data Retrieval**: The page uses efficient data retrieval techniques to fetch and display user rankings quickly, minimizing wait times and enhancing user satisfaction.
2 changes: 1 addition & 1 deletion website/documents/BltInvite.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Users interact with this component by entering an email address in the provided
### Detailed Information for Chatbot
To ensure the chatbot can assist users effectively, include details such as the URL of the invite page (https://blt.owasp.org/invite/) and descriptions of the error messages users might encounter. The chatbot should be able to guide users through the process of entering an email address and clicking the "Invite" button, as well as troubleshooting common issues like invalid email formats or server errors.

By understanding these detailed aspects of the invite page UI component, the chatbot can provide comprehensive assistance, ensuring users can easily invite others to the BugLog tool application.
By understanding these detailed aspects of the invite page UI component, the chatbot can provide comprehensive assistance, ensuring users can easily invite others to the BugLog tool application.
2 changes: 1 addition & 1 deletion website/documents/BltLoginPage.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ The Login Page has robust error handling mechanisms to ensure that users provide
Several features of the Login Page enhance performance and user experience:
- **Optimized Loading**: The page is designed to load quickly, ensuring that users can start entering their credentials without waiting for all elements to load.
- **Responsive Design**: The form is fully responsive, adapting to different screen sizes and devices. This ensures that users can easily log in on desktops, tablets, and mobile devices.
- **Form Persistence**: If users accidentally navigate away from the page, their entered credentials are temporarily saved, preventing data loss and enhancing the user experience by reducing the need to re-enter information.
- **Form Persistence**: If users accidentally navigate away from the page, their entered credentials are temporarily saved, preventing data loss and enhancing the user experience by reducing the need to re-enter information.
2 changes: 1 addition & 1 deletion website/documents/BltSignUpPage.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ The Sign Up Page includes robust error handling mechanisms to ensure that users
Several features of the Sign Up Page enhance performance and user experience:
- **Optimized Loading**: The page is designed to load quickly, allowing users to start entering their information without waiting for all elements to load.
- **Responsive Design**: The form is fully responsive, adapting to different screen sizes and devices. This ensures that users can easily register on desktops, tablets, and mobile devices.
- **Form Persistence**: If users accidentally navigate away from the page, their entered information is temporarily saved, preventing data loss and enhancing the user experience by reducing the need to re-enter information.
- **Form Persistence**: If users accidentally navigate away from the page, their entered information is temporarily saved, preventing data loss and enhancing the user experience by reducing the need to re-enter information.
2 changes: 1 addition & 1 deletion website/documents/BltStartaBughunt.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ Users interact with this component by filling out a form to start a new bug hunt
- **Responsive Design**: The form is designed to be responsive, ensuring it works well on various devices, including desktops, tablets, and smartphones.
- **Fast Load Time**: The component is optimized for fast load times, ensuring a smooth user experience even on slower internet connections.
- **Client-Side Validation**: Basic form validation is performed on the client side, reducing the need for server round trips and enhancing performance.
- **Efficient File Upload**: The file upload mechanism is efficient, allowing users to drag and drop files or click to upload, with progress indicators for larger files.
- **Efficient File Upload**: The file upload mechanism is efficient, allowing users to drag and drop files or click to upload, with progress indicators for larger files.
2 changes: 1 addition & 1 deletion website/documents/BltStats.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ The component is designed with several features to enhance performance and user
- **Optimized Loading**: The page is optimized to load quickly, allowing users to access the statistics without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices to ensure a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display statistics quickly, minimizing wait times and enhancing user satisfaction.
- **Scalability**: The component is designed to handle a large amount of statistical data, maintaining performance and user experience even with extensive content.
- **Scalability**: The component is designed to handle a large amount of statistical data, maintaining performance and user experience even with extensive content.
2 changes: 1 addition & 1 deletion website/documents/BltTerms.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ You expressly understand and agree that BLT shall not be liable for any direct,

The failure of BLT to exercise or enforce any right or provision of the Terms of Service shall not constitute a waiver of such right or provision. The Terms of Service constitutes the entire agreement between you and BLT and govern your use of the Service, superseding any prior agreements between you and BLT (including, but not limited to, any prior versions of the Terms of Service). You agree that these Terms of Service and Your use of the Service are governed under California law.

Questions about the Terms of Service should be sent to [email protected].
Questions about the Terms of Service should be sent to [email protected].
2 changes: 1 addition & 1 deletion website/documents/BltTrademarksSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ The Trademarks Search component includes mechanisms to handle errors and provide
The component is designed with several features to enhance performance and user experience:
- **Optimized Loading**: The page is optimized to load quickly, allowing users to start searching without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices to ensure a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display trademark information quickly, minimizing wait times and enhancing user satisfaction.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display trademark information quickly, minimizing wait times and enhancing user satisfaction.
2 changes: 1 addition & 1 deletion website/documents/BltTrademarksSearchResults.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ The component is designed with several features to enhance performance and user
- **Optimized Loading**: The page is optimized to load quickly, allowing users to view search results without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices to ensure a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display trademark information quickly, minimizing wait times and enhancing user satisfaction.
- **Pagination**: Ensures efficient navigation through multiple pages of results, maintaining performance and user experience even with large datasets.
- **Pagination**: Ensures efficient navigation through multiple pages of results, maintaining performance and user experience even with large datasets.
2 changes: 1 addition & 1 deletion website/documents/BltUserProfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ The layout is clean and straightforward, with a focus on usability. The profile
2. **Efficient Data Loading**: Data related to user activities and bug reports are fetched asynchronously to enhance page load performance.
3. **Responsive Design**: The profile page is designed to be responsive, ensuring it works well on both desktop and mobile devices.

Overall, the profile page on BLT is designed to provide users with a comprehensive and user-friendly interface for managing their bug reporting activities and personal information on the platform. The clean layout, accessibility features, and efficient performance optimizations contribute to a positive user experience.
Overall, the profile page on BLT is designed to provide users with a comprehensive and user-friendly interface for managing their bug reporting activities and personal information on the platform. The clean layout, accessibility features, and efficient performance optimizations contribute to a positive user experience.
2 changes: 1 addition & 1 deletion website/documents/BltWeeklyActivityOfContributor.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ The component is designed with several features to enhance performance and user
- **Optimized Loading**: The page is optimized to load quickly, allowing users to view their weekly activity summary without delay.
- **Responsive Design**: The layout is fully responsive, adapting to different screen sizes and devices to ensure a consistent and accessible experience across desktops, tablets, and mobile devices.
- **Efficient Data Retrieval**: Uses efficient data retrieval techniques to fetch and display activity data quickly, minimizing wait times and enhancing user satisfaction.
- **Scalability**: The table is designed to handle a large number of users and activity metrics, maintaining performance and user experience even with extensive data.
- **Scalability**: The table is designed to handle a large number of users and activity metrics, maintaining performance and user experience even with extensive data.
10 changes: 6 additions & 4 deletions website/management/commands/update_projects.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import base64

import requests
from django.conf import settings
from django.core.management.base import BaseCommand
from django.utils.dateparse import parse_datetime

Expand Down Expand Up @@ -56,14 +56,16 @@ def handle(self, *args, **kwargs):
response = requests.get(url, headers=headers)
if response.status_code == 200:
readme_data = response.json()
readme_content_encoded = readme_data.get("content", "")
readme_content_encoded = readme_data.get("content", "")

# Decode the Base64 content
try:
readme_content = base64.b64decode(readme_content_encoded).decode("utf-8")
project.readme_content = readme_content
project.readme_content = readme_content
except (base64.binascii.Error, UnicodeDecodeError) as e:
self.stdout.write(self.style.WARNING(f"Failed to decode README for {repo_name}: {e}"))
self.stdout.write(
self.style.WARNING(f"Failed to decode README for {repo_name}: {e}")
)
project.readme_content = ""
else:
self.stdout.write(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("website", "0151_remove_project_latest_release"),
]
Expand Down
2 changes: 1 addition & 1 deletion website/static/img/tomato-svgrepo-com.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 website/static/js/jquery.sparkline.min.js

Large diffs are not rendered by default.

0 comments on commit 95dc670

Please sign in to comment.