mirror of
https://github.com/penpot/penpot.git
synced 2026-03-29 15:52:17 +02:00
🌐 Differentiate MCP key copy from access token copy (#8786)
This commit is contained in:
@@ -88,7 +88,9 @@
|
||||
(clipboard/to-clipboard (:token token-created))
|
||||
(st/emit! (ntf/show {:level :info
|
||||
:type :toast
|
||||
:content (tr "integrations.notification.success.copied")
|
||||
:content (if mcp-key?
|
||||
(tr "integrations.notification.success.mcp-key-copied")
|
||||
(tr "integrations.notification.success.token-copied"))
|
||||
:timeout notification-timeout}))))]
|
||||
|
||||
[:div {:class (stl/css :modal-form)}
|
||||
@@ -102,7 +104,9 @@
|
||||
[:> text* {:as "div"
|
||||
:typography t/body-small
|
||||
:class (stl/css :color-primary)}
|
||||
(tr "integrations.info.non-recuperable")]]
|
||||
(if mcp-key?
|
||||
(tr "integrations.mcp-key.info.non-recuperable")
|
||||
(tr "integrations.token.info.non-recuperable"))]]
|
||||
|
||||
[:div {:class (stl/css :modal-content)}
|
||||
[:> input-copy* {:value (:token token-created "")
|
||||
@@ -112,8 +116,12 @@
|
||||
:typography t/body-small
|
||||
:class (stl/css :color-secondary)}
|
||||
(if (:expires-at token-created)
|
||||
(tr "integrations.token-will-expire" (ct/format-inst (:expires-at token-created) "PPP"))
|
||||
(tr "integrations.token-will-not-expire"))]]
|
||||
(if mcp-key?
|
||||
(tr "integrations.mcp-key.will-expire" (ct/format-inst (:expires-at token-created) "PPP"))
|
||||
(tr "integrations.token.will-expire" (ct/format-inst (:expires-at token-created) "PPP")))
|
||||
(if mcp-key?
|
||||
(tr "integrations.mcp-key.will-not-expire")
|
||||
(tr "integrations.token.will-not-expire")))]]
|
||||
|
||||
(when mcp-key?
|
||||
[:div {:class (stl/css :modal-content)}
|
||||
|
||||
@@ -2191,9 +2191,14 @@ msgid "integrations.info.mcp-server"
|
||||
msgstr "The Penpot MCP Server enables MCP clients to interact directly with Penpot design files."
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:131
|
||||
msgid "integrations.info.non-recuperable"
|
||||
msgid "integrations.token.info.non-recuperable"
|
||||
msgstr "This unique token is non-recuperable. If you lose it, you will need to create a new one."
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:131
|
||||
#: src/app/main/ui/settings/integrations.cljs:131
|
||||
msgid "integrations.mcp-key.info.non-recuperable"
|
||||
msgstr "This unique MCP key is non-recoverable. If you lose it, you will need to create a new one."
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:336
|
||||
msgid "integrations.mcp-server.title"
|
||||
msgstr "MCP Server"
|
||||
@@ -2259,9 +2264,14 @@ msgid "integrations.name.placeholder"
|
||||
msgstr "The name can help to know what's the token for"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:103
|
||||
msgid "integrations.notification.success.copied"
|
||||
msgid "integrations.notification.success.token-copied"
|
||||
msgstr "Copied token"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:103
|
||||
#: src/app/main/ui/settings/integrations.cljs:103
|
||||
msgid "integrations.notification.success.mcp-key-copied"
|
||||
msgstr "MCP key copied"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:64
|
||||
msgid "integrations.notification.success.created"
|
||||
msgstr "Token created successfully"
|
||||
@@ -2280,7 +2290,7 @@ msgstr "MCP server enabled"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:317
|
||||
msgid "integrations.regenerate-mcp-key.info"
|
||||
msgstr "Regenerating the key will immediately revoke the current one. Any application using it will stop working."
|
||||
msgstr "Regenerating the MCP key will immediately revoke the current one. Any application using it will stop working."
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:317
|
||||
msgid "integrations.regenerate-mcp-key.title"
|
||||
@@ -2295,13 +2305,23 @@ msgid "integrations.title"
|
||||
msgstr "Integrations"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:142
|
||||
msgid "integrations.token-will-expire"
|
||||
msgid "integrations.token.will-expire"
|
||||
msgstr "The token will expire on %s"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:142
|
||||
#: src/app/main/ui/settings/integrations.cljs:142
|
||||
msgid "integrations.mcp-key.will-expire"
|
||||
msgstr "The MCP key will expire on %s"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:143
|
||||
msgid "integrations.token-will-not-expire"
|
||||
msgid "integrations.token.will-not-expire"
|
||||
msgstr "The token has no expiration date"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:143
|
||||
#: src/app/main/ui/settings/integrations.cljs:143
|
||||
msgid "integrations.mcp-key.will-not-expire"
|
||||
msgstr "The MCP key has no expiration date"
|
||||
|
||||
#: src/app/main/ui/dashboard/comments.cljs:96
|
||||
msgid "label.mark-all-as-read"
|
||||
msgstr "Mark all as read"
|
||||
|
||||
@@ -2144,9 +2144,14 @@ msgid "integrations.info.mcp-server"
|
||||
msgstr "El servidor MCP de Penpot permite a los clientes MCP interactuar directamente con los archivos de diseño de Penpot."
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:131
|
||||
msgid "integrations.info.non-recuperable"
|
||||
msgid "integrations.token.info.non-recuperable"
|
||||
msgstr "Esta clave única no es recuperable. Si la pierdes, tendrás que crear una nueva."
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:131
|
||||
#: src/app/main/ui/settings/integrations.cljs:131
|
||||
msgid "integrations.mcp-key.info.non-recuperable"
|
||||
msgstr "Esta clave MCP única no es recuperable. Si la pierdes, tendrás que crear una nueva."
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:336
|
||||
msgid "integrations.mcp-server.title"
|
||||
msgstr "Servidor MCP"
|
||||
@@ -2212,9 +2217,14 @@ msgid "integrations.name.placeholder"
|
||||
msgstr "El nombre te pude ayudar a saber para qué se utiliza el token"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:103
|
||||
msgid "integrations.notification.success.copied"
|
||||
msgid "integrations.notification.success.token-copied"
|
||||
msgstr "Token copiado"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:103
|
||||
#: src/app/main/ui/settings/integrations.cljs:103
|
||||
msgid "integrations.notification.success.mcp-key-copied"
|
||||
msgstr "Clave MCP copiada"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:64
|
||||
msgid "integrations.notification.success.created"
|
||||
msgstr "Token creado con éxito"
|
||||
@@ -2233,7 +2243,7 @@ msgstr "Servidor MCP habilitado"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:317
|
||||
msgid "integrations.regenerate-mcp-key.info"
|
||||
msgstr "Regenerar la clave revocará inmediatamente la actual. Cualquier aplicación que la esté utilizando dejará de funcionar."
|
||||
msgstr "Regenerar la clave MCP revocará inmediatamente la actual. Cualquier aplicación que la esté utilizando dejará de funcionar."
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:317
|
||||
msgid "integrations.regenerate-mcp-key.title"
|
||||
@@ -2248,13 +2258,23 @@ msgid "integrations.title"
|
||||
msgstr "Integraciones"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:142
|
||||
msgid "integrations.token-will-expire"
|
||||
msgid "integrations.token.will-expire"
|
||||
msgstr "El token expirará el %s"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:142
|
||||
#: src/app/main/ui/settings/integrations.cljs:142
|
||||
msgid "integrations.mcp-key.will-expire"
|
||||
msgstr "La clave MCP expirará el %s"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:143
|
||||
msgid "integrations.token-will-not-expire"
|
||||
msgid "integrations.token.will-not-expire"
|
||||
msgstr "El token no tiene fecha de expiración"
|
||||
|
||||
#: src/app/main/ui/settings/integrations.cljs:143
|
||||
#: src/app/main/ui/settings/integrations.cljs:143
|
||||
msgid "integrations.mcp-key.will-not-expire"
|
||||
msgstr "La clave MCP no tiene fecha de expiración"
|
||||
|
||||
#: src/app/main/ui/dashboard/comments.cljs:96
|
||||
msgid "label.mark-all-as-read"
|
||||
msgstr "Marcar todo como leído"
|
||||
|
||||
Reference in New Issue
Block a user