Chore: remove all uneeded files
This commit is contained in:
parent
fd8aaf543e
commit
deda273eda
8 changed files with 1 additions and 12497 deletions
BIN
asgard.png
BIN
asgard.png
Binary file not shown.
|
Before Width: | Height: | Size: 206 KiB |
12475
package-lock.json
generated
12475
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1 +1,2 @@
|
||||||
|
<!-- Legit just so we can use $destroy() -->
|
||||||
<slot />
|
<slot />
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import fs from "fs";
|
|
||||||
// This is a test file to upload files to the Nebula server
|
|
||||||
import { File, FormData } from "formdata-node";
|
|
||||||
import { fileFromPath } from "formdata-node/file-from-path";
|
|
||||||
|
|
||||||
const config = JSON.parse(fs.readFileSync("config.json", "utf8"));
|
|
||||||
const form = new FormData();
|
|
||||||
// const file = new File(["My hovercraft is full of eels"], "example.txt");
|
|
||||||
|
|
||||||
form.set("file", await fileFromPath("asgard.png"));
|
|
||||||
|
|
||||||
console.log(config.marketplace_psk);
|
|
||||||
console.log(form);
|
|
||||||
await fetch("http://localhost:8080/api/upload-image", {
|
|
||||||
headers: {
|
|
||||||
PSK: config.marketplace_psk
|
|
||||||
},
|
|
||||||
method: "post",
|
|
||||||
body: form
|
|
||||||
});
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
My hovercraft is full of eels
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
My hovercraft is full of eels
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 206 KiB |
BIN
upload/shit.png
BIN
upload/shit.png
Binary file not shown.
|
Before Width: | Height: | Size: 206 KiB |
Loading…
Add table
Reference in a new issue