From 9acdd8ad13364099501ee599a00495d8bc1954e7 Mon Sep 17 00:00:00 2001 From: Holly Date: Mon, 27 Jan 2025 00:10:56 +0000 Subject: [PATCH] WIP: all uploads --- controllers/HomeController.ts | 4 ++++ models/home/ImageListViewModel.ts | 3 +++ views/home/imagelist.ejs | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 models/home/ImageListViewModel.ts create mode 100644 views/home/imagelist.ejs diff --git a/controllers/HomeController.ts b/controllers/HomeController.ts index 64ea474..a8e5e29 100644 --- a/controllers/HomeController.ts +++ b/controllers/HomeController.ts @@ -18,6 +18,10 @@ export default class HomeController extends Controller { return this.view(); } + public async ImageList_Get() { + return this.view(); + } + public async Upload_Post_AllowAnonymous() { const data = await this.req.file(); if (data && data.type === "file") { diff --git a/models/home/ImageListViewModel.ts b/models/home/ImageListViewModel.ts new file mode 100644 index 0000000..7a5dd56 --- /dev/null +++ b/models/home/ImageListViewModel.ts @@ -0,0 +1,3 @@ +export default interface ImageListViewModel { + +} \ No newline at end of file diff --git a/views/home/imagelist.ejs b/views/home/imagelist.ejs new file mode 100644 index 0000000..6247134 --- /dev/null +++ b/views/home/imagelist.ejs @@ -0,0 +1,22 @@ +<%- include("../base/header", { title: "Home", session }) %> + +
+ +
+
+
+
+
Recent Uploads
+ +
+
+
+
+ +
+
+
+
+
+ +<%- include("../base/footer") %> \ No newline at end of file