added support for manual sleep logging
This commit is contained in:
@@ -517,7 +517,10 @@
|
||||
</div>
|
||||
|
||||
<div class="list-container">
|
||||
<h2>Recent Sleep Sessions</h2>
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
|
||||
<h2 style="margin: 0;">Recent Sleep Sessions</h2>
|
||||
<button class="button" onclick="addManualSleep()" style="padding: 8px 16px; font-size: 14px;">➕ Add Manual Entry</button>
|
||||
</div>
|
||||
<div class="sleep-list">
|
||||
${filteredSleeps
|
||||
.slice(0, 50)
|
||||
@@ -1058,6 +1061,10 @@
|
||||
`;
|
||||
}
|
||||
|
||||
function addManualSleep() {
|
||||
window.location.href = `/log-sleep.html`;
|
||||
}
|
||||
|
||||
async function logout() {
|
||||
try {
|
||||
await fetch("/api/logout", {
|
||||
|
||||
Reference in New Issue
Block a user