-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc4b13f
commit 48b7f6f
Showing
5 changed files
with
154 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { ExtensionType } from './types'; | ||
|
||
// static urls | ||
export const LIVE_MANIFEST_URL:string = 'https://raw.githubusercontent.com/Nexus-Mods/Vortex-Backend/main/extensions-manifest.json'; | ||
export const DOWNLOAD_STATS_URL = 'https://staticstats.nexusmods.com/live_download_counts/mods/2295.csv'; | ||
|
||
// emojis for slack messages | ||
export const GAME_EMOJI = ':joystick:'; | ||
export const THEME_EMOJI = ':art:'; | ||
export const TRANSLATION_EMOJI = ':earth_africa:'; | ||
export const UNKNOWN_EMOJI = ':question:'; | ||
|
||
// time constants | ||
export const ONE_DAY = 1000 * 60 * 60 * 24; | ||
|
||
// slack constants | ||
export const SLACK_CHANNEL = 'C06B8H5TGGG'; // this is bot-test-slack and bot-github-vortex is channel id C05009EK5R6 | ||
|
||
// files and paths | ||
export const MANIFEST_FILENAME = 'extensions-manifest.json'; | ||
|
||
// nexus category to extension type mapping | ||
export const CATEGORIES: { [id: number]: ExtensionType } = { | ||
4: 'game', | ||
7: 'translation', | ||
13: 'theme' | ||
} | ||
|
||
// site versioning constants | ||
export const HTML_REGEX = new RegExp('&[lg]t;', 'g'); | ||
export const VERSION_MATCH_REGEX = new RegExp('^requires vortex ([><=-^~0-9\. ]*[0-9])', 'i'); | ||
export const htmlMap: { [entity: string]: string } = { | ||
'>': '>', | ||
'<': '<', | ||
}; | ||
|
||
// excluded games | ||
export const GAME_EXCLUSIONLIST = [ | ||
'game-subnautica', | ||
'game-subnauticabelowzero', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.