-
Notifications
You must be signed in to change notification settings - Fork 6
/
constants.ts
102 lines (90 loc) · 3.36 KB
/
constants.ts
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import { Color } from "@raycast/api";
export interface workspaceStatus {
workspace_Inactive : "PHASE_STOPPED",
workspace_active : "PHASE_RUNNING",
workspace_progressing : "PHASE_CREATED" | "PHASE_INITIALIZING" | "PHASE_STOPPING" | "PHASE_PENDING"
}
export enum branchStatus {
diverged = "DIVERGED",
ahead = "AHEAD",
behind = "BEHIND",
IDENTICAL = "IDENTICAL"
}
export enum workspaceClass {
standard = "S",
large = "L",
}
export enum desc {
standard_workspace_desc = "Up to 4 vCPU, 8GB memory, 30GB disk",
large_workspace_desc = "Up to 8 vCPU, 16GB memory, 50GB disk",
}
export enum UIColors {
primary_dark = "#12100C",
primary_light = "#f5f4f4",
gitpod_gold = "#FFB45B",
green = "#84cc18",
grey = "#a8a29e",
red = "#f77171",
}
export enum statusColors {
running = "#84cc18",
progressing = "#FFB45B",
stopped = "#a8a29e",
failed = "#f77171",
}
export const GitpodIcons = {
tag_icon: {
source: "Icons/tag.svg",
tintColor: Color.Green
},
issues_icon: {
source: "Icons/bug.svg",
tintColor: UIColors.red
},
pulls_icon: {
source: "Icons/git-pull-request.svg",
tintColor: UIColors.gitpod_gold
},
branchAhead: {source: "Icons/increase.svg", tintColor: UIColors.green},
branchBehind: { source : "Icons/decrease.svg", tintColor: UIColors.gitpod_gold},
branchDiverged: {
source: "Icons/workflow.svg", tintColor: UIColors.red
},
branchIdentical: {
source: "Icons/issue-closed.svg",
tintColor: UIColors.green
},
branchIcon: {source : "Icons/git-branch.svg", tintColor: UIColors.gitpod_gold},
running_icon: { source: "Icons/status_icon.png", tintColor: statusColors.running },
stopped_icon: { source: "Icons/status_icon.png", tintColor: statusColors.stopped },
failed_icon: { source: "Icons/status_icon.png", tintColor: statusColors.failed },
progressing_icon: { source: "Icons/status_icon.png", tintColor: statusColors.progressing },
running_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.running },
stopped_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.stopped },
failed_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.failed },
progressing_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.progressing },
settings_icon: {source: "Icons/settings.png", tintColor: Color.PrimaryText,},
project_icon: {source: "Icons/projects.png", tintColor: Color.PrimaryText,},
docs_icon: {source: "Icons/documentation.png", tintColor: Color.PrimaryText,},
dashboard_icon: { source: "Icons/dashboard1.png", tintColor: Color.PrimaryText },
repoIcon : {
source: "Icons/repo-16.svg",
tintColor: statusColors.progressing
},
info_icon: { source: "Icons/info1.svg", tintColor: UIColors.red},
link_icon: { source: "Icons/link.svg", tintColor: UIColors.gitpod_gold},
commit_icon: {source: "Icons/git-commit.svg", tintColor: UIColors.gitpod_gold},
branch_icon: {
source: "Icons/merge.svg",
tintColor: statusColors.running,
},
gitpod_logo_monochrome: {
source: {
light: "logo-mark-monochrome.svg",
dark: "[email protected]",
},
},
gitpod_logo_primary: { source: "logo-mark.svg" },
gitpod_logo_secondary: { source: "logo-mark.svg", tintColor: statusColors.stopped },
github_untracked: {source: "Icons/file-diff.svg", tintColor: UIColors.grey},
};