From f2e40819d3841eadf9027e826f0d53645519fbd9 Mon Sep 17 00:00:00 2001 From: nbitzz <77242831+nbitzz@users.noreply.github.com> Date: Mon, 30 Jan 2023 14:23:47 -0800 Subject: [PATCH] COCK AND BALL TORTURE --- pages/download.html | 94 ++++++---------------------------------- src/server/index.ts | 2 +- src/style/downloads.scss | 11 +++++ 3 files changed, 26 insertions(+), 81 deletions(-) create mode 100644 src/style/downloads.scss diff --git a/pages/download.html b/pages/download.html index 41fff40..b6f9314 100644 --- a/pages/download.html +++ b/pages/download.html @@ -10,92 +10,26 @@ - + -
+

$FileName

-

file id: $FileId

- -

- May take a while to download. Stay put. +

+ file id $FileId

-
+ + + +
diff --git a/src/server/index.ts b/src/server/index.ts index 6a4f961..07dffa7 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -106,7 +106,7 @@ app.get("/download/:fileId",(req,res) => { if (files.getFilePointer(req.params.fileId)) { let file = files.getFilePointer(req.params.fileId) - fs.readFile(__dirname+"/../pages/download.html",(err,buf) => { + fs.readFile(process.cwd()+"/pages/download.html",(err,buf) => { if (err) {res.sendStatus(500);console.log(err);return} res.send( buf.toString() diff --git a/src/style/downloads.scss b/src/style/downloads.scss new file mode 100644 index 0000000..c1c88b5 --- /dev/null +++ b/src/style/downloads.scss @@ -0,0 +1,11 @@ +// probably dont need to import the entire +// uploads css file +// so i might just make a separate file with mixins +// and import them + +@use "app/uploads"; +@use "base"; + +body { + background-color: base.$Background; +} \ No newline at end of file