diff --git a/src/client/assets/fonts/Hasklig-Regular.otf b/src/client/assets/fonts/Hasklig-Regular.otf new file mode 100644 index 0000000..1089192 Binary files /dev/null and b/src/client/assets/fonts/Hasklig-Regular.otf differ diff --git a/src/client/assets/scss/App.scss b/src/client/assets/scss/App.scss index f0c13bf..96f695f 100644 --- a/src/client/assets/scss/App.scss +++ b/src/client/assets/scss/App.scss @@ -8,4 +8,9 @@ src: url("./src/client/assets/fonts/PPObjectSans-Regular.otf") format("opentype"); } + + @font-face { + font-family: "Hasklig Regular"; + src: url("./src/client/assets/fonts/Hasklig-Regular.otf") format("opentype"); + } } diff --git a/src/client/components/Import/Import.tsx b/src/client/components/Import/Import.tsx index 592ce83..4cc9bb8 100644 --- a/src/client/components/Import/Import.tsx +++ b/src/client/components/Import/Import.tsx @@ -154,25 +154,6 @@ export const Import = (props: IProps): ReactElement => { - {/*

- -

*/}
{importJobQueue.status === "drained" || (importJobQueue.status === undefined && ( diff --git a/src/client/components/Settings/AirDCPPSettings/AirDCPPSettingsConfirmation.tsx b/src/client/components/Settings/AirDCPPSettings/AirDCPPSettingsConfirmation.tsx index e5e604e..89c6253 100644 --- a/src/client/components/Settings/AirDCPPSettings/AirDCPPSettingsConfirmation.tsx +++ b/src/client/components/Settings/AirDCPPSettings/AirDCPPSettingsConfirmation.tsx @@ -3,29 +3,38 @@ import React, { ReactElement } from "react"; export const AirDCPPSettingsConfirmation = (settingsObject): ReactElement => { const { settings } = settingsObject; return ( -
-
-
- Connected -
-
-
{settings._id}
-
Client version: {settings.system_info.client_version}
-
Hostname: {settings.system_info.hostname}
-
Platform: {settings.system_info.platform}
+
+ + + AirDC++ Client Information + + + +
+ + + + +

Connected

+
+

+

+
{settings._id}
+
Client version: {settings.system_info.client_version}
+
Hostname: {settings.system_info.hostname}
+
Platform: {settings.system_info.platform}
-
Username: {settings.user.username}
+
Username: {settings.user.username}
-
Active Sessions: {settings.user.active_sessions}
-
- Permissions:{" "} -
-                  {JSON.stringify(settings.user.permissions, undefined, 2)}
-                
-
-
-
-
+
Active Sessions: {settings.user.active_sessions}
+
+ Permissions:{" "} +
+                {JSON.stringify(settings.user.permissions, undefined, 2)}
+              
+
+
+

); diff --git a/src/client/components/shared/ConnectionForm/ConnectionForm.tsx b/src/client/components/shared/ConnectionForm/ConnectionForm.tsx index 3d42d96..0c68b99 100644 --- a/src/client/components/shared/ConnectionForm/ConnectionForm.tsx +++ b/src/client/components/shared/ConnectionForm/ConnectionForm.tsx @@ -14,92 +14,125 @@ export const ConnectionForm = ({ onSubmit={submitHandler} initialValues={initialData} render={({ handleSubmit }) => ( -
+

{formHeading}

+
+
+

Configure your AirDC++ client connection here.

+

+ Note that you need an instance of AirDC++ already running to + use this form to connect to it. +

+

+ See{" "} + + here + {" "} + for AirDC++ installation instructions for various platforms. +

+
+
-
- + + + Configure Connection + + + + +
+
+ {/* protocol */} + + + + + + +
+ +
+
+ {/* hostname */} {({ input, meta }) => ( -
-
- - - - - -
- -
-
- - - {({ input, meta }) => ( -
- - {meta.error && meta.touched && ( - - {meta.error} - - )} -
- )} -
- - {/* port */} - + + - - {meta.error && meta.touched && ( - {meta.error} - )} +
+ {meta.error && meta.touched && ( + + {meta.error} + + )} +
)}
+ + {/* port */} +
+ + +
- -
-
- - - - +
+
+ +
+ + + + +
-
- - - - +
+
+ +
+ + + + +
+
-
+
-

- -

+
)} diff --git a/tailwind.config.js b/tailwind.config.js index 5206c55..2baa897 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,6 +7,7 @@ module.exports = { theme: { fontFamily: { sans: ["PP Object Sans Regular", "sans-serif"], + hasklig: ["Hasklig Regular", "monospace"], }, container: { center: true,