appbaseio/reactivesearch

View on GitHub
site/dist/3.bundle.js

Summary

Maintainability
A
0 mins
Test Coverage
webpackJsonp([3],{151:function(e,t,c){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var l=c(0),i=a(l),o=c(166),r=a(o),n=c(167),s=a(n),b=c(154),u=a(b);t.default=function(){return i.default.createElement(s.default,{config:r.default,theme:u.default})}},154:function(e,t,c){"use strict";t.__esModule=!0,t.default={fontFamily:"Open Sans,sans-serif",fontWeight:"normal",primary:"#7107D8",primaryDark:"#401A8E",secondary:"#FF2A6F",textLight:"#fefefe"}},155:function(e,t,c){"use strict";t.__esModule=!0,t.default={name:"web",githubCount:"2432",gettingStart:"https://opensource.appbase.io/reactive-manual/getting-started/reactivesearch.html",producthunt:"https://www.producthunt.com/posts/reactive-search-2-0",urls:{github:"https://github.com/appbaseio/reactivesearch/tree/dev/packages/web",support:"https://appbase.io/pricing#support"},header:{logo:{src:"../../reactivesearch/images/RSlogo.svg",title:{light:"Reactive",dark:"Search"},href:"/reactivesearch"},links:[{description:"tools",href:"/tools"},{description:"quick start",href:"/quickstart"}]},footer:[{title:"Reactive <x>",list:[{title:"React",href:"https://opensource.appbase.io/reactivesearch",openWithTab:!0},{title:"React Native",href:"https://opensource.appbase.io/reactivesearch/native",openWithTab:!0},{title:"Vue.JS",href:"https://opensource.appbase.io/reactivesearch/vue",openWithTab:!0},{title:"ReactiveMaps",href:"https://opensource.appbase.io/reactivemaps",openWithTab:!0}]},{title:"Documentation",list:[{title:"Search Preview",href:"https://opensource.appbase.io/reactive-manual/getting-started/reactivesearch.html",openWithTab:!0},{title:"Base Components",href:"https://opensource.appbase.io/reactive-manual/base-components/textfield.html",openWithTab:!0},{title:"Map Components",href:"https://opensource.appbase.io/reactive-manual/map-components/geodistanceslider.html",openWithTab:!0},{title:"Search Components",href:"https://opensource.appbase.io/reactive-manual/search-components/datasearch.html",openWithTab:!0},{title:"Result Components",href:"https://opensource.appbase.io/reactive-manual/result-components/resultlist.html",openWithTab:!0}]},{title:"Community",list:[{title:"GitHub",href:"https://github.com/appbaseio/reactivesearch/",openWithTab:!0},{title:"Gitter",href:"https://gitter.im/appbaseio/reactivesearch",openWithTab:!0},{title:"Stackoverflow",href:"https://stackoverflow.com/questions/tagged/reactivesearch",openWithTab:!0},{title:"Twitter",href:"https://twitter.com/appbaseio",openWithTab:!0}]},{title:"More",list:[{title:"Medium Publication",href:"https://medium.appbase.io/",openWithTab:!0},{title:"Appbase.io Docs",href:"http://docs.appbase.io/",openWithTab:!0},{title:"Support Email",href:"mailto:support@appbase.io",openWithTab:!0}]}]}},156:function(e,t,c){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var l=c(0),i=a(l),o=c(19),r=a(o),n=c(1),s=a(n),b=(0,r.default)("div",{target:"e14l5s9x0"})("position:relative;display:flex;min-height:360px;flex-direction:column;border-radius:2px;box-shadow:0 2px 4px 0 rgba(0,0,0,0.05);overflow:hidden;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9zdHlsZXMvSW1hZ2VDYXJkLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUk2QiIsImZpbGUiOiJzcmMvc3R5bGVzL0ltYWdlQ2FyZC5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvZ3JvdmVyL0Rlc2t0b3AvYXBwYmFzZS9yZWFjdGl2ZXNlYXJjaC9zaXRlIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAncmVhY3QtZW1vdGlvbic7XG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuXG5jb25zdCBXcmFwcGVyID0gc3R5bGVkKCdkaXYnKWBcblx0cG9zaXRpb246IHJlbGF0aXZlO1xuXHRkaXNwbGF5OiBmbGV4O1xuXHRtaW4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RtYXgtd2lkdGg6IDIwMHB4O1xuXHRcdG1hcmdpbjogMCBhdXRvIDIwcHg7XG5cdH1cbmA7XG5cbmNvbnN0IEltYWdlQ2FyZCA9IHByb3BzID0+IChcblx0PFdyYXBwZXI+XG5cdFx0PEltYWdlIHNyYz17cHJvcHMuc3JjfSBiaWc9e3Byb3BzLmJpZ30gLz5cblx0XHQ8Q2FyZD57cHJvcHMuY2hpbGRyZW59PC9DYXJkPlxuXHQ8L1dyYXBwZXI+XG4pO1xuXG5JbWFnZUNhcmQuZGVmYXVsdFByb3BzID0ge1xuXHRiaWc6IGZhbHNlLFxufTtcblxuSW1hZ2VDYXJkLnByb3BUeXBlcyA9IHtcblx0c3JjOiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG5cdGJpZzogUHJvcFR5cGVzLmJvb2wsXG5cdGNoaWxkcmVuOiBQcm9wVHlwZXMubm9kZS5pc1JlcXVpcmVkLFxufTtcbmV4cG9ydCBkZWZhdWx0IEltYWdlQ2FyZDtcbiJdfQ== */"),u=(0,r.default)("div",{target:"e14l5s9x1"})("width:100%;height:",function(e){return e.big?"160px":"120px"},";background-image:url(",function(e){return e.src},");background-size:cover;background-position:center center;background-repeat:no-repeat;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9zdHlsZXMvSW1hZ2VDYXJkLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWMyQiIsImZpbGUiOiJzcmMvc3R5bGVzL0ltYWdlQ2FyZC5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvZ3JvdmVyL0Rlc2t0b3AvYXBwYmFzZS9yZWFjdGl2ZXNlYXJjaC9zaXRlIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAncmVhY3QtZW1vdGlvbic7XG5pbXBvcnQgUHJvc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RoNCB7XG5cdFx0Y29sb3I6ICM0MjQyNDI7XG5cdFx0bWFyZ2luOiAwIDAgMTBweDtcblx0fVxuXG5cdHAge1xuXHRcdGZvbnQtc2l6ZTogMTRweDtcblx0XHR3aWR0aDogMTAwJTtcblx0XHRtYXgtd2lkdGg6IDIwMHB4O1xuXHRcdG1hcmdpbjogMCBhdXRvIDIwcHg7XG5cdH1cbmA7XG5cbmNvbnN0IEltYWdlQ2FyZCA9IHByb3BzID0+IChcblx0PFdyYXBwZXI+XG5cdFx0PEltYWdlIHNyYz17cHJvcHMuc3JjfSBiaWc9e3Byb3BzLmJpZ30gLz5cblx0XHQ8Q2FyZD57cHJvcHMuY2hpbGRyZW59PC9DYXJkPlxuXHQ8L1dyYXBwZXI+XG4pO1xuXG5JbWFnZUNhcmQuZGVmYXVsdFByb3BzID0ge1xuXHRiaWc6IGZhbHNlLFxufTtcblxuSW1hZ2VDYXJkLnByb3BUeXBlcyA9IHtcblx0c3JjOiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG5cdGJpZzogUHJvcFR5cGVzLmJvb2wsXG5cdGNoaWxkcmVuOiBQcm9wVHlwZXMubm9kZS5pc1JlcXVpcmVkLFxufTtcbmV4cG9ydCBkZWZhdWx0IEltYWdlQ2FyZDtcbiJdfQ== */"),d=(0,r.default)("div",{target:"e14l5s9x2"})("height:auto;padding:",function(e){return e.big?"60px 45px 32px":"32px 45px"},";background-color:#fff;text-align:center;padding-top:20px;display:flex;flex-direction:column;justify-content:space-between;flex-grow:1;h4{color:#424242;margin:0 0 10px;}p{font-size:14px;width:100%;max-width:200px;margin:0 auto 20px;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9zdHlsZXMvSW1hZ2VDYXJkLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCMEIiLCJmaWxlIjoic3JjL3N0eWxlcy9JbWFnZUNhcmQuanMiL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bGlnbjogY2VudGVyO1xuXHRwYWRkaW5nLXRvcDogMjBweDtcblx0ZGlzcGxheTogZmxleDtcblx0ZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblx0anVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuXHRmbGV4LWdyb3c6IDE7XG5cblx0aDQge1xuXHRcdGNvbG9yOiAjNDI0MjQyO1xuXHRcdG1hcmdpbjogMCAwIDEwcHg7XG5cdH1cblxuXHRwIHtcblx0XHRmb250LXNpemU6IDE0cHg7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0bWF4LXdpZHRoOiAyMDBweDtcblx0XHRtYXJnaW46IDAgYXV0byAyMHB4O1xuXHR9XG5gO1xuXG5jb25zdCBJbWFnZUNhcmQgPSBwcm9wcyA9PiAoXG5cdDxXcmFwcGVyPlxuXHRcdDxJbWFnZSBzcmM9e3Byb3BzLnNyY30gYmlnPXtwcm9wcy5iaWd9IC8+XG5cdFx0PENhcmQ+e3Byb3BzLmNoaWxkcmVufTwvQ2FyZD5cblx0PC9XcmFwcGVyPlxuKTtcblxuSW1hZ2VDYXJkLmRlZmF1bHRQcm9wcyA9IHtcblx0YmlnOiBmYWxzZSxcbn07XG5cbkltYWdlQ2FyZC5wcm9wVHlwZXMgPSB7XG5cdHNyYzogUHJvcFR5cGVzLnN0cmluZy5pc1JlcXVpcmVkLFxuXHRiaWc6IFByb3BUeXBlcy5ib29sLFxuXHRjaGlsZHJlbjogUHJvcFR5cGVzLm5vZGUuaXNSZXF1aXJlZCxcbn07XG5leHBvcnQgZGVmYXVsdCBJbWFnZUNhcmQ7XG4iXX0= */"),p=function(e){return i.default.createElement(b,null,i.default.createElement(u,{src:e.src,big:e.big}),i.default.createElement(d,null,e.children))};p.defaultProps={big:!1},p.propTypes={src:s.default.string.isRequired,big:s.default.bool,children:s.default.node.isRequired},t.default=p},166:function(e,t,c){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var c=arguments[t];for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a])}return e},i=c(0),o=a(i),r=c(155),n=a(r);t.default=l({},n.default,{title:"Built with Reactive Search",description:o.default.createElement(o.default.Fragment,null,"Check out our demo apps powered by Reactivesearch."),demos:[{src:"../../reactivesearch/images/apps/airbeds.png",title:"Airbeds",href:"https://opensource.appbase.io/reactivesearch/demos/airbeds/",description:"An airbnb inspired app for browsing housing areas in Seattle"},{src:"../../reactivesearch/images/apps/productsearch.png",title:"Product Search",href:"https://opensource.appbase.io/reactivesearch/demos/producthunt/",description:""},{src:"../../reactivesearch/images/apps/gitxplore.png",title:"GitHub Search",href:"https://opensource.appbase.io/reactivesearch/demos/gitxplore/",description:""},{src:"../../reactivesearch/images/apps/carstore.png",title:"Car Store",href:"https://opensource.appbase.io/reactivesearch/demos/ecommerce/",description:""},{src:"../../reactivesearch/images/apps/goodbooks.png",title:"Book Search",href:"https://opensource.appbase.io/reactivesearch/demos/goodbooks/",description:""},{src:"../../reactivesearch/images/apps/technews.png",title:"Tech News Search",href:"https://opensource.appbase.io/reactivesearch/demos/technews/",description:""}]})},167:function(e,t,c){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var r=c(3),n=c(0),s=a(n),b=c(28),u=c(21),d=c(1),p=a(d),m=c(9),h=c(20),X=c(29),g=a(X),Z=c(156),G=a(Z),y=function(e){function t(){return l(this,t),i(this,e.apply(this,arguments))}return o(t,e),t.prototype.componentDidMount=function(){window.scrollTo(0,0)},t.prototype.render=function(){var e=this.props,t=e.config,c=e.theme,a=c.primary;return s.default.createElement(b.ThemeProvider,{theme:{primaryColor:"#0033FF"}},s.default.createElement(h.Base,null,s.default.createElement(m.Navbar,{bold:!0},s.default.createElement(m.Navbar.Logo,null,s.default.createElement(m.Logo,{href:t.header.logo.href},s.default.createElement(m.Logo.Icon,{className:(0,r.css)("color:#fff;")},s.default.createElement("img",{src:t.header.logo.src,alt:"Icon"})),s.default.createElement(m.Logo.Light,null,t.header.logo.title.light),s.default.createElement(m.Logo.Dark,null,t.header.logo.title.dark))),s.default.createElement(m.Navbar.List,null,t.header.links.map(function(e,t){return s.default.createElement("li",{className:"/demo"===e.href||"/native/demo"===e.href?"active":void 0,key:t},s.default.createElement(u.Link,{style:{color:"#424242"},to:e.href},e.description.toUpperCase()))}),s.default.createElement("li",{className:h.showMobileFlex},s.default.createElement("a",{href:t.urls.github},"GITHUB")),s.default.createElement("li",{className:"button"},s.default.createElement(m.Button,{style:{backgroundColor:c.secondary},href:t.urls.support,bold:!0,uppercase:!0},s.default.createElement("img",{src:"images/support.svg",style:{marginRight:8},alt:"support"})," SUPPORT")))),s.default.createElement(h.Section,null,s.default.createElement(h.Layout,{style:{marginTop:"50px"}},s.default.createElement(m.H1,null,t.title),s.default.createElement("p",{className:h.titleText},t.description),s.default.createElement(m.Grid,{size:t.demos.length/2,mdSize:2,smSize:1,gutter:"15px",smGutter:"0px",style:{margin:"50px 0px"}},t.demos.map(function(e,t){return s.default.createElement(G.default,{key:t,src:e.src},s.default.createElement("div",null,s.default.createElement(m.Title,null,e.title),s.default.createElement("p",null,e.description)),s.default.createElement("div",null,s.default.createElement(h.SecondaryLink,{primary:!0,href:e.href,style:{color:a}},"Check Demo")))})))),s.default.createElement(g.default,{configName:t.name,footerConfig:t.footer})))},t}(n.Component);y.propTypes={config:p.default.object.isRequired,theme:p.default.object.isRequired},t.default=y}});