Unverified Commit 769be131 authored by Joel's avatar Joel Committed by GitHub

chore: add api key and value placeholder (#2538)

parent e4217524
...@@ -79,7 +79,9 @@ const ConfigCredential: FC<Props> = ({ ...@@ -79,7 +79,9 @@ const ConfigCredential: FC<Props> = ({
<input <input
value={tempCredential.api_key_header} value={tempCredential.api_key_header}
onChange={e => setTempCredential({ ...tempCredential, api_key_header: e.target.value })} onChange={e => setTempCredential({ ...tempCredential, api_key_header: e.target.value })}
className='w-full h-10 px-3 text-sm font-normal bg-gray-100 rounded-lg grow' /> className='w-full h-10 px-3 text-sm font-normal bg-gray-100 rounded-lg grow'
placeholder={t('tools.createTool.authMethod.types.apiKeyPlaceholder')!}
/>
</div> </div>
<div> <div>
...@@ -87,7 +89,9 @@ const ConfigCredential: FC<Props> = ({ ...@@ -87,7 +89,9 @@ const ConfigCredential: FC<Props> = ({
<input <input
value={tempCredential.api_key_value} value={tempCredential.api_key_value}
onChange={e => setTempCredential({ ...tempCredential, api_key_value: e.target.value })} onChange={e => setTempCredential({ ...tempCredential, api_key_value: e.target.value })}
className='w-full h-10 px-3 text-sm font-normal bg-gray-100 rounded-lg grow' /> className='w-full h-10 px-3 text-sm font-normal bg-gray-100 rounded-lg grow'
placeholder={t('tools.createTool.authMethod.types.apiValuePlaceholder')!}
/>
</div> </div>
</>)} </>)}
......
...@@ -54,6 +54,8 @@ const translation = { ...@@ -54,6 +54,8 @@ const translation = {
types: { types: {
none: 'None', none: 'None',
api_key: 'API Key', api_key: 'API Key',
apiKeyPlaceholder: 'HTTP header name for API Key',
apiValuePlaceholder: 'Enter API Key',
}, },
key: 'Key', key: 'Key',
value: 'Value', value: 'Value',
......
...@@ -54,6 +54,8 @@ const translation = { ...@@ -54,6 +54,8 @@ const translation = {
types: { types: {
none: '无', none: '无',
api_key: 'API Key', api_key: 'API Key',
apiKeyPlaceholder: 'HTTP 头部名称,用于传递 API Key',
apiValuePlaceholder: '输入 API Key',
}, },
key: '键', key: '键',
value: '值', value: '值',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment