@aiyiran/myclaw 1.1.53 โ 1.1.55
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/assets/myclaw-inject.js +16 -16
- package/package.json +1 -1
package/assets/myclaw-inject.js
CHANGED
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
bar.style.cssText = [
|
|
39
39
|
"position: fixed",
|
|
40
40
|
"bottom: 8px",
|
|
41
|
-
"right:
|
|
41
|
+
"right: 5px",
|
|
42
42
|
"padding: 3px 10px",
|
|
43
|
-
"background: rgba(
|
|
44
|
-
"color:
|
|
43
|
+
"background: rgba(59, 130, 246, 0.85)",
|
|
44
|
+
"color: #fff",
|
|
45
45
|
"font-size: 11px",
|
|
46
46
|
"font-weight: bold",
|
|
47
47
|
"font-family: monospace",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
bar.textContent = "๐พ v" + MYCLAW_VERSION;
|
|
58
58
|
bar.title = "็นๅปๅ็บง myclaw ๅฐๆๆฐ็ๆฌ";
|
|
59
59
|
|
|
60
|
-
bar.onmouseenter = function () { bar.style.background = "rgba(
|
|
61
|
-
bar.onmouseleave = function () { bar.style.background = "rgba(
|
|
60
|
+
bar.onmouseenter = function () { bar.style.background = "rgba(37, 99, 235, 1)"; bar.style.color = "#fff"; bar.style.transform = "scale(1.05)"; };
|
|
61
|
+
bar.onmouseleave = function () { bar.style.background = "rgba(59, 130, 246, 0.85)"; bar.style.color = "#fff"; bar.style.transform = "scale(1)"; };
|
|
62
62
|
bar.onclick = function (e) {
|
|
63
63
|
e.stopPropagation();
|
|
64
64
|
runCommand("mc up");
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
btn.style.cssText = [
|
|
80
80
|
"position: fixed",
|
|
81
81
|
"bottom: 8px",
|
|
82
|
-
"right:
|
|
82
|
+
"right: 260px",
|
|
83
83
|
"padding: 2px 8px",
|
|
84
84
|
"background: none",
|
|
85
85
|
"color: rgba(150, 150, 150, 0.4)",
|
|
@@ -114,10 +114,10 @@
|
|
|
114
114
|
btn.style.cssText = [
|
|
115
115
|
"position: fixed",
|
|
116
116
|
"bottom: 8px",
|
|
117
|
-
"right:
|
|
117
|
+
"right: 105px",
|
|
118
118
|
"padding: 3px 10px",
|
|
119
|
-
"background: rgba(
|
|
120
|
-
"color:
|
|
119
|
+
"background: rgba(120, 120, 120, 0.18)",
|
|
120
|
+
"color: rgba(170, 170, 170, 0.9)",
|
|
121
121
|
"font-size: 11px",
|
|
122
122
|
"font-weight: bold",
|
|
123
123
|
"font-family: monospace",
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
btn.textContent = "\u2328 CMD";
|
|
132
132
|
btn.title = "\u6253\u5F00\u547D\u4EE4\u884C";
|
|
133
133
|
|
|
134
|
-
btn.onmouseenter = function () { btn.style.background = "rgba(
|
|
135
|
-
btn.onmouseleave = function () { if (!cmdOpen) { btn.style.background = "rgba(
|
|
134
|
+
btn.onmouseenter = function () { btn.style.background = "rgba(120, 120, 120, 0.3)"; btn.style.color = "rgba(220, 220, 220, 0.95)"; btn.style.transform = "scale(1.05)"; };
|
|
135
|
+
btn.onmouseleave = function () { if (!cmdOpen) { btn.style.background = "rgba(120, 120, 120, 0.18)"; btn.style.color = "rgba(170, 170, 170, 0.9)"; } btn.style.transform = "scale(1)"; };
|
|
136
136
|
btn.onclick = function (e) {
|
|
137
137
|
e.stopPropagation();
|
|
138
138
|
if (cmdOpen) {
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
|
|
152
152
|
// ๆ้ฎ active ๆ
|
|
153
153
|
var btn = document.querySelector("#myclaw-cmd-btn");
|
|
154
|
-
if (btn) btn.style.background = "rgba(
|
|
154
|
+
if (btn) { btn.style.background = "rgba(120, 120, 120, 0.3)"; btn.style.color = "rgba(220, 220, 220, 0.95)"; }
|
|
155
155
|
|
|
156
156
|
// ้ฎ็ฝฉ
|
|
157
157
|
var overlay = document.createElement("div");
|
|
@@ -1289,7 +1289,7 @@ btn.addEventListener("click", function () {
|
|
|
1289
1289
|
btn.style.cssText = [
|
|
1290
1290
|
"position: fixed",
|
|
1291
1291
|
"bottom: 8px",
|
|
1292
|
-
"right:
|
|
1292
|
+
"right: 190px",
|
|
1293
1293
|
"padding: 3px 10px",
|
|
1294
1294
|
"background: rgba(16, 185, 129, 0.85)",
|
|
1295
1295
|
"color: #fff",
|
|
@@ -1471,10 +1471,10 @@ btn.addEventListener("click", function () {
|
|
|
1471
1471
|
|
|
1472
1472
|
// โโ ๆ้ฎๅ่กจ โโ
|
|
1473
1473
|
var btns = [
|
|
1474
|
-
{ label: "\uD83D\uDCAC \u6DFB\u52A0\u5BF9\u8BDD", desc: "\u6253\u5F00\u5DF2\u6709\u4F19\u4F34\u7684\u5BF9\u8BDD\u7A97\u53E3", hasInput: true, inputTitle: "\u6DFB\u52A0\u5BF9\u8BDD", placeholder: "\u8F93\u5165\u4F19\u4F34\u540D\u79F0\uFF0C\u5982 kakaxi", hint: "\u8F93\u5165\u4F60\u7684\u4F19\u4F34\u7684\u540D\u79F0\uFF08\u82F1\u6587\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u8FDE\u5B57\u7B26\uFF09\uFF0C\u70B9\u51FB\u540E\u4F1A\u6253\u5F00\u5BF9\u8BDD\u7A97\u53E3", cmd: "mc tui {name}", color: "#10b981" },
|
|
1475
|
-
{ label: "\uD83D\uDE80 \u5347\u7EA7", desc: "\u5347\u7EA7 myclaw \u5230\u6700\u65B0\u7248\u672C", hasInput: false, cmd: "mc up", color: "#8b5cf6" },
|
|
1476
|
-
{ label: "\uD83D\uDD04 \u91CD\u542F", desc: "\u91CD\u542F\u670D\u52A1\uFF0C\u4FEE\u590D\u5927\u591A\u6570\u95EE\u9898", hasInput: false, cmd: "mc all", color: "#ef4444" },
|
|
1477
1474
|
{ label: "\uD83E\uDD1D \u65B0\u4F19\u4F34", desc: "\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 AI \u4F19\u4F34", hasInput: true, inputTitle: "\u65B0\u5EFA\u4F19\u4F34", placeholder: "\u8F93\u5165\u65B0\u4F19\u4F34\u540D\u79F0\uFF0C\u5982 my-cat", hint: "\u7ED9\u4F60\u7684\u65B0 AI \u4F19\u4F34\u8D77\u4E2A\u540D\u5B57\uFF08\u82F1\u6587\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u8FDE\u5B57\u7B26\uFF09\uFF0C\u70B9\u51FB\u540E\u4F1A\u81EA\u52A8\u521B\u5EFA", cmd: "mc new {name}", color: "#3b82f6" },
|
|
1475
|
+
{ label: "\uD83D\uDCAC \u6DFB\u52A0\u5BF9\u8BDD", desc: "\u6253\u5F00\u5DF2\u6709\u4F19\u4F34\u7684\u5BF9\u8BDD\u7A97\u53E3", hasInput: true, inputTitle: "\u6DFB\u52A0\u5BF9\u8BDD", placeholder: "\u8F93\u5165\u4F19\u4F34\u540D\u79F0\uFF0C\u5982 kakaxi", hint: "\u8F93\u5165\u4F60\u7684\u4F19\u4F34\u7684\u540D\u79F0\uFF08\u82F1\u6587\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u8FDE\u5B57\u7B26\uFF09\uFF0C\u70B9\u51FB\u540E\u4F1A\u6253\u5F00\u5BF9\u8BDD\u7A97\u53E3", cmd: "mc tui {name}", color: "#10b981" },
|
|
1476
|
+
{ label: "\uD83D\uDD04 \u91CD\u542F\u670D\u52A1", desc: "\u91CD\u542F\u670D\u52A1\uFF0C\u4FEE\u590D\u5927\u591A\u6570\u95EE\u9898", hasInput: false, cmd: "mc all", color: "#ef4444" },
|
|
1477
|
+
{ label: "\uD83E\uDD9E \u91CD\u542F\u9F99\u867E", desc: "\u91CD\u542F OpenClaw \u6838\u5FC3\u670D\u52A1", hasInput: false, cmd: "mc server", color: "#f59e0b" },
|
|
1478
1478
|
];
|
|
1479
1479
|
|
|
1480
1480
|
btns.forEach(function (item) {
|