-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebview.html
More file actions
60 lines (53 loc) · 2.47 KB
/
webview.html
File metadata and controls
60 lines (53 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>AI Commit Message Generator</title>
<link rel="stylesheet" href="{{STYLE_URI}}" />
</head>
<body>
<div class="card">
<h1>🤖 AI Commit Message Generator</h1>
<form id="commitForm">
<div>
<label for="type">Commit Type</label>
<select id="type" name="type">
<option value="feat">feat - New feature</option>
<option value="fix">fix - Bug fix</option>
<option value="chore">chore - Maintenance</option>
<option value="refactor">refactor - Code refactor</option>
<option value="docs">docs - Documentation</option>
<option value="test">test - Testing</option>
<option value="style">style - Formatting</option>
</select>
</div>
<div>
<label for="ticket">Ticket ID</label>
<input type="text" id="ticket" name="ticket" placeholder="e.g., JIRA-1012" />
<div id="ticketError">Please enter Ticket ID</div>
</div>
<div class="buttons">
<button type="button" id="generateBtn">🔮 Generate Message</button>
<button type="button" id="commitBtn">✅ Commit</button>
</div>
<div>
<label for="output">Generated Commit Message</label>
<textarea id="output" placeholder="Your commit message will appear here..."></textarea>
</div>
<div id="errorMessage" style="display:none; margin-top: 1rem; color: #ff5f5f; font-weight: 500;"></div>
<div id="loader" style="display: none;">
<div class="spinner"></div>
<span class="loader-text">Generating commit message, please wait...</span>
</div>
<div id="timer" style="display: none;">
<div>⏱️ </div>
<span id="timer-text"></span>
</div>
</form>
<div class="powered-by">
⚡ Powered by ChittTaranga Team
</div>
</div>
<script src="{{SCRIPT_URI}}"></script>
</body>
</html>