- Added HTTP server with CORS support and various endpoints - Introduced http_tx/http_rx channels for HTTP server control - Cleaned up build.rs by removing commented code - Updated .gitignore to use *.rdb pattern instead of .rdb - Simplified capabilities.json to empty object - Improved UI initialization with better error handling - Reorganized module imports in main.rs - Added worker count configuration for HTTP server The changes introduce a new HTTP server capability while cleaning up and improving existing code structure. The HTTP server includes authentication, session management, and websocket support.
24 lines
494 B
HTML
24 lines
494 B
HTML
<template x-data="{ items: [] }">
|
|
<div class="todo-stats">
|
|
<span x-text="`${items.filter(i => !i.done).length} items left`"></span>
|
|
<button @click="$store.todo.clearCompleted()">
|
|
Clear completed
|
|
</button>
|
|
</div>
|
|
</template>
|
|
|
|
<style>
|
|
.todo-stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: #666;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.todo-stats button {
|
|
background: none;
|
|
color: #666;
|
|
padding: 0;
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|