feat: start of dm overview page
This commit is contained in:
parent
0e6f5a24bd
commit
8451a484ff
14 changed files with 442 additions and 34 deletions
29
src/App.tsx
29
src/App.tsx
|
@ -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 "";
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue