fix(web): harden clipboard copy and terminal paste flows (#187)

This commit is contained in:
gaius-codius
2026-02-19 08:08:52 +08:00
committed by GitHub
parent c8682047bf
commit 77cfa715f9
7 changed files with 367 additions and 10 deletions
+4
View File
@@ -88,6 +88,7 @@ export default {
'button.close': 'Close',
'button.dismiss': 'Dismiss',
'button.copy': 'Copy',
'button.paste': 'Paste',
// New session form
'newSession.machine': 'Machine',
@@ -136,6 +137,9 @@ export default {
'terminal.commandArgs': 'Command args',
'terminal.stdout': 'Stdout',
'terminal.stderr': 'Stderr',
'terminal.paste.fallbackTitle': 'Paste input',
'terminal.paste.fallbackDescription': 'Clipboard read is unavailable. Paste your text below.',
'terminal.paste.placeholder': 'Paste terminal input here…',
// Code block
'code.copy': 'Copy',
+4
View File
@@ -90,6 +90,7 @@ export default {
'button.close': '关闭',
'button.dismiss': '忽略',
'button.copy': '复制',
'button.paste': '粘贴',
// New session form
'newSession.machine': '机器',
@@ -138,6 +139,9 @@ export default {
'terminal.commandArgs': '命令参数',
'terminal.stdout': '标准输出',
'terminal.stderr': '标准错误',
'terminal.paste.fallbackTitle': '粘贴输入',
'terminal.paste.fallbackDescription': '无法读取剪贴板,请在下方粘贴文本。',
'terminal.paste.placeholder': '在此粘贴终端输入…',
// Code block
'code.copy': '复制',