-
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathconstants.tsx
More file actions
170 lines (160 loc) · 5.87 KB
/
constants.tsx
File metadata and controls
170 lines (160 loc) · 5.87 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
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import React from 'react';
import { AnnotationContextProps, TutorialPanelProps } from 'components';
import { Box } from 'components';
export const tutorialPanelI18nStrings: TutorialPanelProps.I18nStrings = {
labelsTaskStatus: { pending: 'Pending', 'in-progress': 'In progress', success: 'Success' },
loadingText: 'Loading',
tutorialListTitle: 'Take a tour',
tutorialListDescription: 'Follow the tutorials below to get up to speed with dstack Sky.',
tutorialListDownloadLinkText: 'Download PDF version',
tutorialCompletedText: 'Completed',
labelExitTutorial: 'dismiss tutorial',
learnMoreLinkText: 'Learn more',
startTutorialButtonText: 'Start',
restartTutorialButtonText: 'Restart',
completionScreenTitle: 'Congratulations! You completed it.',
feedbackLinkText: 'Feedback',
dismissTutorialButtonText: 'Dismiss',
taskTitle: (taskIndex, taskTitle) => `Task ${taskIndex + 1}: ${taskTitle}`,
stepTitle: (stepIndex, stepTitle) => `Step ${stepIndex + 1}: ${stepTitle}`,
labelTotalSteps: (totalStepCount) => `Total steps: ${totalStepCount}`,
labelLearnMoreExternalIcon: 'Opens in a new tab',
labelTutorialListDownloadLink: 'Download PDF version of this tutorial',
labelLearnMoreLink: 'Learn more about transcribe audio (opens new tab)',
};
export const overlayI18nStrings: AnnotationContextProps.I18nStrings = {
stepCounterText: (stepIndex, totalStepCount) => `Step ${stepIndex + 1}/${totalStepCount}`,
taskTitle: (taskIndex, taskTitle) => `Task ${taskIndex + 1}: ${taskTitle}`,
labelHotspot: (openState, stepIndex, totalStepCount) =>
openState
? `close annotation for step ${stepIndex + 1} of ${totalStepCount}`
: `open annotation for step ${stepIndex + 1} of ${totalStepCount}`,
nextButtonText: 'Next',
previousButtonText: 'Previous',
finishButtonText: 'Finish',
labelDismissAnnotation: 'hide annotation',
};
export enum HotspotIds {
ADD_TOP_UP_BALANCE = 'billing-top-up-balance',
PAYMENT_CONTINUE_BUTTON = 'billing-payment-continue-button',
CONFIGURE_CLI_COMMAND = 'configure-cli-command',
CREATE_FIRST_PROJECT = 'create-first-project',
}
export const BILLING_TUTORIAL: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Set up billing',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
If you plan to use the GPU marketplace, top up your balance with a credit card.
</Box>
</>
),
completedScreenDescription: 'TBA',
tasks: [
{
title: 'Add payment method',
steps: [
{
title: 'Click Top up balance button',
content: 'Click Top up balance button',
hotspotId: HotspotIds.ADD_TOP_UP_BALANCE,
},
{
title: 'Click continue',
content: 'Please, click continue',
hotspotId: HotspotIds.PAYMENT_CONTINUE_BUTTON,
},
],
},
],
};
export const CONFIGURE_CLI_TUTORIAL: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Set up the CLI',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
Configure the CLI on your local machine to submit workload to dstack Sky.
</Box>
</>
),
completedScreenDescription: 'TBA',
tasks: [
{
title: 'Configure the CLI',
steps: [
{
title: 'Run the dstack project add command',
content: 'Run this command on your local machine to configure the dstack CLI.',
hotspotId: HotspotIds.CONFIGURE_CLI_COMMAND,
},
],
},
],
};
export const CREATE_FIRST_PROJECT: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Create a project',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
Create your first project. Choose to use the GPU marketplace or configure your own cloud credentials.
</Box>
</>
),
completedScreenDescription: 'TBA',
tasks: [
{
title: 'Create the first project',
steps: [
{
title: 'Create the first project',
content: 'Create the first project',
hotspotId: HotspotIds.CREATE_FIRST_PROJECT,
},
],
},
],
};
export const JOIN_DISCORD_TUTORIAL: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Community',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
Need help or want to chat with other users of dstack? Join our Discord server!
</Box>
</>
),
completedScreenDescription: 'TBA',
tasks: [],
};
export const QUICKSTART_TUTORIAL: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Quickstart',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
Check out the quickstart guide to get started with dstack
</Box>
</>
),
completedScreenDescription: 'TBA',
tasks: [],
};
export const CREDITS_TUTORIAL: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Get free credits',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
Tell us about your project and get some free credits to try dstack Sky!
</Box>
</>
),
completedScreenDescription: 'TBA',
tasks: [],
};