feat(ui): refonte de l'interface
This commit is contained in:
1 parent
3ede3e808c
commit
09eb1fa3aa
79 files changed
+5323
-3514
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
const query = ref('')
|
||||
const pending = ref(false)
|
||||
|
||||
export function useLibrarySearch() {
|
||||
const router = useRouter()
|
||||
|
||||
function open(text = '') {
|
||||
query.value = text
|
||||
pending.value = true
|
||||
router.push('/series')
|
||||
}
|
||||
|
||||
function consume(): string | null {
|
||||
if (!pending.value) return null
|
||||
pending.value = false
|
||||
return query.value
|
||||
}
|
||||
|
||||
return { pending, open, consume }
|
||||
}
|
||||
Reference in new issue
Block a user