forked from npm/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshared.js
345 lines (340 loc) · 11.6 KB
/
shared.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
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
import React from 'react'
import {Link, Screenshot, ul as Ul} from './mdx'
const shared = {
/* User login */
'user-login': {
text: (
<>
On the npm "<Link href="https://www.npmjs.com/login">Sign In</Link>" page, enter your account details and click{' '}
<strong>Sign In</strong>.
</>
),
image: <Screenshot src="/shared/user-login.png" alt="Screenshot of npm login dialog" />,
},
'contact-support': {
text: <Link href="https://www.npmjs.com/support">contact npm Support</Link>,
},
'contact-enterprise-support': {
text: <Link href="mailto:enterprise@npmjs.com">contact Enterprise Support</Link>,
},
'profile-settings': {
text: (
<>
In the upper right corner of the page, click your profile picture, then click <strong>Profile Settings</strong>.
</>
),
image: (
<Screenshot src="/shared/profile-settings.png" alt="Screenshot of profile settings selection in user menu" />
),
},
'account-settings': {
text: (
<>
In the upper right corner of the page, click your profile picture, then click <strong>Account</strong>.
</>
),
image: (
<Screenshot src="/shared/account-settings.png" alt="Screenshot of account settings selection in user menu" />
),
},
'start-account-recovery': {
text: (
<>
On the "Request an Account Recovery" page, click <strong>Start Account Recovery</strong>.
</>
),
image: (
<Screenshot
src="/getting-started/setting-up-your-npm-user-account/request-account-recovery.png"
alt="Screenshot showing account recovery page"
/>
),
},
'use-recovery-code': {
text: (
<>
On the "Two-Factor Authentication" page, click <strong>Use a recovery code or request a reset</strong>.
</>
),
image: (
<Screenshot
src="/getting-started/setting-up-your-npm-user-account/recovery-code-link.png"
alt="Screenshot showing Security Key prompt with a link to navigate to the recovery code input screen"
/>
),
},
'support-ticket-form': {
text: <>In the "Open a Support Ticket" form, enter the following information:</>,
},
'enter-email-address': {
text: (
<>
In the <strong>Email</strong> field, enter an email address where our support team can contact you.
</>
),
},
'support-ticket-other': {
text: (
<>
If you need help with anything else, in the <strong>How can we help?</strong> section, select{' '}
<strong>Other</strong> and enter more information in the <strong>Additional Details</strong> field.
</>
),
},
'connect-to-accounts': {
text: (
<Ul>
<li>
If you have previously linked a GitHub account to your npm account, select <strong>Connect to GitHub</strong>.
This will help our support team verify your account.
</li>
<li>
If you have previously linked a Twitter account to your npm account, select{' '}
<strong>Connect to Twitter</strong>. This will help our support team verify your account.
</li>
</Ul>
),
},
'submit-support-ticket': {
text: (
<>
At the bottom of the form, click <strong>Submit Support Ticket</strong>.
</>
),
},
/* Billing */
'billing-creditcard-form': {
text: (
<>
In the credit card information dialog box, enter your credit card information:
<Ul>
<li>Card number</li>
<li>MM / YY: the month and year of the card expiration date</li>
<li>CVC: the three-digit code on the credit card</li>
</Ul>
</>
),
image: <Screenshot src="/shared/billing-creditcard-form.png" alt="Screenshot of the credit card form" />,
},
'billing-downgrade-selection': {
text: (
<>
Under "change plan", click <strong>Downgrade Plan</strong>.
</>
),
image: <Screenshot src="/shared/billing-downgrade-selection.png" alt="Screenshot of the downgrade plan button" />,
},
'billing-downgrade-confirm': {
text: (
<>
Under "Are you sure?", click <strong>Downgrade to a free account</strong>.
</>
),
image: (
<Screenshot src="/shared/billing-downgrade-confirm.png" alt="Screenshot of the downgrade plan confirmation" />
),
},
'billing-download': {
text: (
<>
To download a single receipt, find the row of the receipt you want to download, then click the PDF icon on the
right side of the row.
</>
),
image: <Screenshot src="/shared/billing-download-icon.png" alt="Screenshot of the download receipt icon" />,
},
'billing-download-checked': {
text: (
<>
To download multiple receipts, first select the receipts that you wish to download by selecting the box next to
the date. To select all receipts, select the checkbox next to the "Date" header. Then click{' '}
<strong>Download Checked</strong>.
</>
),
image: <Screenshot src="/shared/billing-download-checked.png" alt="Screenshot of the download checked option" />,
},
'billing-email': {
text: (
<>
To email a single receipt, find the row of the receipt you want to download, then, on the right side of the row,
click the email icon.
</>
),
image: <Screenshot src="/shared/billing-email-icon.png" alt="Screenshot of the email receipt icon" />,
},
'billing-email-checked': {
text: (
<>
To email multiple receipts, first select the receipts that you wish to download by selecting the box next to the
date. To select all receipts, select the checkbox next to the "Date" header. Then click{' '}
<strong>Email Checked</strong>.
</>
),
image: <Screenshot src="/shared/billing-email-checked.png" alt="Screenshot of the email checked receipt icon" />,
},
'billing-email-receipt': {
text: <>In the Email Receipt dialog box, fill in the "From", "To", and "Message" fields.</>,
image: <Screenshot src="/shared/billing-email-receipt.png" alt="Screenshot of the email receipt dialog" />,
},
'billing-extra-info': {
text: (
<>
To add a business name, VAT number, address of record, or other information to your receipts, in the "Extra
Billing Information" text box, type the information.
</>
),
image: <Screenshot src="/shared/billing-extra-info.png" alt="Screenshot of the extra billing info dialog" />,
},
'billing-extra-receipt-email': {
text: (
<>
To update the email address used for receipts, beside "Send my receipts", select the checkbox and type the email
address that should receive billing receipts.
</>
),
image: (
<Screenshot src="/shared/billing-extra-receipt-email.png" alt="Screenshot of billing receipt email settings" />
),
},
'billing-extra-save': {
text: (
<>
Click <strong>Save</strong>.
</>
),
image: <Screenshot src="/shared/billing-extra-save.png" alt="Screenshot of billing extra info save button" />,
},
'billing-form': {
text: (
<>
In the billing information dialog box, enter your billing information:
<Ul>
<li>Email: the email address used for the billing contact</li>
<li>Name: the name on the credit card used to pay</li>
<li>Street, City, ZIP Code, Country: the billing address associated with the credit card</li>
</Ul>
</>
),
image: <Screenshot src="/shared/billing-form.png" alt="Screenshot of billing form" />,
},
'billing-history': {
text: (
<>
On the Billing Information page, under "monthly bill", select <strong>View Billing History</strong>.
</>
),
image: <Screenshot src="/shared/billing-history.png" alt="Screenshot of billing history selection in user menu" />,
},
'billing-info': {
text: (
<>
In the upper right corner of the page, click your profile picture, then select <strong>Billing Info</strong>.
</>
),
image: <Screenshot src="/shared/billing-info.png" alt="Screenshot of billing info selection in user menu" />,
},
'billing-receipt-settings': {
text: <>At the bottom of the Billing History dialog box, click "Receipt Settings".</>,
image: <Screenshot src="/shared/billing-receipt-settings.png" alt="Screenshot of billing receipt settings" />,
},
'billing-update-card': {
text: (
<>
Click <strong>Update Card</strong>.
</>
),
image: (
<Screenshot src="/shared/billing-update-card.png" alt="Screenshot of update credit card confirmation button" />
),
},
'billing-view': {
text: (
<>
To view a single receipt, find the row of the receipt you want to view, then, on the right side of the row,
click the view icon.
</>
),
image: <Screenshot src="/shared/billing-view-icon.png" alt="Screenshot of the view receipt icon" />,
},
'grace-period': {
text: 'nine days',
},
'payment-info-button': {
text: (
<>
Click <strong>Payment Info</strong>.
</>
),
image: <Screenshot src="/shared/payment-info-button.png" alt="Screenshot of payment information button" />,
},
'payment-remember-me': {
text: <>To save your credit card information for other payments on npm, select "Remember me".</>,
image: <Screenshot src="/shared/payment-remember-me.png" alt="Screenshot of payment remember me button" />,
},
'payment-info': {
text: (
<>
Under "monthly bill", click <strong>Edit Payment Info</strong>.
</>
),
image: <Screenshot src="/shared/payment-info.png" alt="Screenshot of edit payment info link" />,
},
'billing-price-teams': {
text: <>$7 per member per month</>,
},
'billing-organization-plans': {
image: (
<Screenshot src="/shared/billing-plan-selection.png" alt="Screenshot showing the billing plan selection dialog" />
),
},
/* Package management */
'organization-package-public': {
image: <Screenshot src="/shared/organization-package-public.png" alt="Screenshot of a public npm Teams package" />,
},
'organization-package-private': {
image: (
<Screenshot src="/shared/organization-package-private.png" alt="Screenshot of a private npm Teams package" />
),
},
/* Organizations */
'organization-create': {
text: (
<>
In the upper right corner of the page, click your profile picture, then click{' '}
<strong>Add an Organization</strong>.
</>
),
image: (
<Screenshot src="/shared/organization-create.png" alt="Screenshot of the add an organization dropdown menu" />
),
},
'organization-selection': {
text: <>In the left sidebar, click the name of your organization.</>,
image: <Screenshot src="/shared/organization-selection.png" alt="Screenshot of a selected organization" />,
},
'organization-billing-tab': {
text: (
<>
On the organization settings page, click <strong>Billing</strong>.
</>
),
image: <Screenshot src="/shared/organization-billing-tab.png" alt="Screenshot of the organization billing tab" />,
},
'organization-members-tab': {
text: (
<>
On the organization settings page, click <strong>Members</strong>.
</>
),
image: <Screenshot src="/shared/organization-members-tab.png" alt="Screenshot of the organization members tab" />,
},
'organization-teams-tab': {
text: (
<>
On the organization settings page, click <strong>Teams</strong>.
</>
),
image: <Screenshot src="/shared/organization-teams-tab.png" alt="Screenshot of the organization teams tab" />,
},
}
export default shared