1 line
11 KiB
JSON
1 line
11 KiB
JSON
|
{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/pages/TimelineDemo.js\";\n\nimport React from 'react';\nimport { Button } from 'primereact/button';\nimport { Card } from 'primereact/card';\nimport { Timeline } from 'primereact/timeline';\nimport classNames from 'classnames';\n\nvar TimelineDemo = function TimelineDemo() {\n var customEvents = [{\n status: 'Ordered',\n date: '15/10/2020 10:30',\n icon: 'pi pi-shopping-cart',\n color: '#9C27B0',\n image: 'game-controller.jpg'\n }, {\n status: 'Processing',\n date: '15/10/2020 14:00',\n icon: 'pi pi-cog',\n color: '#673AB7'\n }, {\n status: 'Shipped',\n date: '15/10/2020 16:15',\n icon: 'pi pi-envelope',\n color: '#FF9800'\n }, {\n status: 'Delivered',\n date: '16/10/2020 10:00',\n icon: 'pi pi-check',\n color: '#607D8B'\n }];\n var horizontalEvents = ['2020', '2021', '2022', '2023'];\n\n var customizedContent = function customizedContent(item) {\n return /*#__PURE__*/React.createElement(Card, {\n title: item.status,\n subTitle: item.date,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }\n }, item.image && /*#__PURE__*/React.createElement(\"img\", {\n src: \"assets/demo/images/product/\".concat(item.image),\n onError: function onError(e) {\n return e.target.src = 'https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png';\n },\n alt: item.name,\n width: 200,\n className: \"shadow-2 mb-3\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 33\n }\n }), /*#__PURE__*/React.createElement(\"p\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 17\n }\n }, \"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!\"), /*#__PURE__*/React.createElement(Button, {\n label: \"Read more\",\n className: \"p-button-text\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 17\n }\n }));\n };\n\n var customizedMarker = function customizedMarker(item) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"flex w-2rem h-2rem align-items-center justify-content-center text-white border-circle z-1 shadow-2\",\n style: {\n backgroundColor: item.color\n },\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: classNames('marker-icon', item.icon),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 17\n }\n }));\n };\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"grid timeline-demo\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 12\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"col-12\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"card\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h4\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 17\n }\n }, \"Timeline\"), /*#__PURE__*/React.createElement(\"h5\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\
|