From a38428ac7f55a97bc9989c153dca6c57c606a0c9 Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 1 Jan 2024 21:49:38 +0000 Subject: [PATCH] chore: cleanup --- .../.yarn/sdks/eslint/lib/unsupported-api.js | 20 ++++++++++ VoidCat/spa/.yarn/sdks/eslint/package.json | 10 ++++- .../sdks/prettier/{index.js => index.cjs} | 0 VoidCat/spa/.yarn/sdks/prettier/package.json | 5 ++- .../.yarn/sdks/typescript/lib/typescript.js | 6 +-- .../spa/.yarn/sdks/typescript/package.json | 8 +++- VoidCat/spa/src/api/package.json | 2 +- VoidCat/spa/src/app/build/icons.svg | 31 ++++++---------- VoidCat/spa/src/app/postcss.config.js | 2 +- VoidCat/spa/src/app/src/Admin/Admin.tsx | 20 ++++++---- .../app/src/Components/FileEdit/FileEdit.tsx | 4 +- .../src/Components/HomePage/GlobalStats.tsx | 3 +- .../app/src/Components/Profile/ApiKeyList.tsx | 2 +- .../src/app/src/Components/Shared/Header.css | 16 -------- .../src/app/src/Components/Shared/Header.tsx | 10 ++--- .../src/app/src/Components/Shared/Icon.tsx | 15 +++++--- .../app/src/Components/Shared/ImageGrid.css | 2 +- .../app/src/Components/Shared/ImageGrid.tsx | 10 +++-- VoidCat/spa/src/app/src/Pages/FilePreview.tsx | 4 +- VoidCat/spa/src/app/src/Pages/Profile.tsx | 4 +- VoidCat/spa/src/app/src/index.css | 37 ++++++------------- VoidCat/spa/src/app/tailwind.config.js | 8 +--- VoidCat/spa/src/app/vite.config.ts | 8 ++-- 23 files changed, 115 insertions(+), 112 deletions(-) create mode 100644 VoidCat/spa/.yarn/sdks/eslint/lib/unsupported-api.js rename VoidCat/spa/.yarn/sdks/prettier/{index.js => index.cjs} (100%) mode change 100755 => 100644 delete mode 100644 VoidCat/spa/src/app/src/Components/Shared/Header.css 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: