diff --git a/package.json b/package.json index 302a665..1e8d764 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ "@mary/exif-rm": "jsr:^0.2.2", "@mary/zip": "jsr:^0.1.1", "@skyware/firehose": "^0.5.2", - "@solidjs/meta": "^0.29.4", "@solidjs/router": "^0.15.4", "@takumi-rs/image-response": "^0.72.0", "@takumi-rs/wasm": "^0.72.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a483f13..6294439 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -89,9 +89,6 @@ importers: '@skyware/firehose': specifier: ^0.5.2 version: 0.5.2 - '@solidjs/meta': - specifier: ^0.29.4 - version: 0.29.4(solid-js@1.9.11) '@solidjs/router': specifier: ^0.15.4 version: 0.15.4(solid-js@1.9.11) @@ -861,11 +858,6 @@ packages: '@skyware/firehose@0.5.2': resolution: {integrity: sha512-Ayg/cF0BkakBNQVA51ClDka0+nC96WiARNrGElMQxfqbwao0PBaCXkunfr8qS4DWS3TqLnR6hA9mvm1vAYlxJQ==} - '@solidjs/meta@0.29.4': - resolution: {integrity: sha512-zdIWBGpR9zGx1p1bzIPqF5Gs+Ks/BH8R6fWhmUa/dcK1L2rUC8BAcZJzNRYBQv74kScf1TSOs0EY//Vd/I0V8g==} - peerDependencies: - solid-js: '>=1.8.4' - '@solidjs/router@0.15.4': resolution: {integrity: sha512-WOpgg9a9T638cR+5FGbFi/IV4l2FpmBs1GpIMSPa0Ce9vyJN7Wts+X2PqMf9IYn0zUj2MlSJtm1gp7/HI/n5TQ==} peerDependencies: @@ -2329,10 +2321,6 @@ snapshots: '@atcute/cbor': 2.3.2 nanoevents: 9.1.0 - '@solidjs/meta@0.29.4(solid-js@1.9.11)': - dependencies: - solid-js: 1.9.11 - '@solidjs/router@0.15.4(solid-js@1.9.11)': dependencies: solid-js: 1.9.11 diff --git a/src/layout.tsx b/src/layout.tsx index 5f23ec3..b1eb859 100644 --- a/src/layout.tsx +++ b/src/layout.tsx @@ -1,5 +1,4 @@ import { Handle } from "@atcute/lexicons"; -import { Meta, MetaProvider, Title } from "@solidjs/meta"; import { A, RouteSectionProps, useLocation, useNavigate } from "@solidjs/router"; import { createEffect, ErrorBoundary, onCleanup, onMount, Show, Suspense } from "solid-js"; import { AccountManager } from "./auth/account.jsx"; @@ -117,88 +116,82 @@ const Layout = (props: RouteSectionProps) => { }); return ( - - PDSls - - - -
-
+
+ - - - PDSls - - - - -
-
- -
- - - - - - - - - - - - - - - - -
-
-
- - - + + PDSls + + - -
Error: {err.message}
} - > - - } - > - {props.children} - -
+ +
+
+ +
+ + + + + + + + + + + + + + +
- - - -
- - PLC directory: {plcDirectory()} - -
+
+
+ + + + + +
Error: {err.message}
} + > + + } + > + {props.children} + +
- + + + +
+ + PLC directory: {plcDirectory()} + +
+
+
); }; diff --git a/src/views/car/explore.tsx b/src/views/car/explore.tsx index 7f860e3..b26c869 100644 --- a/src/views/car/explore.tsx +++ b/src/views/car/explore.tsx @@ -4,7 +4,6 @@ import * as CID from "@atcute/cid"; import { Did } from "@atcute/lexicons"; import { fromStream, isCommit } from "@atcute/repo"; import * as TID from "@atcute/tid"; -import { Title } from "@solidjs/meta"; import { useLocation, useNavigate } from "@solidjs/router"; import { createEffect, @@ -188,9 +187,9 @@ export const ExploreToolView = () => { if (location.hash) navigate(location.pathname, { replace: true }); }; + document.title = "Explore archive - PDSls"; return ( <> - Explore archive - PDSls { + document.title = "Archive tools - PDSls"; return (
- Archive tools - PDSls

Archive tools

diff --git a/src/views/car/unpack.tsx b/src/views/car/unpack.tsx index 97a14fd..d3bb87b 100644 --- a/src/views/car/unpack.tsx +++ b/src/views/car/unpack.tsx @@ -1,6 +1,5 @@ import { fromStream } from "@atcute/repo"; import { zip, type ZipEntry } from "@mary/zip"; -import { Title } from "@solidjs/meta"; import { createSignal, onCleanup } from "solid-js"; import { createDropHandler, createFileChangeHandler, handleDragOver } from "./file-handlers.js"; import { createLogger, LoggerView } from "./logger.jsx"; @@ -114,7 +113,8 @@ export const UnpackToolView = () => { try { // eslint-disable-next-line @typescript-eslint/no-explicit-any - const fd = await (window as any).showSaveFilePicker({ + const fd = await (window as any) + .showSaveFilePicker({ suggestedName: `${file.name.replace(/\.car$/, "")}.zip`, id: "car-unpack", startIn: "downloads", @@ -230,9 +230,9 @@ export const UnpackToolView = () => { baseDrop(e); }; + document.title = "Unpack archive - PDSls"; return ( <> - Unpack archive - PDSls { true, ); + document.title = `${params.collection} - PDSls`; + return ( <> - {params.collection} - PDSls

{/* Tab bar */} diff --git a/src/views/home.tsx b/src/views/home.tsx index 65cc7e5..74ecece 100644 --- a/src/views/home.tsx +++ b/src/views/home.tsx @@ -91,6 +91,7 @@ export const Home = () => { ); + document.title = "PDSls"; return (
{/* Welcome Section */} diff --git a/src/views/labels.tsx b/src/views/labels.tsx index 415cf94..2ba778d 100644 --- a/src/views/labels.tsx +++ b/src/views/labels.tsx @@ -2,7 +2,6 @@ import { ComAtprotoLabelDefs } from "@atcute/atproto"; import { Client, simpleFetchHandler } from "@atcute/client"; import { isAtprotoDid } from "@atcute/identity"; import { Handle } from "@atcute/lexicons"; -import { Title } from "@solidjs/meta"; import { useSearchParams } from "@solidjs/router"; import { createMemo, createSignal, For, onMount, Show } from "solid-js"; import { Button } from "../components/button.jsx"; @@ -187,162 +186,160 @@ export const LabelView = () => { fetchLabels(new FormData(formRef)); }; + document.title = "Labels - PDSls"; return ( - <> - Labels - PDSls -
-
-

Labels

-

- Query labels applied to accounts and records. -

+
+
+

Labels

+

+ Query labels applied to accounts and records. +

+
+
{ + e.preventDefault(); + handleSearch(); + }} + > +
+ + +