-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign the 404 page. Redesign the error page. Handle missing scopes. Move the dialogs to a proper folder. Move book components to a proper folder. Redesign the dashboard settings page. Remove logging in useMarkdown. Fix wrong ref accessing in BookTabs. Add book navigation. Fix document title not changing in the book page. Change the wrong typography. Add hover animation on book carousel. Add underline on hover author link. Bump the version to release.
- Loading branch information
1 parent
104b374
commit 6460d04
Showing
42 changed files
with
568 additions
and
1,059 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "toshokan", | ||
"version": "0.2.32", | ||
"version": "0.2.33", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<template> | ||
<nav class=""> | ||
<ul class="font-medium text-sm flex divide-x dark:divide-gray-700 dark:text-gray-300"> | ||
<li v-if="previous"> | ||
<router-link | ||
:class="[ | ||
!next ? 'rounded-full pr-5' : 'rounded-l-full pr-2.5', | ||
'bg-white dark:bg-gray-800 group shadow-md flex items-center py-1.5 pl-2.5 navigation-link previous has-ring-focus' | ||
]" | ||
:to="{ name: 'BookDetails', params: { bookId: previous.id } }" | ||
> | ||
<span aria-hidden="true"> | ||
<ChevronLeftIcon class="w-5 h-5 mr-2" /> | ||
</span> | ||
<span>{{ t('pagination.previous') }}</span> | ||
</router-link> | ||
</li> | ||
<li v-if="next"> | ||
<router-link | ||
:class="[ | ||
!previous ? 'rounded-full pl-5' : 'rounded-r-full pl-2.5', | ||
'bg-white dark:bg-gray-800 group shadow-md flex items-center py-1.5 pr-2.5 navigation-link next has-ring-focus' | ||
]" | ||
:to="{ name: 'BookDetails', params: { bookId: next.id } }" | ||
> | ||
<span>{{ t('pagination.next') }}</span> | ||
<span aria-hidden="true"> | ||
<ChevronRightIcon class="w-5 h-5 ml-2" /> | ||
</span> | ||
</router-link> | ||
</li> | ||
</ul> | ||
</nav> | ||
</template> | ||
|
||
<script> | ||
import { computed, toRefs } from 'vue' | ||
import { useI18n } from 'vue-i18n' | ||
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/vue/solid' | ||
export default { | ||
components: { ChevronLeftIcon, ChevronRightIcon }, | ||
props: { | ||
book: Object, | ||
collection: Array | ||
}, | ||
setup(props) { | ||
const { book, collection } = toRefs(props) | ||
const bookIdx = computed(() => { | ||
return collection.value.findIndex(colItem => colItem.id === book.value.id) | ||
}) | ||
const previous = computed(() => { | ||
const previousIdx = bookIdx.value - 1 | ||
return previousIdx >= 0 | ||
? collection.value[previousIdx] | ||
: null | ||
}) | ||
const next = computed(() => { | ||
const nextIdx = bookIdx.value + 1 | ||
return nextIdx < collection.value.length | ||
? collection.value[nextIdx] | ||
: null | ||
}) | ||
const { t } = useI18n() | ||
return { previous, next, t } | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="postcss" scoped> | ||
.navigation-link:hover { | ||
@apply underline underline-offset-1 decoration-2 dark:text-gray-100 | ||
decoration-primary-600 dark:decoration-primary-400; | ||
} | ||
.navigation-link svg { | ||
@apply motion-safe:transition-transform; | ||
} | ||
.navigation-link:hover svg { | ||
@apply text-primary-600 dark:text-primary-300; | ||
} | ||
.navigation-link.previous:hover svg { | ||
@apply -translate-x-0.5; | ||
} | ||
.navigation-link.next:hover svg { | ||
@apply translate-x-0.5; | ||
} | ||
</style> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.