Skip to content

Commit 89ad226

Browse files
authored
Merge pull request #90 from Bot-detector/develop
2024-03-11 release
2 parents cc3e9ac + a211afa commit 89ad226

File tree

9 files changed

+18
-25
lines changed

9 files changed

+18
-25
lines changed

src/api/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from src.api import account_search, contact, contributors, faq, home, monitoring, cookies
44

55
router = APIRouter()
6-
router.include_router(monitoring.router, prefix="/monitoring")
7-
router.include_router(home.router, prefix="/home")
8-
router.include_router(account_search.router, prefix="/account-search")
9-
router.include_router(contributors.router, prefix="/contributors")
10-
router.include_router(contact.router, prefix="/contact")
11-
router.include_router(faq.router, prefix="/about")
12-
router.include_router(cookies.router, prefix="/cookies")
6+
router.include_router(monitoring.router)
7+
router.include_router(home.router)
8+
router.include_router(account_search.router)
9+
router.include_router(contributors.router)
10+
router.include_router(contact.router)
11+
router.include_router(faq.router)
12+
router.include_router(cookies.router)

src/api/account_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
router = APIRouter()
77

88

9-
@router.get("/")
9+
@router.get("/account-search")
1010
async def account_search(request: Request) -> HTMLResponse:
1111
return templates.TemplateResponse("pages/account_search.html", {"request": request})
1212

1313

14-
@router.post("/")
14+
@router.post("/account-search")
1515
async def account_search(request: Request, username: str = Form(...)) -> HTMLResponse:
1616
# You can access the submitted username using the "username" variable
1717
prediction = await BD_API.get_prediction(name=username)

src/api/contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
router = APIRouter()
77

88

9-
@router.get("/")
9+
@router.get("/contact")
1010
async def contact(request: Request) -> HTMLResponse:
1111
return templates.TemplateResponse("pages/contact.html", {"request": request})

src/api/contributors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
router = APIRouter()
66

77

8-
@router.get("/")
8+
@router.get("/contributors")
99
async def contributors(request: Request):
1010
return templates.TemplateResponse("pages/contributors.html", {"request": request})

src/api/cookies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
router = APIRouter()
77

88

9-
@router.get("/")
9+
@router.get("/cookies")
1010
async def cookies(request: Request) -> HTMLResponse:
1111
return templates.TemplateResponse("pages/cookies.html", {"request": request})

src/api/faq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
router = APIRouter()
66

77

8-
@router.get("/")
8+
@router.get("/about")
99
async def faq(request: Request):
1010
return templates.TemplateResponse("pages/faq.html", {"request": request})

src/api/home.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Stats(BaseModel):
1212
total_accounts: int
1313

1414

15-
@router.get("/")
15+
@router.get("/home")
1616
async def home(request: Request):
1717
stats = await BD_API.get_project_stats()
1818
stats = Stats(**stats)

src/api/monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
router = APIRouter()
77

88

9-
@router.get("/", response_model=Health)
9+
@router.get("/monitoring", response_model=Health)
1010
async def health() -> Health:
1111
return Health(version=CONFIG.RELEASE_VERSION, status="Healthy")

src/static/core.botdetector.css

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,21 @@ table{
9898
}
9999

100100
.runelite {
101-
border-bottom: 2px solid #8fb55e;
101+
border-left: 2px solid #8fb55e;
102102
text-align: center;
103-
box-shadow: inset 0px -44px 55px 0px rgba(143,181,94,0.5);
104-
105103
border-radius:0;
106104
}
107105

108106
.botstats {
109-
border-bottom: 2px solid #008aff;
107+
border-left: 2px solid #008aff;
110108
text-align: center;
111-
box-shadow: inset 0px -44px 55px 0px rgba(0,138,255,0.5);
112-
113109
border-radius:0;
114110
}
115111

116112
.notify {
117-
border-bottom: 2px solid #8a9ef6;
113+
border-left: 2px solid #8a9ef6;
118114
text-align: center;
119-
box-shadow: inset 0px -44px 55px 0px rgba(138,158,246,0.5);
120115
border-radius:0;
121-
122-
123116
}
124117

125118
.dcboost {

0 commit comments

Comments
 (0)