1
0

auto-git:

[change] index.html
 [change] renderer.js
 [change] settings.html
 [change] src-tauri/src/main.rs
 [change] tauriBridge.js
This commit is contained in:
2026-07-12 12:19:00 +02:00
parent f047d61731
commit a967587181
5 changed files with 357 additions and 28 deletions

View File

@@ -310,6 +310,65 @@
</button>
</div>
<div id="rewordModeModal"
class="hidden fixed inset-0 z-50 items-center justify-center bg-black/40 px-4"
role="dialog" aria-modal="true" aria-labelledby="rewordModeTitle">
<div class="w-full max-w-md rounded-lg border bg-white p-5 shadow-xl"
style="border-color: var(--border)">
<h3 id="rewordModeTitle" class="text-lg font-semibold text-gray-900">
Reword commit message
</h3>
<p class="mt-2 text-sm text-gray-600">
Choose Automatic to ask the configured LLM, or Manual to type the message yourself.
</p>
<label class="mt-4 flex items-center gap-2 text-sm text-gray-700 select-none">
<input id="rememberRewordMode" type="checkbox" class="h-4 w-4" />
Remember my choice
</label>
<div class="mt-5 flex justify-end gap-2">
<button id="cancelRewordModeBtn" class="px-3 py-2 text-sm border rounded hover:bg-gray-100">
Cancel
</button>
<button id="manualRewordModeBtn" class="px-3 py-2 text-sm border rounded hover:bg-gray-100">
Manual
</button>
<button id="autoRewordModeBtn" class="px-3 py-2 text-sm border rounded font-semibold"
style="background: var(--accent); color: #fff; border-color: var(--border)">
Automatic
</button>
</div>
</div>
</div>
<div id="manualRewordModal"
class="hidden fixed inset-0 z-50 items-center justify-center bg-black/40 px-4"
role="dialog" aria-modal="true" aria-labelledby="manualRewordTitle">
<form id="manualRewordForm"
class="w-full max-w-lg rounded-lg border bg-white p-5 shadow-xl"
style="border-color: var(--border)">
<h3 id="manualRewordTitle" class="text-lg font-semibold text-gray-900">
Enter commit message
</h3>
<p class="mt-2 text-sm text-gray-600">
Type the new single-line message for this commit.
</p>
<input id="manualRewordInput" type="text" required autocomplete="off"
class="mt-4 w-full rounded border border-gray-300 px-3 py-2 text-sm text-gray-900 focus:outline-none focus:ring-2"
style="--tw-ring-color: var(--accent)" />
<div class="mt-5 flex justify-end gap-2">
<button id="cancelManualRewordBtn" type="button"
class="px-3 py-2 text-sm border rounded hover:bg-gray-100">
Cancel
</button>
<button id="applyManualRewordBtn" type="submit"
class="px-3 py-2 text-sm border rounded font-semibold"
style="background: var(--accent); color: #fff; border-color: var(--border)">
Apply
</button>
</div>
</form>
</div>
<script src="renderer.js"></script>
<script src="animeCat.js"></script>
<script type="module">