From ee5e054d94f317e53fdefb34319cb7cd27a31c18 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 9 Feb 2023 18:39:31 -0500 Subject: [PATCH] [+] Display files --- src/App.tsx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/App.tsx diff --git a/src/App.tsx b/src/App.tsx new file mode 100644 index 0000000..65e6990 --- /dev/null +++ b/src/App.tsx @@ -0,0 +1,30 @@ +import { Component, createResource, createSignal, For, lazy, Show } from 'solid-js'; + +const host = "https://daisy-ddns.hydev.org/data/api/OS" + +const fetchApi = async () => await (await fetch(host)).json() +export default function App() { + const [api] = createResource(fetchApi) + + return ( +
+
+

File Listing

+ {api.loading && "Loading..."} +
+ {(f, i) => + + {f.name} + + {f.size} + + + {f.mtime} + + + } +
+
+
+ ); +}