diff --git a/bun.lockb b/bun.lockb index 1afd8f6..db143bc 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/controllers/AccountController.ts b/controllers/AccountController.ts index 08f24d4..8334737 100644 --- a/controllers/AccountController.ts +++ b/controllers/AccountController.ts @@ -111,8 +111,6 @@ export default class AccountController extends Controller { domains: await UserService.GetDomains(this.session.userId) }; - console.log(domainsViewModel); - return this.view(domainsViewModel); } diff --git a/controllers/UploadController.ts b/controllers/UploadController.ts index 3413fe2..b9c5436 100644 --- a/controllers/UploadController.ts +++ b/controllers/UploadController.ts @@ -7,7 +7,6 @@ export default class UploadController extends Controller { if (data && data.type === "file") { let uploadKey: string = ""; let host: string = ""; - //console.log(this.req.headers); if ("upload-key" in this.req.headers) { // @ts-ignore uploadKey = this.req.headers["upload-key"]; diff --git a/index.ts b/index.ts index b035276..bd37930 100644 --- a/index.ts +++ b/index.ts @@ -156,5 +156,6 @@ fastify.listen({ port: Config.hosts.webPort, host: Config.hosts.webHost }, (err, process.exit(1); } + Console.printWarn(`[ ${green("MAIN")} ] The EUS rewrite is currently beta software, use at your own risk!`); Console.printInfo(`[ ${green("MAIN")} ] Listening at ${address.replace("0.0.0.0", "localhost").replace("127.0.0.1", "localhost")}`); }); \ No newline at end of file diff --git a/package.json b/package.json index 71ee5b2..633b438 100644 --- a/package.json +++ b/package.json @@ -17,26 +17,26 @@ "build": "ncc build index.ts -o build" }, "devDependencies": { - "@types/bun": "^1.2.0", + "@types/bun": "^1.2.6", "@types/ejs": "^3.1.5", "@vercel/ncc": "^0.38.3", - "check-outdated": "^2.12.0", + "check-outdated": "^2.13.0", "nodemon": "^3.1.9", "ts-node": "^10.9.2", - "typescript": "^5.7.3" + "typescript": "^5.8.2" }, "dependencies": { "@fastify/cookie": "^11.0.2", "@fastify/formbody": "^8.0.2", "@fastify/multipart": "^9.0.3", - "@fastify/static": "^8.0.4", - "@fastify/view": "^10.0.2", + "@fastify/static": "^8.1.1", + "@fastify/view": "^11.0.0", "dyetty": "^1.0.1", "ejs": "^3.1.10", - "fastify": "^5.2.1", + "fastify": "^5.2.2", "funky-array": "^1.0.0", "hsconsole": "^1.1.0", - "mysql2": "^3.12.0", + "mysql2": "^3.14.0", "watcher": "^2.3.1" } } diff --git a/views/account/api.ejs b/views/account/api.ejs index bc94934..7cae18d 100644 --- a/views/account/api.ejs +++ b/views/account/api.ejs @@ -21,7 +21,7 @@
-
+

API Key

@@ -38,7 +38,7 @@
Only do this if you really need to, existing applications using this API Key will cease to function until it is replaced.

-
+

Upload Key

This is the key you need to upload files to EUS when using the /upload POST endpoint.
diff --git a/views/account/dashboard.ejs b/views/account/dashboard.ejs index 11d55ac..ee10e5c 100644 --- a/views/account/dashboard.ejs +++ b/views/account/dashboard.ejs @@ -13,7 +13,7 @@

-
+
@@ -48,10 +48,10 @@ diff --git a/views/account/domain.ejs b/views/account/domain.ejs new file mode 100644 index 0000000..9f25a6d --- /dev/null +++ b/views/account/domain.ejs @@ -0,0 +1,64 @@ +<%- include("../base/header", { title: "Add Domain", session }) %> + +
+
+ +
+
+ +
+
+
+
+
+
Your Domains
+
+
+
+
+
+ + + + + + + + + <% for (const domain of domains) { %> + + + + + + + <% } %> + +
Domain NameHas HTTPSActive 
<%= domain.Domain %><%= domain.HasHttpsString %><%= domain.ActiveString %> + Edit + Delete +
+
+ +
+
+
+
+
+
+
+ + + +<%- include("../base/footer") %> diff --git a/views/account/domains.ejs b/views/account/domains.ejs index 9823b6f..581660c 100644 --- a/views/account/domains.ejs +++ b/views/account/domains.ejs @@ -23,7 +23,7 @@
- +
@@ -36,7 +36,7 @@ - @@ -44,6 +44,11 @@ <% } %>
Domain Name Has HTTPS<%= domain.Domain %> <%= domain.HasHttpsString %> <%= domain.ActiveString %> + Edit Delete
+
+ +