Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024-03-11 release #90

Merged
merged 3 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
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)
4 changes: 2 additions & 2 deletions src/api/account_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/api/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion src/api/contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
router = APIRouter()


@router.get("/")
@router.get("/contributors")
async def contributors(request: Request):
return templates.TemplateResponse("pages/contributors.html", {"request": request})
2 changes: 1 addition & 1 deletion src/api/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion src/api/faq.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
router = APIRouter()


@router.get("/")
@router.get("/about")
async def faq(request: Request):
return templates.TemplateResponse("pages/faq.html", {"request": request})
2 changes: 1 addition & 1 deletion src/api/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/api/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
13 changes: 3 additions & 10 deletions src/static/core.botdetector.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading