quick ui test thingy
This commit is contained in:
@@ -29,8 +29,17 @@ import "../styles/global.css"
|
||||
|
||||
await uploadEntry(entry)
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
const el = document.getElementById('result')
|
||||
|
||||
document.querySelector('#export')?.addEventListener('click', async () => {
|
||||
const res = await fetch('/api/entry/all')
|
||||
const js = await res.json()
|
||||
|
||||
el!.innerText = JSON.stringify(js)
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -53,6 +62,9 @@ import "../styles/global.css"
|
||||
<button id="upload" class="mt-2">
|
||||
upload
|
||||
</button>
|
||||
<button id="export" class="mt-2">
|
||||
export all
|
||||
</button>
|
||||
|
||||
<div id="result">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user