A fork of pds-dash-fork for arabica.systems
at main 51 lines 1.9 kB view raw
1/** 2 * Configuration module for the PDS Dashboard 3 */ 4export class Config { 5 /** 6 * The base URL of the PDS (Personal Data Server). 7 * @default none 8 */ 9 static readonly PDS_URL: string = "https://pds.solanaceae.net"; 10 11 /** 12 * Theme to be used 13 * @default "default" 14 */ 15 static readonly THEME: string = "dark"; 16 17 /** 18 * The base URL of the frontend service for linking to replies/quotes/accounts etc. 19 * @default "https://deer.social" // or https://bsky.app if you're boring 20 */ 21 // static readonly FRONTEND_URL: string = "https://deer.social"; 22 static readonly FRONTEND_URL: string = "https://reddwarf.app"; 23 24 /** 25 * The base URL of the frontend service for linking to user profiles. 26 * @default "https://deer.social/profile" or whatever. (needs /profile since aturi doesn't use that path) 27 */ 28 static readonly FRONTEND_PROFILE_URL: string = "https://aturi.to"; 29 30 /** 31 * Maximum number of posts to fetch from the PDS per request 32 * Should be around 20 for about 10 users on the pds 33 * The more users you have, the lower the number should be 34 * since sorting is slow and is done on the frontend 35 * @default 20 36 */ 37 static readonly MAX_POSTS: number = 20; 38 39 /** 40 * Footer text for the dashboard, you probably want to change this. Supports HTML. 41 * @default "<a href='https://git.witchcraft.systems/scientific-witchery/pds-dash' target='_blank'>Source</a> (<a href='https://github.com/witchcraft-systems/pds-dash/' target='_blank'>github mirror</a>)" 42 */ 43 static readonly FOOTER_TEXT: string = 44 "<a href='https://tangled.org/pdewey.com/pds-dash-fork' target='_blank'>Source</a> (Forked with <3 from <a href='https://tangled.org/baileytownsend.dev/pds-dash-fork'>selfhosted.social</a>)"; 45 46 /** 47 * Whether to show the posts with timestamps that are in the future. 48 * @default false 49 */ 50 static readonly SHOW_FUTURE_POSTS: boolean = false; 51}