fix: disable light mode, return all repos from search
This commit is contained in:
@@ -35,11 +35,5 @@ pub async fn search_repos(
|
||||
.json::<SearchResponse>()
|
||||
.await?;
|
||||
|
||||
Ok(HttpResponse::Ok().json(
|
||||
response
|
||||
.items
|
||||
.into_iter()
|
||||
.filter(|r| r.private == false)
|
||||
.collect::<Vec<Repository>>(),
|
||||
))
|
||||
Ok(HttpResponse::Ok().json(response.items))
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color-scheme: dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
/* background-color: #242424; */
|
||||
|
||||
@@ -159,17 +159,17 @@ button:focus-visible {
|
||||
animation: grow-out 150ms ease-out;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
a:default:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
|
||||
button:default {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
/* @media (prefers-color-scheme: light) { */
|
||||
/* :root { */
|
||||
/* color: #213547; */
|
||||
/* background-color: #ffffff; */
|
||||
/* } */
|
||||
/**/
|
||||
/* a:default:hover { */
|
||||
/* color: #747bff; */
|
||||
/* } */
|
||||
/**/
|
||||
/* button:default { */
|
||||
/* background-color: #f9f9f9; */
|
||||
/* } */
|
||||
/* } */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/api/v0/:path*",
|
||||
"destination": "https://s8do6ipb07.execute-api.ca-central-1.amazonaws.com/api/v0/:path*"
|
||||
"destination": "https://api.ghostv2.lucalise.ca/api/v0/:path*"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user