chaoticbackup.github.io/build/4.js
2019-12-09 14:50:33 -05:00

1 line
2.7 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{393:function(e,t,n){},396:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));var a=n(122),r=n.n(a),l=n(62),o=n.n(l),i=n(53),c=n.n(i),s=n(119),u=n.n(s),d=n(120),m=n.n(d),h=n(121),f=n.n(h),b=n(0),p=n.n(b),E=n(54),v=n(34),w=(n(393),n(6),function(){return p.a.createElement("a",{href:"https://github.com/chaoticbackup",className:"name",rel:"noreferrer noopener",target:"_blank"},"Chaotic Backup Project")}),k=function(e){var t=e.block,n=e.text;return p.a.createElement("div",{className:"lore"},p.a.createElement("div",{className:"title"},t),n.map((function(e,t){return p.a.createElement("div",{key:t},e)})))},y=function(e){function t(){var e,n;o()(this,t);for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return(n=u()(this,(e=m()(t)).call.apply(e,[this].concat(r)))).state={lore:[]},n}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){var e=this;fetch("/src/json/starter_lore.json").then((function(e){return e.json()})).then((function(t){e.setState({lore:t})})).catch((function(){e.setState({lore:[{block:"Unable to load lore...",text:[]}]})}))}},{key:"render",value:function(){return p.a.createElement("div",null,p.a.createElement("br",null),p.a.createElement("div",{className:"with-love"},p.a.createElement("div",null,"Welcome to the ",p.a.createElement(w,null),"."),p.a.createElement("span",null,"Built by fans for fans."),p.a.createElement("br",null),p.a.createElement("br",null),p.a.createElement("div",null,"Made with ",p.a.createElement("span",{className:"heart"},"♥")," by",p.a.createElement("br",null),"Danude Sandstorm (Project Lead)",p.a.createElement("br",null),"Chiodosin1 (Database Contributions)",p.a.createElement("br",null),"Afjak and Blitser (Art and Knowledge)"),p.a.createElement("div",null,"Do you like the site? You can donate to support it!"),p.a.createElement("div",{className:"donate"},p.a.createElement(v.e,null)),p.a.createElement("div",{className:"lore"},"We were unsatisfied with the options on how to search for cards. I took the design of the old Chaotic website and added my own modernizations. With an extensive lists of search options in the ",p.a.createElement(E.b,{to:"/collection"},"collection"),", you'll find deck building mores streamlined than ever before. Chaotic is full of rich lore, but unfortunately the best database of official lore disapeared when the ",p.a.createElement(E.b,{to:"/portal"},"Portal to Perim")," disapeared along with the site. You can again explore the official lore and information of Creatures!"),p.a.createElement("br",null),this.state.lore.length>0?this.state.lore.map((function(e,t){return p.a.createElement(k,r()({key:t},e))})):"Loading lore entries..."))}}]),t}(p.a.Component)}}]);