-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrated sliding window rate limit on frontend client
- Loading branch information
1 parent
6b6554d
commit c98576c
Showing
7 changed files
with
371 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
<!-- <!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>RateShield Status</title> | ||
<style> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: Arial, sans-serif; | ||
} | ||
body { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: 100vh; | ||
background-color: #f3f4f6; | ||
color: #333; | ||
} | ||
.container { | ||
text-align: center; | ||
padding: 2rem; | ||
max-width: 600px; | ||
background-color: #fff; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
} | ||
h1 { | ||
color: #4a90e2; | ||
margin-bottom: 1rem; | ||
} | ||
p { | ||
font-size: 1.1rem; | ||
margin-bottom: 1.5rem; | ||
} | ||
.button { | ||
display: inline-block; | ||
padding: 0.8rem 1.5rem; | ||
margin-top: 1rem; | ||
font-size: 1rem; | ||
font-weight: bold; | ||
color: #fff; | ||
background-color: #4a90e2; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
text-decoration: none; | ||
transition: background-color 0.3s ease; | ||
} | ||
.button:hover { | ||
background-color: #357ABD; | ||
} | ||
.instructions { | ||
font-size: 0.9rem; | ||
margin-top: 1.5rem; | ||
color: #666; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>RateShield is Running!</h1> | ||
<p>Welcome to the RateShield rate limiter. The server is currently active on this port.</p> | ||
<a href="#" class="button">Default Frontend Port: 5173</a> | ||
<p class="instructions">If the frontend is not accessible, ensure the React application is running. Use:</p> | ||
<code class="instructions">npm run dev</code> | ||
</div> | ||
</body> | ||
</html> --> | ||
|
||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>RateShield Status</title> | ||
<style> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: Arial, sans-serif; | ||
} | ||
|
||
body { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: 100vh; | ||
background-color: #eaeaea; | ||
color: #333; | ||
} | ||
|
||
.container { | ||
text-align: center; | ||
padding: 2rem; | ||
max-width: 500px; | ||
background-color: #ffffff; | ||
border-radius: 8px; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); | ||
} | ||
|
||
h1 { | ||
color: #333; | ||
font-size: 1.8rem; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
p { | ||
font-size: 1rem; | ||
color: #555; | ||
margin-bottom: 1rem; | ||
line-height: 1.5; | ||
} | ||
|
||
.button { | ||
display: inline-block; | ||
padding: 0.6rem 1.5rem; | ||
margin-top: 1rem; | ||
font-size: 0.95rem; | ||
color: #ffffff; | ||
background-color: #4a90e2; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
text-decoration: none; | ||
transition: background-color 0.3s ease; | ||
} | ||
|
||
.button:hover { | ||
background-color: #3b7bbf; | ||
} | ||
|
||
.instructions { | ||
font-size: 0.85rem; | ||
color: #666; | ||
margin-top: 1rem; | ||
} | ||
|
||
code.instructions { | ||
display: block; | ||
font-size: 0.85rem; | ||
margin-top: 0.5rem; | ||
background-color: #f7f7f7; | ||
color: #333; | ||
padding: 0.3rem 0.6rem; | ||
border-radius: 4px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="container"> | ||
<h1>RateShield is Running</h1> | ||
<p>Welcome to the RateShield rate limiter. The server is currently active on this port.</p> | ||
<a href="#" class="button">Default Frontend Port: 5173</a> | ||
<p class="instructions">If the frontend is not accessible, ensure the React application is running. Use:</p> | ||
<code class="instructions">npm run dev</code> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.