Skip to content

Commit

Permalink
Release v0.2.45.
Browse files Browse the repository at this point in the history
Fix stroke width change in dark mode.

Fix automatic search not working.

Add missing exposed functions.

Bump the version to release.
  • Loading branch information
alessandrojean committed Mar 3, 2022
1 parent 36099b7 commit 7fe681c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toshokan",
"version": "0.2.44",
"version": "0.2.45",
"private": true,
"scripts": {
"build": "vite build",
Expand Down
4 changes: 0 additions & 4 deletions src/components/AppNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ const navigation = computed(() => [
hidden: shared.value || loading.value
}
])
const searchQuery = ref('')
const searchNavbar = ref(null)
const desktopNavigation = computed(() => {
return navigation.value.filter((navItem) => !navItem.mobileOnly)
})
const profileEmail = computed(() => authStore.profileEmail)
const profileImageUrl = computed(() => authStore.profileImageUrl)
const profileName = computed(() => authStore.profileName)
async function signOut() {
await authStore.signOut()
Expand Down
2 changes: 2 additions & 0 deletions src/components/book/BookForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ function reset() {
v$.value.$reset()
}
defineExpose({ touch, reset, forceUpdateBook })
const sheetStore = useSheetStore()
const optionsEnabled = computed(() => sheetStore.sheetId !== null)
Expand Down
2 changes: 2 additions & 0 deletions src/components/book/BookGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ function focus() {
card?.focus()
})
}
defineExpose({ focus })
</script>
<template>
Expand Down
2 changes: 2 additions & 0 deletions src/components/book/BookTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ function focus() {
function focusOnActiveHeader() {
document.querySelector('th[aria-sort]:not([aria-sort=none]) button')?.focus()
}
defineExpose({ focus, focusOnActiveHeader })
</script>
<template>
Expand Down
4 changes: 4 additions & 0 deletions src/components/dialogs/SearchDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ function search(query) {
searchStore.updateQuery(query)
}
defineExpose({ search })
const lastFocus = ref(null)
watch(isFetching, async (newIsFetching) => {
Expand Down Expand Up @@ -164,6 +166,8 @@ function createDebounce() {
}
}
const debounce = createDebounce()
watch(searchQuery, async (newQuery, oldQuery) => {
if (newQuery.length === 0 && oldQuery.length > 0) {
clearSearch()
Expand Down
2 changes: 1 addition & 1 deletion src/index.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
stroke-width: 1.8;
}

html.dark svg path[stroke-width="2"] {
html.dark svg[stroke-width="2"] {
stroke-width: 1.6;
}
}
Expand Down

0 comments on commit 7fe681c

Please sign in to comment.