diff --git a/js/web/src/lib/store/slices/baseSlice.ts b/js/web/src/lib/store/slices/baseSlice.ts index 21feb68fe..2aab5876a 100644 --- a/js/web/src/lib/store/slices/baseSlice.ts +++ b/js/web/src/lib/store/slices/baseSlice.ts @@ -1,5 +1,3 @@ -// StreamKey: a signed-atproto stream-publishing key. Persisted to -// storage so a user returning to the app doesn't have to re-register. import { StateCreator } from "zustand"; import { storage } from "../../storage"; import { AppStore } from "../index"; diff --git a/js/web/src/lib/store/slices/blueskySlice.ts b/js/web/src/lib/store/slices/blueskySlice.ts index 88a857be9..d5318157c 100644 --- a/js/web/src/lib/store/slices/blueskySlice.ts +++ b/js/web/src/lib/store/slices/blueskySlice.ts @@ -1,27 +1,3 @@ -// Bluesky/ATProto authentication, profile, follow, and per-user record -// actions (chat profile, server settings). Ported from -// js/app/store/slices/blueskySlice.ts. -// -// Differences from the app source: -// - storage is imported from "../../storage" (the web's localStorage -// wrapper) instead of @streamplace/components. -// - createOAuthClient is imported from the web's lib/oauth, which -// returns a BrowserOAuthClient (the same type the app's web variant -// surfaces from features/bluesky/oauthClientImport). -// - clearQueryParams is a tiny inline helper instead of the app's -// utils/clear-query-params, since the app util is React-Native-gated. -// - The following actions are NOT ported in this commit and are -// placeholders for later phases. They depend on libraries that are -// not yet in js/web's deps: -// - createStreamKeyRecord, clearStreamKeyRecord, -// getStreamKeyRecords, deleteStreamKeyRecord (Phase 3 settings -// / Phase 4 go-live; needs @atproto/crypto + viem). -// - createLivestreamRecord, updateLivestreamRecord, golivePost, -// and the uploadThumbnail helper (Phase 4 go-live). -// - createBlockRecord (low priority; revisit if/when needed). -// The corresponding state fields (streamKeysResponse, newLivestream, -// newKey, etc.) are kept so the slice type stays symmetric with the -// app's; they simply aren't mutated yet. import { Agent } from "@atproto/api"; import { ProfileViewDetailed } from "@atproto/api/dist/client/types/app/bsky/actor/defs"; import { OutputSchema } from "@atproto/api/dist/client/types/com/atproto/repo/listRecords"; diff --git a/js/web/src/lib/store/slices/brandingSlice.ts b/js/web/src/lib/store/slices/brandingSlice.ts index 7537a738d..c9c751367 100644 --- a/js/web/src/lib/store/slices/brandingSlice.ts +++ b/js/web/src/lib/store/slices/brandingSlice.ts @@ -1,9 +1,3 @@ -// Branding state + fetch. Ported from -// js/components/src/streamplace-store/branding.tsx (useFetchBroadcasterDID, -// useFetchBranding) so the advanced-settings "refresh branding" button and -// header site title work on web. Branding is per-broadcaster; the server -// injects the broadcaster DID via place.stream.broadcast.getBroadcaster and -// the assets come from place.stream.branding.getBranding. import { place } from "streamplace"; import { StateCreator } from "zustand"; import { storage } from "../../storage"; diff --git a/js/web/src/lib/store/slices/contentMetadataSlice.ts b/js/web/src/lib/store/slices/contentMetadataSlice.ts index bc08b6da4..6ee21982d 100644 --- a/js/web/src/lib/store/slices/contentMetadataSlice.ts +++ b/js/web/src/lib/store/slices/contentMetadataSlice.ts @@ -1,10 +1,3 @@ -// Per-livestream content metadata (content warnings, distribution -// policy, content rights). Ported from -// js/app/store/slices/contentMetadataSlice.ts. The slice reads PDS -// agents and the active session from the bluesky slice via get(). -// `resolveDIDDocument` / `getPDSServiceEndpoint` are imported from -// the web's lib/did helper (a copy of @streamplace/components/utils/did -// because that package is React-Native-coupled). import { StateCreator } from "zustand"; import { getPDSServiceEndpoint, resolveDIDDocument } from "../../did"; import { AppStore } from "../index"; diff --git a/js/web/src/lib/store/slices/danmuSlice.ts b/js/web/src/lib/store/slices/danmuSlice.ts index 3a85cf89b..08550c492 100644 --- a/js/web/src/lib/store/slices/danmuSlice.ts +++ b/js/web/src/lib/store/slices/danmuSlice.ts @@ -1,6 +1,3 @@ -// Danmu settings, ported from js/components/src/streamplace-store -// (useDanmuSettings). Persisted to localStorage with the same keys the -// app uses so a user's danmu preferences carry across frontends. import { StateCreator } from "zustand"; import { storage } from "../../storage"; import { AppStore } from "../index"; diff --git a/js/web/src/lib/store/slices/platformSlice.ts b/js/web/src/lib/store/slices/platformSlice.ts index e4fd0647c..50630d992 100644 --- a/js/web/src/lib/store/slices/platformSlice.ts +++ b/js/web/src/lib/store/slices/platformSlice.ts @@ -1,7 +1,3 @@ -// Web push notifications. Ported from js/app/store/slices/platformSlice.ts -// (web-only parts). Registers the service worker on mount, and -// subscribes/unsubscribes the browser's PushManager from the -// notifications settings toggle. import { StateCreator } from "zustand"; import { AppStore } from "../index"; diff --git a/js/web/src/lib/store/slices/sidebarSlice.ts b/js/web/src/lib/store/slices/sidebarSlice.ts index 238b3f80b..0dad813c3 100644 --- a/js/web/src/lib/store/slices/sidebarSlice.ts +++ b/js/web/src/lib/store/slices/sidebarSlice.ts @@ -1,8 +1,3 @@ -// Sidebar visibility/collapse state, persisted to storage. -// The web's current Sidebar is a shadcn primitive with its own -// localStorage key ("streamplace:nav-open"); the values here are kept -// in this slice for parity with the app so future port work (sidebar -// overlay, etc.) has a single source of truth. import { StateCreator } from "zustand"; import { storage } from "../../storage"; diff --git a/js/web/src/lib/store/slices/streamplaceSlice.ts b/js/web/src/lib/store/slices/streamplaceSlice.ts index bbc649b02..f49d70757 100644 --- a/js/web/src/lib/store/slices/streamplaceSlice.ts +++ b/js/web/src/lib/store/slices/streamplaceSlice.ts @@ -7,8 +7,6 @@ import { storage } from "../../storage"; import { getStreamplaceUrl } from "../../streamplace-url"; import { AppStore } from "../index"; -// Build-time env override. Empty string when not set; the slice falls back -// to `getStreamplaceUrl()` (env > window.location.origin) at runtime. const ENV_URL = (import.meta.env["VITE_STREAMPLACE_URL"] as string) ?? ""; let DEFAULT_URL = ENV_URL;