Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
769be131
Unverified
Commit
769be131
authored
Feb 23, 2024
by
Joel
Committed by
GitHub
Feb 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add api key and value placeholder (#2538)
parent
e4217524
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
config-credentials.tsx
...tools/edit-custom-collection-modal/config-credentials.tsx
+6
-2
tools.en.ts
web/i18n/lang/tools.en.ts
+2
-0
tools.zh.ts
web/i18n/lang/tools.zh.ts
+2
-0
No files found.
web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx
View file @
769be131
...
...
@@ -79,7 +79,9 @@ const ConfigCredential: FC<Props> = ({
<
input
value=
{
tempCredential
.
api_key_header
}
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
>
...
...
@@ -87,7 +89,9 @@ const ConfigCredential: FC<Props> = ({
<
input
value=
{
tempCredential
.
api_key_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
>
</>)
}
...
...
web/i18n/lang/tools.en.ts
View file @
769be131
...
...
@@ -54,6 +54,8 @@ const translation = {
types
:
{
none
:
'None'
,
api_key
:
'API Key'
,
apiKeyPlaceholder
:
'HTTP header name for API Key'
,
apiValuePlaceholder
:
'Enter API Key'
,
},
key
:
'Key'
,
value
:
'Value'
,
...
...
web/i18n/lang/tools.zh.ts
View file @
769be131
...
...
@@ -54,6 +54,8 @@ const translation = {
types
:
{
none
:
'无'
,
api_key
:
'API Key'
,
apiKeyPlaceholder
:
'HTTP 头部名称,用于传递 API Key'
,
apiValuePlaceholder
:
'输入 API Key'
,
},
key
:
'键'
,
value
:
'值'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment