Compare commits
3
Commits
51bd769d6e
...
v0.19.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3714205dab | ||
|
|
4818523b29 | ||
|
|
6f52873b69 |
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "mrterm",
|
"name": "mrterm",
|
||||||
"version": "0.19.0",
|
"version": "0.19.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "mrterm",
|
"name": "mrterm",
|
||||||
"version": "0.19.0",
|
"version": "0.19.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@xterm/addon-fit": "^0.11.0",
|
"@xterm/addon-fit": "^0.11.0",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "mrterm",
|
"name": "mrterm",
|
||||||
"productName": "MrTerm",
|
"productName": "MrTerm",
|
||||||
"version": "0.19.0",
|
"version": "0.19.1",
|
||||||
"description": "Moderner SSH-, SFTP- und RDP-Client",
|
"description": "Moderner SSH-, SFTP- und RDP-Client",
|
||||||
"main": "src/main/main.js",
|
"main": "src/main/main.js",
|
||||||
"author": "MrBlake",
|
"author": "MrBlake",
|
||||||
|
|||||||
+3
-2
@@ -1887,7 +1887,8 @@ function initAi() {
|
|||||||
AI.chat = aiChats().find((c) => c.id === e.target.value) || null;
|
AI.chat = aiChats().find((c) => c.id === e.target.value) || null;
|
||||||
aiRender();
|
aiRender();
|
||||||
};
|
};
|
||||||
p.addEventListener('click', async (e) => {
|
// onclick statt addEventListener: initAi() läuft bei jedem reload(), sonst doppelte Handler (z. B. zwei Löschdialoge)
|
||||||
|
p.onclick = async (e) => {
|
||||||
const a = e.target.closest('[data-ai]')?.dataset.ai;
|
const a = e.target.closest('[data-ai]')?.dataset.ai;
|
||||||
if (a === 'new') { if (AI.busy) api.call('ai:stop', AI.chat?.id); AI.chat = null; aiRender(); ta.focus(); }
|
if (a === 'new') { if (AI.busy) api.call('ai:stop', AI.chat?.id); AI.chat = null; aiRender(); ta.focus(); }
|
||||||
if (a === 'del' && AI.chat && await confirmBox(T('Delete chat?'), `“${AI.chat.title}”`, T('Delete'))) {
|
if (a === 'del' && AI.chat && await confirmBox(T('Delete chat?'), `“${AI.chat.title}”`, T('Delete'))) {
|
||||||
@@ -1907,7 +1908,7 @@ function initAi() {
|
|||||||
// Nur einfügen, nicht ausführen – der Nutzer prüft und bestätigt mit Enter
|
// Nur einfügen, nicht ausführen – der Nutzer prüft und bestätigt mit Enter
|
||||||
if (b.dataset.cmd === 'paste' && t?.kind === 'ssh') { t.term.paste(code); t.term.focus(); }
|
if (b.dataset.cmd === 'paste' && t?.kind === 'ssh') { t.term.paste(code); t.term.focus(); }
|
||||||
else { api.call('clipboard:write', code); toast(b.dataset.cmd === 'paste' ? T('Copied – no terminal tab is active') : T('Copied')); }
|
else { api.call('clipboard:write', code); toast(b.dataset.cmd === 'paste' ? T('Copied – no terminal tab is active') : T('Copied')); }
|
||||||
});
|
};
|
||||||
if ($('#aiPanel').classList.contains('open')) aiRender();
|
if ($('#aiPanel').classList.contains('open')) aiRender();
|
||||||
if (AI.init) return;
|
if (AI.init) return;
|
||||||
AI.init = true;
|
AI.init = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user