Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#

Added placeholder Health page.

nzbdav-devb3dd6b4517aa
diff --git a/frontend/app/routes/_index/components/left-navigation/left-navigation.module.css b/frontend/app/routes/_index/components/left-navigation/left-navigation.module.css
index 7bbfe31f..09a8b350 100644
--- a/frontend/app/routes/_index/components/left-navigation/left-navigation.module.css
+++ b/frontend/app/routes/_index/components/left-navigation/left-navigation.module.css
@@ -51,12 +51,12 @@
}
.explore-icon {
- display: inline-block;
- width: 22px;
- height: 22px;
- background-repeat: no-repeat;
- background-size: 100% 100%;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2393a1a1' d='M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063a.25.25 0 0 0 .207.11h6.224c.966 0 1.75.783 1.75 1.75v.117H5.408a.848.848 0 0 0 0 1.695h15.484a1 1 0 0 1 .995 1.102L21 19.25c-.106 1.05-.784 1.75-1.75 1.75H3.75A1.75 1.75 0 0 1 2 19.25z'/%3E%3C/svg%3E");
+ display: inline-block;
+ width: 22px;
+ height: 22px;
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2393a1a1' d='M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063a.25.25 0 0 0 .207.11h6.224c.966 0 1.75.783 1.75 1.75v.117H5.408a.848.848 0 0 0 0 1.695h15.484a1 1 0 0 1 .995 1.102L21 19.25c-.106 1.05-.784 1.75-1.75 1.75H3.75A1.75 1.75 0 0 1 2 19.25z'/%3E%3C/svg%3E");
}
.stream-icon {
@@ -77,6 +77,15 @@
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2393a1a1' d='M10.825 22q-.675 0-1.162-.45t-.588-1.1L8.85 18.8q-.325-.125-.612-.3t-.563-.375l-1.55.65q-.625.275-1.25.05t-.975-.8l-1.175-2.05q-.35-.575-.2-1.225t.675-1.075l1.325-1Q4.5 12.5 4.5 12.337v-.675q0-.162.025-.337l-1.325-1Q2.675 9.9 2.525 9.25t.2-1.225L3.9 5.975q.35-.575.975-.8t1.25.05l1.55.65q.275-.2.575-.375t.6-.3l.225-1.65q.1-.65.588-1.1T10.825 2h2.35q.675 0 1.163.45t.587 1.1l.225 1.65q.325.125.613.3t.562.375l1.55-.65q.625-.275 1.25-.05t.975.8l1.175 2.05q.35.575.2 1.225t-.675 1.075l-1.325 1q.025.175.025.338v.674q0 .163-.05.338l1.325 1q.525.425.675 1.075t-.2 1.225l-1.2 2.05q-.35.575-.975.8t-1.25-.05l-1.5-.65q-.275.2-.575.375t-.6.3l-.225 1.65q-.1.65-.587 1.1t-1.163.45zm1.225-6.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12t1.013 2.475T12.05 15.5'/%3E%3C/svg%3E");
}
+.health-icon {
+ display: inline-block;
+ width: 22px;
+ height: 22px;
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2393a1a1' d='M20.13 4.155a5 5 0 0 0-4.39-1.07A6 6 0 0 0 12 5.665a6 6 0 0 0-3.72-2.58a5.09 5.09 0 0 0-4.4 1c-1.58 1.38-2.45 4.44-1.46 7.54q.168.514.4 1q.06.113.11.23c2.57 5.24 8.51 8 8.77 8.13a.7.7 0 0 0 .31.07a.7.7 0 0 0 .31-.07c.25-.11 6.25-2.85 8.8-8.15l.08-.17q.237-.51.41-1.05c.94-3 .08-6.06-1.48-7.46m-.31 7.93q-.21.471-.48.91h-3.31a1 1 0 0 1-.83-.45l-1.05-1.56l-2.23 4.46a1 1 0 0 1-.73.54h-.16a1 1 0 0 1-.71-.3l-2.71-2.7H4.7q-.276-.486-.5-1a6.3 6.3 0 0 1-.38-1h4.21a1 1 0 0 1 .71.29l2 2l2.38-4.76a1 1 0 0 1 .84-.55a1 1 0 0 1 .89.44l1.7 2.56h3.7q-.164.58-.43 1.12'/%3E%3C/svg%3E");
+}
+
.title {
font-size: 20px;
}
@@ -102,7 +111,7 @@
}
-@media not (pointer: coarse), (min-width: 900px) {
+@media not (pointer: coarse), (min-width: 900px) {
.github-link:hover {
text-decoration: underline;
}
diff --git a/frontend/app/routes/_index/components/left-navigation/left-navigation.module.css.d.ts b/frontend/app/routes/_index/components/left-navigation/left-navigation.module.css.d.ts
index 4caed6a3..6b855ce6 100644
--- a/frontend/app/routes/_index/components/left-navigation/left-navigation.module.css.d.ts
+++ b/frontend/app/routes/_index/components/left-navigation/left-navigation.module.css.d.ts
@@ -5,6 +5,7 @@ declare const styles: {
readonly "footer-item": string;
readonly "github-link": string;
readonly "github-icon": string;
+ readonly "health-icon": string;
readonly "item": string;
readonly "logout-icon": string;
readonly "queue-icon": string;
diff --git a/frontend/app/routes/_index/components/left-navigation/left-navigation.tsx b/frontend/app/routes/_index/components/left-navigation/left-navigation.tsx
index df33de31..908b132e 100644
--- a/frontend/app/routes/_index/components/left-navigation/left-navigation.tsx
+++ b/frontend/app/routes/_index/components/left-navigation/left-navigation.tsx
@@ -19,6 +19,10 @@ export function LeftNavigation({ version }: LeftNavigationProps) {
<div className={styles["explore-icon"]} />
<div className={styles.title}>Dav Explore</div>
</Item>
+ <Item target="/health">
+ <div className={styles["health-icon"]} />
+ <div className={styles.title}>Health</div>
+ </Item>
<Item target="/settings">
<div className={styles["settings-icon"]} />
<div className={styles.title}>Settings</div>
diff --git a/frontend/app/routes/health/route.module.css b/frontend/app/routes/health/route.module.css
new file mode 100644
index 00000000..0e31c687
--- /dev/null
+++ b/frontend/app/routes/health/route.module.css
@@ -0,0 +1,7 @@
+.container {
+ min-width: 100%;
+ min-height: 100%;
+ padding: 30px 35px 20px 35px;
+ color: #93a1a1;
+ font-size: 16px;
+}
\ No newline at end of file
diff --git a/frontend/app/routes/health/route.module.css.d.ts b/frontend/app/routes/health/route.module.css.d.ts
new file mode 100644
index 00000000..96dc17fa
--- /dev/null
+++ b/frontend/app/routes/health/route.module.css.d.ts
@@ -0,0 +1,4 @@
+declare const styles: {
+ readonly "container": string;
+};
+export = styles;
\ No newline at end of file
diff --git a/frontend/app/routes/health/route.tsx b/frontend/app/routes/health/route.tsx
new file mode 100644
index 00000000..c54848b3
--- /dev/null
+++ b/frontend/app/routes/health/route.tsx
@@ -0,0 +1,10 @@
+import type { Route } from "./+types/route";
+import styles from "./route.module.css"
+
+export default function Health(props: Route.ComponentProps) {
+ return (
+ <div className={styles.container}>
+ {/* Health content placeholder */}
+ </div>
+ );
+}
\ No newline at end of file