Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
konfig-bot committed Oct 25, 2023
1 parent ad663bf commit 7587234
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ export function OperationFormGeneratedCode(args: CodeGeneratorConstructorArgs) {
}
return (
<Tabs variant="outline" onTabChange={setActiveTab as any} value={activeTab}>
<Tabs.List>
<Tabs.Tab value="ts" icon={<TsIcon width="1rem" height="1rem" />}>
TypeScript
</Tabs.Tab>
<Tabs.Tab value="py" icon={<PythonIcon width="1rem" height="1rem" />}>
Python
</Tabs.Tab>
</Tabs.List>
<Tabs.Panel value="ts">
<Prism {...styles} language="typescript">
{data}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ import { CodeGeneratorTypeScript } from '../utils/code-generator-typescript'
import { ExecuteOutput } from './ExecuteOutput'
import { tryJsonOutput } from '../utils/try-json-output'
import { tryTableOutput } from '../utils/try-table-output'
import { IconAlertCircle, IconTerminal } from '@tabler/icons-react'
import {
IconAlertCircle,
IconPlayerPlay,
IconPlayerPlayFilled,
IconPlayerRecord,
IconRepeat,
IconTerminal,
IconUpload,
} from '@tabler/icons-react'
import { deepmerge } from '../utils/deepmerge'
import { notifications } from '@mantine/notifications'
import localforage from 'localforage'
Expand Down Expand Up @@ -213,7 +221,8 @@ export function OperationReferenceMain({
}

const header = operation.operation.summary ?? operation.path

const RequestIcon =
result?.data !== undefined ? IconRepeat : IconPlayerPlayFilled
return (
<FormProvider form={form}>
<form
Expand Down Expand Up @@ -373,9 +382,9 @@ export function OperationReferenceMain({
variant={colorScheme === 'dark' ? 'light' : 'filled'}
type="submit"
loading={requestInProgress}
leftIcon={<IconTerminal size="1rem" />}
rightIcon={<RequestIcon size="0.8rem" />}
>
Request API
Send request
</Button>
{result?.data != null && (
<Paper shadow="sm" radius="xs" p={0} withBorder>
Expand Down

0 comments on commit 7587234

Please sign in to comment.