feat: start of dm overview page

This commit is contained in:
Samuel 2024-12-12 18:44:44 +01:00
parent 67da0a72db
commit 5d2ce7705c
14 changed files with 442 additions and 34 deletions

View file

@ -1,7 +1,8 @@
import { type Component } from "solid-js";
import { Route } from "@solidjs/router";
import { Home, Overview } from "./pages";
import { allThreadsOverviewQuery } from "./db";
import { DmId, GroupId, Home, Overview } from "./pages";
import "./app.css";
@ -16,7 +17,31 @@ const App: Component = () => {
path="/overview"
component={Overview}
/>
<Route path="/thread/:threadid" />
<Route
path="/dm/:dmid"
component={DmId}
/>
<Route
path="/group/:groupid"
component={GroupId}
/>
<Route
path="/test"
component={() => {
console.time("first");
console.log(allThreadsOverviewQuery());
void allThreadsOverviewQuery().then((result) => {
console.log(result);
console.timeEnd("first");
console.time("second");
void allThreadsOverviewQuery().then((result) => {
console.log(result);
console.timeEnd("second");
});
});
return "";
}}
/>
</>
);
};