From 0a72d6e2ddf0c539f138955a8ef1f6ceaeb4a17c Mon Sep 17 00:00:00 2001
From: Justin Hawkins
Date: Mon, 8 Nov 2021 09:11:46 +1030
Subject: [PATCH] Start of online image editing support.
---
web/data/config.html | 6 +++++
web/data/dau.css | 4 ++++
web/data/editor.html | 52 +++++++++++++++++++++++++++++++++++++++++++
web/data/uploads.html | 12 +++++++---
web/data/wrapper.tmpl | 2 ++
web/server.go | 27 ++++++++++++++++++++++
6 files changed, 100 insertions(+), 3 deletions(-)
create mode 100644 web/data/editor.html
diff --git a/web/data/config.html b/web/data/config.html
index 1137433..64590eb 100644
--- a/web/data/config.html
+++ b/web/data/config.html
@@ -58,6 +58,12 @@
change only, and does not hide the uploaders actual identity.
+
A watcher can be configured to hold uploads. This causes the new images seen
+ by the watcher to be held for review on the uploads page.
+ This allows each image to be individually uploaded or skipped.
+
+
+
Exclusions can be specified, zero or more arbitrary strings. If any
file matches one of those strings then it will not be uploaded. This is most
often used if you use software (like Steam) which automatically creates thumbnails
diff --git a/web/data/dau.css b/web/data/dau.css
index 7c582c7..1cfe23a 100644
--- a/web/data/dau.css
+++ b/web/data/dau.css
@@ -42,6 +42,10 @@ body {
max-width: 52em;
}
+.DAU-container-editor {
+
+}
+
pre {
background-color: black;
color: aliceblue;
diff --git a/web/data/editor.html b/web/data/editor.html
new file mode 100644
index 0000000..2c0c4ed
--- /dev/null
+++ b/web/data/editor.html
@@ -0,0 +1,52 @@
+{{ define "content" }}
+
+
+
+
+
+
+
+
+
+
+{{ end }}
+
+{{ define "js" }}
+
+
+
+
+{{ end }}
\ No newline at end of file
diff --git a/web/data/uploads.html b/web/data/uploads.html
index 2458fac..3812adc 100644
--- a/web/data/uploads.html
+++ b/web/data/uploads.html
@@ -22,7 +22,9 @@
-