Profile: first prototype

This commit is contained in:
thislight 2024-10-18 19:15:35 +08:00
parent 54db6d4fbe
commit 664c1568d0
7 changed files with 474 additions and 80 deletions

View file

@ -24,9 +24,7 @@ import {
ResultDispatcher,
type JSONRPC,
} from "./serviceworker/workerrpc.js";
import {
Service
} from "./serviceworker/services.js"
import { Service } from "./serviceworker/services.js";
import { makeEventListener } from "@solid-primitives/event-listener";
import { ServiceWorkerProvider } from "./platform/host.js";
@ -41,6 +39,7 @@ const MotionSettings = lazy(() => import("./settings/Motions.js"));
const LanguageSettings = lazy(() => import("./settings/Language.js"));
const RegionSettings = lazy(() => import("./settings/Region.jsx"));
const UnexpectedError = lazy(() => import("./UnexpectedError.js"));
const Profile = lazy(() => import("./profiles/Profile.js"));
const Routing: Component = () => {
return (
@ -54,6 +53,7 @@ const Routing: Component = () => {
<Route path="/motions" component={MotionSettings}></Route>
</Route>
<Route path="/:acct/toot/:id" component={TootBottomSheet}></Route>
<Route path="/:acct/profile/:id" component={Profile}></Route>
</Route>
<Route path={"/accounts"}>
<Route path={"/sign-in"} component={AccountSignIn} />