mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 10:09:56 +00:00
d98009c7d5
* Store communityLimit as a constant in the config * Block Next button on communities list if the next page is empty * Use this.props instead of undefined props, compare number to the length of the array, not the array itself * Set nextDisabled prop for Paginator in registration-applications component * Set nextDisabled prop in Paginator required * Ignore nextDisabled prop in Paginator component used in person/inbox.tsx and modlog.tsx * Set nextDisabled to true if community is not yet loaded or no more pages are expected * Set nextDisabled to false for Paginator in emojis-form.tsx * Fix swapped bool logic in community.tsx * Set nextDisabled for Paginator in home.tsx * Set nextDisabled for Comments and Posts in person-details.tsx * Set nextDisabled for reports.tsx * Set nextDisabled for search.tsx --------- Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
45 lines
1.8 KiB
TypeScript
45 lines
1.8 KiB
TypeScript
import { getStaticDir } from "@utils/env";
|
|
|
|
export const favIconUrl = `${getStaticDir()}/assets/icons/favicon.svg`;
|
|
export const favIconPngUrl = `${getStaticDir()}/assets/icons/apple-touch-icon.png`;
|
|
|
|
export const repoUrl = "https://github.com/LemmyNet";
|
|
export const joinLemmyUrl = "https://join-lemmy.org";
|
|
export const donateLemmyUrl = `${joinLemmyUrl}/donate`;
|
|
export const docsUrl = `${joinLemmyUrl}/docs/en/index.html`;
|
|
export const helpGuideUrl = `${joinLemmyUrl}/docs/en/users/01-getting-started.html`; // TODO find a way to redirect to the non-en folder
|
|
export const markdownHelpUrl = `${joinLemmyUrl}/docs/en/users/02-media.html`;
|
|
export const sortingHelpUrl = `${joinLemmyUrl}/docs/en/users/03-votes-and-ranking.html`;
|
|
export const archiveTodayUrl = "https://archive.today";
|
|
export const ghostArchiveUrl = "https://ghostarchive.org";
|
|
export const webArchiveUrl = "https://web.archive.org";
|
|
export const elementUrl = "https://element.io";
|
|
|
|
export const postRefetchSeconds: number = 60 * 1000;
|
|
export const trendingFetchLimit = 6;
|
|
export const mentionDropdownFetchLimit = 10;
|
|
export const commentTreeMaxDepth = 8;
|
|
export const markdownFieldCharacterLimit = 50000;
|
|
export const maxUploadImages = 20;
|
|
export const concurrentImageUpload = 4;
|
|
export const updateUnreadCountsInterval = 30000;
|
|
export const fetchLimit = 20;
|
|
export const relTags = "noopener nofollow";
|
|
export const emDash = "\u2014";
|
|
export const authCookieName = "jwt";
|
|
|
|
// No. of max displayed communities per
|
|
// page on route "/communities"
|
|
export const communityLimit = 50;
|
|
|
|
/**
|
|
* Accepted formats:
|
|
* !community@server.com
|
|
* /c/community@server.com
|
|
* /m/community@server.com
|
|
* /u/username@server.com
|
|
*/
|
|
export const instanceLinkRegex =
|
|
/(\/[cmu]\/|!)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g;
|
|
|
|
export const testHost = "0.0.0.0:8536";
|