- {/* Port Configuration */}
- {!apiServerRunning && (
-
- {t('apiServer.fields.port.label')}
- handlePortChange(e.target.value)}
- style={{ width: 100 }}
- min={1000}
- max={65535}
- disabled={apiServerRunning}
- placeholder="23333"
- size="small"
- />
- {apiServerRunning && (
-
- {t('apiServer.fields.port.helpText')}
-
- )}
-
- )}
-
- {/* API Key Configuration */}
-
-
{t('apiServer.fields.apiKey.label')}
-
-
-
- } onClick={copyApiKey} disabled={!apiServerConfig.apiKey} size="small">
- {t('apiServer.actions.copy')}
-
-
- {!apiServerRunning && (
-
- )}
-
-
-
- {/* Authorization header info */}
-
- {t('apiServer.authHeaderText')}{' '}
-
- Bearer {apiServerConfig.apiKey || 'your-api-key'}
-
-
-
-