aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/file-table.html
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-29 11:44:57 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-29 11:44:57 -0800
commite7ef35277dd0b4bba5b3fb675d5eed3cd0f0fcb8 (patch)
tree0fc0bd749cccdc0cf2be986c58c1a0cf98ebf0d3 /src/main/resources/templates/file-table.html
parent034ed93198bfd9387458489a4af6c240debd7e48 (diff)
refactor webui into templates
Diffstat (limited to 'src/main/resources/templates/file-table.html')
-rw-r--r--src/main/resources/templates/file-table.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/resources/templates/file-table.html b/src/main/resources/templates/file-table.html
new file mode 100644
index 0000000..02b9553
--- /dev/null
+++ b/src/main/resources/templates/file-table.html
@@ -0,0 +1,27 @@
+<table class="file-table">
+ <thead>
+ <tr>
+ <th style="width: 40%;">name</th>
+ <th style="width: 25%;">description</th>
+ <th style="width: 10%;">size</th>
+ <th style="width: 10%;">type</th>
+ <th style="width: 10%;">date</th>
+ <th style="width: 5%;">actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{fileRows}}
+ </tbody>
+</table>
+<script>
+ document.getElementById('count-value').textContent = '{{fileCount}}';
+ function clearFilters() {
+ document.querySelector('input[name="search"]').value = '';
+ document.querySelector('select[name="mimeType"]').value = '';
+ document.querySelector('select[name="sortBy"]').value = 'created_at';
+ htmx.ajax('GET', '/api/files?dir=' + currentDirectoryId, {
+ target: '#file-content',
+ indicator: '#loading-spinner'
+ });
+ }
+</script> \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage