halbot 1995.1.46 → 1995.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/turn.html +10 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "halbot",
|
|
3
3
|
"description": "Just another AI powered Telegram bot, which is simple design, easy to use, extendable and fun.",
|
|
4
|
-
"version": "1995.1.
|
|
4
|
+
"version": "1995.1.48",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
package/web/turn.html
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
7
|
<title>HAL9000 Chat</title>
|
|
8
|
+
<link rel="icon" type="image/svg+xml"
|
|
9
|
+
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='a' cx='50%25' cy='50%25' r='50%25' fx='50%25' fy='50%25'%3E%3Cstop offset='0%25' stop-color='%23ffeb3b'/%3E%3Cstop offset='20%25' stop-color='%23ff9800'/%3E%3Cstop offset='60%25' stop-color='%23f44336'/%3E%3Cstop offset='100%25' stop-color='%23b71c1c'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23e0e0e0'/%3E%3Cstop offset='50%25' stop-color='%239e9e9e'/%3E%3Cstop offset='100%25' stop-color='%23616161'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='48' fill='url(%23b)' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='42' fill='%23111'/%3E%3Ccircle cx='50' cy='50' r='28' fill='url(%23a)' stroke='%23800000' stroke-width='1'/%3E%3Cellipse cx='60' cy='40' rx='10' ry='6' fill='rgba(255,255,255,0.4)' transform='rotate(-45 60 40)'/%3E%3C/svg%3E">
|
|
8
10
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
9
11
|
<link rel="stylesheet"
|
|
10
12
|
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.6.1/github-markdown-light.min.css">
|
|
@@ -489,6 +491,7 @@
|
|
|
489
491
|
// Set Chat ID from data
|
|
490
492
|
if (chatData.chat_id) {
|
|
491
493
|
chatId.textContent = `Chat ID: ${chatData.chat_id}`;
|
|
494
|
+
document.title = `HAL 9000 Chat: ${chatData.chat_id}`;
|
|
492
495
|
} else {
|
|
493
496
|
chatId.textContent = `Chat ID: UNKNOWN`;
|
|
494
497
|
}
|
|
@@ -594,7 +597,7 @@
|
|
|
594
597
|
btn.textContent = '-';
|
|
595
598
|
|
|
596
599
|
const fullHeight = pre.scrollHeight;
|
|
597
|
-
pre.style.height = '
|
|
600
|
+
pre.style.height = '58px'; // Replaced 60px
|
|
598
601
|
pre.offsetHeight; // Force reflow
|
|
599
602
|
pre.style.height = fullHeight + 'px';
|
|
600
603
|
|
|
@@ -612,7 +615,7 @@
|
|
|
612
615
|
const fullHeight = pre.offsetHeight;
|
|
613
616
|
pre.style.height = fullHeight + 'px';
|
|
614
617
|
pre.offsetHeight; // Force reflow
|
|
615
|
-
pre.style.height = '
|
|
618
|
+
pre.style.height = '58px'; // Replaced 60px
|
|
616
619
|
}
|
|
617
620
|
};
|
|
618
621
|
pre.appendChild(btn);
|
|
@@ -625,6 +628,11 @@
|
|
|
625
628
|
pre.style.wordBreak = 'break-word';
|
|
626
629
|
block.style.whiteSpace = 'pre-wrap';
|
|
627
630
|
block.style.wordBreak = 'break-word';
|
|
631
|
+
|
|
632
|
+
// Default Collapse for think/tools
|
|
633
|
+
pre.classList.add('collapsed');
|
|
634
|
+
pre.style.height = '58px';
|
|
635
|
+
btn.textContent = '+';
|
|
628
636
|
}
|
|
629
637
|
});
|
|
630
638
|
|