feat(admin): make user rate limits configurable via admin UI
Add rate_limit_settings table and corresponding admin permissions Replace static user rate limits with dynamic in-memory counters Add interface in admin panel to configure rate limit policies
This commit is contained in:
@@ -806,6 +806,35 @@ button:disabled,
|
||||
max-width: 680px;
|
||||
}
|
||||
|
||||
.rate-limit-list {
|
||||
display: grid;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.rate-limit-row {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.rate-limit-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.rate-limit-row h3 {
|
||||
margin: 0;
|
||||
color: var(--ink);
|
||||
font-size: 15px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.rate-limit-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(120px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.pokemon-edit-form {
|
||||
height: clamp(420px, calc(100dvh - 188px), 640px);
|
||||
min-height: 0;
|
||||
@@ -6002,7 +6031,8 @@ button:disabled,
|
||||
|
||||
.life-toolbar,
|
||||
.life-toolbar__search,
|
||||
.life-toolbar__filters {
|
||||
.life-toolbar__filters,
|
||||
.rate-limit-fields {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user