-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.config.ts
More file actions
84 lines (77 loc) · 2.33 KB
/
app.config.ts
File metadata and controls
84 lines (77 loc) · 2.33 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Site configuration
export const SITE_CONFIG = {
primaryDomain: 'https://rustfs.com.cn',
secondaryDomain: 'https://rustfs.com',
docsDomain: 'https://docs.rustfs.com.cn',
} as const
// Site meta information
export const SITE_METADATA = {
title: 'RustFS - 高性能分布式存储系统',
description: 'RustFS 用热门安全的 Rust 语言开发,兼容 S3 协议',
keywords: 'RustFS, 分布式存储, 云存储, S3兼容, 高性能, 开源, MinIO替代方案',
} as const
// Download link configuration
export const DOWNLOAD_CONFIG = {
GITHUB_REPO: 'rustfs/rustfs',
GITHUB_API_BASE: 'https://github.com/api/repos/rustfs/rustfs',
RELEASE_PAGE: 'https://github.com/rustfs/rustfs/releases'
} as const
// System identifier configuration
export const SYSTEM_CONFIG = {
WINDOWS: 'windows',
LINUX: 'linux',
MACOS: 'macos',
DOCKER: 'docker'
} as const
// Version selection options
export const VERSION_CONFIG = {
LATEST: 'latest',
STABLE: 'stable',
ALPHA: 'alpha',
NIGHTLY: 'nightly'
} as const
// Download option key type
export type DownloadOptionKey = 'windows' | 'macos' | 'linux' | 'docker' | 'fallback';
// Download option interface
export interface DownloadOption {
key: DownloadOptionKey;
label: string;
description: string;
}
// App configuration
export const appConfig = {
downloads: {
windows: 'https://dl.rustfs.com/artifacts/rustfs/rustfs-windows-x86_64-latest.zip',
macos: 'https://dl.rustfs.com/artifacts/rustfs/rustfs-macos-aarch64-latest.zip',
linux: 'https://dl.rustfs.com/artifacts/rustfs/rustfs-linux-x86_64-musl-latest.zip',
docker: 'https://hub.docker.com/r/rustfs/rustfs',
fallback: 'https://github.com/rustfs/rustfs/releases'
},
downloadOptions: [
{
key: 'windows' as DownloadOptionKey,
label: 'Windows',
description: 'For Windows 10/11'
},
{
key: 'macos' as DownloadOptionKey,
label: 'macOS',
description: 'For macOS 10.15+'
},
{
key: 'linux' as DownloadOptionKey,
label: 'Linux',
description: 'For various Linux distributions'
},
{
key: 'docker' as DownloadOptionKey,
label: 'Docker',
description: 'Deploy using Docker containers'
},
{
key: 'fallback' as DownloadOptionKey,
label: 'Other Platforms',
description: 'View all available versions'
}
]
} as const;