-
Notifications
You must be signed in to change notification settings - Fork 13
Bootstrap Upgrade #72
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
Conversation
We have different formatters for HTML. This makes every change from you re-format the code and then same for me. This is crazy annoying. Before I review I will add various formatters (html, js , css, python). Please make sure your IDE follow them. |
Thanks! Just ping me when you are done and I will do the propper formatting :) |
Checked and should be fine with PyCharm. 👍 EDIT: Question tho: Shouldn't it be rather "pre-commit" than "pre-push"? Because if you check after commit the changes are already commited no? But if you check pre-commit the hooks would run before the commit is done and commit the correctly formatted files. At least that's my understanding of it. |
It will be There might also be an action coming for this at some point to refuse PR merging if not compliant to |
Pretty much everything is ready, I'll double-check it all today after work because it'll be quite a big change 😂 |
Glad to see your changes merged! What's left for me to do now? |
This is not manageable, can you revert to before a24b5f8 and force push? I'll review from that point directly in GH and then merge. Just like this I have no idea what changes you made... 😔 I'll apply the formatting later on. |
Will do, just gimme a few min! |
a24b5f8
to
d906199
Compare
@@ -75,57 +88,46 @@ | |||
|
|||
|
|||
<script> | |||
function filterChallenges() | |||
{ | |||
function filterChallenges() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realized, this now can go into /js/challenges.js
but no that can be done in another PR
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous"> | ||
<link rel="stylesheet" type="text/css" href="{% static '/css/fontawesome/css/all.min.css' %}" /> | ||
<link rel="stylesheet" type="text/css" href="/static/css/main-{% theme_cookie %}.css" /> | ||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎆
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous"> | ||
<link rel="stylesheet" type="text/css" href="{% static '/css/fontawesome/css/all.min.css' %}"/> | ||
<link rel="stylesheet" type="text/css" href="/static/css/main.css"/> | ||
<link rel="icon" type="image/png" sizes="16x16" href="{% static '/images/favicon.png' %}"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO:
Chart.js can be bumped ? Latest is now 4.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed everything, awesome stuff! So glad to get rid of the dark mode hack and jquery.
I will need to test it live because it looks like some HTML parts are duplicated. Minor stuff but ugly so I wanna be sure. If all good I'll merge then.
Nice :) yeah could be that I missed some stuff. I made quite the changes and could be that some copy paste stuff stayed there. |
Yeah 🙂 I suspected so |
Alright, I think I fixed everything that was broken. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go
Oh boy... That was a journey but behold CTFPad is now running with the newest Bootstrap Version (5.3.0). It is possible that I missed some things somewhere but as for now I am pretty confident I change everything that needed to be changed in order for everything to work and look nice.