-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.js
26 lines (24 loc) · 973 Bytes
/
config.js
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
export const VersionStatus = Object.freeze({
latest: `latest`,
preview: `preview`,
obsolete: `obsolete`,
});
export const config = {
githubDemosBasePath: `https://github.com/FACT-Finder-Web-Components/demos/blob/release`,
demosBasePath: `https://search-web-components.fact-finder.de/demos`,
factFinder: {
url: `https://search-web-components.fact-finder.de/FACT-Finder-7.2`,
channel: `webc-doku-text`,
version: `7.2`
},
downloadToolUrl: `https://search-web-components.fact-finder.de/webcomponents-build-tool`,
versions: [
{ name: `5.x`, displayName: `5.x (latest)`, status: VersionStatus.latest },
{ name: `4.x`, displayName: `4.x`, status: VersionStatus.obsolete },
{ name: `3.x`, displayName: `3.x`, status: VersionStatus.obsolete },
{ name: `1.x`, displayName: `1.x`, status: VersionStatus.obsolete },
]
};
export function getLatestVersion() {
return config.versions.find(ver => ver.status === VersionStatus.latest);
}