text: (this["webpackJsonpshow-site"]=this["webpackJsonpshow-site"]||[]).push([[5],{437:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return v}));var r=a(26),n=a(27),l=a(29),c=a(28),i=a(30),s=a(0),m=a.n(s),o=a(135),d=a(426),p=a(99),u=a(100),h=a(53),E=function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){return m.a.createElement("li",{className:"paper-item list-group-item"},m.a.createElement("div",{className:"paper-item-content"},m.a.createElement("h6",{className:"paper-item-title"},this.props.title),m.a.createElement("p",{className:"paper-item-conf"},this.props.conf),m.a.createElement("small",{className:"paper-item-author"},this.props.author)),m.a.createElement("a",{className:"paper-item-link",href:this.props.link?this.props.link:null},m.a.createElement(d.a,{size:"18"}),"pdf"))}}]),t}(m.a.Component),v=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(l.a)(this,Object(c.a)(t).call(this,e))).scrollToAnchor=function(e){if(e){var t=document.getElementById(e);t&&t.scrollIntoView()}},a.state={paper_list:[],load:!1,error:!1,error_msg:"error"},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(p.a)("GET","http://39.100.113.162/info/paper/paper.php").then((function(t){0===t.code?e.setState({paper_list:t.data,load:!0,error:!1}):e.setState({error:!0})}),(function(t){console.log(t),e.setState({error:!0,error_msg:t.message})}))}},{key:"render",value:function(){var e=this,t=[],a=this.state.paper_list.map((function(a){var r=a.paper_list.map((function(e,t){return m.a.createElement(E,{key:t,title:e.paper_title,conf:e.conf,author:e.author,link:e.pdf_link})}));return t.push(m.a.createElement(h.b,{onClick:function(){return e.scrollToAnchor(a.year)},to:"#".concat(a.year)},a.year)),m.a.createElement("div",{key:a.year,id:"".concat(a.year)},m.a.createElement("h4",{className:"subtitle"},a.year),m.a.createElement("ul",{className:"list-group"},r))})),r=function(){return m.a.createElement("div",{className:"content-loader d-flex justify-content-between"},m.a.createElement("div",{className:"w-100 p-2"},m.a.createElement("div",{className:"content-loader-rect rounded-pill  m-3",style:{width:"85%",height:".8rem"}},m.a.createElement("div",{className:"animated-bg"})),m.a.createElement("div",{className:"content-loader-rect rounded-pill  m-3",style:{width:"60%",height:".8rem"}},m.a.createElement("div",{className:"animated-bg"})),m.a.createElement("div",{className:"content-loader-rect rounded-pill  m-3",style:{width:"60%",height:".8rem"}},m.a.createElement("div",{className:"animated-bg"}))),m.a.createElement("div",{className:"w-50 p-2"},m.a.createElement("div",{className:"content-loader-rect rounded-pill  m-3",style:{width:"85%",height:".8rem"}},m.a.createElement("div",{className:"animated-bg"})),m.a.createElement("div",{className:"content-loader-rect rounded-pill  m-3",style:{width:"75%",height:".8rem"}},m.a.createElement("div",{className:"animated-bg"}))))};return this.state.error?m.a.createElement("div",null,m.a.createElement(o.a,null),m.a.createElement("div",{className:"container paper-container"},m.a.createElement(u.a,{text:this.state.error_msg}))):this.state.load?m.a.createElement("div",null," ",m.a.createElement(o.a,null),m.a.createElement("div",{className:"container paper-container"},m.a.createElement("h4",{className:"title border-bottom"},"\u8bba\u6587"),a)):m.a.createElement("div",null,m.a.createElement(o.a,null),m.a.createElement("div",{className:"container paper-container"},m.a.createElement("div",{className:"content-loader-rect rounded-pill  m-3",style:{width:"35%",height:".8rem"}},m.a.createElement("div",{className:"animated-bg"})),m.a.createElement(r,null),m.a.createElement(r,null),m.a.createElement(r,null)))}}]),t}(m.a.Component)}}]);
  //# sourceMappingURL=5.d6f71bca.chunk.js.map