mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
load default examples without lazy loading
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-openapi': patch
|
||||
---
|
||||
|
||||
load default examples without lazy loading
|
||||
@@ -12,33 +12,7 @@ import {
|
||||
type RawRequestData,
|
||||
type RequestData,
|
||||
} from '@/requests/_shared';
|
||||
|
||||
const defaultSamples: CodeSample[] = [
|
||||
{
|
||||
label: 'cURL',
|
||||
lang: 'bash',
|
||||
},
|
||||
{
|
||||
label: 'JavaScript',
|
||||
lang: 'js',
|
||||
},
|
||||
{
|
||||
label: 'Go',
|
||||
lang: 'go',
|
||||
},
|
||||
{
|
||||
label: 'Python',
|
||||
lang: 'python',
|
||||
},
|
||||
{
|
||||
label: 'Java',
|
||||
lang: 'java',
|
||||
},
|
||||
{
|
||||
label: 'C#',
|
||||
lang: 'csharp',
|
||||
},
|
||||
];
|
||||
import { defaultSamples } from '@/requests';
|
||||
|
||||
interface CustomProperty {
|
||||
'x-codeSamples'?: CodeSample[];
|
||||
|
||||
Reference in New Issue
Block a user