-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
77 lines (70 loc) · 2.31 KB
/
Copy pathpopup.html
File metadata and controls
77 lines (70 loc) · 2.31 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
width: 340px;
padding: 12px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
margin: 0;
background-color: #f6f8fa;
}
h3 { margin-top: 0; color: #24292f; border-bottom: 1px solid #d0d7de; padding-bottom: 8px; }
.field { margin-bottom: 10px; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: #57606a; }
input, textarea, button {
width: 100%;
padding: 8px;
border: 1px solid #d0d7de;
border-radius: 6px;
box-sizing: border-box;
font-size: 13px;
}
input:focus, textarea:focus { outline: 2px solid #0969da; }
textarea { height: 120px; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace; }
button {
background-color: #2ea44f;
color: white;
font-weight: 600;
border: 1px solid rgba(27, 31, 36, 0.15);
cursor: pointer;
margin-top: 5px;
}
button:hover { background-color: #2c974b; }
#status {
margin-top: 10px;
font-size: 12px;
padding: 8px;
border-radius: 6px;
display: none;
}
</style>
</head>
<body>
<h3>Push Code to GitHub</h3>
<div class="field">
<label for="token">Personal Access Token (Classic)</label>
<input type="password" id="token" placeholder="ghp_xxxxxxxxxxxx">
</div>
<div class="field">
<label for="repo">Target Repository</label>
<input type="text" id="repo" placeholder="owner/repository-name">
</div>
<div class="field">
<label for="filepath">File Path inside Repo</label>
<input type="text" id="filepath" placeholder="src/main/java/Solution.java">
</div>
<div class="field">
<label for="question">Problem Description / Notes</label>
<textarea id="question" style="height: 60px;" placeholder="Paste the question here..."></textarea>
</div>
<div class="field">
<label for="code">Source Code Codeblock</label>
<textarea id="code" placeholder="// Paste your target code structure here..."></textarea>
</div>
<button id="pushBtn">Upload Directly to Main</button>
<div id="status"></div>
<script src="popup.js"></script>
</body>
</html>