/** * Configuration module for the PDS Dashboard */ export class Config { /** * The base URL of the PDS (Personal Data Server). * @default none */ static readonly PDS_URL: string = "https://tophhie.social"; /** * Theme to be used * @default "default" */ static readonly THEME: string = "default"; /** * The base URL of the frontend service for linking to replies/quotes/accounts etc. * @default "https://deer.social" // or https://bsky.app if you're boring */ static readonly FRONTEND_URL: string = "https://bsky.app"; /** * Maximum number of posts to fetch from the PDS per request * Should be around 20 for about 10 users on the pds * The more users you have, the lower the number should be * since sorting is slow and is done on the frontend * @default 20 */ static readonly MAX_POSTS: number = 100; /** * Number of posts to request per-user per fetch. * Keeps individual requests small to improve latency. * @default 5 */ static readonly POSTS_BATCH_SIZE: number = 5; /** * Number of accounts to fetch per getNextPosts invocation. * This spaces work across multiple infinite-scroll calls. * @default 10 */ static readonly ACCOUNTS_PER_BATCH: number = 10; /** * Footer text for the dashboard, you probably want to change this. Supports HTML. * @default "Source (github mirror)" */ static readonly FOOTER_TEXT: string = "Source (Forked with ❤️ from witchcraft.systems)" /** * Whether to show the posts with timestamps that are in the future. * @default false */ static readonly SHOW_FUTURE_POSTS: boolean = false; /** * The URL for the Tophhie Cloud API service. */ static readonly TCAPI_URL: string = "https://api.tophhie.cloud"; /** * The name of the GitHub repository. */ static readonly GITHUB_REPO_NAME: string = "pds-dash"; /** * The owner of the GitHub repository. */ static readonly GITHUB_REPO_OWNER: string = "Tophhie"; }