feat(webviewer): Started webview work

This commit is contained in:
Laine Hallot
2022-03-12 23:40:32 -06:00
parent cb834ad2c5
commit 5c833cf7d9
21 changed files with 36414 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { useStaticQuery, graphql } from 'gatsby';
import { Directories, ImageFiles } from '../types';
const useAnimeImages = (): ImageFiles => {
const data = useStaticQuery(graphql`
query {
allImages: allFile(sort: { order: ASC, fields: relativeDirectory }) {
edges {
node {
name
id
relativePath
childImageSharp {
gatsbyImageData(
width: 400
placeholder: TRACED_SVG
formats: [AUTO, WEBP, AVIF]
)
}
}
}
}
}
`);
return data;
};
export { useAnimeImages };