Repository navigation
Expand file tree
/
Copy pathconstants.ts
More file actions
67 lines (63 loc) · 2.18 KB
/
Copy pathconstants.ts
File metadata and controls
67 lines (63 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
export const BASE_API_URL = 'https://reactnative.directory/api';
export const KEYWORD_REGEX = /:\w+/g;
export const CONFIG_KEY = 'reactNativeDirectory';
export enum ENTRY_OPTION {
INSTALL = 'Install package in the current workspace',
INSTALL_SPECIFIC_VERSION = 'Install specific package version in the current workspace',
VISIT_HOMEPAGE = 'Visit homepage',
VISIT_REPO = 'Visit GitHub repository',
VISIT_DIRECTORY = 'Visit React Native Directory page',
VISIT_NPM = 'Visit npm registry entry',
VIEW_MODULES_INSPECTOR = 'View Node Modules Inspector analysis',
VIEW_BUNDLEPHOBIA = 'View BundlePhobia analysis',
VIEW_LICENSE = 'View license details',
VIEW_DEPENDENCIES = 'View dependencies',
VIEW_NIGHTLY_RESULTS = 'View results of Nightly Program tests',
COPY_NAME = 'Copy package name',
COPY_REPO_URL = 'Copy GitHub repository URL',
COPY_NPM_URL = 'Copy npm registry URL',
COPY_DIRECTORY_URL = 'Copy React Native Directory page URL',
GO_BACK = '$(newline) Go back to search',
PLATFORMS = 'Platforms',
COMPATIBILITY = 'Compatibility',
CONFIG_PLUGIN = 'Config plugin',
NEW_ARCHITECTURE = 'New Architecture',
METADATA = 'Metadata',
DIRECTORY_SCORE = 'Directory score',
}
export enum VERSIONS_OPTION {
CANCEL = '$(newline) Cancel',
}
export enum STRINGS {
DEFAULT_TITLE = 'Search in React Native Directory',
PACKAGES_PLACEHOLDER_BUSY = 'Loading directory data...',
PACKAGES_PLACEHOLDER = 'Search for a package',
}
/**
* A subset of API query params mapped with normalized (lowercased) keyword values.
* @see https://github.com/react-native-community/directory/blob/main/types/index.ts#L14
*/
export const VALID_KEYWORDS_MAP = {
android: 'android',
expogo: 'expoGo',
ios: 'ios',
macos: 'macos',
fireos: 'fireos',
horizon: 'horizon',
tvos: 'tvos',
visionos: 'visionos',
vegaos: 'vegaos',
harmony: 'harmony',
web: 'web',
windows: 'windows',
hasexample: 'hasExample',
hasimage: 'hasImage',
hasswiftpm: 'hasSwiftPM',
hastypes: 'hasTypes',
ismaintained: 'isMaintained',
ispopular: 'isPopular',
wasrecentlyupdated: 'wasRecentlyUpdated',
newarchitecture: 'newArchitecture',
configplugin: 'configPlugin',
nightlyprogram: 'nightlyProgram',
};