@co0ontty/wand 1.43.6 → 1.43.7
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/dist/build-info.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
3
|
-
"builtAt": "2026-05-31T08:
|
|
4
|
-
"version": "1.43.
|
|
2
|
+
"commit": "e30a59c36bbf6143ba83af70d01db35a7fb449b3",
|
|
3
|
+
"builtAt": "2026-05-31T08:35:33.496Z",
|
|
4
|
+
"version": "1.43.7",
|
|
5
5
|
"channel": "stable"
|
|
6
6
|
}
|
|
@@ -2371,14 +2371,6 @@
|
|
|
2371
2371
|
submitPushOnly({ pushCommits: true, pushTags: !!result.tagName, closeOnSuccess: true });
|
|
2372
2372
|
});
|
|
2373
2373
|
|
|
2374
|
-
Array.prototype.forEach.call(document.querySelectorAll(".qc-mobile-action-btn"), function(btn) {
|
|
2375
|
-
btn.addEventListener("click", function(e) {
|
|
2376
|
-
e.preventDefault();
|
|
2377
|
-
var action = btn.getAttribute("data-qc-action") || "commit";
|
|
2378
|
-
submitQuickCommit(action);
|
|
2379
|
-
});
|
|
2380
|
-
});
|
|
2381
|
-
|
|
2382
2374
|
attachQuickCommitDrag();
|
|
2383
2375
|
}
|
|
2384
2376
|
|
|
@@ -2424,9 +2416,24 @@
|
|
|
2424
2416
|
function cw(id) { return chips[id] ? chips[id].offsetWidth : 90; }
|
|
2425
2417
|
function chH() { return chips.commit ? chips.commit.offsetHeight : 38; }
|
|
2426
2418
|
|
|
2427
|
-
|
|
2419
|
+
function isCompactDock() {
|
|
2420
|
+
return window.matchMedia && window.matchMedia("(max-width: 720px)").matches;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
// Resting (home) positions. Wide screens use one centered row; narrow screens
|
|
2424
|
+
// use a triangle so the magnetic field keeps the same interaction without crowding.
|
|
2428
2425
|
function homePositions() {
|
|
2429
2426
|
var fw = field.clientWidth, fh = field.clientHeight, H = chH();
|
|
2427
|
+
if (isCompactDock()) {
|
|
2428
|
+
var commitW = cw("commit"), tagW = cw("tag"), pushW = cw("push");
|
|
2429
|
+
var topY = Math.max(8, fh * 0.18 - H / 2);
|
|
2430
|
+
var bottomY = Math.min(fh - H - 8, fh * 0.72 - H / 2);
|
|
2431
|
+
return {
|
|
2432
|
+
commit: { x: Math.max(8, (fw - commitW) / 2), y: topY },
|
|
2433
|
+
tag: { x: Math.max(8, fw * 0.24 - tagW / 2), y: bottomY },
|
|
2434
|
+
push: { x: Math.min(fw - pushW - 8, fw * 0.76 - pushW / 2), y: bottomY }
|
|
2435
|
+
};
|
|
2436
|
+
}
|
|
2430
2437
|
var gap = 14;
|
|
2431
2438
|
var total = ORDER.reduce(function(s, id) { return s + cw(id); }, 0) + (ORDER.length - 1) * gap;
|
|
2432
2439
|
var x = Math.max(8, (fw - total) / 2);
|
|
@@ -2844,20 +2851,10 @@
|
|
|
2844
2851
|
'<span class="qc-chip-label">' + label + '</span>' +
|
|
2845
2852
|
'</button>';
|
|
2846
2853
|
}
|
|
2847
|
-
function mobileAction(action, label, note, cls) {
|
|
2848
|
-
return '<button type="button" class="qc-mobile-action-btn' + (cls ? ' ' + cls : '') + '"' +
|
|
2849
|
-
' data-qc-action="' + action + '"' + (disabled ? ' disabled' : '') + '>' +
|
|
2850
|
-
'<span class="qc-mobile-action-label">' + escapeHtml(label) + '</span>' +
|
|
2851
|
-
'<span class="qc-mobile-action-note">' + escapeHtml(note) + '</span>' +
|
|
2852
|
-
'</button>';
|
|
2853
|
-
}
|
|
2854
2854
|
var hint = disabled
|
|
2855
2855
|
? (!hasChanges ? "工作区干净,无可提交" : "")
|
|
2856
|
-
: "
|
|
2857
|
-
|
|
2858
|
-
? (!hasChanges ? "工作区干净,无可提交" : "")
|
|
2859
|
-
: "空 message 或空 tag 会自动用 AI 生成";
|
|
2860
|
-
return '<div class="qc-dock-wrap qc-dock-wrap--desktop"' + (disabled ? ' data-disabled="1"' : '') + '>' +
|
|
2856
|
+
: "拖动磁吸组合 · 丢进提交区执行 · 单击直接执行该项";
|
|
2857
|
+
return '<div class="qc-dock-wrap qc-dock-wrap--magnetic"' + (disabled ? ' data-disabled="1"' : '') + '>' +
|
|
2861
2858
|
'<div id="qc-dock-stage" class="qc-dock-stage" data-action="commit" data-hot="0">' +
|
|
2862
2859
|
'<div id="qc-dock-field" class="qc-dock-field">' +
|
|
2863
2860
|
'<div id="qc-dock-cluster" class="qc-dock-cluster" aria-hidden="true"></div>' +
|
|
@@ -2873,15 +2870,6 @@
|
|
|
2873
2870
|
'</button>' +
|
|
2874
2871
|
'</div>' +
|
|
2875
2872
|
'<div class="qc-dock-hint">' + escapeHtml(hint) + '</div>' +
|
|
2876
|
-
'</div>' +
|
|
2877
|
-
'<div class="qc-mobile-actions"' + (disabled ? ' data-disabled="1"' : '') + '>' +
|
|
2878
|
-
'<div class="qc-mobile-action-grid">' +
|
|
2879
|
-
mobileAction("commit", "仅提交", "Commit", "qc-mobile-action-primary") +
|
|
2880
|
-
mobileAction("commit-tag", "提交 + Tag", "发布版本", "") +
|
|
2881
|
-
mobileAction("commit-push", "提交 + Push", "同步分支", "") +
|
|
2882
|
-
mobileAction("commit-tag-push", "提交 + Tag + Push", "完整发布", "qc-mobile-action-wide") +
|
|
2883
|
-
'</div>' +
|
|
2884
|
-
'<div class="qc-mobile-action-hint">' + escapeHtml(mobileHint) + '</div>' +
|
|
2885
2873
|
'</div>';
|
|
2886
2874
|
}
|
|
2887
2875
|
|
|
@@ -15727,12 +15727,8 @@
|
|
|
15727
15727
|
letter-spacing: 0.02em;
|
|
15728
15728
|
opacity: 0.8;
|
|
15729
15729
|
}
|
|
15730
|
-
.qc-mobile-actions {
|
|
15731
|
-
display: none;
|
|
15732
|
-
}
|
|
15733
|
-
|
|
15734
15730
|
@media (prefers-reduced-motion: reduce) {
|
|
15735
|
-
.qc-chip, .qc-chip--anim, .qc-dock-cluster, .qc-dock-launch, .qc-dock-busy-dot
|
|
15731
|
+
.qc-chip, .qc-chip--anim, .qc-dock-cluster, .qc-dock-launch, .qc-dock-busy-dot {
|
|
15736
15732
|
animation: none !important;
|
|
15737
15733
|
transition: none !important;
|
|
15738
15734
|
}
|
|
@@ -15808,90 +15804,30 @@
|
|
|
15808
15804
|
min-height: 44px;
|
|
15809
15805
|
font-size: 16px;
|
|
15810
15806
|
}
|
|
15811
|
-
.qc-dock-wrap--desktop {
|
|
15812
|
-
display: none;
|
|
15813
|
-
}
|
|
15814
|
-
.qc-mobile-actions {
|
|
15815
|
-
display: flex;
|
|
15816
|
-
flex-direction: column;
|
|
15817
|
-
gap: 8px;
|
|
15818
|
-
}
|
|
15819
|
-
.qc-mobile-actions[data-disabled="1"] {
|
|
15820
|
-
opacity: 0.6;
|
|
15821
|
-
pointer-events: none;
|
|
15822
|
-
}
|
|
15823
|
-
.qc-mobile-action-grid {
|
|
15824
|
-
display: grid;
|
|
15825
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
15826
|
-
gap: 8px;
|
|
15827
|
-
}
|
|
15828
|
-
.qc-mobile-action-btn {
|
|
15829
|
-
min-width: 0;
|
|
15830
|
-
min-height: 56px;
|
|
15831
|
-
display: flex;
|
|
15832
|
-
flex-direction: column;
|
|
15833
|
-
align-items: flex-start;
|
|
15834
|
-
justify-content: center;
|
|
15835
|
-
gap: 3px;
|
|
15836
|
-
padding: 10px 12px;
|
|
15837
|
-
border-radius: 12px;
|
|
15838
|
-
border: 1px solid rgba(125, 91, 57, 0.16);
|
|
15839
|
-
background: rgba(255, 255, 255, 0.72);
|
|
15840
|
-
color: var(--text-primary);
|
|
15841
|
-
text-align: left;
|
|
15842
|
-
box-shadow: 0 1px 3px rgba(89, 58, 32, 0.06);
|
|
15843
|
-
touch-action: manipulation;
|
|
15844
|
-
-webkit-tap-highlight-color: transparent;
|
|
15845
|
-
transition: transform 0.12s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
|
|
15846
|
-
}
|
|
15847
|
-
.qc-mobile-action-btn:active {
|
|
15848
|
-
transform: scale(0.98);
|
|
15849
|
-
background: rgba(255, 255, 255, 0.92);
|
|
15850
|
-
border-color: rgba(197, 101, 61, 0.28);
|
|
15851
|
-
}
|
|
15852
|
-
.qc-mobile-action-btn:disabled {
|
|
15853
|
-
cursor: not-allowed;
|
|
15854
|
-
}
|
|
15855
|
-
.qc-mobile-action-primary {
|
|
15856
|
-
border-color: rgba(197, 101, 61, 0.32);
|
|
15857
|
-
background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(197, 101, 61, 0.10));
|
|
15858
|
-
}
|
|
15859
|
-
.qc-mobile-action-wide {
|
|
15860
|
-
grid-column: 1 / -1;
|
|
15861
|
-
}
|
|
15862
|
-
.qc-mobile-action-label {
|
|
15863
|
-
max-width: 100%;
|
|
15864
|
-
font-size: 0.88rem;
|
|
15865
|
-
font-weight: 800;
|
|
15866
|
-
line-height: 1.15;
|
|
15867
|
-
overflow-wrap: anywhere;
|
|
15868
|
-
}
|
|
15869
|
-
.qc-mobile-action-note {
|
|
15870
|
-
max-width: 100%;
|
|
15871
|
-
font-size: 0.72rem;
|
|
15872
|
-
font-weight: 600;
|
|
15873
|
-
line-height: 1.2;
|
|
15874
|
-
color: var(--text-muted);
|
|
15875
|
-
overflow-wrap: anywhere;
|
|
15876
|
-
}
|
|
15877
|
-
.qc-mobile-action-hint {
|
|
15878
|
-
min-height: 1em;
|
|
15879
|
-
color: var(--text-muted);
|
|
15880
|
-
font-size: 0.7rem;
|
|
15881
|
-
line-height: 1.35;
|
|
15882
|
-
text-align: center;
|
|
15883
|
-
}
|
|
15884
15807
|
.qc-dock-stage {
|
|
15885
|
-
height:
|
|
15886
|
-
grid-template-columns:
|
|
15808
|
+
height: 236px;
|
|
15809
|
+
grid-template-columns: 1fr;
|
|
15810
|
+
grid-template-rows: minmax(0, 1fr) 58px;
|
|
15887
15811
|
gap: 8px;
|
|
15812
|
+
padding: 8px;
|
|
15813
|
+
border-radius: 14px;
|
|
15814
|
+
}
|
|
15815
|
+
.qc-dock-field {
|
|
15816
|
+
min-height: 160px;
|
|
15888
15817
|
}
|
|
15889
15818
|
.qc-chip {
|
|
15890
15819
|
height: 36px;
|
|
15891
15820
|
padding: 0 12px;
|
|
15892
15821
|
font-size: 0.8rem;
|
|
15893
15822
|
}
|
|
15894
|
-
.qc-dock-launch
|
|
15823
|
+
.qc-dock-launch {
|
|
15824
|
+
min-height: 58px;
|
|
15825
|
+
flex-direction: row;
|
|
15826
|
+
gap: 8px;
|
|
15827
|
+
border-radius: 13px;
|
|
15828
|
+
}
|
|
15829
|
+
.qc-dock-launch-label { font-size: 0.78rem; }
|
|
15830
|
+
.qc-dock-stage[data-hot="1"] .qc-dock-launch-arrow { transform: translateY(2px); }
|
|
15895
15831
|
}
|
|
15896
15832
|
|
|
15897
15833
|
/* ============================================================ */
|