Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Improvements:
Generate a requirements.txt so that others could install necessary pip packages by one command:
pip install -r requirements.txt
The following JS file is not accessible but is still there, which will cause the page to load for a long time. I have comment it out.Or you can use correct site and move all js before like 3. .
<script src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
Scripts can block downloads of other resources, so it is recommended to place all tags as far as possible
at the bottom before the tag to minimize the impact on the overall page download.
Now the page loads really fast.Without any waiting even with proxy!(slow for 2. and 3. before)
Record IP addresses
As it has recorded all IP address and could be banned, the administrator should have a page to see it and ban invalid IP address.
I add an table to control if banned invalid visitor's ip in admin.html.
In the /templates/domain.html
body style="background-color:#dadada;"> " missing a '<' " , syntax error.
Format the file service.py
Make code more readable.
Does this PR introduce a breaking change?
No, just some simple change but good behavior
Other information:
assign: @hema-001 @spm2020spring