GoScrobble/web/node_modules/.cache/babel-loader/821e888a37cf12313cd6d4c3b08e4fc4.json

1 line
20 KiB
JSON
Raw Normal View History

2022-04-25 02:47:15 +00:00
{"ast":null,"code":"var _jsxFileName = \"/app/src/Components/TopTable.js\";\nimport React from \"react\";\nimport './TopTable.css';\nimport TopTableBox from './TopTableBox';\nimport ClipLoader from 'react-spinners/ClipLoader';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nconst TopTable = props => {\n if (!props.items || Object.keys(props.items).length < 1) {\n return /*#__PURE__*/_jsxDEV(\"span\", {\n children: [\"Not enough data to show top \", props.type, \"s.\", /*#__PURE__*/_jsxDEV(\"br\", {}, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 58\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 10\n }, this);\n }\n\n let tracks = props.items;\n\n if (props.loading) {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n style: {\n textAlign: `center`\n },\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n children: [\"Top \", props.type, \"s\"]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 7\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"biggestWrapper\",\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"biggestBox\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 10\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"biggestBox\",\n children: /*#__PURE__*/_jsxDEV(\"div\", {\n style: {\n padding: `80px`\n },\n children: /*#__PURE__*/_jsxDEV(ClipLoader, {\n color: \"#6AD7E5\",\n size: 150\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 16\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 13\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 10\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"biggestBox\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 10\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 14\n }, this);\n }\n\n return /*#__PURE__*/_jsxDEV(\"div\", {\n style: {\n textAlign: `center`\n },\n children: [/*#__PURE__*/_jsxDEV(\"span\", {\n children: [\"Top \", props.type, \"s \", props.extraText && props.extraText]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 10\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"biggestWrapper\",\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"biggestBox\",\n children: /*#__PURE__*/_jsxDEV(TopTableBox, {\n size: 300,\n number: \"1\",\n title: tracks[1].name,\n link: \"/\" + props.type + \"/\" + tracks[1].uuid,\n uuid: tracks[1].img\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 16\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 13\n }, this), Object.keys(props.items).length > 5 && /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"biggestBox\",\n children: [/*#__PURE__*/_jsxDEV(TopTableBox, {\n size: 150,\n number: \"2\",\n title: tracks[2].name,\n link: \"/\" + props.type + \"/\" + tracks[2].uuid,\n uuid: tracks[2].img\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n col