Refactor task components, add mobile-friendly enhancements, and improve settings management
- Introduced `TodoItemTouch`, a responsive task item optimized for mobile interaction with swipe actions. - Added `MobileActions` for streamlined task creation and settings access on smaller screens. - Refactored `App.vue` to adapt layouts dynamically for mobile and desktop users. - Implemented collapsible, categorized task lists with improved handling in `TodoList` and `TodoListTouch`. - Improved task swipe actions with `useSwipe` for smoother UI interactions. - Updated styling with DaisyUI theme customization and multi-theme support. - Enhanced `useSettings` with a `todayShown` toggle for quick agenda visibility.
This commit is contained in:
@@ -3,9 +3,7 @@ import { PhX } from '@phosphor-icons/vue'
|
||||
import { onKeyStroke, useMagicKeys, whenever } from '@vueuse/core'
|
||||
|
||||
import { useTemplateRef } from 'vue'
|
||||
import { useSettings } from '../composables/useSettings.ts'
|
||||
|
||||
const { settings } = useSettings()
|
||||
import SettingsForm from './forms/SettingsForm.vue'
|
||||
|
||||
const settingsModal = useTemplateRef('settingsModal')
|
||||
|
||||
@@ -26,26 +24,16 @@ onKeyStroke('Escape', (e) => {
|
||||
<template>
|
||||
<div>
|
||||
<dialog ref="settingsModal" class="modal">
|
||||
<form method="dialog" class="modal-backdrop">
|
||||
<button>close</button>
|
||||
</form>
|
||||
<div class="modal-box">
|
||||
<form method="dialog">
|
||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">
|
||||
<PhX size="24" />
|
||||
</button>
|
||||
</form>
|
||||
<form @submit.prevent>
|
||||
<fieldset class="fieldset">
|
||||
<legend class="fieldset-legend">
|
||||
Username
|
||||
</legend>
|
||||
<input v-model="settings.username" type="text" class="input" name="username">
|
||||
</fieldset>
|
||||
<fieldset class="fieldset">
|
||||
<legend class="fieldset-legend">
|
||||
Password
|
||||
</legend>
|
||||
<input v-model="settings.password" type="text" class="input" name="password">
|
||||
</fieldset>
|
||||
</form>
|
||||
<SettingsForm />
|
||||
</div>
|
||||
</dialog>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user