diff --git a/policy.ts b/policy.ts index a478365..d73dbcc 100644 --- a/policy.ts +++ b/policy.ts @@ -1,3 +1,9 @@ +// please change the branding if you are not it hosting on reddwarf.app +export const HOST_TITLE = "Red Dwarf" +// also replace favicon files and defaultpfp.png and check LogoSvg.tsx +// todo generate manifest.json and index.html from this file +// todo have the bottom left and right blurbs on the desktop (should move it to settings for mobile) also customizable + export const FORCED_LABELER_DIDS = [ "did:plc:ar7c4by46qjdydhdevvrndac" // bluesky moderation ]; diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 7bbe2b8..be35f5b 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -18,6 +18,7 @@ import { toast as sonnerToast } from "sonner"; import { Toaster } from "sonner"; import { KeepAliveOutlet, KeepAliveProvider } from "tanstack-router-keepalive"; +import { HOST_TITLE } from "~/../policy"; import { Composer } from "~/components/Composer"; import { DefaultCatchBoundary } from "~/components/DefaultCatchBoundary"; import { Import } from "~/components/Import"; @@ -45,7 +46,7 @@ export const Route = createRootRouteWithContext<{ content: "width=device-width, initial-scale=1", }, ...seo({ - title: "Red Dwarf", + title: HOST_TITLE, description: `Distributed Bluesky Client`, }), ], @@ -260,7 +261,7 @@ function RootDocument({ children }: { children: React.ReactNode }) { }} /> - Red Dwarf{" "} + {HOST_TITLE}{" "} {/* lite */} @@ -663,7 +664,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {

- Red Dwarf is a Bluesky client that does not rely on any Bluesky API + {HOST_TITLE} is a Bluesky client that does not rely on any Bluesky API App Servers. Instead, it uses Microcosm to fetch records directly from each users' PDS (via Slingshot) and connect them using backlinks (via Constellation) @@ -854,7 +855,7 @@ function RootDocument({ children }: { children: React.ReactNode }) { }} /> - Red Dwarf{" "} + {HOST_TITLE}{" "} {/* lite */} diff --git a/src/routes/search.tsx b/src/routes/search.tsx index 9bc3706..7c5f772 100644 --- a/src/routes/search.tsx +++ b/src/routes/search.tsx @@ -4,6 +4,7 @@ import { createFileRoute, useSearch } from "@tanstack/react-router"; import { useAtom } from "jotai"; import { useEffect,useMemo } from "react"; +import { HOST_TITLE } from "~/../policy"; import { Header } from "~/components/Header"; import { Import } from "~/components/Import"; import { @@ -59,12 +60,12 @@ export function Search() { }, [lycanExists, authed, lycanReady, refetch]); const maintext = !lycanExists - ? "Sorry we dont have search. But instead, you can load some of these types of content into Red Dwarf:" + ? `Sorry we dont have search. But instead, you can load some of these types of content into ${HOST_TITLE}:` : authed ? lycanReady - ? "Lycan Search is enabled and ready! Type to search posts you've interacted with in the past. You can also load some of these types of content into Red Dwarf:" - : "Sorry, while Lycan Search is enabled, you are not indexed. Index below please. You can load some of these types of content into Red Dwarf:" - : "Sorry, while Lycan Search is enabled, you are unauthed. Please log in to use Lycan. You can load some of these types of content into Red Dwarf:"; + ? `Lycan Search is enabled and ready! Type to search posts you've interacted with in the past. You can also load some of these types of content into ${HOST_TITLE}:` + : `Sorry, while Lycan Search is enabled, you are not indexed. Index below please. You can load some of these types of content into ${HOST_TITLE}:` + : `Sorry, while Lycan Search is enabled, you are unauthed. Please log in to use Lycan. You can load some of these types of content into ${HOST_TITLE}:`; async function index(opts: { agent?: Agent; diff --git a/src/routes/settings.tsx b/src/routes/settings.tsx index 4445a59..2126abf 100644 --- a/src/routes/settings.tsx +++ b/src/routes/settings.tsx @@ -3,6 +3,7 @@ import { useAtom, useAtomValue, useSetAtom } from "jotai"; import { Slider, Switch } from "radix-ui"; import { useEffect, useState } from "react"; +import { HOST_TITLE } from "~/../policy"; import { Header } from "~/components/Header"; import Login from "~/components/Login"; import { @@ -89,28 +90,28 @@ export function Settings() { atom={constellationURLAtom} title={"Constellation"} description={ - "Customize the Constellation instance to be used by Red Dwarf" + "Customize the Constellation instance to be used by " + HOST_TITLE } init={defaultconstellationURL} />