Compare commits
1 Commits
0e8f63101c
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d6989d01a |
2195
package-lock.json
generated
2195
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,6 @@ import { convert } from "html-to-text";
|
|||||||
import ellipsize from "ellipsize";
|
import ellipsize from "ellipsize";
|
||||||
import { LIBRARY_SERVICE_BASE_URI } from "../../constants/endpoints";
|
import { LIBRARY_SERVICE_BASE_URI } from "../../constants/endpoints";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { useGetComicByIdQuery } from "../../graphql/generated";
|
|
||||||
|
|
||||||
interface MatchResultProps {
|
interface MatchResultProps {
|
||||||
matchData: any;
|
matchData: any;
|
||||||
@@ -32,7 +31,7 @@ export const MatchResult = (props: MatchResultProps) => {
|
|||||||
// Invalidate and refetch the comic book metadata
|
// Invalidate and refetch the comic book metadata
|
||||||
if (props.queryClient) {
|
if (props.queryClient) {
|
||||||
await props.queryClient.invalidateQueries({
|
await props.queryClient.invalidateQueries({
|
||||||
queryKey: useGetComicByIdQuery.getKey({ id: comicObjectId }),
|
queryKey: ["comicBookMetadata", comicObjectId],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ interface LibraryStatisticsProps {
|
|||||||
* Returns `null` when `stats` is absent or the statistics array is empty.
|
* Returns `null` when `stats` is absent or the statistics array is empty.
|
||||||
*/
|
*/
|
||||||
export const LibraryStatistics = ({ stats }: LibraryStatisticsProps): ReactElement | null => {
|
export const LibraryStatistics = ({ stats }: LibraryStatisticsProps): ReactElement | null => {
|
||||||
if (!stats || !stats.totalDocuments) return null;
|
if (!stats) return null;
|
||||||
|
|
||||||
const facet = stats.statistics?.[0];
|
const facet = stats.statistics?.[0];
|
||||||
if (!facet) return null;
|
if (!facet) return null;
|
||||||
|
|||||||
@@ -11,11 +11,9 @@ type VolumeGroupsProps = {
|
|||||||
volumeGroups?: GetVolumeGroupsQuery['getComicBookGroups'];
|
volumeGroups?: GetVolumeGroupsQuery['getComicBookGroups'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export const VolumeGroups = (props: VolumeGroupsProps): ReactElement | null => {
|
export const VolumeGroups = (props: VolumeGroupsProps): ReactElement => {
|
||||||
// Till mongo gives us back the deduplicated results with the ObjectId
|
// Till mongo gives us back the deduplicated results with the ObjectId
|
||||||
const deduplicatedGroups = unionBy(props.volumeGroups, "volumes.id");
|
const deduplicatedGroups = unionBy(props.volumeGroups, "volumes.id");
|
||||||
if (!deduplicatedGroups || deduplicatedGroups.length === 0) return null;
|
|
||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const navigateToVolumes = (row: any) => {
|
const navigateToVolumes = (row: any) => {
|
||||||
navigate(`/volumes/all`);
|
navigate(`/volumes/all`);
|
||||||
|
|||||||
@@ -15,9 +15,7 @@ type WantedComicsListProps = {
|
|||||||
|
|
||||||
export const WantedComicsList = ({
|
export const WantedComicsList = ({
|
||||||
comics,
|
comics,
|
||||||
}: WantedComicsListProps): ReactElement | null => {
|
}: WantedComicsListProps): ReactElement => {
|
||||||
if (!comics || comics.length === 0) return null;
|
|
||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
// embla carousel
|
// embla carousel
|
||||||
|
|||||||
12
yarn.lock
12
yarn.lock
@@ -8575,14 +8575,14 @@ picocolors@^1.1.1:
|
|||||||
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
|
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
|
||||||
|
|
||||||
picomatch@^2.0.4, picomatch@^2.2.2, picomatch@^2.3.1:
|
picomatch@^2.0.4, picomatch@^2.2.2, picomatch@^2.3.1:
|
||||||
version "2.3.1"
|
version "2.3.2"
|
||||||
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz"
|
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601"
|
||||||
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
|
integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==
|
||||||
|
|
||||||
picomatch@^4.0.2, picomatch@^4.0.3:
|
picomatch@^4.0.2, picomatch@^4.0.3:
|
||||||
version "4.0.3"
|
version "4.0.4"
|
||||||
resolved "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz"
|
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.4.tgz#fd6f5e00a143086e074dffe4c924b8fb293b0589"
|
||||||
integrity sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==
|
integrity sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==
|
||||||
|
|
||||||
pify@^2.3.0:
|
pify@^2.3.0:
|
||||||
version "2.3.0"
|
version "2.3.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user