-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-templates-blog-by-hashtag-tsx-065d2c6636921d719838.js.map
1 lines (1 loc) · 29.4 KB
/
component---src-pages-templates-blog-by-hashtag-tsx-065d2c6636921d719838.js.map
1
{"version":3,"file":"component---src-pages-templates-blog-by-hashtag-tsx-065d2c6636921d719838.js","mappings":"8FACA,IAAIA,EAAU,WACdC,EAAOC,QAAQ,EAAiB,SAAyBC,GACvD,OAAOH,EAAQ,CAAC,IAAM,MAAM,KAAO,CAAC,QAAU,YAAY,KAAO,gBAAgB,MAAQ,CAAC,CAAC,IAAM,OAAO,KAAO,CAAC,SAAW,UAAU,EAAI,+EAA+E,SAAW,YAAY,CAAC,IAAM,OAAO,KAAO,CAAC,SAAW,UAAU,EAAI,8EAA8E,SAAW,cAAhXA,CAA+XG,EACxY,C,kICuBA,MAzBgBC,IAA4C,IAA3C,UAAEC,GAAmCD,EACpD,OACEE,EAAAA,EAAAA,IAAA,OACED,UAAW,kDAAkDA,MAE7DC,EAAAA,EAAAA,IAAA,OACE,cAAY,OACZD,UAAU,8EACVE,QAAQ,cACRC,KAAK,OACLC,MAAM,+BAENH,EAAAA,EAAAA,IAAA,QACEI,EAAE,+WACFF,KAAK,kBAEPF,EAAAA,EAAAA,IAAA,QACEI,EAAE,glBACFF,KAAK,iBAGL,EC+HV,MAlJgBG,KACd,MAAM,EAACC,EAAe,EAACC,IAAqBC,EAAAA,EAAAA,WAAkB,GACxDC,GAAYC,EAAAA,EAAAA,SAAgB,GAC5BC,GAAYD,EAAAA,EAAAA,QAA0B,MAkI5C,OAhIAE,EAAAA,EAAAA,YAAU,KACR,IACGH,EAAUI,UACVF,EAAUE,SACM,oBAAVC,OAEP,OAEFL,EAAUI,SAAU,EAGpB,MAAME,EAAgB,IAAIC,OACxB,IAAIC,IAAI,kBACR,CACEC,UAAM,IAGVH,EAAcI,UAAYrB,IAAe,IAAd,KAAEsB,GAAMtB,EACpB,UAATsB,GAAkBb,GAAkB,EAAK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AAeA,EACfC,YAAaA,EACbC,cAAe4C,EAAYY,WAAWC,QAGzC,EAMA,MAAMC,EAAyDC,IAGX,IAFzDf,aAAa,WAAE7B,EAAU,YAAEhB,EAAW,KAAE6D,EAAI,KAAE5C,EAAI,QAAEgC,GAAS,SAC7Da,GACoDF,EACpD,OACEjJ,EAAAA,EAAAA,IAACoJ,EAAAA,GAAO,CACNzF,MAAO,GAAG0C,EAAWgD,UAAUf,EAAQI,mBAAmBrD,IAC1DiE,YAAaJ,EAAKI,YAClBC,QAASL,EAAKK,QACdC,KAAML,EAASM,SACfnD,KAAMA,GACN,C,oECXC,IAAKtB,EAAK,SAALA,GAAK,OAALA,EAAK,YAALA,EAAK,cAALA,CAAK,K,uBCxDjB,IAAIuD,EAAQ,EAAQ,MAEpB,SAASlE,EAAQxE,GACb,OAAO0I,EAAMmB,cAAc,MAAM7J,EAAM,CAAC0I,EAAMmB,cAAc,OAAO,CAAC,MAAQ,MAAM,OAAS,IAAI,OAAS,UAAU,YAAc,IAAI,gBAAkB,MAAM,GAAK,IAAI,GAAK,OAAO,GAAK,IAAI,GAAK,IAAI,IAAM,IAAInB,EAAMmB,cAAc,OAAO,CAAC,MAAQ,MAAM,OAAS,IAAI,OAAS,UAAU,YAAc,IAAI,gBAAkB,MAAM,GAAK,IAAI,GAAK,OAAO,GAAK,IAAI,GAAK,IAAI,IAAM,KAClX,CAEArF,EAAOsF,aAAe,CAAC,OAAS,KAEhChK,EAAOC,QAAUyE,EAEjBA,EAAOuF,QAAUvF,C","sources":["webpack://code-cave/./node_modules/@react-icons/all-files/bs/BsArrowUpRight.js","webpack://code-cave/./src/components/common/spinner.tsx","webpack://code-cave/./src/components/babylonjs/babylon.tsx","webpack://code-cave/./src/components/common/banner.tsx","webpack://code-cave/./src/components/common/button.tsx","webpack://code-cave/./src/components/common/pagination.tsx","webpack://code-cave/./src/components/posts/postPreview.tsx","webpack://code-cave/./src/pagesTemplates/blogByHashtag.tsx","webpack://code-cave/./src/types/common.type.ts","webpack://code-cave/./src/assets/common/border.svg"],"sourcesContent":["// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.BsArrowUpRight = function BsArrowUpRight (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 16 16\",\"fill\":\"currentColor\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"fillRule\":\"evenodd\",\"d\":\"M6.5 4a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V4.5H7a.5.5 0 01-.5-.5z\",\"clipRule\":\"evenodd\"}},{\"tag\":\"path\",\"attr\":{\"fillRule\":\"evenodd\",\"d\":\"M12.354 3.646a.5.5 0 010 .708l-9 9a.5.5 0 01-.708-.708l9-9a.5.5 0 01.708 0z\",\"clipRule\":\"evenodd\"}}]})(props);\n};\n","import React from \"react\";\n\nconst Spinner = ({ className }: { className?: string }) => {\n return (\n <div\n className={`flex justify-center items-center h-full w-full ${className}`}\n >\n <svg\n aria-hidden=\"true\"\n className=\"w-8 h-8 mr-2 text-main-10 animate-spin dark:text-secondary-10 fill-main-100\"\n viewBox=\"0 0 100 101\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\"\n fill=\"currentFill\"\n />\n </svg>\n </div>\n );\n};\n\nexport default Spinner;\n","import React, { useEffect, useRef, useState } from \"react\";\n\nimport Spinner from \"../common/spinner\";\n\nconst Babylon = () => {\n const [isBabylonReady, setIsBabylonReady] = useState<boolean>(false);\n const isInitial = useRef<boolean>(true);\n const canvasRef = useRef<HTMLCanvasElement>(null);\n\n useEffect(() => {\n if (\n !isInitial.current ||\n !canvasRef.current ||\n typeof window == \"undefined\"\n )\n return;\n\n isInitial.current = false;\n\n // WORKER instance creation\n const babylonWorker = new Worker(\n new URL(\"../../workers/babylon.worker.ts\", import.meta.url),\n {\n type: \"module\",\n }\n );\n babylonWorker.onmessage = ({ data }) => {\n if (data === \"ready\") setIsBabylonReady(true);\n };\n\n // OFFSCREEN canvas\n const canvas = canvasRef.current;\n canvas.width = canvas.clientWidth;\n canvas.height = canvas.clientHeight;\n\n const offscreenCanvas = canvas.transferControlToOffscreen();\n babylonWorker.postMessage({ canvas: offscreenCanvas }, [offscreenCanvas]);\n\n // RESIZE handler\n const onResizeHandler = () => {\n babylonWorker.postMessage({\n width: canvas.clientWidth,\n height: canvas.clientHeight,\n });\n };\n window.addEventListener(\"resize\", onResizeHandler, { passive: true });\n\n // WHEEL handler\n const onWheelHandler = (e: WheelEvent) => {\n e.preventDefault();\n babylonWorker.postMessage({ wheel: e.deltaY });\n };\n canvas.addEventListener(\"wheel\", onWheelHandler);\n\n // ROTATE mouse handler\n const onMouseMoveHandler = (e: MouseEvent) => {\n babylonWorker.postMessage({\n x: e.movementX,\n y: e.movementY,\n });\n };\n canvas.addEventListener(\"mousedown\", (e: MouseEvent) => {\n e.preventDefault();\n window.addEventListener(\"mousemove\", onMouseMoveHandler, {\n passive: true,\n });\n window.addEventListener(\n \"mouseup\",\n () => window.removeEventListener(\"mousemove\", onMouseMoveHandler),\n { once: true, passive: true }\n );\n });\n\n // ROTATE touch handler\n const nestedTouchMoveHandler = (\n e: TouchEvent,\n previousCoords: { x: number; y: number }\n ) => {\n const touch = e.touches[0];\n babylonWorker.postMessage({\n x: touch.screenX - previousCoords.x,\n y: touch.screenY - previousCoords.y,\n });\n\n return {\n newX: touch.screenX,\n newY: touch.screenY,\n };\n };\n let onTouchMoveHandler: (e: TouchEvent) => void;\n canvas.addEventListener(\n \"touchstart\",\n (e: TouchEvent) => {\n if (e.touches.length !== 1) return;\n\n const firstTouch = e.touches[0];\n\n e.preventDefault();\n const previousCoords = {\n x: firstTouch.screenX,\n y: firstTouch.screenY,\n };\n\n onTouchMoveHandler = (e: TouchEvent) => {\n const { newX, newY } = nestedTouchMoveHandler(e, previousCoords);\n previousCoords.x = newX;\n previousCoords.y = newY;\n };\n\n window.addEventListener(\"touchmove\", onTouchMoveHandler, {\n passive: true,\n });\n window.addEventListener(\n \"touchend\",\n () => {\n window.removeEventListener(\"touchmove\", onTouchMoveHandler);\n },\n { passive: true }\n );\n },\n { passive: true }\n );\n\n // UNMOUNT handler\n return () => {\n if (!window) return;\n\n window.removeEventListener(\"resize\", onResizeHandler);\n window.removeEventListener(\"mousemove\", onMouseMoveHandler);\n window.removeEventListener(\"touchmove\", onTouchMoveHandler);\n if (canvas) {\n canvas.removeEventListener(\"wheel\", onWheelHandler);\n }\n babylonWorker.terminate();\n };\n }, []);\n\n return (\n <div className={`h-full w-full relative`}>\n <canvas\n ref={canvasRef}\n className={`bg-main-100 h-91 w-full flex items-center justify-center cursor-pointer`}\n />\n {!isBabylonReady ? (\n <Spinner className=\"absolute top-0 left-0 right-0 bottom-0 z-10\" />\n ) : null}\n </div>\n );\n};\n\nexport default Babylon;\n","import React, { useEffect, useState } from \"react\";\nimport { GatsbyImage, IGatsbyImageData } from \"gatsby-plugin-image\";\n\nimport Border from \"../../assets/common/border.svg\";\n\nimport ContentContainer from \"./contentContainer\";\nimport Babylon from \"../babylonjs/babylon\";\n\ntype TBannerCommonProps = {\n heightClass?: string;\n title: string;\n className?: string;\n childrenBlockClassName?: string;\n borderBottom?: boolean;\n borderTop?: boolean;\n};\ntype TBannerConditionalProps =\n | {\n babylon?: boolean;\n image?: never;\n children?: never;\n titleBlockClassName?: never;\n }\n | {\n babylon?: never;\n image?: IGatsbyImageData;\n children?: never;\n titleBlockClassName?: never;\n }\n | {\n babylon?: never;\n image?: never;\n children?: React.ReactNode;\n titleBlockClassName?: string;\n };\ntype TBannerProps = TBannerCommonProps & TBannerConditionalProps;\n\nconst Banner = ({\n heightClass = \"lg:min-h-[396px]\",\n title,\n className,\n borderBottom,\n borderTop,\n babylon,\n image,\n titleBlockClassName,\n childrenBlockClassName,\n children,\n}: TBannerProps) => {\n const [textTranslate, setTextTranslate] = useState<\n \"translate-y-full\" | \"translate-y-0\"\n >(\"translate-y-full\");\n useEffect(() => {\n setTextTranslate(\"translate-y-0\");\n }, []);\n\n return (\n <div\n className={`w-full flex items-center bg-main-100 relative overflow-hidden ${heightClass} ${className}`}\n >\n {borderTop ? (\n <Border className=\"absolute top-0 left-0 right-0 w-full\" />\n ) : null}\n <ContentContainer\n className={`h-full flex flex-col lg:flex-row py-12 lg:py-0 items-center justify-between text-secondary-100 flex-grow gap-y-8`}\n >\n <div\n className={`flex flex-col overflow-hidden items-left h-full justify-center text-secondary-100 h-full w-full ${\n titleBlockClassName ? titleBlockClassName : \"lg:w-1/2\"\n } bg-main-100`}\n >\n <h1 className={`overflow-hidden w-full`}>\n <span\n className={`banner-title inline-block text-3xl lg:text-4xl w-full text-center lg:text-start transition-all duration-1000 font-light ${textTranslate}`}\n dangerouslySetInnerHTML={{ __html: `${title}` }}\n />\n </h1>\n </div>\n {babylon ? (\n <div className=\"w-[85%] lg:w-1/2 lg:h-full hidden md:flex -order-1 lg:order-none\">\n <Babylon />\n </div>\n ) : null}\n {image ? (\n <div className=\"w-[220px] lg:w-1/2 lg:h-full flex justify-center lg:justify-end items-center -order-1 lg:order-none\">\n <GatsbyImage\n image={image}\n alt=\"cover\"\n className=\"object-contain aspect-square\"\n />\n </div>\n ) : null}\n {children ? (\n <div\n className={`w-full lg:h-full flex justify-center lg:justify-start items-center ${childrenBlockClassName}`}\n >\n {children}\n </div>\n ) : null}\n </ContentContainer>\n {borderBottom ? (\n <Border className=\"absolute bottom-0 left-0 right-0 w-full\" />\n ) : null}\n </div>\n );\n};\n\nexport default Banner;\n","import React from \"react\";\n\nimport { Theme } from \"../../types/common.type\";\n\ninterface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n theme: Theme;\n onClick?: () => any;\n className?: string;\n border?: boolean;\n}\n\nconst Button = (props: React.PropsWithChildren<IButtonProps>) => {\n const { theme, onClick, className, children, border, ...attr } = props;\n\n const colorClasses = `${\n theme === Theme.dark\n ? \"bg-main-100 text-secondary-100 border-secondary-100 hover:bg-main-70\"\n : \"bg-secondary-100 text-main-100 border-main-100 hover:bg-secondary-30\"\n }`;\n\n return (\n <button\n onClick={onClick}\n className={`flex min-w-10 items-center justify-center rounded-lg border-solid ${\n border ? \"border\" : \"\"\n } ${colorClasses} ${className}`}\n {...attr}\n >\n {children}\n </button>\n );\n};\n\nexport default Button;\n","import React from \"react\";\nimport { Link } from \"gatsby\";\n\nimport { Theme } from \"../../types/common.type\";\n\nimport Button from \"./button\";\n\nconst Pagination = ({\n section,\n pagesQuantity,\n currentPage,\n nextPageTitle,\n className,\n}: {\n section: \"projects\" | `blog${string}`;\n pagesQuantity: number;\n currentPage: number;\n nextPageTitle?: string;\n className?: string;\n}) => {\n const pages = Array.from({ length: pagesQuantity }, (_, i) => i + 1);\n const nextPage = currentPage + 1;\n\n return (\n <div className={`flex justify-center w-full gap-6 ${className}`}>\n {currentPage < pagesQuantity ? (\n <Link to={`/${section}/page/${nextPage}`} className=\"w-max shrink-0\">\n <Button\n theme={Theme.light}\n border\n aria-label={nextPageTitle ?? \"Next page\"}\n className=\"whitespace-nowrap h-10 px-5 font-bold\"\n >\n {nextPageTitle ?? \"Next page\"}\n </Button>\n </Link>\n ) : null}\n\n <nav className=\"shrink-0 flex gap-2\">\n {pagesQuantity > 1\n ? pages.map((page) => (\n <Link\n key={`pagination-link-${page}`}\n to={`/${section}/page/${page}`}\n >\n <Button\n theme={Theme.light}\n border={page === currentPage}\n aria-label=\"view page\"\n className=\"h-10 font-bold\"\n >\n {page}\n </Button>\n </Link>\n ))\n : null}\n </nav>\n </div>\n );\n};\n\nexport default Pagination;\n","import React from \"react\";\nimport { Link } from \"gatsby\";\n\nimport { BsArrowUpRight } from \"@react-icons/all-files/bs/BsArrowUpRight\";\n\nimport { IPostPreviewQueryResult } from \"../../types/post.type\";\nimport { LocalBusinessMetadata } from \"../common/metadata\";\nimport { IBlogMarkupData } from \"../../types/commonMarkup.type\";\nimport { TLang, Theme } from \"../../types/common.type\";\nimport { GatsbyImage, getImage } from \"gatsby-plugin-image\";\n\nconst PostPreview = ({\n post,\n theme,\n className,\n markupData,\n lang,\n}: {\n post: IPostPreviewQueryResult;\n className?: string;\n theme: Theme;\n markupData?: IBlogMarkupData;\n lang: TLang;\n}) => {\n const { date, title, text } = post.frontmatter;\n\n const minutes = Math.floor(post.wordCount.words / 200);\n const readingTime = minutes ? minutes : 1;\n\n const fontColorClass100 =\n theme === Theme.light ? \"text-main-100\" : \"text-secondary-100\";\n const fontColorClass70 =\n theme === Theme.light ? \"text-main-70\" : \"text-secondary-70\";\n const fontColorHover =\n theme === Theme.light ? \"hover:text-main-10\" : \"hover:text-secondary-10\";\n\n const cover = getImage(post.frontmatter.cover); \n return (\n <Link\n to={`/blog/${post.id}`}\n className={`flex flex-col sm:flex-row w-full justify-center gap-5 md:gap-14 ${fontColorClass100} ${fontColorHover} ${className}`}\n itemScope\n itemType=\"https://schema.org/Article\"\n >\n { cover &&\n <GatsbyImage\n image={cover}\n alt=\"\"\n className=\"object-cover rounded-full mr-3.5 grayscale\"\n />\n }\n <div className=\"flex flex-col w-full max-w-[400px] gap-2.5\">\n <p itemProp=\"dateCreated\" className={`text-lg ${fontColorClass70}`}>\n {date}\n </p>\n <h2\n itemProp=\"headline\"\n className={`text-3xl font-semibold ${fontColorClass100}`}\n >\n {title}\n </h2>\n </div>\n <div className=\"flex flex-col w-full max-w-[500px] gap-5\">\n <p\n className={`font-normal text-base ${fontColorClass100}`}\n itemProp=\"abstract\"\n >\n {text.split(\" \").slice(0, 70).join(\" \")}...\n </p>\n <div className=\"flex w-full items-center justify-between\">\n <div className=\"flex items-center gap-3 text-sm font-bold\">\n <span>{markupData?.readPostLink}</span>\n <BsArrowUpRight size={14} />\n </div>\n <p className={`text-sm ${fontColorClass70}`}>\n {`${readingTime} ${markupData?.readingTimeUnits} ${markupData?.readingTimeTitle}`}\n </p>\n </div>\n </div>\n <LocalBusinessMetadata itemProp=\"copyrightHolder\" lang={lang} />\n </Link>\n );\n};\n\nexport default PostPreview;\n","import React from \"react\";\nimport { HeadFC, HeadProps, PageProps, graphql } from \"gatsby\";\n\nimport { IBlogByHashtagPageContext, IBlogPageData } from \"../types/blog.type\";\nimport { Theme } from \"../types/common.type\";\n\nimport Banner from \"../components/common/banner\";\nimport ContentContainer from \"../components/common/contentContainer\";\nimport PostPreview from \"../components/posts/postPreview\";\nimport Pagination from \"../components/common/pagination\";\nimport { HeadSeo } from \"../components/common/metadata\";\n\nconst BlogByHashtag = ({\n data,\n pageContext,\n}: PageProps<IBlogPageData, IBlogByHashtagPageContext>) => {\n const posts = data.allMarkdownRemark.nodes;\n const { currentPage, pagesQuantity, markupData, lang, hashtag } = pageContext;\n\n return (\n <>\n <Banner\n heightClass=\"lg:h-99\"\n titleBlockClassName=\"w-full\"\n title={markupData.blogByHashtagBannerTitle.toUpperCase()}\n borderBottom\n >\n <p className=\"text-xl lg:text-3xl text-secondary-10 border border-solid border-secondary-10 rounded-full px-8 py-4 lg:px-10 lg:py-5\">\n #{hashtag}\n </p>\n </Banner>\n <ContentContainer className=\"flex-col items-center p-6 md:p-12 bg-secondary-100 gap-14\">\n {posts\n ? posts.map((post) => (\n <PostPreview\n theme={Theme.light}\n key={post.id}\n post={post}\n markupData={markupData}\n lang={lang}\n />\n ))\n : null}\n <Pagination\n section={`blog/${hashtag.split(\" \").join(\"-\").toLowerCase()}`}\n pagesQuantity={pagesQuantity}\n currentPage={currentPage}\n nextPageTitle={pageContext.pagination.next}\n />\n </ContentContainer>\n </>\n );\n};\n\nexport default BlogByHashtag;\n\nexport const Head: HeadFC<IBlogPageData, IBlogByHashtagPageContext> = ({\n pageContext: { markupData, currentPage, site, lang, hashtag },\n location,\n}: HeadProps<IBlogPageData, IBlogByHashtagPageContext>) => {\n return (\n <HeadSeo\n title={`${markupData.head} | ${hashtag.toUpperCase()} | ${currentPage}`}\n description={site.description}\n siteUrl={site.siteUrl}\n path={location.pathname}\n lang={lang}\n />\n );\n};\n\nexport const query = graphql`\n query ($skip: Int!, $limit: Int!, $lang: String, $hashtag: String) {\n allMarkdownRemark(\n filter: {\n fields: { sourceName: { eq: \"posts\" }, language: { eq: $lang } }\n frontmatter: { keywords: { in: [$hashtag] } }\n }\n sort: { frontmatter: { date: DESC } }\n limit: $limit\n skip: $skip\n ) {\n nodes {\n id\n frontmatter {\n date(formatString: \"DD MMM YYYY\", locale: $lang)\n title\n text\n cover {\n childImageSharp {\n gatsbyImageData(\n formats: [AUTO, WEBP, AVIF]\n placeholder: BLURRED\n width: 600\n )\n }\n }\n }\n wordCount {\n words\n }\n }\n }\n }\n`;\n","export interface ILang {\n lang: TLang;\n}\n\nexport type TLang = \"en\" | \"ru\";\n\nexport type TLinks = \"services\" | \"workflow\" | \"projects\" | \"blog\";\n\nexport interface IMarkdownFeedQuery {\n site: {\n siteMetadata: ISiteMetadata\n },\n allMarkdownRemark: {\n edges: Array<{\n node: {\n id: string;\n frontmatter: {\n title: string;\n date: string;\n authorAlias: string;\n keywords: string;\n };\n fields: {\n sourceName: string;\n };\n excerpt: string;\n };\n }>;\n };\n};\n\nexport interface IBasePageContext extends ILang {\n site: ISiteMetadata;\n}\n\nexport interface IMdQueryResult<T extends object> {\n allMarkdownRemark: {\n nodes: T[];\n };\n}\n\nexport interface ISiteMetadata {\n title: string;\n description: string;\n siteUrl: string;\n image: string;\n analytics: { gtagId: string; clarityId: string };\n commentsSetup: ICommentsSetup;\n}\n\nexport interface ICommentsSetup {\n repo: `${string}/${string}`;\n repoId: string;\n categoryId: string;\n}\n\nexport enum Theme {\n dark = \"dark\",\n light = \"light\",\n}\n","var React = require('react');\n\nfunction Border (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"line\",{\"width\":\"800\",\"height\":\"8\",\"stroke\":\"#f9f9f9\",\"strokeWidth\":\"8\",\"strokeDasharray\":\"8 8\",\"x1\":\"0\",\"x2\":\"100%\",\"y1\":\"4\",\"y2\":\"4\",\"key\":0}),React.createElement(\"line\",{\"width\":\"800\",\"height\":\"8\",\"stroke\":\"#111111\",\"strokeWidth\":\"8\",\"strokeDasharray\":\"8 8\",\"x1\":\"8\",\"x2\":\"100%\",\"y1\":\"4\",\"y2\":\"4\",\"key\":1})]);\n}\n\nBorder.defaultProps = {\"height\":\"8\"};\n\nmodule.exports = Border;\n\nBorder.default = Border;\n"],"names":["GenIcon","module","exports","props","_ref","className","___EmotionJSX","viewBox","fill","xmlns","d","Babylon","isBabylonReady","setIsBabylonReady","useState","isInitial","useRef","canvasRef","useEffect","current","window","babylonWorker","Worker","URL","type","onmessage","data","canvas","width","clientWidth","height","clientHeight","offscreenCanvas","transferControlToOffscreen","postMessage","onResizeHandler","addEventListener","passive","onWheelHandler","e","preventDefault","wheel","deltaY","onMouseMoveHandler","x","movementX","y","movementY","removeEventListener","once","onTouchMoveHandler","touches","length","firstTouch","previousCoords","screenX","screenY","newX","newY","nestedTouchMoveHandler","touch","terminate","ref","Spinner","heightClass","title","borderBottom","borderTop","babylon","image","titleBlockClassName","childrenBlockClassName","children","textTranslate","setTextTranslate","Border","ContentContainer","dangerouslySetInnerHTML","__html","GatsbyImage","alt","theme","onClick","border","attr","colorClasses","Theme","dark","_extends","section","pagesQuantity","currentPage","nextPageTitle","pages","Array","from","_","i","nextPage","Link","to","Button","light","map","page","key","post","markupData","lang","date","text","frontmatter","minutes","Math","floor","wordCount","words","readingTime","fontColorClass100","fontColorClass70","fontColorHover","cover","getImage","id","itemScope","itemType","itemProp","split","slice","join","readPostLink","BsArrowUpRight","size","readingTimeUnits","readingTimeTitle","LocalBusinessMetadata","pageContext","posts","allMarkdownRemark","nodes","hashtag","React","Banner","blogByHashtagBannerTitle","toUpperCase","PostPreview","Pagination","toLowerCase","pagination","next","Head","_ref2","site","location","HeadSeo","head","description","siteUrl","path","pathname","createElement","defaultProps","default"],"sourceRoot":""}