-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---packages-gatsby-plugin-jaen-src-pages-cms-index-tsx-17861c361aee8b32a8f5.js.map
1 lines (1 loc) · 26 KB
/
component---packages-gatsby-plugin-jaen-src-pages-cms-index-tsx-17861c361aee8b32a8f5.js.map
1
{"version":3,"file":"component---packages-gatsby-plugin-jaen-src-pages-cms-index-tsx-17861c361aee8b32a8f5.js","mappings":"2NASO,MAAMA,EAA8CC,IACzD,MAAMC,GAAaC,EAAAA,EAAAA,IAAc,aAsBjC,OACEC,EAAAA,EAAAA,IAACC,EAAAA,GAAqB,CACpBC,YAAaJ,EAAWK,YAAYC,MACpCC,UAAWP,EAAWQ,gBAAgBF,MAAMG,SAC3CV,EAAMU,UACe,EAIfC,EACXC,GAEuCZ,IAEnCG,EAAAA,EAAAA,IAACJ,EAAa,CAAAW,UACZP,EAAAA,EAAAA,IAACS,EAAS,IAAKZ,K,qQCtCnBa,GAAa,QACf,SAAqBb,EAAOc,GAC1B,MAAM,UAAEC,KAAcC,GAAShB,EACzBiB,GAAS,SACf,OAAuB,IAAAC,KACrB,IAAOC,IACP,CACEL,MACAC,WAAW,IAAAK,IAAG,sBAAuBL,GACrCM,MAAOJ,EAAOK,UACXN,GAGT,I,sECLK,MAAMO,EAA4BvB,IACvC,MAAM,SAACU,EAAQ,MAAEc,KAAUC,GAAczB,EACnC0B,EAAQC,EAAAA,SACZ,IACEA,EAAAA,SAAeC,QAAQlB,GACpBmB,OAA0CF,EAAAA,gBAC1CG,KAAI,CAACC,EAAMC,EAAOC,IACjBD,EAAQ,IAAMC,EAAMC,OAChBP,EAAAA,aAAmBI,EAAM,CAACI,YAAY,IACtCJ,KAEV,CAACrB,IAEH,OACE0B,EAAAA,EAAAA,IAACC,EAAAA,EAAI,CAACC,QAAQ,UAAS5B,SAAA,EACrBP,EAAAA,EAAAA,IAACU,EAAU,CAAAH,SACRc,IACCrB,EAAAA,EAAAA,IAACoC,EAAAA,EAAI,CAACC,UAAW,EAAGC,G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UAAW0E,YAAa,SAAU1I,GAAO,IAE5F8H,YAAc,cAC1B,IAAI/D,GAAgB,QAAW,SAAwB/E,EAAOc,GAC5D,MAAM,GAAE8B,KAAO5B,GAAShB,EACxB,OAAuB,IAAAkB,KAAIK,EAAM,CAAET,MAAK8B,GAAI,KAAMoC,UAAW,UAAW0E,YAAa,SAAU1I,GACjG,IACA+D,EAAc+D,YAAc,gBAC5B,IAAIjG,GAAW,QAAW,SAAmB7C,EAAOc,GAClD,MAAMG,EAAS+H,IACf,OAAuB,IAAA9H,KAAI,IAAOyI,GAAI,CAAE7I,SAAQd,EAAOqB,MAAOJ,EAAOc,MACvE,IACAc,EAASiG,YAAc,YACR,QAAW,SAAmB9I,EAAOc,GAClD,MAAMG,EAAS+H,IACf,OAAuB,IAAA9H,KAAI,IAAM,CAAEJ,MAAK2I,KAAM,kBAAmBzJ,EAAOqB,MAAOJ,EAAOgC,MACxF,IACS6F,YAAc,U,sHCnDnB3E,GAAU,QAAW,SAAkBnE,EAAOc,GAChD,MAAMG,GAAS,QAAe,UAAWjB,IACnC,UAAEe,KAAcC,IAAS,QAAiBhB,GAChD,OAAuB,IAAAkB,KACrB,IAAO0I,GACP,CACE9I,MACAC,WAAW,IAAAK,IAAG,iBAAkBpB,EAAMe,cACnCC,EACHK,MAAOJ,GAGb,IACAkD,EAAQ2E,YAAc,S","sources":["webpack://photonq/../packages/gatsby-plugin-jaen/src/connectors/cms-management.tsx","webpack://photonq/../node_modules/@chakra-ui/card/dist/chunk-2EW3JUUD.mjs","webpack://photonq/../packages/gatsby-plugin-jaen/src/components/shared/components/List/List.tsx","webpack://photonq/../packages/gatsby-plugin-jaen/src/components/shared/components/List/ListItem.tsx","webpack://photonq/../packages/gatsby-plugin-jaen/src/components/cms/Dashboard/Dashboard.tsx","webpack://photonq/../packages/gatsby-plugin-jaen/src/pages/cms/index.tsx","webpack://photonq/../node_modules/@chakra-ui/card/dist/chunk-FHHZMTWR.mjs","webpack://photonq/../node_modules/@chakra-ui/card/dist/chunk-HAZMUPV3.mjs","webpack://photonq/../node_modules/@chakra-ui/card/dist/chunk-YQO7BFFX.mjs","webpack://photonq/../node_modules/@chakra-ui/layout/dist/chunk-2N6VWMFO.mjs","webpack://photonq/../node_modules/@chakra-ui/layout/dist/chunk-46CXQZ4E.mjs","webpack://photonq/../node_modules/@chakra-ui/layout/dist/chunk-7OLJDQMT.mjs"],"sourcesContent":["import {CMSManagementProvider, JaenPage, JaenTemplate} from 'jaen'\nimport {graphql, useStaticQuery} from 'gatsby'\n\nexport {useCMSManagementContext as useCMSManagement} from 'jaen'\n\nexport interface CMSManagementProps {\n children: React.ReactNode\n}\n\nexport const CMSManagement: React.FC<CMSManagementProps> = props => {\n const staticData = useStaticQuery<{\n allJaenPage: {\n nodes: JaenPage[]\n }\n allJaenTemplate: {\n nodes: JaenTemplate[]\n }\n }>(graphql`\n query CMSManagementData {\n allJaenPage {\n nodes {\n ...JaenPageData\n }\n }\n allJaenTemplate {\n nodes {\n ...JaenTemplateData\n }\n }\n }\n `)\n\n return (\n <CMSManagementProvider\n staticPages={staticData.allJaenPage.nodes}\n templates={staticData.allJaenTemplate.nodes}>\n {props.children}\n </CMSManagementProvider>\n )\n}\n\nexport const withCMSManagement = <P extends object>(\n Component: React.ComponentType<P>\n): React.FC<P> => {\n const WithCMSManagement: React.FC<P> = props => {\n return (\n <CMSManagement>\n <Component {...props} />\n </CMSManagement>\n )\n }\n\n return WithCMSManagement\n}\n","'use client'\nimport {\n useCardStyles\n} from \"./chunk-HAZMUPV3.mjs\";\n\n// src/card-header.tsx\nimport { cx } from \"@chakra-ui/shared-utils\";\nimport { forwardRef, chakra } from \"@chakra-ui/system\";\nimport { jsx } from \"react/jsx-runtime\";\nvar CardHeader = forwardRef(\n function CardHeader2(props, ref) {\n const { className, ...rest } = props;\n const styles = useCardStyles();\n return /* @__PURE__ */ jsx(\n chakra.div,\n {\n ref,\n className: cx(\"chakra-card__header\", className),\n __css: styles.header,\n ...rest\n }\n );\n }\n);\n\nexport {\n CardHeader\n};\n//# sourceMappingURL=chunk-2EW3JUUD.mjs.map","import {\n Box,\n Card,\n CardBody,\n CardHeader,\n Stack,\n StackProps,\n Text\n} from '@chakra-ui/react'\nimport * as React from 'react'\n\nimport type {ListItemProps} from './ListItem'\n\nexport interface ListProps extends StackProps {\n label?: string\n}\n\nexport const List: React.FC<ListProps> = props => {\n const {children, label, ...stackProps} = props\n const items = React.useMemo(\n () =>\n React.Children.toArray(children)\n .filter<React.ReactElement<ListItemProps>>(React.isValidElement)\n .map((item, index, array) =>\n index + 1 === array.length\n ? React.cloneElement(item, {isLastItem: true})\n : item\n ),\n [children]\n )\n return (\n <Card variant=\"outline\">\n <CardHeader>\n {label && (\n <Text noOfLines={1} pb=\"1\">\n {label}\n </Text>\n )}\n </CardHeader>\n <CardBody>\n <Stack as=\"ul\" {...stackProps}>\n {items}\n </Stack>\n </CardBody>\n </Card>\n )\n}\n","import {\n Circle,\n Flex,\n Heading,\n Stack,\n StackProps,\n Text,\n useColorModeValue\n} from '@chakra-ui/react'\n\nexport interface ListItemProps extends StackProps {\n title: string\n subTitle: string\n circleColor: string\n icon?: React.ReactElement\n isLastItem?: boolean\n}\n\nexport const ListItem: React.FC<ListItemProps> = props => {\n const {\n title,\n subTitle,\n circleColor,\n icon,\n isLastItem,\n children,\n ...stackProps\n } = props\n\n return (\n <Stack as=\"li\" direction=\"row\" spacing=\"4\" {...stackProps}>\n <Flex direction=\"column\" alignItems=\"center\" aria-hidden=\"true\">\n <Circle\n bg={circleColor}\n size=\"12\"\n borderWidth=\"1px\"\n color=\"fg.inverted\"\n borderColor=\"border.emphasized\">\n {icon}\n </Circle>\n {!isLastItem && (\n <Flex\n flex=\"1\"\n borderRightWidth=\"1px\"\n mb=\"-12\"\n borderColor=\"border.emphasized\"\n />\n )}\n </Flex>\n <Stack spacing=\"4\" pt=\"1\" flex=\"1\">\n <Stack>\n <Text fontSize=\"md\" fontWeight=\"semibold\">\n {title}\n </Text>\n <Text fontSize=\"sm\">{subTitle}</Text>\n </Stack>\n <Flex>{children}</Flex>\n </Stack>\n </Stack>\n )\n}\n","import {\n Card,\n CardBody,\n CardHeader,\n Heading,\n HStack,\n Icon,\n ListItem as ChakraListItem,\n SimpleGrid,\n Stack,\n Text,\n UnorderedList\n} from '@chakra-ui/react'\nimport {FaBullhorn, FaRocket} from 'react-icons/fa'\n\nimport {List, ListItem} from '../../shared/components/List'\n\nexport interface DashboardProps {\n user?: string\n isPublishing?: boolean\n patches: Array<{\n createdAt: string\n url: string\n title: string\n }>\n}\n\nexport const Dashboard: React.FC<DashboardProps> = props => {\n return (\n <Stack spacing=\"12\">\n <Heading size=\"sm\">\n {props.user ? (\n <>\n Welcome back, <Text as=\"span\">{props.user}</Text>!\n </>\n ) : (\n 'Welcome'\n )}\n </Heading>\n\n <Stack spacing=\"4\">\n <SimpleGrid\n columns={{\n base: 1,\n md: 2\n }}\n spacing=\"4\">\n <Card>\n <CardHeader>\n <HStack>\n <Icon as={FaBullhorn} boxSize={6} color=\"brand.500\" /> What is\n Jaen\n <Text>What is Jaen CMS?</Text>\n </HStack>\n </CardHeader>\n <CardBody>\n <Text>\n Jaen CMS is a friendly tool that helps you create and manage\n websites easily, without any technical knowledge required. It\n lets you add and edit content, like text and images, to your\n website without worrying about the technical stuff. It's like\n writing a document and seeing it on your website instantly!\n </Text>\n </CardBody>\n </Card>\n <Card>\n <CardHeader>\n <HStack>\n <Icon as={FaRocket} boxSize={6} color=\"brand.500\" />{' '}\n <Text>Key Features</Text>\n </HStack>\n </CardHeader>\n <CardBody>\n <UnorderedList styleType=\"disc\" pl=\"1.5rem\" spacing={3}>\n <ChakraListItem>\n Easy to Use: Jaen CMS is designed with simplicity in mind. You\n don't need to be a techie to use it. Just start creating!\n </ChakraListItem>\n <ChakraListItem>\n Instant Preview: See how your changes look on your website in\n real-time before publishing. No waiting or guessing!\n </ChakraListItem>\n <ChakraListItem>\n Safe Editing: Don't worry about making mistakes. Jaen CMS\n keeps track of your changes, so you can always go back to a\n previous version if needed.\n </ChakraListItem>\n <ChakraListItem>\n Beautiful Images: Easily add and manage images to make your\n website visually stunning and engaging.\n </ChakraListItem>\n <ChakraListItem>\n Better SEO: Improve your website's visibility in search\n engines with built-in tools to optimize your content for\n search results.\n </ChakraListItem>\n </UnorderedList>\n </CardBody>\n </Card>\n </SimpleGrid>\n </Stack>\n\n <List spacing=\"12\" overflowY=\"auto\" label=\"Previouse releases\">\n {props.isPublishing && (\n <ListItem\n title=\"In progress\"\n subTitle=\"Your website will be live in a few minutes.\"\n circleColor=\"orange.500\"\n icon={<Icon as={FaRocket} boxSize=\"6\" />}\n />\n )}\n\n {props.patches.map((m, i) => (\n <ListItem\n key={i}\n title={m.title}\n subTitle={`Published on ${new Date(m.createdAt).toLocaleString()}`}\n circleColor=\"green.500\"\n icon={<Icon as={FaRocket} boxSize=\"6\" />}\n isLastItem={i === props.patches.length - 1}\n />\n ))}\n </List>\n </Stack>\n )\n}\n","import {PageConfig, useAuthenticationContext} from 'jaen'\nimport {graphql, PageProps, useStaticQuery} from 'gatsby'\n\nimport {CMSManagement, useCMSManagement} from '../../connectors/cms-management'\nimport {Dashboard} from '../../components/cms/Dashboard'\nimport {JaenPageLayout} from '../../components/JaenPageLayout/JaenPageLayout'\nimport {useEffect} from 'react'\n\nconst DashboardPage: React.FC<PageProps> = () => {\n const authentication = useAuthenticationContext()\n\n const manager = useCMSManagement()\n\n const {\n jaenData: {patches}\n } = useStaticQuery<{\n jaenData: {\n patches: Array<{\n createdAt: string\n url: string\n title: string\n }>\n }\n }>(graphql`\n query {\n jaenData {\n patches {\n createdAt\n url\n title\n }\n }\n }\n `)\n\n const user =\n authentication.user?.details?.firstName || authentication.user?.username\n\n return (\n <Dashboard\n user={user}\n isPublishing={manager.isPublishing}\n patches={patches}\n />\n )\n}\n\nconst Page: React.FC<PageProps> = props => {\n return (\n <CMSManagement>\n <DashboardPage {...props} />\n </CMSManagement>\n )\n}\n\nexport default Page\n\nexport const pageConfig: PageConfig = {\n label: 'Jaen CMS',\n icon: 'FaTachometerAlt',\n menu: {\n type: 'app',\n group: 'cms',\n label: 'Dashboard',\n groupLabel: 'Jaen CMS',\n order: 100\n },\n breadcrumbs: [\n {\n label: 'CMS',\n path: '/cms/'\n }\n ],\n withoutJaenFrameStickyHeader: true,\n auth: {\n isAdminRequired: true\n },\n layout: {\n name: 'jaen'\n }\n}\n\nexport {Head} from 'jaen'\n","'use client'\nimport {\n useCardStyles\n} from \"./chunk-HAZMUPV3.mjs\";\n\n// src/card-body.tsx\nimport { cx } from \"@chakra-ui/shared-utils\";\nimport { forwardRef, chakra } from \"@chakra-ui/system\";\nimport { jsx } from \"react/jsx-runtime\";\nvar CardBody = forwardRef(function CardBody2(props, ref) {\n const { className, ...rest } = props;\n const styles = useCardStyles();\n return /* @__PURE__ */ jsx(\n chakra.div,\n {\n ref,\n className: cx(\"chakra-card__body\", className),\n __css: styles.body,\n ...rest\n }\n );\n});\n\nexport {\n CardBody\n};\n//# sourceMappingURL=chunk-FHHZMTWR.mjs.map","'use client'\n\n// src/card-context.tsx\nimport { createStylesContext } from \"@chakra-ui/system\";\nvar [CardStylesProvider, useCardStyles] = createStylesContext(\"Card\");\n\nexport {\n CardStylesProvider,\n useCardStyles\n};\n//# sourceMappingURL=chunk-HAZMUPV3.mjs.map","'use client'\nimport {\n CardStylesProvider\n} from \"./chunk-HAZMUPV3.mjs\";\n\n// src/card.tsx\nimport { cx } from \"@chakra-ui/shared-utils\";\nimport {\n forwardRef,\n chakra,\n omitThemingProps,\n useMultiStyleConfig\n} from \"@chakra-ui/system\";\nimport { jsx } from \"react/jsx-runtime\";\nvar Card = forwardRef(function Card2(props, ref) {\n const {\n className,\n children,\n direction = \"column\",\n justify,\n align,\n ...rest\n } = omitThemingProps(props);\n const styles = useMultiStyleConfig(\"Card\", props);\n return /* @__PURE__ */ jsx(\n chakra.div,\n {\n ref,\n className: cx(\"chakra-card\", className),\n __css: {\n display: \"flex\",\n flexDirection: direction,\n justifyContent: justify,\n alignItems: align,\n position: \"relative\",\n minWidth: 0,\n wordWrap: \"break-word\",\n ...styles.container\n },\n ...rest,\n children: /* @__PURE__ */ jsx(CardStylesProvider, { value: styles, children })\n }\n );\n});\n\nexport {\n Card\n};\n//# sourceMappingURL=chunk-YQO7BFFX.mjs.map","'use client'\nimport {\n Grid\n} from \"./chunk-JARCRF6W.mjs\";\n\n// src/simple-grid.tsx\nimport {\n forwardRef,\n getToken,\n useTheme\n} from \"@chakra-ui/system\";\nimport { mapResponsive } from \"@chakra-ui/breakpoint-utils\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SimpleGrid = forwardRef(\n function SimpleGrid2(props, ref) {\n const { columns, spacingX, spacingY, spacing, minChildWidth, ...rest } = props;\n const theme = useTheme();\n const templateColumns = minChildWidth ? widthToColumns(minChildWidth, theme) : countToColumns(columns);\n return /* @__PURE__ */ jsx(\n Grid,\n {\n ref,\n gap: spacing,\n columnGap: spacingX,\n rowGap: spacingY,\n templateColumns,\n ...rest\n }\n );\n }\n);\nSimpleGrid.displayName = \"SimpleGrid\";\nfunction toPx(n) {\n return typeof n === \"number\" ? `${n}px` : n;\n}\nfunction widthToColumns(width, theme) {\n return mapResponsive(width, (value) => {\n const _value = getToken(\"sizes\", value, toPx(value))(theme);\n return value === null ? null : `repeat(auto-fit, minmax(${_value}, 1fr))`;\n });\n}\nfunction countToColumns(count) {\n return mapResponsive(\n count,\n (value) => value === null ? null : `repeat(${value}, minmax(0, 1fr))`\n );\n}\n\nexport {\n SimpleGrid\n};\n//# sourceMappingURL=chunk-2N6VWMFO.mjs.map","'use client'\n\n// src/list.tsx\nimport { Icon } from \"@chakra-ui/icon\";\nimport { createContext } from \"@chakra-ui/react-context\";\nimport { getValidChildren } from \"@chakra-ui/react-children-utils\";\nimport {\n chakra,\n forwardRef,\n omitThemingProps,\n useMultiStyleConfig\n} from \"@chakra-ui/system\";\nimport { jsx } from \"react/jsx-runtime\";\nvar [ListStylesProvider, useListStyles] = createContext({\n name: `ListStylesContext`,\n errorMessage: `useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" `\n});\nvar List = forwardRef(function List2(props, ref) {\n const styles = useMultiStyleConfig(\"List\", props);\n const {\n children,\n styleType = \"none\",\n stylePosition,\n spacing,\n ...rest\n } = omitThemingProps(props);\n const validChildren = getValidChildren(children);\n const selector = \"& > *:not(style) ~ *:not(style)\";\n const spacingStyle = spacing ? { [selector]: { mt: spacing } } : {};\n return /* @__PURE__ */ jsx(ListStylesProvider, { value: styles, children: /* @__PURE__ */ jsx(\n chakra.ul,\n {\n ref,\n listStyleType: styleType,\n listStylePosition: stylePosition,\n role: \"list\",\n __css: { ...styles.container, ...spacingStyle },\n ...rest,\n children: validChildren\n }\n ) });\n});\nList.displayName = \"List\";\nvar OrderedList = forwardRef((props, ref) => {\n const { as, ...rest } = props;\n return /* @__PURE__ */ jsx(List, { ref, as: \"ol\", styleType: \"decimal\", marginStart: \"1em\", ...rest });\n});\nOrderedList.displayName = \"OrderedList\";\nvar UnorderedList = forwardRef(function UnorderedList2(props, ref) {\n const { as, ...rest } = props;\n return /* @__PURE__ */ jsx(List, { ref, as: \"ul\", styleType: \"initial\", marginStart: \"1em\", ...rest });\n});\nUnorderedList.displayName = \"UnorderedList\";\nvar ListItem = forwardRef(function ListItem2(props, ref) {\n const styles = useListStyles();\n return /* @__PURE__ */ jsx(chakra.li, { ref, ...props, __css: styles.item });\n});\nListItem.displayName = \"ListItem\";\nvar ListIcon = forwardRef(function ListIcon2(props, ref) {\n const styles = useListStyles();\n return /* @__PURE__ */ jsx(Icon, { ref, role: \"presentation\", ...props, __css: styles.icon });\n});\nListIcon.displayName = \"ListIcon\";\n\nexport {\n useListStyles,\n List,\n OrderedList,\n UnorderedList,\n ListItem,\n ListIcon\n};\n//# sourceMappingURL=chunk-46CXQZ4E.mjs.map","'use client'\n\n// src/heading.tsx\nimport {\n chakra,\n forwardRef,\n omitThemingProps,\n useStyleConfig\n} from \"@chakra-ui/system\";\nimport { cx } from \"@chakra-ui/shared-utils\";\nimport { jsx } from \"react/jsx-runtime\";\nvar Heading = forwardRef(function Heading2(props, ref) {\n const styles = useStyleConfig(\"Heading\", props);\n const { className, ...rest } = omitThemingProps(props);\n return /* @__PURE__ */ jsx(\n chakra.h2,\n {\n ref,\n className: cx(\"chakra-heading\", props.className),\n ...rest,\n __css: styles\n }\n );\n});\nHeading.displayName = \"Heading\";\n\nexport {\n Heading\n};\n//# sourceMappingURL=chunk-7OLJDQMT.mjs.map"],"names":["CMSManagement","props","staticData","useStaticQuery","_jsx","CMSManagementProvider","staticPages","allJaenPage","nodes","templates","allJaenTemplate","children","withCMSManagement","Component","CardHeader","ref","className","rest","styles","jsx","div","cx","__css","header","List","label","stackProps","items","React","toArray","filter","map","item","index","array","length","isLastItem","_jsxs","Card","variant","Text","noOfLines","pb","CardBody","Stack","as","ListItem","title","subTitle","circleColor","icon","direction","spacing","Flex","alignItems","Circle","bg","size","borderWidth","color","borderColor","flex","borderRightWidth","mb","pt","fontSize","fontWeight","Dashboard","Heading","user","_Fragment","SimpleGrid","columns","base","md","HStack","Icon","FaBullhorn","boxSize","FaRocket","UnorderedList","styleType","pl","ChakraListItem","overflowY","isPublishing","patches","m","i","Date","createdAt","toLocaleString","DashboardPage","_authentication$user","_authentication$user$","_authentication$user2","authentication","useAuthenticationContext","manager","useCMSManagement","jaenData","details","firstName","username","pageConfig","menu","type","group","groupLabel","order","breadcrumbs","path","withoutJaenFrameStickyHeader","auth","isAdminRequired","layout","name","body","CardStylesProvider","useCardStyles","justify","align","display","flexDirection","justifyContent","position","minWidth","wordWrap","container","value","spacingX","spacingY","minChildWidth","theme","templateColumns","width","_value","n","widthToColumns","count","gap","columnGap","rowGap","displayName","ListStylesProvider","useListStyles","errorMessage","stylePosition","validChildren","spacingStyle","mt","ul","listStyleType","listStylePosition","role","marginStart","li","h2"],"sourceRoot":""}