|
1
|
/** @type {import('types').Sidebar.SidebarItem[]} */ |
|
2
|
export const toolsSidebar = [ |
|
3
|
{ |
|
4
|
type: "link", |
|
5
|
title: "Overview", |
|
6
|
path: "/tools", |
|
7
|
}, |
|
8
|
{ |
|
9
|
type: "category", |
|
10
|
title: "CLI Tools", |
|
11
|
initialOpen: true, |
|
12
|
description: |
|
13
|
"CLI tools help you setup Medusa, manage the database, and more.", |
|
14
|
children: [ |
|
15
|
{ |
|
16
|
type: "link", |
|
17
|
path: "/create-medusa-app", |
|
18
|
title: "create-medusa-app", |
|
19
|
}, |
|
20
|
{ |
|
21
|
type: "sidebar", |
|
22
|
sidebar_id: "medusa-cli", |
|
23
|
title: "Medusa CLI", |
|
24
|
childSidebarTitle: "Medusa CLI Reference", |
|
25
|
initialOpen: true, |
|
26
|
children: [ |
|
27
|
{ |
|
28
|
type: "link", |
|
29
|
path: "/medusa-cli", |
|
30
|
title: "Overview", |
|
31
|
}, |
|
32
|
{ |
|
33
|
type: "separator", |
|
34
|
}, |
|
35
|
{ |
|
36
|
type: "category", |
|
37
|
title: "Commands", |
|
38
|
autogenerate_path: "medusa-cli/commands", |
|
39
|
}, |
|
40
|
], |
|
41
|
}, |
|
42
|
{ |
|
43
|
type: "link", |
|
44
|
path: "/medusa-oas-cli", |
|
45
|
title: "medusa-oas-cli", |
|
46
|
}, |
|
47
|
], |
|
48
|
}, |
|
49
|
{ |
|
50
|
type: "category", |
|
51
|
title: "Developer Tools", |
|
52
|
initialOpen: true, |
|
53
|
description: |
|
54
|
"Developer tools facilitate the development of your Medusa application by providing utilities for linting and other uses.", |
|
55
|
children: [ |
|
56
|
{ |
|
57
|
type: "sidebar", |
|
58
|
sidebar_id: "lint", |
|
59
|
title: "ESLint Plugin", |
|
60
|
childSidebarTitle: "ESLint Plugin Reference", |
|
61
|
initialOpen: true, |
|
62
|
children: [ |
|
63
|
{ |
|
64
|
type: "link", |
|
65
|
path: "/lint", |
|
66
|
title: "Overview", |
|
67
|
}, |
|
68
|
{ |
|
69
|
type: "separator", |
|
70
|
}, |
|
71
|
{ |
|
72
|
type: "category", |
|
73
|
title: "Rules", |
|
74
|
autogenerate_path: "lint/rules", |
|
75
|
initialOpen: true, |
|
76
|
}, |
|
77
|
], |
|
78
|
}, |
|
79
|
], |
|
80
|
}, |
|
81
|
{ |
|
82
|
type: "category", |
|
83
|
title: "SDKs", |
|
84
|
initialOpen: true, |
|
85
|
description: |
|
86
|
"SDKs help you build client applications, such as storefronts or admin dashboards, with Medusa. They're also useful when extending the Medusa Admin with widgets and UI routes.", |
|
87
|
children: [ |
|
88
|
{ |
|
89
|
type: "sidebar", |
|
90
|
sidebar_id: "js-sdk", |
|
91
|
title: "JS SDK", |
|
92
|
childSidebarTitle: "JS SDK Reference", |
|
93
|
children: [ |
|
94
|
{ |
|
95
|
type: "link", |
|
96
|
path: "/js-sdk", |
|
97
|
title: "Overview", |
|
98
|
}, |
|
99
|
{ |
|
100
|
type: "link", |
|
101
|
path: "/js-sdk/auth/overview", |
|
102
|
title: "Authentication", |
|
103
|
}, |
|
104
|
{ |
|
105
|
type: "separator", |
|
106
|
}, |
|
107
|
{ |
|
108
|
type: "category", |
|
109
|
title: "auth Methods", |
|
110
|
autogenerate_path: "/references/js_sdk/auth/Auth/methods", |
|
111
|
}, |
|
112
|
{ |
|
113
|
type: "category", |
|
114
|
title: "store Methods", |
|
115
|
autogenerate_path: "/references/js_sdk/store/Store/properties", |
|
116
|
}, |
|
117
|
{ |
|
118
|
type: "category", |
|
119
|
title: "admin Methods", |
|
120
|
autogenerate_path: "/references/js_sdk/admin/Admin/properties", |
|
121
|
}, |
|
122
|
], |
|
123
|
}, |
|
124
|
{ |
|
125
|
type: "link", |
|
126
|
title: "InstantSearch Adapter", |
|
127
|
childSidebarTitle: "InstantSearch Adapter", |
|
128
|
path: "/instantsearch", |
|
129
|
children: [ |
|
130
|
{ |
|
131
|
type: "link", |
|
132
|
path: "/instantsearch/examples/filtering-sorting-pagination", |
|
133
|
title: "Filtering, Sorting, and Pagination", |
|
134
|
}, |
|
135
|
], |
|
136
|
}, |
|
137
|
{ |
|
138
|
type: "sidebar", |
|
139
|
sidebar_id: "admin-components", |
|
140
|
title: "Medusa Admin Components", |
|
141
|
childSidebarTitle: "Admin Components Reference", |
|
142
|
children: [ |
|
143
|
{ |
|
144
|
type: "link", |
|
145
|
path: "/admin-components", |
|
146
|
title: "Overview", |
|
147
|
}, |
|
148
|
{ |
|
149
|
type: "separator", |
|
150
|
}, |
|
151
|
{ |
|
152
|
type: "category", |
|
153
|
title: "Components", |
|
154
|
children: [ |
|
155
|
{ |
|
156
|
type: "link", |
|
157
|
path: "/admin-components/components", |
|
158
|
title: "Overview", |
|
159
|
}, |
|
160
|
{ |
|
161
|
type: "link", |
|
162
|
path: "/admin-components/components/action-menu", |
|
163
|
title: "Action Menu", |
|
164
|
}, |
|
165
|
{ |
|
166
|
type: "link", |
|
167
|
path: "/admin-components/components/combobox", |
|
168
|
title: "Combobox", |
|
169
|
}, |
|
170
|
{ |
|
171
|
type: "link", |
|
172
|
path: "/admin-components/components/conditional-tooltip", |
|
173
|
title: "Conditional Tooltip", |
|
174
|
}, |
|
175
|
{ |
|
176
|
type: "link", |
|
177
|
path: "/admin-components/components/configurable-data-table", |
|
178
|
title: "Configurable Data Table", |
|
179
|
}, |
|
180
|
{ |
|
181
|
type: "link", |
|
182
|
path: "/admin-components/components/country-select", |
|
183
|
title: "Country Select", |
|
184
|
}, |
|
185
|
{ |
|
186
|
type: "link", |
|
187
|
path: "/admin-components/components/data-grid", |
|
188
|
title: "Data Grid", |
|
189
|
}, |
|
190
|
{ |
|
191
|
type: "link", |
|
192
|
path: "/admin-components/components/display-id", |
|
193
|
title: "Display ID", |
|
194
|
}, |
|
195
|
{ |
|
196
|
type: "link", |
|
197
|
path: "/admin-components/components/empty-states", |
|
198
|
title: "Empty States", |
|
199
|
}, |
|
200
|
{ |
|
201
|
type: "link", |
|
202
|
path: "/admin-components/components/handle-input", |
|
203
|
title: "Handle Input", |
|
204
|
}, |
|
205
|
{ |
|
206
|
type: "link", |
|
207
|
path: "/admin-components/components/icon-avatar", |
|
208
|
title: "Icon Avatar", |
|
209
|
}, |
|
210
|
{ |
|
211
|
type: "link", |
|
212
|
path: "/admin-components/components/json-view-section", |
|
213
|
title: "JSON View Section", |
|
214
|
}, |
|
215
|
{ |
|
216
|
type: "link", |
|
217
|
path: "/admin-components/components/keybound-form", |
|
218
|
title: "Keybound Form", |
|
219
|
}, |
|
220
|
{ |
|
221
|
type: "link", |
|
222
|
path: "/admin-components/components/listicle", |
|
223
|
title: "Listicle", |
|
224
|
}, |
|
225
|
{ |
|
226
|
type: "link", |
|
227
|
path: "/admin-components/components/product-table-cells", |
|
228
|
title: "Product Table Cells", |
|
229
|
}, |
|
230
|
{ |
|
231
|
type: "link", |
|
232
|
path: "/admin-components/components/route-drawer", |
|
233
|
title: "Route Drawer", |
|
234
|
}, |
|
235
|
{ |
|
236
|
type: "link", |
|
237
|
path: "/admin-components/components/route-focus-modal", |
|
238
|
title: "Route Focus Modal", |
|
239
|
}, |
|
240
|
{ |
|
241
|
type: "link", |
|
242
|
path: "/admin-components/components/section-row", |
|
243
|
title: "Section Row", |
|
244
|
}, |
|
245
|
{ |
|
246
|
type: "link", |
|
247
|
path: "/admin-components/components/stacked-drawer", |
|
248
|
title: "Stacked Drawer", |
|
249
|
}, |
|
250
|
{ |
|
251
|
type: "link", |
|
252
|
path: "/admin-components/components/stacked-focus-modal", |
|
253
|
title: "Stacked Focus Modal", |
|
254
|
}, |
|
255
|
{ |
|
256
|
type: "link", |
|
257
|
path: "/admin-components/components/thumbnail", |
|
258
|
title: "Thumbnail", |
|
259
|
}, |
|
260
|
], |
|
261
|
}, |
|
262
|
{ |
|
263
|
type: "category", |
|
264
|
title: "Layouts", |
|
265
|
autogenerate_path: "/admin-components/layouts", |
|
266
|
}, |
|
267
|
{ |
|
268
|
type: "category", |
|
269
|
title: "Hooks", |
|
270
|
children: [ |
|
271
|
{ |
|
272
|
type: "link", |
|
273
|
path: "/admin-components/hooks", |
|
274
|
title: "Overview", |
|
275
|
}, |
|
276
|
{ |
|
277
|
type: "link", |
|
278
|
path: "/admin-components/hooks/customers", |
|
279
|
title: "Customers", |
|
280
|
}, |
|
281
|
{ |
|
282
|
type: "link", |
|
283
|
path: "/admin-components/hooks/data-table-helpers", |
|
284
|
title: "Data Table Hooks", |
|
285
|
}, |
|
286
|
{ |
|
287
|
type: "link", |
|
288
|
path: "/admin-components/hooks/orders", |
|
289
|
title: "Orders", |
|
290
|
}, |
|
291
|
{ |
|
292
|
type: "link", |
|
293
|
path: "/admin-components/hooks/price-preferences", |
|
294
|
title: "Price Preferences", |
|
295
|
}, |
|
296
|
{ |
|
297
|
type: "link", |
|
298
|
path: "/admin-components/hooks/product-variants", |
|
299
|
title: "Product Variants", |
|
300
|
}, |
|
301
|
{ |
|
302
|
type: "link", |
|
303
|
path: "/admin-components/hooks/products", |
|
304
|
title: "Products", |
|
305
|
}, |
|
306
|
{ |
|
307
|
type: "link", |
|
308
|
path: "/admin-components/hooks/promotions", |
|
309
|
title: "Promotions", |
|
310
|
}, |
|
311
|
{ |
|
312
|
type: "link", |
|
313
|
path: "/admin-components/hooks/regions", |
|
314
|
title: "Regions", |
|
315
|
}, |
|
316
|
{ |
|
317
|
type: "link", |
|
318
|
path: "/admin-components/hooks/sales-channels", |
|
319
|
title: "Sales Channels", |
|
320
|
}, |
|
321
|
{ |
|
322
|
type: "link", |
|
323
|
path: "/admin-components/hooks/shipping-options", |
|
324
|
title: "Shipping Options", |
|
325
|
}, |
|
326
|
{ |
|
327
|
type: "link", |
|
328
|
path: "/admin-components/hooks/store", |
|
329
|
title: "Store", |
|
330
|
}, |
|
331
|
{ |
|
332
|
type: "link", |
|
333
|
path: "/admin-components/hooks/use-combobox-data", |
|
334
|
title: "useComboboxData", |
|
335
|
}, |
|
336
|
{ |
|
337
|
type: "link", |
|
338
|
path: "/admin-components/hooks/use-date", |
|
339
|
title: "useDate", |
|
340
|
}, |
|
341
|
{ |
|
342
|
type: "link", |
|
343
|
path: "/admin-components/hooks/use-debounced-search", |
|
344
|
title: "useDebouncedSearch", |
|
345
|
}, |
|
346
|
{ |
|
347
|
type: "link", |
|
348
|
path: "/admin-components/hooks/use-query-params", |
|
349
|
title: "useQueryParams", |
|
350
|
}, |
|
351
|
{ |
|
352
|
type: "link", |
|
353
|
path: "/admin-components/hooks/users", |
|
354
|
title: "Users", |
|
355
|
}, |
|
356
|
], |
|
357
|
}, |
|
358
|
{ |
|
359
|
type: "category", |
|
360
|
title: "Utilities", |
|
361
|
children: [ |
|
362
|
{ |
|
363
|
type: "link", |
|
364
|
path: "/admin-components/utilities", |
|
365
|
title: "Overview", |
|
366
|
}, |
|
367
|
{ |
|
368
|
type: "link", |
|
369
|
path: "/admin-components/utilities/addresses", |
|
370
|
title: "Addresses", |
|
371
|
}, |
|
372
|
{ |
|
373
|
type: "link", |
|
374
|
path: "/admin-components/utilities/form-validation", |
|
375
|
title: "Form Validation", |
|
376
|
}, |
|
377
|
{ |
|
378
|
type: "link", |
|
379
|
path: "/admin-components/utilities/money-and-currency", |
|
380
|
title: "Money & Currency", |
|
381
|
}, |
|
382
|
{ |
|
383
|
type: "link", |
|
384
|
path: "/admin-components/utilities/search", |
|
385
|
title: "Search Entities", |
|
386
|
}, |
|
387
|
{ |
|
388
|
type: "link", |
|
389
|
path: "/admin-components/utilities/table", |
|
390
|
title: "Table Utilities", |
|
391
|
}, |
|
392
|
], |
|
393
|
}, |
|
394
|
{ |
|
395
|
type: "category", |
|
396
|
title: "Guides", |
|
397
|
autogenerate_path: "/admin-components/guides", |
|
398
|
}, |
|
399
|
{ |
|
400
|
type: "category", |
|
401
|
title: "Archive", |
|
402
|
children: [ |
|
403
|
{ |
|
404
|
type: "link", |
|
405
|
path: "/admin-components/archive", |
|
406
|
title: "Overview", |
|
407
|
}, |
|
408
|
{ |
|
409
|
type: "link", |
|
410
|
path: "/admin-components/archive/action-menu", |
|
411
|
title: "Action Menu", |
|
412
|
}, |
|
413
|
{ |
|
414
|
type: "link", |
|
415
|
path: "/admin-components/archive/json-view-section", |
|
416
|
title: "JSON View", |
|
417
|
}, |
|
418
|
{ |
|
419
|
type: "link", |
|
420
|
path: "/admin-components/archive/section-row", |
|
421
|
title: "Section Row", |
|
422
|
}, |
|
423
|
{ |
|
424
|
type: "link", |
|
425
|
path: "/admin-components/archive/single-column-layout", |
|
426
|
title: "Single Column Layout", |
|
427
|
}, |
|
428
|
{ |
|
429
|
type: "link", |
|
430
|
path: "/admin-components/archive/two-column-layout", |
|
431
|
title: "Two Column Layout", |
|
432
|
}, |
|
433
|
], |
|
434
|
}, |
|
435
|
], |
|
436
|
}, |
|
437
|
], |
|
438
|
}, |
|
439
|
{ |
|
440
|
type: "category", |
|
441
|
title: "Storefront Starters", |
|
442
|
initialOpen: true, |
|
443
|
description: |
|
444
|
"A storefront starter is a storefront with the basic commerce features that you can use with your Medusa application. You can use it as-is or build on top of it. Learn more about building a storefront in the [Storefront Development](/storefront-development) documentation.", |
|
445
|
children: [ |
|
446
|
{ |
|
447
|
type: "sidebar", |
|
448
|
sidebar_id: "nextjs-starter", |
|
449
|
title: "Next.js Starter Storefront", |
|
450
|
children: [ |
|
451
|
{ |
|
452
|
type: "link", |
|
453
|
path: "/nextjs-starter", |
|
454
|
title: "Overview", |
|
455
|
}, |
|
456
|
{ |
|
457
|
type: "category", |
|
458
|
title: "How-to Guides", |
|
459
|
initialOpen: true, |
|
460
|
children: [ |
|
461
|
{ |
|
462
|
type: "link", |
|
463
|
path: "/nextjs-starter/guides/revalidate-cache", |
|
464
|
title: "Revalidate Cache", |
|
465
|
}, |
|
466
|
{ |
|
467
|
type: "link", |
|
468
|
path: "/nextjs-starter/guides/remove-country-code", |
|
469
|
title: "Remove Country Code from URLs", |
|
470
|
}, |
|
471
|
], |
|
472
|
}, |
|
473
|
{ |
|
474
|
type: "category", |
|
475
|
title: "Tutorials", |
|
476
|
autogenerate_tags: "nextjs+tutorial", |
|
477
|
autogenerate_as_ref: true, |
|
478
|
sort_sidebar: "alphabetize", |
|
479
|
children: [ |
|
480
|
{ |
|
481
|
type: "link", |
|
482
|
path: "/nextjs-starter/guides/customize-stripe", |
|
483
|
title: "Use Stripe's Payment Element", |
|
484
|
}, |
|
485
|
{ |
|
486
|
type: "link", |
|
487
|
path: "/nextjs-starter/guides/storefront-returns", |
|
488
|
title: "Create Order Returns", |
|
489
|
}, |
|
490
|
], |
|
491
|
}, |
|
492
|
], |
|
493
|
}, |
|
494
|
], |
|
495
|
}, |
|
496
|
{ |
|
497
|
type: "external", |
|
498
|
title: "Medusa UI", |
|
499
|
path: "https://docs.medusajs.com/ui", |
|
500
|
}, |
|
501
|
] |