-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconstants.ts
More file actions
200 lines (194 loc) Β· 5.76 KB
/
constants.ts
File metadata and controls
200 lines (194 loc) Β· 5.76 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
import dynamic from 'next/dynamic';
export const baseURL = process.env.NEXT_PUBLIC_VERCEL_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
: 'http://localhost:3000';
export type ToolState = 'available' | 'installed' | 'configured';
export interface AppGridItem {
id: string;
ds: string;
name: string;
description: string;
icon: string;
icon_url?: string;
}
export const TOOLS: Record<string, AppGridItem> = {
// Mail
resend: {
id: 'resend',
ds: 'resend',
name: 'Resend',
description: 'Email delivery service',
icon: 'π¨',
icon_url: '/resend_favicon.png'
},
mailgun: {
id: 'mailgun',
ds: 'mailgun',
name: 'Mailgun',
description: 'Email delivery service',
icon: 'π¨',
icon_url: '/mailgun_favicon.ico'
},
// Auth
clerk: {
id: 'clerk',
ds: 'clerk',
name: 'Clerk',
description: 'Authentication and user management',
icon: 'π',
icon_url: '/clerk_favicon.ico'
},
auth0: {
id: 'auth0',
ds: 'auth0',
name: 'Auth0',
description: 'Identity platform',
icon: 'π',
icon_url: '/auth0_favicon.png'
},
// Hosting
vercel_logs: {
id: 'vercel_logs',
ds: 'vercel_logs',
name: 'Vercel Logs',
description: 'Deployment and serverless logs',
icon: 'π§±',
icon_url: '/vercel_favicon.ico'
},
vercel: {
id: 'vercel',
ds: 'vercel',
name: 'Vercel',
description: 'Deployment and serverless',
icon: 'π§±',
icon_url: '/vercel_favicon.ico'
},
// VCS
gitlab: {
id: 'gitlab',
ds: 'gitlab',
name: 'Gitlab',
description: 'Source code management',
icon: 'π¦',
icon_url: '/gitlab_favicon.png'
},
github: {
id: 'github',
ds: 'github',
name: 'Github',
description: 'Source code management',
icon: 'π¦',
icon_url: '/github_favicon.png'
},
// Payment & billing
orb: {
id: 'orb',
ds: 'orb',
name: 'Orb',
description: 'Usage-based billing',
icon: 'π°',
icon_url: '/orb_favicon.png'
},
stripe: {
id: 'stripe',
ds: 'stripe',
name: 'Stripe',
description: 'Payment processing',
icon: 'π°',
icon_url: '/stripe_favicon.ico'
},
// Notifications
knock: {
id: 'knock',
ds: 'knock',
name: 'Knock',
description: 'Push notifications',
icon: 'π',
icon_url: '/knock_favicon.png'
},
pagerduty: {
id: 'pagerduty',
ds: 'pagerduty',
name: 'Pagerduty',
description: 'Notifications',
icon: 'π',
icon_url: '/pagerduty_favicon.png'
},
// Logging
sentry: {
id: 'sentry',
ds: 'sentry',
name: 'Sentry',
description: 'Error logging',
icon: 'π',
icon_url: '/sentry_favicon.ico'
},
// Links
dub: {
id: 'dub',
ds: 'dub',
name: 'Dub',
description: 'Link infrastructure',
icon: 'π',
icon_url: '/dub_favicon.png'
},
};
export const TOOL_IMPORTS = {
clerk: {
Dashboard: dynamic(() => import('@/components/tools/clerk/dashboard')),
Readme: dynamic(() => import('@/components/tools/clerk/readme')),
},
resend: {
Dashboard: dynamic(() => import('@/components/tools/resend/dashboard')),
Readme: dynamic(() => import('@/components/tools/resend/readme')),
},
auth0: {
Dashboard: dynamic(() => import('@/components/tools/auth0/dashboard')),
Readme: dynamic(() => import('@/components/tools/auth0/readme')),
},
orb: {
Dashboard: dynamic(() => import('@/components/tools/orb/dashboard')),
Readme: dynamic(() => import('@/components/tools/orb/readme')),
},
gitlab: {
Dashboard: dynamic(() => import('@/components/tools/gitlab/dashboard')),
Readme: dynamic(() => import('@/components/tools/gitlab/readme')),
},
vercel_logs: {
Dashboard: dynamic(() => import('@/components/tools/vercel_logs/dashboard')),
Readme: dynamic(() => import('@/components/tools/vercel_logs/readme')),
},
vercel: {
Dashboard: dynamic(() => import('@/components/tools/vercel/dashboard')),
Readme: dynamic(() => import('@/components/tools/vercel/readme')),
},
github: {
Dashboard: dynamic(() => import('@/components/tools/github/dashboard')),
Readme: dynamic(() => import('@/components/tools/github/readme')),
},
mailgun: {
Dashboard: dynamic(() => import('@/components/tools/mailgun/dashboard')),
Readme: dynamic(() => import('@/components/tools/mailgun/readme')),
},
stripe: {
Dashboard: dynamic(() => import('@/components/tools/stripe/dashboard')),
Readme: dynamic(() => import('@/components/tools/stripe/readme')),
},
sentry: {
Dashboard: dynamic(() => import('@/components/tools/sentry/dashboard')),
Readme: dynamic(() => import('@/components/tools/sentry/readme')),
},
knock: {
Dashboard: dynamic(() => import('@/components/tools/knock/dashboard')),
Readme: dynamic(() => import('@/components/tools/knock/readme')),
},
pagerduty: {
Dashboard: dynamic(() => import('@/components/tools/pagerduty/dashboard')),
Readme: dynamic(() => import('@/components/tools/pagerduty/readme')),
},
dub: {
Dashboard: dynamic(() => import('@/components/tools/dub/dashboard')),
Readme: dynamic(() => import('@/components/tools/dub/readme')),
},
} as const;
export type ToolId = keyof typeof TOOL_IMPORTS;