Skip to content

Commit 974f309

Browse files
committed
pre-commit cleaning
1 parent 0ddf255 commit 974f309

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/server/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ async def head_root() -> HTMLResponse:
7272
"""
7373
return HTMLResponse(content=None, headers={"content-type": "text/html; charset=utf-8"})
7474

75+
7576
@app.get("/robots.txt", include_in_schema=False)
7677
async def robots() -> FileResponse:
7778
"""Serve the ``robots.txt`` file to guide search engine crawlers.

src/server/templates/components/result.jinja

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,4 @@
5454
patternInput.value = patternFiles.join(", ");
5555
}
5656
</script>
57-
<div class="mt-10" data-results>
58-
59-
</div>
57+
<div class="mt-10" data-results></div>

src/static/js/utils.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,36 +238,36 @@ function downloadFullDigest() {
238238
const summary = document.getElementById('result-summary').value;
239239
const directoryStructure = document.getElementById('directory-structure-content').value;
240240
const filesContent = document.querySelector('.result-text').value;
241-
241+
242242
// Create the full content with all three sections
243243
const fullContent = `${summary}\n${directoryStructure}\n${filesContent}`;
244-
244+
245245
// Create a blob with the content
246246
const blob = new Blob([fullContent], { type: 'text/plain' });
247-
247+
248248
// Create a download link
249249
const url = window.URL.createObjectURL(blob);
250250
const a = document.createElement('a');
251251
a.href = url;
252252
a.download = 'codebase-digest.txt';
253253
document.body.appendChild(a);
254254
a.click();
255-
255+
256256
// Clean up
257257
window.URL.revokeObjectURL(url);
258258
document.body.removeChild(a);
259-
259+
260260
// Show feedback on the button
261261
const button = document.querySelector('[onclick="downloadFullDigest()"]');
262262
const originalText = button.innerHTML;
263-
263+
264264
button.innerHTML = `
265265
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
266266
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
267267
</svg>
268268
Downloaded!
269269
`;
270-
270+
271271
setTimeout(() => {
272272
button.innerHTML = originalText;
273273
}, 2000);

0 commit comments

Comments
 (0)