From eb9147c7ac1f54fd14e0b71e0bfff78f882d922d Mon Sep 17 00:00:00 2001 From: Kun Chen <3233006+atinylittleshell@users.noreply.github.com> Date: Sat, 11 Oct 2025 22:40:27 -0700 Subject: [PATCH 1/3] Refine export naming without tagging --- .../src/components/ImageSelectorContext.tsx | 2 ++ apps/web/src/routes/index.tsx | 24 ++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/ImageSelectorContext.tsx b/apps/web/src/components/ImageSelectorContext.tsx index 6824a8f..61589e8 100644 --- a/apps/web/src/components/ImageSelectorContext.tsx +++ b/apps/web/src/components/ImageSelectorContext.tsx @@ -18,6 +18,7 @@ type ImageSelectorContextData = { outputFormat: OutputFormat; outputSizingMode: OutputSizingMode; processing: boolean; + downloadNameTemplate: string; }; export const ImageSelectorContext = createContextId('image-selector-context'); @@ -29,6 +30,7 @@ export const ImageSelectorContextProvider = component$(() => { outputFormat: 'png', outputSizingMode: 'fixed_size', processing: false, + downloadNameTemplate: 'Presize.io_{timestamp}', }); useContextProvider(ImageSelectorContext, context); diff --git a/apps/web/src/routes/index.tsx b/apps/web/src/routes/index.tsx index d9384de..15583f4 100644 --- a/apps/web/src/routes/index.tsx +++ b/apps/web/src/routes/index.tsx @@ -93,6 +93,22 @@ export default component$(() => { +
+
+ + { + imageSelectorContext.downloadNameTemplate = e.target.value; + }} + /> +
+
From f55b7c2f44998baf72b687f4c4c8ed04b63d693a Mon Sep 17 00:00:00 2001 From: Kun Chen <3233006+atinylittleshell@users.noreply.github.com> Date: Sat, 11 Oct 2025 22:47:33 -0700 Subject: [PATCH 3/3] Use onChange handler for download name input --- apps/web/src/routes/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/routes/index.tsx b/apps/web/src/routes/index.tsx index 0693de8..b8ca291 100644 --- a/apps/web/src/routes/index.tsx +++ b/apps/web/src/routes/index.tsx @@ -123,7 +123,7 @@ export default component$(() => { class="input input-bordered w-full" value={imageSelectorContext.downloadNameTemplate} placeholder="Presize.io_{timestamp}" - onInput$={(e) => { + onChange$={(e) => { const target = e.target as HTMLInputElement | null; if (!target) { return;