From 3f18f02d07802d1fc705a500e5978a9b3cb2e751 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 14 Nov 2025 21:55:59 +0100 Subject: implement login --- static/api/images.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 static/api/images.js (limited to 'static/api/images.js') diff --git a/static/api/images.js b/static/api/images.js new file mode 100644 index 0000000..915aae6 --- /dev/null +++ b/static/api/images.js @@ -0,0 +1,20 @@ +import * as sfw from 'sfw'; +const { Input } = sfw.element.native; + +export async function upload_to_timeline() { + const input = Input.new({ + type: 'file', + multiple: true, + accept: 'image/jpeg', + }) + input.click(); +} + +export async function upload_to_profile() { + const input = Input.new({ + type: 'file', + multiple: false, + accept: 'image/jpeg', + }) + input.click(); +} -- cgit v1.2.3-70-g09d2