mirror of
https://gitee.com/antv/g6.git
synced 2024-12-01 19:28:39 +08:00
1 line
7.3 KiB
Plaintext
1 line
7.3 KiB
Plaintext
{"version":3,"sources":["../../node_modules/.pnpm/@antv+dumi-theme-antv@0.5.3_@algolia+client-search@5.15.0_@babel+core@7.26.0_@types+react@18._yrafhbpyip7hbzssrumeqz3phy/node_modules/@antv/dumi-theme-antv/dist/pages/Examples/index.js"],"sourcesContent":["function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nimport React from 'react';\nimport { useContext, useEffect } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { BackTop, Layout as AntLayout } from 'antd';\nimport { useLocale } from 'dumi';\nimport { SEO } from \"../../slots/SEO\";\nimport { Header } from \"../../slots/Header\";\nimport { Footer } from \"../../slots/Footer\";\nimport NavigatorBanner from \"../../slots/Header/Products/NavigatorBanner\";\nimport { VerticalAlignTopOutlined } from '@ant-design/icons';\nimport { Article } from \"./components/Article\";\nimport { ExampleTopicMenu } from \"./components/ExampleTopicMenu\";\nimport { GalleryPageContent } from \"./components/GalleryPageContent\";\nimport { usePrevAndNext } from \"../../slots/hooks\";\nimport { ThemeAntVContext } from \"../../context\";\nimport styles from \"./index.module.less\";\n\n/**\n * Examples 页面\n *\n * @author YuZhanglong <loveyzl1123@gmail.com>\n */\nvar Example = function Example() {\n var nav = useNavigate();\n var locale = useLocale();\n /** 示例页面的元数据信息 */\n var metaData = useContext(ThemeAntVContext);\n var exampleTopics = metaData.meta.exampleTopics;\n var _usePrevAndNext = usePrevAndNext(),\n _usePrevAndNext2 = _slicedToArray(_usePrevAndNext, 2),\n prev = _usePrevAndNext2[0],\n next = _usePrevAndNext2[1];\n var title = {\n zh: '所有图表',\n en: \"Gallery\"\n };\n // 为 zh 做兜底\n useEffect(function () {\n var p = window.location.pathname;\n if (p.includes('/zh/')) {\n nav(p.replace('/zh/', '/'));\n }\n }, []);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SEO, {\n title: title[locale.id]\n }), /*#__PURE__*/React.createElement(Header, {\n isHomePage: false\n }), /*#__PURE__*/React.createElement(AntLayout, {\n hasSider: true,\n className: styles.layout\n }, /*#__PURE__*/React.createElement(ExampleTopicMenu, {\n exampleTopics: exampleTopics\n }), /*#__PURE__*/React.createElement(Article, {\n className: styles.markdown\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.main,\n style: {\n width: '100%'\n }\n }, /*#__PURE__*/React.createElement(GalleryPageContent, {\n exampleTopics: exampleTopics\n }), /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(NavigatorBanner, {\n type: \"prev\",\n post: prev\n }), /*#__PURE__*/React.createElement(NavigatorBanner, {\n type: \"next\",\n post: next\n })), /*#__PURE__*/React.createElement(BackTop, {\n style: {\n right: 32\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.backTop\n }, /*#__PURE__*/React.createElement(VerticalAlignTopOutlined, null)))))), /*#__PURE__*/React.createElement(Footer, {\n isDynamicFooter: true\n }));\n};\nexport default Example;"],"names":[],"mappings":"+PAmFA,+CAAA,8CA7EkB,iBAEU,gBACiB,gBACnB,gBACN,gBACG,gBACA,oBACK,iBACa,gBACjB,gBACS,gBACE,gBACJ,gBACE,oBACd,aAlBnB,SAAS,EAAkB,CAAG,CAAE,CAAG,EAAQ,CAAA,AAAO,MAAP,GAAe,EAAM,EAAI,MAAM,AAAD,GAAG,CAAA,EAAM,EAAI,MAAM,AAAD,EAAG,IAAK,IAAI,EAAI,EAAG,EAAO,AAAI,MAAM,GAAM,EAAI,EAAK,IAAK,CAAI,CAAC,EAAE,CAAG,CAAG,CAAC,EAAE,CAAE,OAAO,EAAM,KAgFlL,EAvDc,WACZ,IA7BsB,EA6BlB,EAAM,GAAA,aAAW,IACjB,EAAS,GAAA,WAAS,IAGlB,EAAgB,AADL,GAAA,YAAU,EAAC,kBAAgB,EACb,IAAI,CAAC,aAAa,CAE7C,EAnCqC,AAKzC,SAAyB,CAAG,EAAI,GAAI,MAAM,OAAO,CAAC,GAAM,OAAO,EAAK,EAL5C,EAkCA,GAAA,gBAAc,MAlC2B,AAIjE,SAA+B,CAAC,CAAE,CAAC,EAAI,IAAI,EAAI,MAAQ,EAAI,KAAO,aAAe,OAAO,QAAU,CAAC,CAAC,OAAO,QAAQ,CAAC,EAAI,CAAC,CAAC,aAAa,CAAE,GAAI,MAAQ,EAAG,CAAE,IAAI,EAAG,EAAG,EAAG,EAAG,EAAI,EAAE,CAAE,EAAI,CAAC,EAAG,EAAI,CAAC,EAAG,GAAI,CAAuF,IA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