Merge branch 'partial-uwu' into uwu-search-page

# Conflicts:
#	astro.config.ts
#	package-lock.json
#	package.json
#	src/types/plausible.d.ts
#	src/utils/debounce.ts
This commit is contained in:
Corbin Crutchley
2023-07-26 17:44:00 -07:00
145 changed files with 6739 additions and 4249 deletions

View File

@@ -16,7 +16,7 @@ export function usePagination(page: PageInfo) {
const firstPageNum = Math.max(
2,
Math.min(page.lastPage - PAGE_BUTTON_COUNT, page.currentPage - 1)
Math.min(page.lastPage - PAGE_BUTTON_COUNT, page.currentPage - 1),
);
const pages = [
@@ -32,7 +32,7 @@ export function usePagination(page: PageInfo) {
page.lastPage,
].filter(
// ensure that displayed pages are within the desired range
(i) => (i === "..." && isDotsEnabled) || (+i > 0 && +i <= page.lastPage)
(i) => (i === "..." && isDotsEnabled) || (+i > 0 && +i <= page.lastPage),
);
return {