this repo has no description

Config.ts -> config.ts.example

astrra.space 8eda5e66 67af67ef

verified
+3 -1
README.md
··· 10 11 ### installing 12 13 - clone the repo, install dependencies using deno: 14 15 ```sh 16 deno install
··· 10 11 ### installing 12 13 + clone the repo, copy `config.ts.example` to `config.ts` and edit it to your liking. 14 + 15 + then, install dependencies using deno: 16 17 ```sh 18 deno install
-37
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/quotes/accounts etc. 13 - * @default "https://deer.social" 14 - */ 15 - static readonly FRONTEND_URL: string = "https://deer.social"; 16 - 17 - /** 18 - * Maximum number of posts to fetch from the PDS per request 19 - * Should be around 20 for about 10 users on the pds 20 - * The more users you have, the lower the number should be 21 - * since sorting is slow and is done on the frontend 22 - * @default 20 23 - */ 24 - static readonly MAX_POSTS: number = 20; 25 - 26 - /** 27 - * Footer text for the dashboard, you probably want to change this 28 - */ 29 - static readonly FOOTER_TEXT: string = 30 - "Astrally projected from <a href='https://witchcraft.systems' target='_blank'>witchcraft.systems</a><br><br><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>)"; 31 - 32 - /** 33 - * Whether to show the posts that are in the future 34 - * @default false 35 - */ 36 - static readonly SHOW_FUTURE_POSTS: boolean = false; 37 - }
···
+38
config.ts.example
···
··· 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 none 8 + */ 9 + static readonly PDS_URL: string = ""; 10 + 11 + /** 12 + * The base URL of the frontend service for linking to replies/quotes/accounts etc. 13 + * @default "https://deer.social" // or https://bsky.app if you're boring 14 + */ 15 + static readonly FRONTEND_URL: string = "https://deer.social"; 16 + 17 + /** 18 + * Maximum number of posts to fetch from the PDS per request 19 + * Should be around 20 for about 10 users on the pds 20 + * The more users you have, the lower the number should be 21 + * since sorting is slow and is done on the frontend 22 + * @default 20 23 + */ 24 + static readonly MAX_POSTS: number = 20; 25 + 26 + /** 27 + * Footer text for the dashboard, you probably want to change this. Supports HTML. 28 + * @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>)" 29 + */ 30 + static readonly FOOTER_TEXT: string = 31 + "<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>)"; 32 + 33 + /** 34 + * Whether to show the posts with timestamps that are in the future. 35 + * @default false 36 + */ 37 + static readonly SHOW_FUTURE_POSTS: boolean = false; 38 + }