1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-26 18:04:20 +00:00
triennale-appunti-steffo/docs/route-basiDiDati.chunk.0e8d8.js.map
2020-05-24 00:54:19 +02:00

1 line
No EOL
10 KiB
Text
Generated

{"version":3,"sources":["webpack:///./components/old/timer.js","webpack:///./components/old/timer.less","webpack:///./components/old/panel.js","webpack:///./routes/basiDiDati.js","webpack:///./components/old/split.css","webpack:///./components/old/split.js","webpack:///./components/old/panel.less"],"names":["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","module","exports","Panel","getStyle","panel","undefined","id","children","BasiDiDati","href","Split","Array","isArray","map","element","splitchild","split","splitparent"],"mappings":"+KAIqBA,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,EAAS,IAAIV,KAAKI,KAAKe,MAAMC,KACLhB,KAAKL,MAAME,IAEhCoB,EAAW,EACVR,EAAQ,CACJC,aAAcO,EAAW,IACzBN,QAASO,KAAKC,MAAMF,EAAW,KAAQ,GACvCL,QAASM,KAAKC,MAAMF,EAAW,KAAS,GACxCJ,MAAOK,KAAKC,MAAMF,EAAW,MAAW,GACxCH,KAAMI,KAAKC,MAAMF,EAAW,SAKhCR,EAAQ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V,2CAGA,YACI,kDACA,2CACA,+BACI,YACI,oCACA,oCACA,sCAIZ,gCAGA,EAAC,IAAD,OAEJ,EAAC,IAAD,CAAOA,MAAO,YACV,wDAC8C,OAAGc,KAAM,gCAAT,UAD9C,gBAGA,8CAGA,EAAC,IAAD,CAAOrB,GAAI,wBACX,sFAGA,EAAC,IAAD,CAAOA,GAAI,wBACX,qDAGA,YACI,YAAI,OAAGqB,KAAM,gCAAT,cACJ,YAAI,OAAGA,KAAM,gCAAT,eAER,+D,GA7CgBV,c,yCCNxCC,EAAOC,QAAU,CAAC,MAAQ,eAAe,YAAc,qBAAqB,WAAa,sB,0GCEpES,E,gLACpBjC,OAAA,WACI,IAKO8B,EALHZ,EAAQ,KAcf,YAb2BU,IAArBjC,KAAKe,MAAMQ,QACPA,EAAS,YAAKvB,KAAKe,MAAMQ,QAKzBY,EADDI,MAAMC,QAAQxC,KAAKe,MAAMoB,UACbnC,KAAKe,MAAMoB,SAASM,KAAI,SAAAC,GAC/B,OAAQ,SAAKpB,MAAOd,IAAMmC,YAAaD,MAIhC,SAAKpB,MAAOd,IAAMmC,YAAa3C,KAAKe,MAAMoB,UAGxD,SAAKb,MAAOd,IAAMoC,OACVrB,EACD,SAAKD,MAAOd,IAAMqC,aAAcV,K,aAnBbR,a,yCCFnCC,EAAOC,QAAU,CAAC,MAAQ","file":"route-basiDiDati.chunk.0e8d8.js","sourcesContent":["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 style from \"./panel.less\";\nimport { Component } from 'preact';\n\nexport default class Panel extends Component {\n\tgetStyle() {\n\t\treturn style.panel;\n\t};\n\n\trender() {\n\t\tlet title = null;\n\t\tif(this.props.title !== undefined) {\n\t\t\ttitle = (<h3>{this.props.title}</h3>);\n\t\t}\n\n\t\treturn (\n\t\t\t<div class={this.getStyle()} id={this.props.id}>\n\t\t\t\t{title}\n\t\t\t\t{this.props.children}\n\t\t\t</div>\n\t\t);\n\t}\n}\n","import {Component} from 'preact'\nimport Split from \"../components/old/split\";\nimport Panel from \"../components/old/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 = {\"split\":\"split__3dL9r\",\"splitparent\":\"splitparent__2H-vS\",\"splitchild\":\"splitchild__1B-Jt\"};","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","// extracted by mini-css-extract-plugin\nmodule.exports = {\"panel\":\"panel__7bYPC\"};"],"sourceRoot":""}