fork of https://forged.synth.download/sd/pds-dash but with my cool and awesome customization!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Configuration options

Astra 164571ec fe96164f

+20 -3
+16
config.ts
··· 1 + /** 2 + * Configuration module for the PDS Dashboard 3 + */ 4 + export class Config { 5 + /** 6 + * The base URL of the PDS (Personal Data Server) 7 + * @default "https://pds.witchcraft.systems" 8 + */ 9 + static readonly PDS_URL: string = "https://pds.witchcraft.systems"; 10 + 11 + /** 12 + * The base URL of the frontend service for linking to replies 13 + * @default "https://deer.social" 14 + */ 15 + static readonly FRONTEND_URL: string = "https://deer.social"; 16 + }
+4 -3
src/lib/PostComponent.svelte
··· 1 1 <script lang="ts"> 2 2 import { Post } from "./pdsfetch"; 3 + import { Config } from "../../config" 3 4 let { post }: { post: Post } = $props(); 4 5 </script> 5 6 ··· 8 9 {#if post.authorAvatarCid} 9 10 <img 10 11 id="avatar" 12 + src="{Config.PDS_URL}/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.authorAvatarCid}" 11 13 alt="avatar of {post.displayName}" 12 - src="https://pds.witchcraft.systems/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.authorAvatarCid}" 13 14 /> 14 15 {/if} 15 16 <p>{post.displayName} | {post.timenotstamp}</p> ··· 25 26 <img 26 27 id="embedImages" 27 28 alt="Post Image" 28 - src="https://pds.witchcraft.systems/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={imageLink}" 29 + src="{Config.PDS_URL}/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={imageLink}" 29 30 /> 30 31 {/each} 31 32 </div> ··· 33 34 {#if post.videosLinkCid} 34 35 <video 35 36 id="embedVideo" 36 - src="https://pds.witchcraft.systems/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.videosLinkCid}" 37 + src="{Config.PDS_URL}/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.videosLinkCid}" 37 38 /> 38 39 {/if} 39 40 </div>