discord-vscode/src/constants.ts

59 lines
2 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 = '' as const;
export const FAKE_EMPTY = '\u200b\u200b' as const;
export const FILE_SIZES = [' bytes', 'kb', 'mb', 'gb', 'tb'] as const;
2021-02-10 03:24:42 +00:00
export const IDLE_IMAGE_KEY = 'vscode-big' as const;
export const DEBUG_IMAGE_KEY = 'debug' as const;
export const VSCODE_IMAGE_KEY = 'vscode' as const;
export const VSCODE_INSIDERS_IMAGE_KEY = 'vscode-insiders' as const;
2021-02-10 03:24:42 +00:00
export const UNKNOWN_GIT_BRANCH = 'Unknown' as const;
export const UNKNOWN_GIT_REPO_NAME = 'Unknown' as const;
2021-02-10 15:54:44 +00:00
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}',
VSCodeWorkspace = '(Workspace)',
2021-02-10 03:24:42 +00:00
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',
RemoveDetails = 'removeDetails',
RemoveLowerDetails = 'removeLowerDetails',
2021-02-10 03:24:42 +00:00
}