diff --git a/VoidCat/spa/.yarn/sdks/eslint/lib/unsupported-api.js b/VoidCat/spa/.yarn/sdks/eslint/lib/unsupported-api.js
new file mode 100644
index 0000000..4146255
--- /dev/null
+++ b/VoidCat/spa/.yarn/sdks/eslint/lib/unsupported-api.js
@@ -0,0 +1,20 @@
+#!/usr/bin/env node
+
+const { existsSync } = require(`fs`);
+const { createRequire } = require(`module`);
+const { resolve } = require(`path`);
+
+const relPnpApiPath = "../../../../.pnp.cjs";
+
+const absPnpApiPath = resolve(__dirname, relPnpApiPath);
+const absRequire = createRequire(absPnpApiPath);
+
+if (existsSync(absPnpApiPath)) {
+ if (!process.versions.pnp) {
+ // Setup the environment to be able to require eslint/use-at-your-own-risk
+ require(absPnpApiPath).setup();
+ }
+}
+
+// Defer to the real eslint/use-at-your-own-risk your application uses
+module.exports = absRequire(`eslint/use-at-your-own-risk`);
diff --git a/VoidCat/spa/.yarn/sdks/eslint/package.json b/VoidCat/spa/.yarn/sdks/eslint/package.json
index 0f987e3..7468a95 100644
--- a/VoidCat/spa/.yarn/sdks/eslint/package.json
+++ b/VoidCat/spa/.yarn/sdks/eslint/package.json
@@ -2,5 +2,13 @@
"name": "eslint",
"version": "8.51.0-sdk",
"main": "./lib/api.js",
- "type": "commonjs"
+ "type": "commonjs",
+ "bin": {
+ "eslint": "./bin/eslint.js"
+ },
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./lib/api.js",
+ "./use-at-your-own-risk": "./lib/unsupported-api.js"
+ }
}
diff --git a/VoidCat/spa/.yarn/sdks/prettier/index.js b/VoidCat/spa/.yarn/sdks/prettier/index.cjs
old mode 100755
new mode 100644
similarity index 100%
rename from VoidCat/spa/.yarn/sdks/prettier/index.js
rename to VoidCat/spa/.yarn/sdks/prettier/index.cjs
diff --git a/VoidCat/spa/.yarn/sdks/prettier/package.json b/VoidCat/spa/.yarn/sdks/prettier/package.json
index c102fa2..48cd959 100644
--- a/VoidCat/spa/.yarn/sdks/prettier/package.json
+++ b/VoidCat/spa/.yarn/sdks/prettier/package.json
@@ -1,6 +1,7 @@
{
"name": "prettier",
"version": "3.0.3-sdk",
- "main": "./index.js",
- "type": "commonjs"
+ "main": "./index.cjs",
+ "type": "commonjs",
+ "bin": "./bin/prettier.cjs"
}
diff --git a/VoidCat/spa/.yarn/sdks/typescript/lib/typescript.js b/VoidCat/spa/.yarn/sdks/typescript/lib/typescript.js
index 4ffbed0..5a6bef9 100644
--- a/VoidCat/spa/.yarn/sdks/typescript/lib/typescript.js
+++ b/VoidCat/spa/.yarn/sdks/typescript/lib/typescript.js
@@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
- // Setup the environment to be able to require typescript/lib/typescript.js
+ // Setup the environment to be able to require typescript
require(absPnpApiPath).setup();
}
}
-// Defer to the real typescript/lib/typescript.js your application uses
-module.exports = absRequire(`typescript/lib/typescript.js`);
+// Defer to the real typescript your application uses
+module.exports = absRequire(`typescript`);
diff --git a/VoidCat/spa/.yarn/sdks/typescript/package.json b/VoidCat/spa/.yarn/sdks/typescript/package.json
index 0bfa4eb..eb7dd74 100644
--- a/VoidCat/spa/.yarn/sdks/typescript/package.json
+++ b/VoidCat/spa/.yarn/sdks/typescript/package.json
@@ -1,6 +1,10 @@
{
"name": "typescript",
- "version": "5.2.2-sdk",
+ "version": "5.3.3-sdk",
"main": "./lib/typescript.js",
- "type": "commonjs"
+ "type": "commonjs",
+ "bin": {
+ "tsc": "./bin/tsc",
+ "tsserver": "./bin/tsserver"
+ }
}
diff --git a/VoidCat/spa/src/api/package.json b/VoidCat/spa/src/api/package.json
index 425676b..284357b 100644
--- a/VoidCat/spa/src/api/package.json
+++ b/VoidCat/spa/src/api/package.json
@@ -9,7 +9,7 @@
"author": "Kieran",
"license": "MIT",
"scripts": {
- "build": "rm -rf dist && tsc"
+ "build": "tsc"
},
"devDependencies": {
"@types/sjcl": "^1.0.30",
diff --git a/VoidCat/spa/src/app/build/icons.svg b/VoidCat/spa/src/app/build/icons.svg
index 302f8b6..965e2ce 100644
--- a/VoidCat/spa/src/app/build/icons.svg
+++ b/VoidCat/spa/src/app/build/icons.svg
@@ -1,41 +1,34 @@
\ No newline at end of file
diff --git a/VoidCat/spa/src/app/postcss.config.js b/VoidCat/spa/src/app/postcss.config.js
index 33ad091..12a703d 100644
--- a/VoidCat/spa/src/app/postcss.config.js
+++ b/VoidCat/spa/src/app/postcss.config.js
@@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
-}
+};
diff --git a/VoidCat/spa/src/app/src/Admin/Admin.tsx b/VoidCat/spa/src/app/src/Admin/Admin.tsx
index 4fc637a..91843ac 100644
--- a/VoidCat/spa/src/app/src/Admin/Admin.tsx
+++ b/VoidCat/spa/src/app/src/Admin/Admin.tsx
@@ -48,13 +48,19 @@ export function Admin() {
Files
AdminApi.adminListFiles(r)}
- actions={(f) => <>
- {
- e.preventDefault();
- e.stopPropagation();
- deleteFile(f.id)
- }} />
- >} />
+ actions={(f) => (
+ <>
+ {
+ e.preventDefault();
+ e.stopPropagation();
+ deleteFile(f.id);
+ }}
+ />
+ >
+ )}
+ />
{editUser && (
diff --git a/VoidCat/spa/src/app/src/Components/FileEdit/FileEdit.tsx b/VoidCat/spa/src/app/src/Components/FileEdit/FileEdit.tsx
index 682bc2e..9b87549 100644
--- a/VoidCat/spa/src/app/src/Components/FileEdit/FileEdit.tsx
+++ b/VoidCat/spa/src/app/src/Components/FileEdit/FileEdit.tsx
@@ -89,7 +89,7 @@ export function FileEdit({ file }: FileEditProps) {
return (
-
+
File info
- Filename:
@@ -131,7 +131,7 @@ export function FileEdit({ file }: FileEditProps) {
Save
-
+
Payment Config
Type:
{stats?.buildInfo && (
diff --git a/VoidCat/spa/src/app/src/Components/Profile/ApiKeyList.tsx b/VoidCat/spa/src/app/src/Components/Profile/ApiKeyList.tsx
index b5b53c3..376ef90 100644
--- a/VoidCat/spa/src/app/src/Components/Profile/ApiKeyList.tsx
+++ b/VoidCat/spa/src/app/src/Components/Profile/ApiKeyList.tsx
@@ -44,7 +44,7 @@ export default function ApiKeyList() {
return (
<>
-
+
API Keys
diff --git a/VoidCat/spa/src/app/src/Components/Shared/Header.css b/VoidCat/spa/src/app/src/Components/Shared/Header.css
deleted file mode 100644
index 55891e3..0000000
--- a/VoidCat/spa/src/app/src/Components/Shared/Header.css
+++ /dev/null
@@ -1,16 +0,0 @@
-.header {
- user-select: none;
- display: flex;
- padding: 5px 0;
- align-items: center;
-}
-
-.header .title {
- font-size: 30px;
- line-height: 2;
- flex-grow: 1;
-}
-
-.header img.logo {
- height: 80px;
-}
diff --git a/VoidCat/spa/src/app/src/Components/Shared/Header.tsx b/VoidCat/spa/src/app/src/Components/Shared/Header.tsx
index 338104f..29801f8 100644
--- a/VoidCat/spa/src/app/src/Components/Shared/Header.tsx
+++ b/VoidCat/spa/src/app/src/Components/Shared/Header.tsx
@@ -48,11 +48,11 @@ export function Header() {
}, [jwt]);
return (
-
-

-
- {window.location.hostname}
-
+
+
+

+
{window.location.hostname}
+
{profile ? (
{
const size = props.size || 20;
@@ -21,9 +21,14 @@ const Icon = (props: IconProps) => {
);
};
-export function IconButton({onClick, ...props}: IconProps) {
- return
+export function IconButton({ onClick, ...props }: IconProps) {
+ return (
+
+ );
}
export default Icon;
diff --git a/VoidCat/spa/src/app/src/Components/Shared/ImageGrid.css b/VoidCat/spa/src/app/src/Components/Shared/ImageGrid.css
index 67969f4..5006ef3 100644
--- a/VoidCat/spa/src/app/src/Components/Shared/ImageGrid.css
+++ b/VoidCat/spa/src/app/src/Components/Shared/ImageGrid.css
@@ -18,4 +18,4 @@
.image-grid video,
.image-grid audio {
height: inherit;
-}
\ No newline at end of file
+}
diff --git a/VoidCat/spa/src/app/src/Components/Shared/ImageGrid.tsx b/VoidCat/spa/src/app/src/Components/Shared/ImageGrid.tsx
index 4cd9adc..d7db165 100644
--- a/VoidCat/spa/src/app/src/Components/Shared/ImageGrid.tsx
+++ b/VoidCat/spa/src/app/src/Components/Shared/ImageGrid.tsx
@@ -17,7 +17,7 @@ import { PageSelector } from "./PageSelector";
interface ImageGridProps {
loadPage: (req: PagedRequest) => Promise>;
- actions?: (f: VoidFileResponse) => ReactNode
+ actions?: (f: VoidFileResponse) => ReactNode;
}
export default function ImageGrid(props: ImageGridProps) {
@@ -107,9 +107,11 @@ export default function ImageGrid(props: ImageGridProps) {
{files?.results.map((v) => (
{renderPreview(v)}
- {props.actions &&
- {props.actions(v)}
-
}
+ {props.actions && (
+
+ {props.actions(v)}
+
+ )}
))}
diff --git a/VoidCat/spa/src/app/src/Pages/FilePreview.tsx b/VoidCat/spa/src/app/src/Pages/FilePreview.tsx
index ba65047..cdd4158 100644
--- a/VoidCat/spa/src/app/src/Pages/FilePreview.tsx
+++ b/VoidCat/spa/src/app/src/Pages/FilePreview.tsx
@@ -276,8 +276,8 @@ export function FilePreview() {
{renderOpenGraphTags()}
{renderVirusWarning()}
-
-
+
+
{info.uploader ? : null}
diff --git a/VoidCat/spa/src/app/src/Pages/Profile.tsx b/VoidCat/spa/src/app/src/Pages/Profile.tsx
index b8650ee..af06c93 100644
--- a/VoidCat/spa/src/app/src/Pages/Profile.tsx
+++ b/VoidCat/spa/src/app/src/Pages/Profile.tsx
@@ -198,7 +198,7 @@ export function ProfilePage() {
)}
-
+
{cantEditProfile ? (
changeAvatar()}>
@@ -207,7 +207,7 @@ export function ProfilePage() {
) : null}
-
+
- Created
- {moment(profile.created).fromNow()}
diff --git a/VoidCat/spa/src/app/src/index.css b/VoidCat/spa/src/app/src/index.css
index cdb36fc..5887fa7 100644
--- a/VoidCat/spa/src/app/src/index.css
+++ b/VoidCat/spa/src/app/src/index.css
@@ -6,12 +6,20 @@
body {
margin: 0;
font-family: "Source Code Pro", monospace;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
background-color: black;
color: white;
}
+h1 {
+ font-size: 2rem;
+}
+h2 {
+ font-size: 1.75rem;
+}
+h3 {
+ font-size: 1.5rem;
+}
+
a {
color: white;
text-decoration: none;
@@ -39,30 +47,6 @@ a:hover {
background-color: #666;
}
-.flex {
- display: flex;
-}
-
-.flex-inline {
- display: inline-flex;
-}
-
-.flx-1 {
- flex: 1;
-}
-
-.flx-2 {
- flex: 2;
-}
-
-.flx-grow {
- flex-grow: 1;
-}
-
-.flex-center {
- align-items: center;
-}
-
input[type="text"],
input[type="number"],
input[type="password"],
@@ -75,6 +59,7 @@ select {
padding: 10px 20px;
margin: 5px;
border: 0;
+ color: black;
}
input[type="checkbox"] {
diff --git a/VoidCat/spa/src/app/tailwind.config.js b/VoidCat/spa/src/app/tailwind.config.js
index ce6bad4..ffb9a83 100644
--- a/VoidCat/spa/src/app/tailwind.config.js
+++ b/VoidCat/spa/src/app/tailwind.config.js
@@ -1,12 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: [
- "./index.html",
- "./src/**/*.{ts,tsx}",
- ],
+ content: ["./index.html", "./src/**/*.{ts,tsx}"],
theme: {
extend: {},
},
plugins: [],
-}
-
+};
diff --git a/VoidCat/spa/src/app/vite.config.ts b/VoidCat/spa/src/app/vite.config.ts
index 818ebfa..55d929f 100644
--- a/VoidCat/spa/src/app/vite.config.ts
+++ b/VoidCat/spa/src/app/vite.config.ts
@@ -30,9 +30,9 @@ export default defineConfig({
},
},
define: {},
- server:{
+ server: {
proxy: {
- "/d": "http://localhost:7195/"
- }
- }
+ "/d": "http://localhost:7195/",
+ },
+ },
});