discord-vscode/src/constants.ts

55 lines
1.8 KiB
TypeScript
Raw Normal View History

2021-02-10 03:24:42 +00:00
import LANG from './data/languages.json';
export const CLIENT_ID = '383226320970055681' as const;
export const KNOWN_EXTENSIONS: { [key: string]: { image: string } } = LANG.KNOWN_EXTENSIONS;
export const KNOWN_LANGUAGES: { language: string; image: string }[] = LANG.KNOWN_LANGUAGES;
export const EMPTY = '\u200b\u200b';
export const FILE_SIZES = [' bytes', 'kb', 'mb', 'gb', 'tb'];
export const IDLE_IMAGE_KEY = 'vscode-big';
export const DEBUG_IMAGE_KEY = 'debug';
export const VSCODE_IMAGE_KEY = 'vscode';
export const VSCODE_INSIDERS_IMAGE_KEY = 'vscode-insiders';
2021-02-10 15:54:44 +00:00
export const UNKNOWN_GIT_BRANCH = 'Unknown.';
export const UNKNOWN_GIT_REPO_NAME = 'Unknown.';
2021-02-10 03:24:42 +00:00
export const enum REPLACE_KEYS {
Empty = '{empty}',
FileName = '{file_name}',
DirName = '{dir_name}',
FullDirName = '{full_dir_name}',
Workspace = '{workspace}',
WorkspaceFolder = '{workspace_folder}',
WorkspaceAndFolder = '{workspace_and_folder}',
LanguageLowerCase = '{lang}',
LanguageTitleCase = '{Lang}',
LanguageUpperCase = '{LANG}',
TotalLines = '{total_lines}',
CurrentLine = '{current_line}',
CurrentColumn = '{current_column}',
FileSize = '{file_size}',
AppName = '{app_name}',
GitRepoName = '{git_repo_name}',
GitBranch = '{git_branch}',
}
export const enum CONFIG_KEYS {
Enabled = 'enabled',
2021-02-10 15:54:44 +00:00
DetailsIdling = 'detailsIdling',
DetailsEditing = 'detailsEditing',
DetailsDebugging = 'detailsDebugging',
LowerDetailsIdling = 'lowerDetailsIdling',
LowerDetailsEditing = 'lowerDetailsEditing',
LowerDetailsDebugging = 'lowerDetailsDebugging',
LowerDetailsNoWorkspaceFound = 'lowerDetailsNoWorkspaceFound',
LargeImageIdling = 'largeImageIdling',
LargeImage = 'largeImage',
SmallImage = 'smallImage',
SuppressNotifications = 'suppressNotifications',
WorkspaceExcludePatterns = 'workspaceExcludePatterns',
2021-02-10 17:32:13 +00:00
SwapBigAndSmallImage = 'swapBigAndSmallImage',
2021-02-10 03:24:42 +00:00
}