mirror of https://github.com/langgenius/dify.git
Merge branch 'main' into feat/trigger
This commit is contained in:
commit
3a876fd437
|
|
@ -141,8 +141,8 @@ const MCPModal = ({
|
|||
|
||||
const isValidUrl = (string: string) => {
|
||||
try {
|
||||
const urlPattern = /^(https?:\/\/)((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3})|localhost)(:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?/i
|
||||
return urlPattern.test(string)
|
||||
const url = new URL(string)
|
||||
return url.protocol === 'http:' || url.protocol === 'https:'
|
||||
}
|
||||
catch {
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -205,10 +205,10 @@ const translation = {
|
|||
maskedHeadersTip: 'Vrednosti glave so zakrite zaradi varnosti. Spremembe bodo posodobile dejanske vrednosti.',
|
||||
authentication: 'Avtentikacija',
|
||||
configurations: 'Konfiguracije',
|
||||
clientSecret: 'Skrivnost stranke',
|
||||
clientSecret: 'Skrivnost odjemalca',
|
||||
useDynamicClientRegistration: 'Uporabi dinamično registracijo odjemalca',
|
||||
clientID: 'ID stranke',
|
||||
clientSecretPlaceholder: 'Skrivnost stranke',
|
||||
clientID: 'ID odjemalca',
|
||||
clientSecretPlaceholder: 'Skrivnost odjemalca',
|
||||
},
|
||||
delete: 'Odstrani strežnik MCP',
|
||||
deleteConfirmTitle: 'Odstraniti {mcp}?',
|
||||
|
|
|
|||
Loading…
Reference in New Issue