mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
4.4 KiB
JSON
1 line
4.4 KiB
JSON
{"ast":null,"code":"var _jsxFileName = \"/app/src/Components/ScrobbleTable.js\";\nimport React from \"react\";\nimport { Link } from 'react-router-dom';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nconst ScrobbleTable = props => {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n style: {\n border: `1px solid #FFFFFF`,\n width: `100%`,\n display: `flex`,\n flexWrap: `wrap`,\n minWidth: `300px`,\n maxWidth: `900px`\n },\n children: props.data && props.data.map(function (element) {\n let localTime = new Date(element.time);\n return /*#__PURE__*/_jsxDEV(\"div\", {\n style: {\n borderBottom: `1px solid #CCC`,\n width: `100%`,\n padding: `2px`\n },\n children: [localTime.toLocaleString(), /*#__PURE__*/_jsxDEV(\"br\", {}, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 49\n }, this), /*#__PURE__*/_jsxDEV(Link, {\n to: \"/artist/\" + element.artist.uuid,\n children: element.artist.name\n }, \"artist\" + element.time, false, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }, this), \" -\", /*#__PURE__*/_jsxDEV(Link, {\n to: \"/track/\" + element.track.uuid,\n children: [\" \", element.track.name]\n }, \"track\" + element.time, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 22\n }, this)]\n }, \"box\" + element.time, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 23\n }, this);\n })\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 6,\n columnNumber: 9\n }, this);\n};\n\n_c = ScrobbleTable;\nexport default ScrobbleTable;\n\nvar _c;\n\n$RefreshReg$(_c, \"ScrobbleTable\");","map":{"version":3,"sources":["/app/src/Components/ScrobbleTable.js"],"names":["React","Link","ScrobbleTable","props","border","width","display","flexWrap","minWidth","maxWidth","data","map","element","localTime","Date","time","borderBottom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AWF,KAbD;AAVJ;AAAA;AAAA;AAAA;AAAA,UADJ;AA4BH,CA7BD;;KAAMb,a;AA+BN,eAAeA,aAAf","sourcesContent":["import React from \"react\";\nimport { Link } from 'react-router-dom';\n\nconst ScrobbleTable = (props) => {\n return (\n <div style={{\n border: `1px solid #FFFFFF`,\n width: `100%`,\n display: `flex`,\n flexWrap: `wrap`,\n minWidth: `300px`,\n maxWidth: `900px`,\n }}>\n {\n props.data &&\n props.data.map(function (element) {\n let localTime = new Date(element.time);\n return <div style={{borderBottom: `1px solid #CCC`, width: `100%`, padding: `2px`}} key={\"box\" + element.time}>\n {localTime.toLocaleString()}<br/>\n <Link\n key={\"artist\" + element.time}\n to={\"/artist/\"+element.artist.uuid}\n >{element.artist.name}</Link> -\n <Link\n key={\"track\" + element.time}\n to={\"/track/\"+element.track.uuid}\n > {element.track.name}</Link>\n </div>;\n })\n }\n </div>\n );\n}\n\nexport default ScrobbleTable;"]},"metadata":{},"sourceType":"module"} |