mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-09-28 17:56:33 +02:00
Add footer links + other stuff
This commit is contained in:
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 class VoidSettings
|
||||||
{
|
{
|
||||||
public string DataDirectory { get; init; } = "./data";
|
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 { FilePreview } from "./FilePreview";
|
||||||
import { Dropzone } from "./Dropzone";
|
import { Dropzone } from "./Dropzone";
|
||||||
import { GlobalStats } from "./GlobalStats";
|
import { GlobalStats } from "./GlobalStats";
|
||||||
|
import {FooterLinks} from "./FooterLinks";
|
||||||
|
|
||||||
import './App.css';
|
import './App.css';
|
||||||
|
|
||||||
@@ -9,11 +10,12 @@ function App() {
|
|||||||
let hasPath = window.location.pathname !== "/";
|
let hasPath = window.location.pathname !== "/";
|
||||||
return (
|
return (
|
||||||
<div className="app">
|
<div className="app">
|
||||||
{hasPath ? <FilePreview id={window.location.pathname.substr(1)} />
|
{hasPath ? <FilePreview id={window.location.pathname.substring(1)} />
|
||||||
: (
|
: (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Dropzone />
|
<Dropzone />
|
||||||
<GlobalStats />
|
<GlobalStats />
|
||||||
|
<FooterLinks />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)}
|
)}
|
||||||
</div>
|
</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>
|
||||||
|
);
|
||||||
|
}
|
Reference in New Issue
Block a user