Search action and update deps.

This commit is contained in:
Bradley Shellnut 2022-10-05 14:53:43 -05:00
parent 0864159546
commit 036c821cb0
4 changed files with 54 additions and 54 deletions

View file

@ -19,9 +19,9 @@
"@sveltejs/adapter-auto": "1.0.0-next.72",
"@sveltejs/kit": "1.0.0-next.480",
"@types/cookie": "^0.5.1",
"@types/node": "^18.7.23",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"@types/node": "^18.8.1",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"carbon-components-svelte": "^0.70.9",
"carbon-icons-svelte": "^11.3.0",
"eslint": "^8.24.0",
@ -40,7 +40,7 @@
},
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^4.5.9",
"@fontsource/fira-mono": "^4.5.10",
"@leveluptuts/svelte-side-menu": "^1.0.5",
"@leveluptuts/svelte-toy": "^2.0.3",
"@lukeed/uuid": "^2.0.0",

View file

@ -1,7 +1,7 @@
lockfileVersion: 5.4
specifiers:
'@fontsource/fira-mono': ^4.5.9
'@fontsource/fira-mono': ^4.5.10
'@leveluptuts/svelte-side-menu': ^1.0.5
'@leveluptuts/svelte-toy': ^2.0.3
'@lukeed/uuid': ^2.0.0
@ -12,9 +12,9 @@ specifiers:
'@sveltejs/kit': 1.0.0-next.480
'@types/cookie': ^0.5.1
'@types/feather-icons': ^4.7.0
'@types/node': ^18.7.23
'@typescript-eslint/eslint-plugin': ^5.38.1
'@typescript-eslint/parser': ^5.38.1
'@types/node': ^18.8.1
'@typescript-eslint/eslint-plugin': ^5.39.0
'@typescript-eslint/parser': ^5.39.0
carbon-components-svelte: ^0.70.9
carbon-icons-svelte: ^11.3.0
cookie: ^0.5.0
@ -35,7 +35,7 @@ specifiers:
zod: ^3.19.1
dependencies:
'@fontsource/fira-mono': 4.5.9
'@fontsource/fira-mono': 4.5.10
'@leveluptuts/svelte-side-menu': 1.0.5
'@leveluptuts/svelte-toy': 2.0.3
'@lukeed/uuid': 2.0.0
@ -51,9 +51,9 @@ devDependencies:
'@sveltejs/adapter-auto': 1.0.0-next.72
'@sveltejs/kit': 1.0.0-next.480_svelte@3.50.1+vite@3.1.4
'@types/cookie': 0.5.1
'@types/node': 18.7.23
'@typescript-eslint/eslint-plugin': 5.38.1_c7qepppml3d4ahu5cnfwqe6ltq
'@typescript-eslint/parser': 5.38.1_ypn2ylkkyfa5i233caldtndbqa
'@types/node': 18.8.1
'@typescript-eslint/eslint-plugin': 5.39.0_xyciw6oqjoiiono4dhv3uhn5my
'@typescript-eslint/parser': 5.39.0_ypn2ylkkyfa5i233caldtndbqa
carbon-components-svelte: 0.70.9
carbon-icons-svelte: 11.3.0
eslint: 8.24.0
@ -111,8 +111,8 @@ packages:
- supports-color
dev: true
/@fontsource/fira-mono/4.5.9:
resolution: {integrity: sha512-DDhkRUjPHwPK/wB7GM/7LzGkcEC5JyTZM93YnFoP2Qfjffq3qX1asnXNqfglgZxXHXVmu3RI8OjRf87I97XCfA==}
/@fontsource/fira-mono/4.5.10:
resolution: {integrity: sha512-bxUnRP8xptGRo8YXeY073DSpfK74XpSb0ZyRNpHV9WvLnJ7TwPOjZll8hTMin7zLC6iOp59pDZ8EQDj1gzgAQQ==}
dev: false
/@humanwhocodes/config-array/0.10.5:
@ -225,7 +225,7 @@ packages:
engines: {node: '>=14'}
hasBin: true
dependencies:
'@types/node': 18.7.23
'@types/node': 18.8.1
playwright-core: 1.26.1
dev: true
@ -358,8 +358,8 @@ packages:
resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}
dev: true
/@types/node/18.7.23:
resolution: {integrity: sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==}
/@types/node/18.8.1:
resolution: {integrity: sha512-vuYaNuEIbOYLTLUAJh50ezEbvxrD43iby+lpUA2aa148Nh5kX/AVO/9m1Ahmbux2iU5uxJTNF9g2Y+31uml7RQ==}
dev: true
/@types/pug/2.0.6:
@ -369,11 +369,11 @@ packages:
/@types/sass/1.43.1:
resolution: {integrity: sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==}
dependencies:
'@types/node': 18.7.23
'@types/node': 18.8.1
dev: true
/@typescript-eslint/eslint-plugin/5.38.1_c7qepppml3d4ahu5cnfwqe6ltq:
resolution: {integrity: sha512-ky7EFzPhqz3XlhS7vPOoMDaQnQMn+9o5ICR9CPr/6bw8HrFkzhMSxuA3gRfiJVvs7geYrSeawGJjZoZQKCOglQ==}
/@typescript-eslint/eslint-plugin/5.39.0_xyciw6oqjoiiono4dhv3uhn5my:
resolution: {integrity: sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
'@typescript-eslint/parser': ^5.0.0
@ -383,10 +383,10 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/parser': 5.38.1_ypn2ylkkyfa5i233caldtndbqa
'@typescript-eslint/scope-manager': 5.38.1
'@typescript-eslint/type-utils': 5.38.1_ypn2ylkkyfa5i233caldtndbqa
'@typescript-eslint/utils': 5.38.1_ypn2ylkkyfa5i233caldtndbqa
'@typescript-eslint/parser': 5.39.0_ypn2ylkkyfa5i233caldtndbqa
'@typescript-eslint/scope-manager': 5.39.0
'@typescript-eslint/type-utils': 5.39.0_ypn2ylkkyfa5i233caldtndbqa
'@typescript-eslint/utils': 5.39.0_ypn2ylkkyfa5i233caldtndbqa
debug: 4.3.4
eslint: 8.24.0
ignore: 5.2.0
@ -398,8 +398,8 @@ packages:
- supports-color
dev: true
/@typescript-eslint/parser/5.38.1_ypn2ylkkyfa5i233caldtndbqa:
resolution: {integrity: sha512-LDqxZBVFFQnQRz9rUZJhLmox+Ep5kdUmLatLQnCRR6523YV+XhRjfYzStQ4MheFA8kMAfUlclHSbu+RKdRwQKw==}
/@typescript-eslint/parser/5.39.0_ypn2ylkkyfa5i233caldtndbqa:
resolution: {integrity: sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
@ -408,9 +408,9 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/scope-manager': 5.38.1
'@typescript-eslint/types': 5.38.1
'@typescript-eslint/typescript-estree': 5.38.1_typescript@4.8.4
'@typescript-eslint/scope-manager': 5.39.0
'@typescript-eslint/types': 5.39.0
'@typescript-eslint/typescript-estree': 5.39.0_typescript@4.8.4
debug: 4.3.4
eslint: 8.24.0
typescript: 4.8.4
@ -418,16 +418,16 @@ packages:
- supports-color
dev: true
/@typescript-eslint/scope-manager/5.38.1:
resolution: {integrity: sha512-BfRDq5RidVU3RbqApKmS7RFMtkyWMM50qWnDAkKgQiezRtLKsoyRKIvz1Ok5ilRWeD9IuHvaidaLxvGx/2eqTQ==}
/@typescript-eslint/scope-manager/5.39.0:
resolution: {integrity: sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
'@typescript-eslint/types': 5.38.1
'@typescript-eslint/visitor-keys': 5.38.1
'@typescript-eslint/types': 5.39.0
'@typescript-eslint/visitor-keys': 5.39.0
dev: true
/@typescript-eslint/type-utils/5.38.1_ypn2ylkkyfa5i233caldtndbqa:
resolution: {integrity: sha512-UU3j43TM66gYtzo15ivK2ZFoDFKKP0k03MItzLdq0zV92CeGCXRfXlfQX5ILdd4/DSpHkSjIgLLLh1NtkOJOAw==}
/@typescript-eslint/type-utils/5.39.0_ypn2ylkkyfa5i233caldtndbqa:
resolution: {integrity: sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: '*'
@ -436,8 +436,8 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/typescript-estree': 5.38.1_typescript@4.8.4
'@typescript-eslint/utils': 5.38.1_ypn2ylkkyfa5i233caldtndbqa
'@typescript-eslint/typescript-estree': 5.39.0_typescript@4.8.4
'@typescript-eslint/utils': 5.39.0_ypn2ylkkyfa5i233caldtndbqa
debug: 4.3.4
eslint: 8.24.0
tsutils: 3.21.0_typescript@4.8.4
@ -446,13 +446,13 @@ packages:
- supports-color
dev: true
/@typescript-eslint/types/5.38.1:
resolution: {integrity: sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==}
/@typescript-eslint/types/5.39.0:
resolution: {integrity: sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
/@typescript-eslint/typescript-estree/5.38.1_typescript@4.8.4:
resolution: {integrity: sha512-99b5e/Enoe8fKMLdSuwrfH/C0EIbpUWmeEKHmQlGZb8msY33qn1KlkFww0z26o5Omx7EVjzVDCWEfrfCDHfE7g==}
/@typescript-eslint/typescript-estree/5.39.0_typescript@4.8.4:
resolution: {integrity: sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
typescript: '*'
@ -460,8 +460,8 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/types': 5.38.1
'@typescript-eslint/visitor-keys': 5.38.1
'@typescript-eslint/types': 5.39.0
'@typescript-eslint/visitor-keys': 5.39.0
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
@ -472,16 +472,16 @@ packages:
- supports-color
dev: true
/@typescript-eslint/utils/5.38.1_ypn2ylkkyfa5i233caldtndbqa:
resolution: {integrity: sha512-oIuUiVxPBsndrN81oP8tXnFa/+EcZ03qLqPDfSZ5xIJVm7A9V0rlkQwwBOAGtrdN70ZKDlKv+l1BeT4eSFxwXA==}
/@typescript-eslint/utils/5.39.0_ypn2ylkkyfa5i233caldtndbqa:
resolution: {integrity: sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
'@types/json-schema': 7.0.11
'@typescript-eslint/scope-manager': 5.38.1
'@typescript-eslint/types': 5.38.1
'@typescript-eslint/typescript-estree': 5.38.1_typescript@4.8.4
'@typescript-eslint/scope-manager': 5.39.0
'@typescript-eslint/types': 5.39.0
'@typescript-eslint/typescript-estree': 5.39.0_typescript@4.8.4
eslint: 8.24.0
eslint-scope: 5.1.1
eslint-utils: 3.0.0_eslint@8.24.0
@ -490,11 +490,11 @@ packages:
- typescript
dev: true
/@typescript-eslint/visitor-keys/5.38.1:
resolution: {integrity: sha512-bSHr1rRxXt54+j2n4k54p4fj8AHJ49VDWtjpImOpzQj4qjAiOpPni+V1Tyajh19Api1i844F757cur8wH3YvOA==}
/@typescript-eslint/visitor-keys/5.39.0:
resolution: {integrity: sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
'@typescript-eslint/types': 5.38.1
'@typescript-eslint/types': 5.39.0
eslint-visitor-keys: 3.3.0
dev: true

View file

@ -2,6 +2,7 @@
import { enhance, applyAction } from '$app/forms';
import type { PageData } from './$types';
import { ToastType, type GameType, type SavedGameType } from '$root/lib/types';
import { toast } from '$root/lib/components/toast/toast';
import { gameStore } from '$lib/stores/gameSearchStore';
import { boredState } from '$root/lib/stores/boredState';
import RemoveCollectionDialog from '$root/lib/components/dialog/RemoveCollectionDialog.svelte';
@ -10,7 +11,6 @@
import RandomSearch from '$lib/components/search/random/index.svelte';
import Random from '$lib/components/random/index.svelte';
import Pagination from '$lib/components/pagination/index.svelte';
import { toast } from '$root/lib/components/toast/toast';
export let data: PageData;
console.log('Formed data:', JSON.stringify(data));
@ -91,7 +91,7 @@
</p>
<div class="game-search">
<form
action="/search?/search"
action="/search"
method="post"
use:enhance={() => {
boredState.update((n) => ({ ...n, loading: true }));

View file

@ -2,5 +2,5 @@ import type { Actions } from '../$types';
import { Games } from '$root/search/actions';
export const actions: Actions = {
search: Games.search,
default: Games.search,
}