- Changed default feature to include 'desktop' in Cargo.toml - Replaced --noui flag with --desktop flag in launch.json - Added Tauri desktop mode implementation in main.rs - Simplified command line argument handling - Cleaned up code formatting in main.rs The changes introduce a new mode for running the application as a desktop app using Tauri framework, while maintaining the existing server functionality. The desktop mode loads a webview window with a specific HTML interface.
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>
|