some fixes

This commit is contained in:
tonyrewin 2022-11-17 09:56:24 +03:00
parent e65b075dca
commit 94ff466e3d
5 changed files with 21 additions and 10988 deletions

File diff suppressed because it is too large Load Diff

View File

@ -22,10 +22,6 @@ export const AuthorPage = (props: PageProps) => {
return page.params.slug
})
const [isLoaded, setIsLoaded] = createSignal(
Boolean(props.authorArticles) && props?.author?.slug === slug()
)
onMount(async () => {
if (isLoaded()) {
return

View File

@ -4,7 +4,7 @@ import type { Shout } from '../../graphql/types.gen'
import { ArticleCard } from '../Feed/Card'
import { t } from '../../utils/intl'
import { useArticlesStore, loadShoutsBy } from '../../stores/zine/articles'
import { handleClientRouteLinkClick, useRouter } from '../../stores/router'
import { useRouter } from '../../stores/router'
type SearchPageSearchParams = {
by: '' | 'relevance' | 'rating'
@ -19,7 +19,7 @@ export const SearchView = (props: Props) => {
const { sortedArticles } = useArticlesStore({ shouts: props.results })
const [getQuery, setQuery] = createSignal(props.query)
const { searchParams } = useRouter<SearchPageSearchParams>()
const { searchParams, handleClientRouteLinkClick } = useRouter<SearchPageSearchParams>()
const handleQueryChange = (ev) => {
setQuery(ev.target.value)

View File

@ -129,6 +129,7 @@ export const useRouter = <TSearchParams extends Record<string, string> = Record<
return {
page,
searchParams,
changeSearchParam
changeSearchParam,
handleClientRouteLinkClick
}
}

View File

@ -41,9 +41,9 @@
node-fetch "^2.6.1"
"@astrojs/compiler@^0.27.0 || ^0.28.0 || ^0.29.0", "@astrojs/compiler@^0.29.15", "@astrojs/compiler@^0.29.3":
version "0.29.16"
resolved "https://registry.yarnpkg.com/@astrojs/compiler/-/compiler-0.29.16.tgz#453d7f4da6c2d0935743f4b7075141f619ac0a05"
integrity sha512-1CCf+dktc8IQCdmsNNSIor3rcJE5OIirFnFtQWp1VUxqCacefqRRlsl9lH7JcKKpRvz1taL43yHYJP8dxNfVww==
version "0.29.17"
resolved "https://registry.yarnpkg.com/@astrojs/compiler/-/compiler-0.29.17.tgz#5c65e18fd5dde9620dcc1794a858609b66408215"
integrity sha512-6ZbRGVunUMHxROD9Cleqkrfrj/kM9o43nLVwycdxCexCB5G372evy2ZM46LhaG/k5B5yC0PByNHTaGny0ll3iQ==
"@astrojs/language-server@^0.28.3":
version "0.28.3"
@ -138,12 +138,13 @@
which-pm-runs "^1.1.0"
"@astrojs/vercel@^2.3.3":
version "2.3.3"
resolved "https://registry.yarnpkg.com/@astrojs/vercel/-/vercel-2.3.3.tgz#354aebd3e504d57d9e7794a7e8c5229885d92928"
integrity sha512-gdYf98Oii8MEfRHyX6Uwsbvx/rjimZV75qPSMbcGPFUCteshENFvtUAk5jMJvJNrDh/Cxjt4akTd4/llbvWBeQ==
version "2.3.4"
resolved "https://registry.yarnpkg.com/@astrojs/vercel/-/vercel-2.3.4.tgz#79e3658786bebfa57d1c0efdec1b4db35ee3f4c4"
integrity sha512-1mrPdlb68Y+DPtDpOfuRlene9F2t+wICXDLoG+bII9ryURxTYCReV5JQ1uwlKQ3yizQLIKIzm0rs5yp+K5FWbw==
dependencies:
"@astrojs/webapi" "^1.1.1"
"@vercel/nft" "^0.22.1"
fast-glob "^3.2.11"
"@astrojs/webapi@^1.1.1":
version "1.1.1"
@ -1765,9 +1766,9 @@
integrity sha512-1eZA1/HYOhmlZ9LrrGot+LUi/ypO2NXqfB+9F1WY98dGNDMz9pG9k+X7kg2YDJTUHDGbzY7WrsBRyAE8LurE7Q==
"@solid-primitives/resize-observer@^2.0.5":
version "2.0.6"
resolved "https://registry.yarnpkg.com/@solid-primitives/resize-observer/-/resize-observer-2.0.6.tgz#2086c92d3a5f82512ecbc47fceff02eac272bd2c"
integrity sha512-PbYmBFJBx1/WcrTZepcr6fABOrUP6CeXxehy2AKPCJInX3LKQ/elHLsM1g6KwVbvqpZ0aQ3a/3I7sRYk6BSrpw==
version "2.0.7"
resolved "https://registry.yarnpkg.com/@solid-primitives/resize-observer/-/resize-observer-2.0.7.tgz#0f909ed58d5fd7ec59b2fee15ddafdd28fdce4c8"
integrity sha512-/RtCTs61ACdsCKJodNTgnKA05CI09dkg7usAb5jg14L6mzwTNWWdZbXtbYsUlD+kh1/1j+BKxp6VtkbpgJE5yQ==
dependencies:
"@solid-primitives/event-listener" "^2.2.4"
"@solid-primitives/rootless" "^1.2.1"
@ -2579,9 +2580,9 @@ astro-eslint-parser@^0.9.0:
espree "^9.0.0"
astro@^1.6.8:
version "1.6.8"
resolved "https://registry.yarnpkg.com/astro/-/astro-1.6.8.tgz#46ab77d8e968088faf8bcc2e77d2856cb1fe0bdd"
integrity sha512-+kOj8s2fguCFCim9he6fl9iugIHrmAl7BmfNXdTdC9zU30VYV162HF5eRJyMlY5hGuDn3GvAoaNSzCMnybVsFQ==
version "1.6.9"
resolved "https://registry.yarnpkg.com/astro/-/astro-1.6.9.tgz#08d7aed72168f8f45fc46e3ac47dd1a8ac0e2bbc"
integrity sha512-KXFKXobe8MIYl4gduUPLcAazMz+thox6N1pOv3F3QMbJS5rMRXkWloVK/6XebBO7p3DYkOfOGB4qA9ijTc4ftA==
dependencies:
"@astrojs/compiler" "^0.29.15"
"@astrojs/language-server" "^0.28.3"
@ -2640,8 +2641,8 @@ astro@^1.6.8:
typescript "*"
unist-util-visit "^4.1.0"
vfile "^5.3.2"
vite "~3.2.1"
vitefu "^0.2.0"
vite "~3.2.4"
vitefu "^0.2.1"
yargs-parser "^21.0.1"
zod "^3.17.3"
@ -9703,7 +9704,7 @@ vfile@^5.0.0, vfile@^5.3.2:
unist-util-stringify-position "^3.0.0"
vfile-message "^3.0.0"
vite@^3.2.4, vite@~3.2.1:
vite@^3.2.4, vite@~3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/vite/-/vite-3.2.4.tgz#d8c7892dd4268064e04fffbe7d866207dd24166e"
integrity sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==
@ -9715,7 +9716,7 @@ vite@^3.2.4, vite@~3.2.1:
optionalDependencies:
fsevents "~2.3.2"
vitefu@^0.2.0:
vitefu@^0.2.0, vitefu@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/vitefu/-/vitefu-0.2.1.tgz#9dcd78737c77b366206706dac2403a751903907d"
integrity sha512-clkvXTAeUf+XQKm3bhWUhT4pye+3acm6YCTGaWhxxIvZZ/QjnA3JA8Zud+z/mO5y5XYvJJhevs5Sjkv/FI8nRw==