소스 검색

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

tags/0.5.7
Joel 1 년 전
부모
커밋
769be13189
No account linked to committer's email address
3개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 6
    2
      web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx
  2. 2
    0
      web/i18n/lang/tools.en.ts
  3. 2
    0
      web/i18n/lang/tools.zh.ts

+ 6
- 2
web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx 파일 보기

<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>
<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>
</>)} </>)}



+ 2
- 0
web/i18n/lang/tools.en.ts 파일 보기

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',

+ 2
- 0
web/i18n/lang/tools.zh.ts 파일 보기

types: { types: {
none: '无', none: '无',
api_key: 'API Key', api_key: 'API Key',
apiKeyPlaceholder: 'HTTP 头部名称,用于传递 API Key',
apiValuePlaceholder: '输入 API Key',
}, },
key: '键', key: '键',
value: '值', value: '值',

Loading…
취소
저장