1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-29 19:34:19 +00:00
triennale-appunti-steffo/docs/route-basiDiDati.chunk.34329.js.map
2020-05-27 18:31:11 +02:00

1 line
No EOL
12 KiB
Text
Generated

{"version":3,"sources":["webpack:///./components/Elements/Box.less","webpack:///./components/old/timer.js","webpack:///./components/old/timer.less","webpack:///./routes/basiDiDati.js","webpack:///./components/Elements/Panel.less","webpack:///./components/Elements/Box.js","webpack:///./components/old/split.css","webpack:///./components/Elements/Panel.js","webpack:///./components/old/split.js"],"names":["module","exports","Timer","state","Date","now","timer","componentDidMount","this","setInterval","setState","componentWillUnmount","clearInterval","render","dateTo","className","style","parts","milliseconds","seconds","minutes","hours","days","props","to","timeLeft","Math","floor","expired","unknown","class","title","count","text","remaining","Component","BasiDiDati","href","BoxColors","Object","freeze","RED","red","ORANGE","orange","YELLOW","yellow","LIME","lime","CYAN","cyan","BLUE","blue","MAGENTA","magenta","DEFAULT","default","color","box","children","contents","Split","undefined","Array","isArray","map","element","splitchild","split","splitparent"],"mappings":"4EACAA,EAAOC,QAAU,CAAC,IAAM,aAAa,QAAU,iBAAiB,IAAM,aAAa,OAAS,gBAAgB,OAAS,gBAAgB,KAAO,cAAc,KAAO,cAAc,KAAO,cAAc,QAAU,mB,sHCGzLC,E,YACjB,aAAc,aACV,sBACKC,MAAQ,CACT,IAAOC,KAAKC,OAEhB,EAAKC,MAAQ,KALH,E,0HAQdC,kBAAA,WAAoB,WAChBC,KAAKF,MAAQG,aAAY,WACrB,EAAKC,SAAS,CAAC,IAAON,KAAKC,UAC5B,M,EAGPM,qBAAA,WACsB,OAAfH,KAAKF,OACJM,cAAcJ,KAAKF,Q,EAI3BO,OAAA,WACI,IAAIC,EAAS,eACTC,EAAYC,IAAMV,MAElBW,EAAQ,CACRC,aAAc,IACdC,QAAS,IACTC,QAAS,IACTC,MAAO,IACPC,KAAM,KAGV,GAAGd,KAAKe,MAAMC,GAAI,CAEd,IAAIC,GADJX,EA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pC,MAAOd,IAAMmD,YAAaD,MAIhC,SAAKpC,MAAOd,IAAMmD,YAAa3D,KAAKe,MAAMoC,UAGxD,SAAK7B,MAAOd,IAAMoD,OACVrC,EACD,SAAKD,MAAOd,IAAMqD,aAAcV,K,aAnBbxB,a","file":"route-basiDiDati.chunk.34329.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"box\":\"box__3cKyY\",\"default\":\"default__v-emJ\",\"red\":\"red__339Cz\",\"orange\":\"orange__24_8v\",\"yellow\":\"yellow__1Jo9W\",\"lime\":\"lime__34yV5\",\"cyan\":\"cyan__3RqLr\",\"blue\":\"blue__13Wnj\",\"magenta\":\"magenta__2tkzq\"};","import {Component} from 'preact'\nimport style from \"./timer.less\"\n\n\nexport default class Timer extends Component {\n constructor() {\n super();\n this.state = {\n \"now\": Date.now()\n };\n this.timer = null;\n }\n\n componentDidMount() {\n this.timer = setInterval(() => {\n this.setState({\"now\": Date.now()})\n }, 1000)\n }\n\n componentWillUnmount() {\n if(this.timer !== null) {\n clearInterval(this.timer)\n }\n }\n\n render() {\n let dateTo = \"Unknown date\";\n let className = style.timer;\n\n let parts = {\n milliseconds: \"?\",\n seconds: \"?\",\n minutes: \"?\",\n hours: \"?\",\n days: \"?\",\n };\n\n if(this.props.to) {\n dateTo = new Date(this.props.to);\n let timeLeft = dateTo - this.state.now;\n\n if(timeLeft > 0) {\n parts = {\n milliseconds: timeLeft % 1000,\n seconds: Math.floor(timeLeft / 1000) % 60,\n minutes: Math.floor(timeLeft / 60000) % 60,\n hours: Math.floor(timeLeft / 3600000) % 24,\n days: Math.floor(timeLeft / 86400000),\n };\n }\n\n else {\n parts = {\n milliseconds: 0,\n seconds: 0,\n minutes: 0,\n hours: 0,\n days: 0,\n };\n\n className += \" \" + style.expired;\n }\n }\n else {\n className += \" \" + style.unknown;\n }\n\n return (\n <div class={className} title={dateTo}>\n <div class={style.days + \" \" + style.count}>\n {parts.days}\n </div>\n <div className={style.days + \" \" + style.text}>\n giorni\n </div>\n <div class={style.hours + \" \" + style.count}>\n {parts.hours}\n </div>\n <div className={style.hours + \" \" + style.text}>\n ore\n </div>\n <div class={style.minutes + \" \" + style.count}>\n {parts.minutes}\n </div>\n <div className={style.minutes + \" \" + style.text}>\n minuti\n </div>\n <div class={style.seconds + \" \" + style.count}>\n {parts.seconds}\n </div>\n <div class={style.seconds + \" \" + style.text}>\n secondi\n </div>\n <div class={style.remaining}>\n rimasti\n </div>\n </div>\n )\n }\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"timer\":\"timer__K0K_h\",\"days\":\"days__vN3tf\",\"hours\":\"hours__3v0KX\",\"minutes\":\"minutes__vkYk7\",\"seconds\":\"seconds__3gJ99\",\"count\":\"count__1VV4k\",\"text\":\"text__khS4i\",\"remaining\":\"remaining__zUECg\",\"unknown\":\"unknown__af307\",\"expired\":\"expired__1rtHB\"};","import {Component} from 'preact'\nimport Split from \"../components/old/split\";\nimport Panel from \"../components/Elements/Panel\";\nimport Timer from \"../components/old/timer\";\n\nconst r = String.raw;\n\nexport default class BasiDiDati extends Component {\n render() {\n return (\n <div>\n <h1>Basi di dati</h1>\n <Split title={\"Esame\"}>\n <Panel title={\"Scritto\"}>\n <p>\n Uno scritto con tre domande:\n </p>\n <ul>\n <li>Progettazione concettuale e logica</li>\n <li>Formulazione interrogazione</li>\n <li>Una domanda tra:\n <ul>\n <li>Studio dato derivato</li>\n <li>Progettazione fisica</li>\n <li>Tecnologia database</li>\n </ul>\n </li>\n </ul>\n <p>\n Prossimo appello:\n </p>\n <Timer/>\n </Panel>\n <Panel title={\"Progetto\"}>\n <p>\n In gruppo, progettare un database secondo <a href={\"https://t.me/unimorefiles/23\"}>queste</a> specifiche.\n </p>\n <p>\n Termine ultimo per la consegna:\n </p>\n <Timer to={\"2021-05-31 23:59:59\"}/>\n <p>\n Consegnando il progetto prima della fine di Luglio si otterrà un bonus!\n </p>\n <Timer to={\"2020-07-31 23:59:59\"}/>\n <p>\n Esempi di progetti degli anni passati:\n </p>\n <ul>\n <li><a href={\"https://t.me/unimorefiles/25\"}>Esempio 1</a></li>\n <li><a href={\"https://t.me/unimorefiles/26\"}>Esempio 2</a></li>\n </ul>\n <p>\n Presentando il progetto si otterrà un bonus!\n </p>\n </Panel>\n </Split>\n </div>\n )\n }\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"title\":\"title__3ZVpg\",\"contents\":\"contents__20_NI\"};","import style from \"./Box.less\";\r\n\r\nexport const BoxColors = Object.freeze({\r\n RED: style.red,\r\n ORANGE: style.orange,\r\n YELLOW: style.yellow,\r\n LIME: style.lime,\r\n CYAN: style.cyan,\r\n BLUE: style.blue,\r\n MAGENTA: style.magenta,\r\n DEFAULT: style.default\r\n})\r\n\r\nexport default function (props) {\r\n let color = BoxColors.DEFAULT;\r\n if(props.color) {\r\n color = props.color;\r\n }\r\n\r\n return (\r\n <div class={style.box + \" \" + color}>\r\n {props.children}\r\n </div>\r\n );\r\n}\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"split\":\"split__3dL9r\",\"splitparent\":\"splitparent__2H-vS\",\"splitchild\":\"splitchild__1B-Jt\"};","import style from \"./Panel.less\";\nimport Box from \"./Box\";\n\nexport default function(props) {\n\treturn (\n\t\t<Box color={props.color}>\n\t\t\t<h3 class={style.title}>\n\t\t\t\t{props.title}\n\t\t\t</h3>\n\t\t\t<div class={style.contents}>\n\t\t\t\t{props.children}\n\t\t\t</div>\n\t\t</Box>\n\t);\n}\n","import style from \"./split.css\";\nimport { Component } from 'preact';\n\nexport default class Split extends Component {\n\trender() {\n\t let title = null;\n\t if(this.props.title !== undefined) {\n title = (<h2>{this.props.title}</h2>)\n }\n\n let children;\n if(Array.isArray(this.props.children)) {\n children = this.props.children.map(element => {\n return (<div class={style.splitchild}>{element}</div>);\n });\n }\n else {\n children = <div class={style.splitchild}>{this.props.children}</div>;\n }\n\t\treturn (\n\t <div class={style.split}>\n {title}\n <div class={style.splitparent}>{children}</div>\n </div>\n );\n\t}\n}\n"],"sourceRoot":""}