aboutsummaryrefslogtreecommitdiff
path: root/static/api
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-11-13 14:56:02 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-11-13 14:56:02 +0100
commitc7b02f02ad0a7e2888f2d7d3599719e59bbd1ee2 (patch)
tree9f782daf2e2ff78559958f15e0b9ffe5ece78334 /static/api
parent7ee9d320e6ba9a84542d838892c43cf98b268552 (diff)
frontend: design prototype
Diffstat (limited to 'static/api')
-rw-r--r--static/api/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/static/api/index.js b/static/api/index.js
new file mode 100644
index 0000000..50b9b26
--- /dev/null
+++ b/static/api/index.js
@@ -0,0 +1,11 @@
+import * as sfw from 'sfw';
+const { Input } = sfw.element.native;
+
+export async function upload_images() {
+ const input = Input.new({
+ type: 'file',
+ multiple: true,
+ accept: 'image/jpeg',
+ })
+ input.click();
+}