From b994b2c53e5bb9feaaa2ca7970156a360d435466 Mon Sep 17 00:00:00 2001 From: mitsuki-jpg <157184169+mitsuki-jpg@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:09:56 +0100 Subject: [PATCH 1/2] Update core.botdetector.css Better looking side block --- src/static/core.botdetector.css | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/static/core.botdetector.css b/src/static/core.botdetector.css index 420efa6..9023b3c 100644 --- a/src/static/core.botdetector.css +++ b/src/static/core.botdetector.css @@ -98,28 +98,21 @@ table{ } .runelite { - border-bottom: 2px solid #8fb55e; + border-left: 2px solid #8fb55e; text-align: center; - box-shadow: inset 0px -44px 55px 0px rgba(143,181,94,0.5); - border-radius:0; } .botstats { - border-bottom: 2px solid #008aff; + border-left: 2px solid #008aff; text-align: center; - box-shadow: inset 0px -44px 55px 0px rgba(0,138,255,0.5); - border-radius:0; } .notify { -border-bottom: 2px solid #8a9ef6; +border-left: 2px solid #8a9ef6; text-align: center; -box-shadow: inset 0px -44px 55px 0px rgba(138,158,246,0.5); border-radius:0; - - } .dcboost { From a211afa3181a9c9194719270458bbbf033e4e66a Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:07:51 +0100 Subject: [PATCH 2/2] better routing --- src/api/__init__.py | 14 +++++++------- src/api/account_search.py | 4 ++-- src/api/contact.py | 2 +- src/api/contributors.py | 2 +- src/api/cookies.py | 2 +- src/api/faq.py | 2 +- src/api/home.py | 2 +- src/api/monitoring.py | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/api/__init__.py b/src/api/__init__.py index 220216d..e812220 100644 --- a/src/api/__init__.py +++ b/src/api/__init__.py @@ -3,10 +3,10 @@ from src.api import account_search, contact, contributors, faq, home, monitoring, cookies router = APIRouter() -router.include_router(monitoring.router, prefix="/monitoring") -router.include_router(home.router, prefix="/home") -router.include_router(account_search.router, prefix="/account-search") -router.include_router(contributors.router, prefix="/contributors") -router.include_router(contact.router, prefix="/contact") -router.include_router(faq.router, prefix="/about") -router.include_router(cookies.router, prefix="/cookies") \ No newline at end of file +router.include_router(monitoring.router) +router.include_router(home.router) +router.include_router(account_search.router) +router.include_router(contributors.router) +router.include_router(contact.router) +router.include_router(faq.router) +router.include_router(cookies.router) \ No newline at end of file diff --git a/src/api/account_search.py b/src/api/account_search.py index 4286c11..f3b21bd 100644 --- a/src/api/account_search.py +++ b/src/api/account_search.py @@ -6,12 +6,12 @@ router = APIRouter() -@router.get("/") +@router.get("/account-search") async def account_search(request: Request) -> HTMLResponse: return templates.TemplateResponse("pages/account_search.html", {"request": request}) -@router.post("/") +@router.post("/account-search") async def account_search(request: Request, username: str = Form(...)) -> HTMLResponse: # You can access the submitted username using the "username" variable prediction = await BD_API.get_prediction(name=username) diff --git a/src/api/contact.py b/src/api/contact.py index cab5e24..28c74b6 100644 --- a/src/api/contact.py +++ b/src/api/contact.py @@ -6,6 +6,6 @@ router = APIRouter() -@router.get("/") +@router.get("/contact") async def contact(request: Request) -> HTMLResponse: return templates.TemplateResponse("pages/contact.html", {"request": request}) diff --git a/src/api/contributors.py b/src/api/contributors.py index 767a4ae..7ca6dac 100644 --- a/src/api/contributors.py +++ b/src/api/contributors.py @@ -5,6 +5,6 @@ router = APIRouter() -@router.get("/") +@router.get("/contributors") async def contributors(request: Request): return templates.TemplateResponse("pages/contributors.html", {"request": request}) diff --git a/src/api/cookies.py b/src/api/cookies.py index 4f12b48..ef1cc5d 100644 --- a/src/api/cookies.py +++ b/src/api/cookies.py @@ -6,6 +6,6 @@ router = APIRouter() -@router.get("/") +@router.get("/cookies") async def cookies(request: Request) -> HTMLResponse: return templates.TemplateResponse("pages/cookies.html", {"request": request}) diff --git a/src/api/faq.py b/src/api/faq.py index 5e9aa1c..07e9453 100644 --- a/src/api/faq.py +++ b/src/api/faq.py @@ -5,6 +5,6 @@ router = APIRouter() -@router.get("/") +@router.get("/about") async def faq(request: Request): return templates.TemplateResponse("pages/faq.html", {"request": request}) diff --git a/src/api/home.py b/src/api/home.py index 538ad01..265ca71 100644 --- a/src/api/home.py +++ b/src/api/home.py @@ -12,7 +12,7 @@ class Stats(BaseModel): total_accounts: int -@router.get("/") +@router.get("/home") async def home(request: Request): stats = await BD_API.get_project_stats() stats = Stats(**stats) diff --git a/src/api/monitoring.py b/src/api/monitoring.py index fb2506f..e7e0348 100644 --- a/src/api/monitoring.py +++ b/src/api/monitoring.py @@ -6,6 +6,6 @@ router = APIRouter() -@router.get("/", response_model=Health) +@router.get("/monitoring", response_model=Health) async def health() -> Health: return Health(version=CONFIG.RELEASE_VERSION, status="Healthy")