From ea300b47bf1051edec6cd6b374864f88c0016f2e Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 26 Sep 2025 20:00:26 -0400 Subject: [PATCH] Add Cloudflare R2 upload workflow --- components/upload-modal.html | 260 +++++++++++- js/app.js | 793 ++++++++++++++++++++++++++++++++--- js/r2.js | 416 ++++++++++++++++++ 3 files changed, 1414 insertions(+), 55 deletions(-) create mode 100644 js/r2.js diff --git a/components/upload-modal.html b/components/upload-modal.html index 77414892..caa12232 100644 --- a/components/upload-modal.html +++ b/components/upload-modal.html @@ -195,10 +195,262 @@
+ Paste your Cloudflare R2 API credentials. We keep them in your + browser so uploads happen client-side. +
+ ++ Choose a file, we will upload it to R2, fill the hosted URL, + and publish your note automatically. +
+