refac
This commit is contained in:
@@ -449,20 +449,26 @@
|
|||||||
<div class=" text-xs text-gray-500">{$i18n.t('Type')}</div>
|
<div class=" text-xs text-gray-500">{$i18n.t('Type')}</div>
|
||||||
|
|
||||||
<div class="">
|
<div class="">
|
||||||
<button
|
{#if !direct}
|
||||||
on:click={() => {
|
<button
|
||||||
type = ['', 'openapi'].includes(type) ? 'mcp' : 'openapi';
|
on:click={() => {
|
||||||
}}
|
type = ['', 'openapi'].includes(type) ? 'mcp' : 'openapi';
|
||||||
type="button"
|
}}
|
||||||
class=" text-xs text-gray-700 dark:text-gray-300"
|
type="button"
|
||||||
>
|
class=" text-xs text-gray-700 dark:text-gray-300"
|
||||||
{#if ['', 'openapi'].includes(type)}
|
>
|
||||||
|
{#if ['', 'openapi'].includes(type)}
|
||||||
|
{$i18n.t('OpenAPI')}
|
||||||
|
{:else if type === 'mcp'}
|
||||||
|
{$i18n.t('MCP')}
|
||||||
|
<span class="text-gray-500">{$i18n.t('Streamable HTTP')}</span>
|
||||||
|
{/if}
|
||||||
|
</button>
|
||||||
|
{:else}
|
||||||
|
<div class="text-xs text-gray-700 dark:text-gray-300">
|
||||||
{$i18n.t('OpenAPI')}
|
{$i18n.t('OpenAPI')}
|
||||||
{:else if type === 'mcp'}
|
</div>
|
||||||
{$i18n.t('MCP')}
|
{/if}
|
||||||
<span class="text-gray-500">{$i18n.t('Streamable HTTP')}</span>
|
|
||||||
{/if}
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user