]> Untitled Git - lemmy-ui.git/blob - src/shared/config.ts
Attempt to fix inability to logout from some instances (subdomains) (#1809)
[lemmy-ui.git] / src / shared / config.ts
1 import { getStaticDir } from "@utils/env";
2
3 export const favIconUrl = `${getStaticDir()}/assets/icons/favicon.svg`;
4 export const favIconPngUrl = `${getStaticDir()}/assets/icons/apple-touch-icon.png`;
5
6 export const repoUrl = "https://github.com/LemmyNet";
7 export const joinLemmyUrl = "https://join-lemmy.org";
8 export const donateLemmyUrl = `${joinLemmyUrl}/donate`;
9 export const docsUrl = `${joinLemmyUrl}/docs/en/index.html`;
10 export const helpGuideUrl = `${joinLemmyUrl}/docs/en/users/01-getting-started.html`; // TODO find a way to redirect to the non-en folder
11 export const markdownHelpUrl = `${joinLemmyUrl}/docs/en/users/02-media.html`;
12 export const sortingHelpUrl = `${joinLemmyUrl}/docs/en/users/03-votes-and-ranking.html`;
13 export const archiveTodayUrl = "https://archive.today";
14 export const ghostArchiveUrl = "https://ghostarchive.org";
15 export const webArchiveUrl = "https://web.archive.org";
16 export const elementUrl = "https://element.io";
17
18 export const postRefetchSeconds: number = 60 * 1000;
19 export const trendingFetchLimit = 6;
20 export const mentionDropdownFetchLimit = 10;
21 export const commentTreeMaxDepth = 8;
22 export const markdownFieldCharacterLimit = 50000;
23 export const maxUploadImages = 20;
24 export const concurrentImageUpload = 4;
25 export const updateUnreadCountsInterval = 30000;
26 export const fetchLimit = 20;
27 export const relTags = "noopener nofollow";
28 export const emDash = "\u2014";
29 export const authCookieName = "jwt";
30
31 /**
32  * Accepted formats:
33  * !community@server.com
34  * /c/community@server.com
35  * /m/community@server.com
36  * /u/username@server.com
37  */
38 export const instanceLinkRegex =
39   /(\/[cmu]\/|!)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g;
40
41 export const testHost = "0.0.0.0:8536";