Add footer links + other stuff

This commit is contained in:
Kieran 2022-02-13 15:44:17 +00:00
parent c0367ff2e9
commit 7a366bba38
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
5 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,9 @@
using Microsoft.AspNetCore.Mvc;
namespace VoidCat.Controllers.Admin;
[Route("admin")]
public class AdminController : Controller
{
}

View File

@ -3,5 +3,22 @@
public class VoidSettings
{
public string DataDirectory { get; init; } = "./data";
public TorSettings? TorSettings { get; init; }
}
public class TorSettings
{
public TorSettings(Uri torControl, string privateKey, string controlPassword)
{
TorControl = torControl;
PrivateKey = privateKey;
ControlPassword = controlPassword;
}
public Uri TorControl { get; }
public string PrivateKey { get; }
public string ControlPassword { get; }
}
}

View File

@ -2,6 +2,7 @@ import { Fragment } from 'react';
import { FilePreview } from "./FilePreview";
import { Dropzone } from "./Dropzone";
import { GlobalStats } from "./GlobalStats";
import {FooterLinks} from "./FooterLinks";
import './App.css';
@ -9,11 +10,12 @@ function App() {
let hasPath = window.location.pathname !== "/";
return (
<div className="app">
{hasPath ? <FilePreview id={window.location.pathname.substr(1)} />
{hasPath ? <FilePreview id={window.location.pathname.substring(1)} />
: (
<Fragment>
<Dropzone />
<GlobalStats />
<FooterLinks />
</Fragment>
)}
</div>

View File

@ -0,0 +1,4 @@
.footer {
margin-top: 10px;
text-align: center;
}

View File

@ -0,0 +1,9 @@
import "./FooterLinks.css"
export function FooterLinks(props){
return (
<div className="footer">
<a href="https://discord.gg/8BkxTGs" target="_blank">Discord</a>
</div>
);
}