Skip to content

Commit

Permalink
feat: package update & fix pagination ui
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Dec 8, 2024
1 parent 5a29fb4 commit 08d4304
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 32 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lodash": "4.17.21"
},
"devDependencies": {
"@types/lodash": "4.14.202",
"tsup": "8.0.2"
"@types/lodash": "4.17.13",
"tsup": "8.3.5"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scraper/",
"commons/"
],
"private": true,
"dependencies": {
"lodash": "4.17.21"
},
Expand All @@ -20,5 +21,5 @@
"@rollup/plugin-node-resolve": "15.2.3",
"sharp": "0.33.0"
},
"packageManager": "pnpm@9.10.0+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c"
"packageManager": "pnpm@9.14.4+sha512.c8180b3fbe4e4bca02c94234717896b5529740a6cbadf19fa78254270403ea2f27d4e1d46a08a0f56c89b63dc8ebfd3ee53326da720273794e6200fcf0d184ab"
}
8 changes: 4 additions & 4 deletions scraper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"dist"
],
"dependencies": {
"kysely": "0.27.2",
"pg": "8.11.3",
"kysely": "0.27.4",
"p-queue": "8.0.1",
"pg": "8.13.1",
"yargs": "17.7.2"
},
"devDependencies": {
"@riffyh/commons": "workspace:*",
"@types/pg": "8.11.0",
"@types/yargs": "17.0.32"
"@types/pg": "8.11.10",
"@types/yargs": "17.0.33"
}
}
40 changes: 20 additions & 20 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,41 +30,41 @@
"dependencies": {
"@nanostores/persistent": "0.10.2",
"@riffyh/commons": "workspace:*",
"@tanstack/svelte-query": "5.59.0",
"@tanstack/svelte-query": "5.62.3",
"@trpc/client": "10.45.2",
"@trpc/server": "10.45.2",
"@urami/core": "1.2.3",
"@urami/svelte": "1.1.1",
"cookie": "0.7.2",
"@urami/core": "1.3.0",
"@urami/svelte": "1.2.0",
"cookie": "1.0.2",
"destr": "2.0.3",
"devalue": "5.1.1",
"lodash.kebabcase": "4.1.1",
"nanostores": "0.11.3",
"p-queue": "8.0.1",
"set-cookie-parser": "2.7.0",
"set-cookie-parser": "2.7.1",
"sharp": "0.33.5",
"trpc-svelte-query": "2.1.0",
"zod": "3.23.8"
},
"devDependencies": {
"@sveltejs/kit": "2.6.3",
"@sveltejs/vite-plugin-svelte": "3.1.2",
"@types/cookie": "0.6.0",
"@sveltejs/kit": "2.9.0",
"@sveltejs/vite-plugin-svelte": "5.0.1",
"@types/cookie": "1.0.0",
"@types/lodash.kebabcase": "4.1.9",
"@vite-pwa/sveltekit": "0.6.5",
"@vite-pwa/sveltekit": "0.6.6",
"autoprefixer": "10.4.20",
"daisyui": "4.12.12",
"postcss": "8.4.47",
"prettier": "3.3.3",
"prettier-plugin-svelte": "3.2.7",
"prettier-plugin-tailwindcss": "0.6.8",
"daisyui": "4.12.14",
"postcss": "8.4.49",
"prettier": "3.4.2",
"prettier-plugin-svelte": "3.3.2",
"prettier-plugin-tailwindcss": "0.6.9",
"rollup-plugin-visualizer": "5.12.0",
"svelte": "4.2.19",
"svelte": "5.8.1",
"svelte-adapter-bun": "0.5.2",
"svelte-check": "4.0.4",
"tailwindcss": "3.4.13",
"vite": "5.4.8",
"vite-plugin-pwa": "0.20.5",
"workbox-window": "7.1.0"
"svelte-check": "4.1.1",
"tailwindcss": "3.4.16",
"vite": "6.0.3",
"vite-plugin-pwa": "0.21.1",
"workbox-window": "7.3.0"
}
}
11 changes: 6 additions & 5 deletions web/src/core/components/Pagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@
const dispatch = createEventDispatcher<{ paginate: { page: number } }>()
</script>

<div class="btn-group">

<div class="join">
{#each Array.from({ length: pageLength }) as _, i}
{@const page = i + pageStartAt + 1}
{#if prefix !== ''}
<a
href={`${prefix}${page === 1 ? '' : `p/${page}`}`}
class={`btn btn-sm${page === current ? ' btn-active' : ''}`}>{page}</a
href={`${prefix}${page === 1 ? '' : `p/${page}`}`}
class={`join-item btn btn-sm${page === current ? ' btn-active' : ''}`}>{page}</a
>
{:else}
<button
class={`btn btn-sm${page === current ? ' btn-active' : ''}`}
on:click={() =>
class={`join-item btn btn-sm${page === current ? ' btn-active' : ''}`}
on:click={() =>
dispatch('paginate', {
page,
})}>{page}</button
Expand Down

0 comments on commit 08d4304

Please sign in to comment.