forked from Kieran/void.cat
Add footer links + other stuff
This commit is contained in:
parent
c0367ff2e9
commit
7a366bba38
9
VoidCat/Controllers/Admin/AdminController.cs
Normal file
9
VoidCat/Controllers/Admin/AdminController.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace VoidCat.Controllers.Admin;
|
||||
|
||||
[Route("admin")]
|
||||
public class AdminController : Controller
|
||||
{
|
||||
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
4
VoidCat/spa/src/FooterLinks.css
Normal file
4
VoidCat/spa/src/FooterLinks.css
Normal file
@ -0,0 +1,4 @@
|
||||
.footer {
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
9
VoidCat/spa/src/FooterLinks.js
Normal file
9
VoidCat/spa/src/FooterLinks.js
Normal 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>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user