made a start on data grid implementation

This commit is contained in:
Chris Kruining 2024-10-03 15:33:25 +02:00
parent a543259fe4
commit 70c15c4094
12 changed files with 1083 additions and 210 deletions

View file

@ -3,24 +3,26 @@ import { Show } from "solid-js";
import { BsTranslate } from "solid-icons/bs";
import { FilesProvider } from "~/features/file";
import { MenuProvider, asMenuRoot } from "~/features/menu";
import { isServer } from "solid-js/web";
import { A } from "@solidjs/router";
asMenuRoot // prevents removal of import
export default function Editor(props) {
const supported = typeof window.showDirectoryPicker === 'function';
const supported = isServer || typeof window.showDirectoryPicker === 'function';
return <MenuProvider>
<Title>Translation-Tool</Title>
<nav use:asMenuRoot>
<BsTranslate class="logo" />
<A class="logo" href="/"><BsTranslate /></A>
</nav>
<main>
<Show when={supported} fallback={<span>too bad, so sad. Your browser does not support the File Access API</span>}>
<FilesProvider>
{props.children}
</FilesProvider>
<main style="padding: 1em; block-size: 100%; overflow: clip;">
<Show when={supported} fallback={<span>too bad, so sad. Your browser does not support the File Access API</span>}>
<FilesProvider>
{props.children}
</FilesProvider>
</Show>
</main>
</MenuProvider>