Spaces:
Runtime error
Runtime error
Update index.html
Browse files- index.html +47 -6
index.html
CHANGED
@@ -5,6 +5,53 @@
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>GitHub Issue Manager</title>
|
7 |
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
<body class="bg-gray-900 text-gray-300">
|
10 |
|
@@ -46,7 +93,6 @@
|
|
46 |
</div>
|
47 |
</div>
|
48 |
|
49 |
-
|
50 |
<div class="card bg-gray-800 p-8 shadow-lg rounded-xl mt-4">
|
51 |
<label for="output-textarea" class="block text-gray-300 font-bold mb-2">Output</label>
|
52 |
<textarea class="w-full bg-gray-700 text-white border border-gray-600 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500 h-48 resize-y" readonly="" id="output-textarea"></textarea>
|
@@ -58,7 +104,6 @@
|
|
58 |
<input placeholder="Enter a URL to extract information" class="w-full bg-gray-700 text-white border border-gray-600 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500" type="text" id="url-textbox">
|
59 |
</div>
|
60 |
<button class="bg-purple-600 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" id="extract-info">Extract Info</button>
|
61 |
-
|
62 |
</div>
|
63 |
</div>
|
64 |
|
@@ -106,7 +151,6 @@
|
|
106 |
issueDropdown.add(option);
|
107 |
});
|
108 |
outputTextarea.value = 'Issues fetched successfully!';
|
109 |
-
|
110 |
} else {
|
111 |
const error = await response.json();
|
112 |
outputTextarea.value = `Error: ${error.error}`;
|
@@ -116,7 +160,6 @@
|
|
116 |
}
|
117 |
});
|
118 |
|
119 |
-
|
120 |
showIssueDetailsButton.addEventListener('click', () => {
|
121 |
issueDetailsContainer.classList.remove('hidden');
|
122 |
const selectedIssue = issueDropdown.selectedOptions[0].dataset.issueDetails;
|
@@ -130,7 +173,6 @@
|
|
130 |
}
|
131 |
});
|
132 |
|
133 |
-
|
134 |
resolveIssueButton.addEventListener('click', async () => {
|
135 |
const githubToken = githubTokenInput.value;
|
136 |
const issueNumber = issueDropdown.value;
|
@@ -167,7 +209,6 @@
|
|
167 |
}
|
168 |
});
|
169 |
|
170 |
-
|
171 |
extractInfoButton.addEventListener('click', async () => {
|
172 |
const url = urlTextbox.value;
|
173 |
if (!url) {
|
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>GitHub Issue Manager</title>
|
7 |
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
background: linear-gradient(to bottom right, #121212, #303030);
|
11 |
+
color: #e0e0e0;
|
12 |
+
font-family: 'Roboto', sans-serif;
|
13 |
+
overflow-x: hidden;
|
14 |
+
}
|
15 |
+
.card {
|
16 |
+
border-radius: 1.5rem;
|
17 |
+
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
|
18 |
+
margin-bottom: 20px;
|
19 |
+
}
|
20 |
+
.input, .select, .textarea {
|
21 |
+
border: 2px solid #4a4a4a;
|
22 |
+
border-radius: 0.75rem;
|
23 |
+
padding-inline: 1.5rem;
|
24 |
+
padding-block: 0.75rem;
|
25 |
+
}
|
26 |
+
h1, h2, h3 {
|
27 |
+
color: #e0e0e0;
|
28 |
+
}
|
29 |
+
.output-area {
|
30 |
+
padding: 1.5rem;
|
31 |
+
border-radius: 0.75rem;
|
32 |
+
}
|
33 |
+
.btn {
|
34 |
+
border-radius: 0.75rem;
|
35 |
+
padding-block: 0.75rem;
|
36 |
+
padding-inline: 1.5rem;
|
37 |
+
}
|
38 |
+
.btn-primary {
|
39 |
+
background-color: #7928CA;
|
40 |
+
color: white;
|
41 |
+
border: 2px solid #7928CA;
|
42 |
+
}
|
43 |
+
.btn-primary:hover {
|
44 |
+
background-color: #5e22a1;
|
45 |
+
}
|
46 |
+
.btn-success {
|
47 |
+
background-color: #22c55e;
|
48 |
+
color: white;
|
49 |
+
border: 2px solid #22c55e;
|
50 |
+
}
|
51 |
+
.btn-success:hover {
|
52 |
+
background-color: #1a9a46;
|
53 |
+
}
|
54 |
+
</style>
|
55 |
</head>
|
56 |
<body class="bg-gray-900 text-gray-300">
|
57 |
|
|
|
93 |
</div>
|
94 |
</div>
|
95 |
|
|
|
96 |
<div class="card bg-gray-800 p-8 shadow-lg rounded-xl mt-4">
|
97 |
<label for="output-textarea" class="block text-gray-300 font-bold mb-2">Output</label>
|
98 |
<textarea class="w-full bg-gray-700 text-white border border-gray-600 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500 h-48 resize-y" readonly="" id="output-textarea"></textarea>
|
|
|
104 |
<input placeholder="Enter a URL to extract information" class="w-full bg-gray-700 text-white border border-gray-600 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500" type="text" id="url-textbox">
|
105 |
</div>
|
106 |
<button class="bg-purple-600 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" id="extract-info">Extract Info</button>
|
|
|
107 |
</div>
|
108 |
</div>
|
109 |
|
|
|
151 |
issueDropdown.add(option);
|
152 |
});
|
153 |
outputTextarea.value = 'Issues fetched successfully!';
|
|
|
154 |
} else {
|
155 |
const error = await response.json();
|
156 |
outputTextarea.value = `Error: ${error.error}`;
|
|
|
160 |
}
|
161 |
});
|
162 |
|
|
|
163 |
showIssueDetailsButton.addEventListener('click', () => {
|
164 |
issueDetailsContainer.classList.remove('hidden');
|
165 |
const selectedIssue = issueDropdown.selectedOptions[0].dataset.issueDetails;
|
|
|
173 |
}
|
174 |
});
|
175 |
|
|
|
176 |
resolveIssueButton.addEventListener('click', async () => {
|
177 |
const githubToken = githubTokenInput.value;
|
178 |
const issueNumber = issueDropdown.value;
|
|
|
209 |
}
|
210 |
});
|
211 |
|
|
|
212 |
extractInfoButton.addEventListener('click', async () => {
|
213 |
const url = urlTextbox.value;
|
214 |
if (!url) {
|