Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement djlint for templates #1834

Merged
merged 44 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d71dd98
testing djlint work or not
JisanAR03 Feb 25, 2024
8516013
testing djlint work or not
JisanAR03 Feb 25, 2024
692eee5
testing djlint work or not
JisanAR03 Feb 25, 2024
343b05c
testing djlint work or not
JisanAR03 Feb 25, 2024
dca3062
testing djlint work or not
JisanAR03 Feb 25, 2024
a0dbcbf
fix invite
JisanAR03 Feb 26, 2024
0fc3e2b
update for check
JisanAR03 Feb 26, 2024
b26d951
update for check
JisanAR03 Feb 26, 2024
ca60235
update for check
JisanAR03 Feb 26, 2024
30cef9b
Merge branch 'main' into issue_1825
JisanAR03 Feb 26, 2024
8bf35a7
update for check
JisanAR03 Feb 26, 2024
cc6bbc5
Merge branch 'issue_1825' of github.com:JisanAR03/BLT into issue_1825
JisanAR03 Feb 26, 2024
442db55
update for check
JisanAR03 Feb 26, 2024
7a50a20
update for check
JisanAR03 Feb 26, 2024
dc80b88
update for check
JisanAR03 Feb 26, 2024
e9db0d0
update for check
JisanAR03 Feb 26, 2024
d0aa67c
update for check
JisanAR03 Feb 27, 2024
aa2f8c4
update for check
JisanAR03 Feb 27, 2024
cc5d262
update for check
JisanAR03 Feb 27, 2024
432931e
update for check
JisanAR03 Feb 27, 2024
2ea6764
update for check
JisanAR03 Feb 27, 2024
80228d2
update for check
JisanAR03 Feb 27, 2024
3609a79
update for check
JisanAR03 Feb 27, 2024
4327920
update for check
JisanAR03 Feb 27, 2024
226f840
update for check
JisanAR03 Feb 27, 2024
265c7cb
update for check
JisanAR03 Feb 27, 2024
9fbaa07
update for check
JisanAR03 Feb 27, 2024
29e941d
update for check
JisanAR03 Feb 27, 2024
f04148d
update for check
JisanAR03 Feb 27, 2024
8b6067d
update for check
JisanAR03 Feb 27, 2024
5cadb31
update for check
JisanAR03 Feb 27, 2024
69befd0
update for check
JisanAR03 Feb 27, 2024
3a2c580
update for check
JisanAR03 Feb 27, 2024
fffaaa3
update for check
JisanAR03 Feb 27, 2024
583ac23
update for check
JisanAR03 Feb 27, 2024
480c784
update for check
JisanAR03 Feb 27, 2024
f16c60d
update for check
JisanAR03 Feb 27, 2024
90ccf1f
update for check
JisanAR03 Feb 27, 2024
2e4b89c
update for check
JisanAR03 Feb 27, 2024
bd18e7a
update for check
JisanAR03 Feb 27, 2024
a8c8c80
update for check
JisanAR03 Feb 27, 2024
ccea346
update for check
JisanAR03 Feb 27, 2024
443b3f3
update for check
JisanAR03 Feb 27, 2024
ae50de7
update for check
JisanAR03 Feb 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/assign-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- name: Assign Issues
uses: OWASP/BLT-Action@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ repos:
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/djlint/djLint
rev: v1.34.1
hooks:
- id: djlint-reformat-django
files: ^company/templates/|^website/templates/
- id: djlint-django
2 changes: 1 addition & 1 deletion .profile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/app/vendor/firefox
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib:/lib:/app/vendor/firefox
xvfb :99 -ac
export DISPLAY=:99
echo ${GOOGLE_CREDENTIALS} > /app/google-credentials.json
echo ${GOOGLE_CREDENTIALS} > /app/google-credentials.json
28 changes: 14 additions & 14 deletions blt/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
re_path(r"^issue2/(?P<slug>\w+)/$", IssueView2.as_view(), name="issue_view2"),
re_path(r"^follow/(?P<user>[^/]+)/", website.views.follow_user, name="follow_user"),
re_path(r"^all_activity/$", AllIssuesView.as_view(), name="all_activity"),
re_path(r"^label_activity/$", SpecificIssuesView.as_view(), name="all_activity"),
re_path(r"^label_activity/$", SpecificIssuesView.as_view(), name="all_activitys"),
re_path(r"^leaderboard/$", GlobalLeaderboardView.as_view(), name="leaderboard_global"),
re_path(
r"^leaderboard/monthly/$",
Expand Down Expand Up @@ -329,17 +329,17 @@
re_path(r"^start/$", TemplateView.as_view(template_name="hunt.html"), name="start_hunt"),
re_path(r"^hunt/$", login_required(HuntCreate.as_view()), name="hunt"),
re_path(r"^hunts/$", ListHunts.as_view(), name="hunts"),
re_path(r"^invite/$", InviteCreate.as_view(template_name="invite.html")),
re_path(r"^invite/$", InviteCreate.as_view(template_name="invite.html"), name="invite"),
re_path(r"^terms/$", TemplateView.as_view(template_name="terms.html"), name="terms"),
re_path(r"^about/$", TemplateView.as_view(template_name="about.html")),
re_path(r"^teams/$", TemplateView.as_view(template_name="teams.html")),
re_path(r"^projects/$", TemplateView.as_view(template_name="projects.html")),
re_path(r"^apps/$", TemplateView.as_view(template_name="apps.html")),
re_path(r"^deletions/$", TemplateView.as_view(template_name="deletions.html")),
re_path(r"^trademarks/$", TemplateView.as_view(template_name="trademarks.html")),
re_path(r"^bacon/$", TemplateView.as_view(template_name="bacon.html")),
re_path(r"^bltv/$", TemplateView.as_view(template_name="bltv.html")),
re_path(r"^privacypolicy/$", TemplateView.as_view(template_name="privacy.html")),
re_path(r"^about/$", TemplateView.as_view(template_name="about.html"), name="about"),
re_path(r"^teams/$", TemplateView.as_view(template_name="teams.html"), name="teams"),
re_path(r"^projects/$", TemplateView.as_view(template_name="projects.html"), name="projects"),
re_path(r"^apps/$", TemplateView.as_view(template_name="apps.html"), name="apps"),
re_path(r"^deletions/$", TemplateView.as_view(template_name="deletions.html"), name="deletions"),
re_path(r"^trademarks/$", TemplateView.as_view(template_name="trademarks.html"), name="trademarks"),
re_path(r"^bacon/$", TemplateView.as_view(template_name="bacon.html"), name="bacon"),
re_path(r"^bltv/$", TemplateView.as_view(template_name="bltv.html"), name="bltv"),
re_path(r"^privacypolicy/$", TemplateView.as_view(template_name="privacy.html"), name="privacy"),
re_path(r"^stats/$", StatsDetailView.as_view(), name="stats"),
re_path(r"^favicon\.ico$", favicon_view),
re_path(
Expand All @@ -360,8 +360,8 @@
comments.views.reply_comment,
name="reply_comment",
),
re_path(r"^social/$", TemplateView.as_view(template_name="social.html")),
re_path(r"^search/$", website.views.search),
re_path(r"^social/$", TemplateView.as_view(template_name="social.html"), name="social"),
re_path(r"^search/$", website.views.search, name="search"),
re_path(r"^report/$", IssueCreate.as_view(), name="report"),
re_path(r"^i18n/", include("django.conf.urls.i18n")),
re_path(r"^api/v1/", include(router.urls)),
Expand Down Expand Up @@ -415,7 +415,7 @@
re_path(r"^contributors/$", contributors_view, name="contributors"),
path("company/", include("company.urls")),
path("sponsor/", website.views.sponsor_view, name="sponsor"),
path("companies/", DomainListView.as_view(), name="domain_list"),
path("companies/", DomainListView.as_view(), name="domain_lists"),
]

if settings.DEBUG:
Expand Down
2 changes: 1 addition & 1 deletion company/static/company/css/md_editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@

#markdown-editor #input-output .show {
display: block !important;
}
}
2 changes: 1 addition & 1 deletion company/static/company/js/md_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,4 @@ function escapeHTML(unsafeText) {
let div = document.createElement('div');
div.textContent = unsafeText;
return div.innerHTML;
}
}
Loading
Loading