gh-pages
Brogan Clements 2022-02-17 01:06:33 -05:00
parent cb8d66d22c
commit 03d92fe53a
22 changed files with 33 additions and 31 deletions

View File

@ -1,22 +1,24 @@
{
"files": {
"main.css": "/free-programming-books-search/static/css/main.098739b2.chunk.css",
"main.js": "/free-programming-books-search/static/js/main.c03d470a.chunk.js",
"main.js.map": "/free-programming-books-search/static/js/main.c03d470a.chunk.js.map",
"runtime-main.js": "/free-programming-books-search/static/js/runtime-main.70079c95.js",
"runtime-main.js.map": "/free-programming-books-search/static/js/runtime-main.70079c95.js.map",
"static/js/2.be0fdc5d.chunk.js": "/free-programming-books-search/static/js/2.be0fdc5d.chunk.js",
"static/js/2.be0fdc5d.chunk.js.map": "/free-programming-books-search/static/js/2.be0fdc5d.chunk.js.map",
"static/js/3.e69bb6e5.chunk.js": "/free-programming-books-search/static/js/3.e69bb6e5.chunk.js",
"static/js/3.e69bb6e5.chunk.js.map": "/free-programming-books-search/static/js/3.e69bb6e5.chunk.js.map",
"main.css": "/free-programming-books-search/static/css/main.9615df82.chunk.css",
"main.js": "/free-programming-books-search/static/js/main.8610237a.chunk.js",
"main.js.map": "/free-programming-books-search/static/js/main.8610237a.chunk.js.map",
"runtime-main.js": "/free-programming-books-search/static/js/runtime-main.a9bb282d.js",
"runtime-main.js.map": "/free-programming-books-search/static/js/runtime-main.a9bb282d.js.map",
"static/js/2.0771d3bc.chunk.js": "/free-programming-books-search/static/js/2.0771d3bc.chunk.js",
"static/js/2.0771d3bc.chunk.js.map": "/free-programming-books-search/static/js/2.0771d3bc.chunk.js.map",
"static/js/3.8f51dd3f.chunk.js": "/free-programming-books-search/static/js/3.8f51dd3f.chunk.js",
"static/js/3.8f51dd3f.chunk.js.map": "/free-programming-books-search/static/js/3.8f51dd3f.chunk.js.map",
"index.html": "/free-programming-books-search/index.html",
"static/css/main.098739b2.chunk.css.map": "/free-programming-books-search/static/css/main.098739b2.chunk.css.map",
"static/js/2.be0fdc5d.chunk.js.LICENSE.txt": "/free-programming-books-search/static/js/2.be0fdc5d.chunk.js.LICENSE.txt"
"static/css/main.9615df82.chunk.css.map": "/free-programming-books-search/static/css/main.9615df82.chunk.css.map",
"static/js/2.0771d3bc.chunk.js.LICENSE.txt": "/free-programming-books-search/static/js/2.0771d3bc.chunk.js.LICENSE.txt",
"static/media/moon.6ad80c47.png": "/free-programming-books-search/static/media/moon.6ad80c47.png",
"static/media/sun.d499a97b.png": "/free-programming-books-search/static/media/sun.d499a97b.png"
},
"entrypoints": [
"static/js/runtime-main.70079c95.js",
"static/js/2.be0fdc5d.chunk.js",
"static/css/main.098739b2.chunk.css",
"static/js/main.c03d470a.chunk.js"
"static/js/runtime-main.a9bb282d.js",
"static/js/2.0771d3bc.chunk.js",
"static/css/main.9615df82.chunk.css",
"static/js/main.8610237a.chunk.js"
]
}

View File

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/free-programming-books-search/manifest.json"/><title>FPB Search</title><link href="/free-programming-books-search/static/css/main.098739b2.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,a,i=r[0],c=r[1],f=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"e69bb6e5"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/free-programming-books-search/",a.oe=function(e){throw console.error(e),e};var i=this.webpackJsonpfpb_search_page=this.webpackJsonpfpb_search_page||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([])</script><script src="/free-programming-books-search/static/js/2.be0fdc5d.chunk.js"></script><script src="/free-programming-books-search/static/js/main.c03d470a.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/free-programming-books-search/manifest.json"/><title>FPB Search</title><link href="/free-programming-books-search/static/css/main.9615df82.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,a,i=r[0],c=r[1],f=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"8f51dd3f"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/free-programming-books-search/",a.oe=function(e){throw console.error(e),e};var i=this.webpackJsonpfpb_search_page=this.webpackJsonpfpb_search_page||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([])</script><script src="/free-programming-books-search/static/js/2.0771d3bc.chunk.js"></script><script src="/free-programming-books-search/static/js/main.8610237a.chunk.js"></script></body></html>

View File

@ -1,2 +0,0 @@
body{background-color:#222}#root,body{box-sizing:border-box}.frontPage{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex-direction:column;height:100;color:#f5f5f5;text-align:center}.frontPage,.search-results{display:flex;justify-content:center}.search-results{align-items:flex-start;flex-direction:row;flex-flow:row wrap;box-sizing:border-box;align-content:flex-start;padding-left:1em;padding-right:1em}.result{width:30%;padding:.25em .5em}
/*# sourceMappingURL=main.098739b2.chunk.css.map */

View File

@ -1 +0,0 @@
{"version":3,"sources":["webpack://src/App.css"],"names":[],"mappings":"AAAA,KAEE,qBACF,CAEA,WAJE,qBAMF,CAEA,WACE,mJAEY,CACZ,kCAAmC,CACnC,iCAAkC,CAElC,qBAAsB,CACtB,UAAW,CACX,aAAiB,CACjB,iBAEF,CAEA,2BARE,YAAa,CAKb,sBAcF,CAXA,gBAEE,sBAAuB,CAEvB,kBAAmB,CACnB,kBAAmB,CACnB,qBAAsB,CAEtB,wBAAyB,CACzB,gBAAiB,CACjB,iBACF,CAEA,QACE,SAAU,CACV,kBACF","file":"main.098739b2.chunk.css","sourcesContent":["body {\r\n box-sizing: border-box;\r\n background-color: #222222;\r\n}\r\n\r\n#root {\r\n box-sizing: border-box;\r\n}\r\n\r\n.frontPage {\r\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\r\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\r\n sans-serif;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n display: flex;\r\n flex-direction: column;\r\n height: 100;\r\n color: whitesmoke;\r\n text-align: center;\r\n justify-content: center;\r\n}\r\n\r\n.search-results {\r\n justify-content: center;\r\n align-items: flex-start;\r\n display: flex;\r\n flex-direction: row;\r\n flex-flow: row wrap;\r\n box-sizing: border-box;\r\n /* justify-content: normal ; */\r\n align-content: flex-start;\r\n padding-left: 1em;\r\n padding-right: 1em;\r\n}\r\n\r\n.result {\r\n width: 30%;\r\n padding: 0.25em 0.5em;\r\n}\r\n"]}

View File

@ -0,0 +1,2 @@
body{background-color:#fff;padding:50px;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";color:#595959;font-weight:400}h1,h2,h3,h4,h5,h6{color:#222;margin:0 0 20px}dl,ol,p,pre,table,ul{margin:0 0 20px}h1,h2,h3{line-height:1.1}h1{font-size:28px}h1,h2{font-weight:700}h2{color:#393939}h3,h4,h5,h6{color:#494949;font-weight:500}a{color:#267cb9;text-decoration:none}a:hover{color:#069;font-weight:700}a small{font-size:11px;margin-top:-.3em;display:block}a:hover small,a small{color:#777}.wrapper{width:860px;margin:0 auto}blockquote{border-left:1px solid #e5e5e5;margin:0;padding:0 0 0 20px;font-style:italic}code,pre{font-family:Monaco,Bitstream Vera Sans Mono,Lucida Console,Terminal,Consolas,Liberation Mono,DejaVu Sans Mono,Courier New,monospace;color:#333}pre{padding:8px 15px;background:#f8f8f8;border-radius:5px;border:1px solid #e5e5e5;overflow-x:auto}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:5px 10px;border-bottom:1px solid #e5e5e5}dt{font-weight:500}dt,th{color:#444}img{max-width:100%}header{width:270px;float:left;position:fixed;-webkit-font-smoothing:subpixel-antialiased}header ul{list-style:none;height:40px;padding:0;background:#f4f4f4;border-radius:5px;border:1px solid #e0e0e0;width:270px}header li{width:89px;float:left;border-right:1px solid #e0e0e0;height:40px}header li:first-child a{border-radius:5px 0 0 5px}header li:last-child a{border-radius:0 5px 5px 0}header ul a{line-height:1;font-size:11px;color:#999;display:block;text-align:center;padding-top:6px;height:34px}header ul a:hover{color:#999}header ul a:active{background-color:#f0f0f0}strong{color:#222;font-weight:500}header ul li+li+li{border-right:none;width:89px}header ul a strong{font-size:14px;display:block;color:#222}section{width:500px;float:right;padding-bottom:50px}small{font-size:11px}hr{border:0;background:#e5e5e5;height:1px;margin:0 0 20px}footer{width:270px;float:left;position:fixed;bottom:50px;-webkit-font-smoothing:subpixel-antialiased}@media print,screen and (max-width:960px){div.wrapper{width:auto;margin:0}footer,header,section{float:none;position:static;width:auto}header{padding-right:320px}section{border:1px solid #e5e5e5;border-width:1px 0;padding:20px 0;margin:0 0 20px}header a small{display:inline}header ul{position:absolute;right:50px;top:52px}}@media print,screen and (max-width:720px){body{word-wrap:break-word}header{padding:0}header p.view,header ul{position:static}code,pre{word-wrap:normal}}@media print,screen and (max-width:480px){body{padding:15px}header ul{width:99%}header li,header ul li+li+li{width:33%}}@media print{body{padding:.4in;font-size:12pt;color:#444}}
/*# sourceMappingURL=main.9615df82.chunk.css.map */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
(this.webpackJsonpfpb_search_page=this.webpackJsonpfpb_search_page||[]).push([[3],{50:function(e,t,n){"use strict";n.r(t),n.d(t,"getCLS",(function(){return d})),n.d(t,"getFCP",(function(){return S})),n.d(t,"getFID",(function(){return F})),n.d(t,"getLCP",(function(){return k})),n.d(t,"getTTFB",(function(){return C}));var i,a,r,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},p="function"==typeof WeakSet?new WeakSet:new Set,m=function(e,t,n){var i;return function(){t.value>=0&&(n||p.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},d=function(e,t){var n,i=u("CLS",0),a=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},r=c("layout-shift",a);r&&(n=m(e,i,t),f((function(){r.takeRecords().map(a),n()})),s((function(){i=u("CLS",0),n=m(e,i,t)})))},v=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){f((function(e){var t=e.timeStamp;v=t}),!0)},g=function(){return v<0&&(v=l(),h(),s((function(){setTimeout((function(){v=l(),h()}),0)}))),{get timeStamp(){return v}}},S=function(e,t){var n,i=g(),a=u("FCP"),r=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<i.timeStamp&&(a.value=e.startTime,a.entries.push(e),p.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],f=o?null:c("paint",r);(o||f)&&(n=m(e,a,t),o&&r(o),s((function(i){a=u("FCP"),n=m(e,a,t),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,p.add(a),n()}))}))})))},y={passive:!0,capture:!0},E=new Date,w=function(e,t){i||(i=t,a=e,r=new Date,b(removeEventListener),L())},L=function(){if(a>=0&&a<r-E){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach((function(t){t(e)})),o=[]}},T=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){w(e,t),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,y),removeEventListener("pointercancel",i,y)};addEventListener("pointerup",n,y),addEventListener("pointercancel",i,y)}(t,e):w(t,e)}},b=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,T,y)}))},F=function(e,t){var n,r=g(),d=u("FID"),v=function(e){e.startTime<r.timeStamp&&(d.value=e.processingStart-e.startTime,d.entries.push(e),p.add(d),n())},l=c("first-input",v);n=m(e,d,t),l&&f((function(){l.takeRecords().map(v),l.disconnect()}),!0),l&&s((function(){var r;d=u("FID"),n=m(e,d,t),o=[],a=-1,i=null,b(addEventListener),r=v,o.push(r),L()}))},k=function(e,t){var n,i=g(),a=u("LCP"),r=function(e){var t=e.startTime;t<i.timeStamp&&(a.value=t,a.entries.push(e)),n()},o=c("largest-contentful-paint",r);if(o){n=m(e,a,t);var d=function(){p.has(a)||(o.takeRecords().map(r),o.disconnect(),p.add(a),n())};["keydown","click"].forEach((function(e){addEventListener(e,d,{once:!0,capture:!0})})),f(d,!0),s((function(i){a=u("LCP"),n=m(e,a,t),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,p.add(a),n()}))}))}))}},C=function(e){var t,n=u("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}}}]);
//# sourceMappingURL=3.e69bb6e5.chunk.js.map
//# sourceMappingURL=3.8f51dd3f.chunk.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +0,0 @@
(this.webpackJsonpfpb_search_page=this.webpackJsonpfpb_search_page||[]).push([[0],{28:function(e,t,n){},49:function(e,t,n){"use strict";n.r(t);var c=n(1),a=n.n(c),r=n(20),s=n.n(r),o=(n(28),n(11)),i=n.n(o),u=n(21),l=n(5),h=n(4),j=n(3),b=n(0);var d=function(e){var t,n=e.changeParameter,a=e.data,r=Object(c.useState)([]),s=Object(j.a)(r,2),o=s[0],i=s[1];return Object(c.useEffect)((function(){if(a){var e=[];a.children[0].children.forEach((function(t){"string"===typeof t.language.name&&t.language.name.length>0&&e.push(t.language)})),e.sort((function(e,t){return e.name>t.name})),i(e)}}),[a]),t=o&&o.map((function(e){return function(e){return Object(b.jsx)("option",{class:"lang",value:e.code,children:e.name},e.code)}(e)})),Object(b.jsxs)("select",{onChange:function(e){n("lang.code",e.target.value)},name:"languages",id:"languages",children:[Object(b.jsx)("option",{value:"",children:"All Languages"},"allLangs"),t]})};var f=function(e){return Object(b.jsx)("form",{onSubmit:function(e){e.preventDefault()},name:"searchBar",children:Object(b.jsx)("input",{autoComplete:"off",type:"text",name:"searchTerm",placeholder:"Enter Book Name",onChange:function(t){e.changeParameter("title",t.target.value)}})})};var g=function(e){var t=e.data;return Object(b.jsxs)("div",{class:"result",children:[Object(b.jsx)("h3",{children:Object(b.jsx)("a",{href:t.url,target:"_blank",children:t.title})}),Object(b.jsxs)("h4",{children:["by ",t.author?t.author:"Unknown Author"]}),Object(b.jsxs)("p",{children:["(",t.lang.code,")"]})]})},O=n(22),p=n.n(O),m=n(23),v=null;function x(e){var t=[],n=[];return e.children[0].children.forEach((function(e){e.sections.forEach((function(c){n.includes(c.section)||n.push(c.section),c.entries.forEach((function(n){t.push({author:n.author,title:n.title,url:n.url,lang:e.language,section:c.section})})),c.subsections.forEach((function(n){n.entries.forEach((function(a){t.push({author:a.author,title:a.title,url:a.url,lang:e.language,section:c.section,subsection:n.section})}))}))}))})),{arr:t,sections:n}}var S=function(){var e=Object(c.useState)(void 0),t=Object(j.a)(e,2),n=t[0],a=t[1],r=Object(c.useState)([]),s=Object(j.a)(r,2),o=s[0],O=s[1],S=Object(c.useState)([]),E=Object(j.a)(S,2),k=(E[0],E[1]),w=Object(c.useState)(!0),y=Object(j.a)(w,2),F=y[0],P=y[1],B=Object(c.useState)({title:""}),C=Object(j.a)(B,2),L=C[0],T=C[1],_=Object(c.useState)([]),N=Object(j.a)(_,2),A=N[0],D=N[1],I=Object(c.useState)([]),J=Object(j.a)(I,2),M=J[0],R=J[1],U=Object(c.useState)(""),$=Object(j.a)(U,2),q=$[0],z=($[1],null),G=null,H=function(e,t){T(Object(h.a)(Object(h.a)({},L),{},Object(l.a)({},e,t)))};return Object(c.useEffect)((function(){function e(){return(e=Object(u.a)(i.a.mark((function e(){var t,n,c,r,s,o,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,P(!0),e.next=4,p.a.get("https://raw.githubusercontent.com/FreeEbookFoundationBot/free-programming-books-json/main/fpb.json");case 4:t=e.sent,a(t.data),n=x(t.data),c=n.arr,r=n.sections,O(c),k(r),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(0),a(v),s=x(v),o=s.arr,u=s.sections,k(u),O(o);case 17:P(!1);case 18:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),Object(c.useEffect)((function(){if(o){for(var e=new m.a(o,{useExtendedSearch:!0,findAllMatches:!0,shouldSort:!0,includeScore:!0,threshold:.2,keys:["title","lang.code"]}),t=[],n=0,c=Object.entries(L);n<c.length;n++){var a=Object(j.a)(c[n],2),r=a[0],s=a[1];null!==s&&""!==s&&("lang.code"!==r?t.push(Object(l.a)({},r,s)):t.push({"lang.code":"^".concat(s)}))}var i=e.search({$and:t});i=i.slice(0,40),D(i);var u=[];i.forEach((function(e){var t=e.item.section;u.includes(t)||u.push(t)})),R(u)}}),[L,o]),F?Object(b.jsx)("h1",{children:"Loading..."}):q?Object(b.jsxs)("h1",{children:["Error: ",q]}):(L.title&&0!==A.length&&(z=A&&A.map((function(e){return Object(b.jsx)(g,{data:e.item})})),G=M&&M.map((function(e){return Object(b.jsx)("li",{children:e})}))),Object(b.jsxs)("div",{className:"frontPage",children:[Object(b.jsx)("h1",{children:"Free Programming Books"}),Object(b.jsxs)("div",{children:[Object(b.jsx)(f,{changeParameter:H}),Object(b.jsx)(d,{changeParameter:H,data:n})]}),Object(b.jsx)("h2",{children:"Section Results"}),G&&Object(b.jsx)("p",{children:"This feature is not complete! For now, use this to help reference the markdown documents on the main respository."}),Object(b.jsx)("div",{className:"search-results",children:G}),Object(b.jsx)("h2",{children:"Top Results"}),Object(b.jsx)("div",{className:"search-results",children:z})]}))},E=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,50)).then((function(t){var n=t.getCLS,c=t.getFID,a=t.getFCP,r=t.getLCP,s=t.getTTFB;n(e),c(e),a(e),r(e),s(e)}))};s.a.render(Object(b.jsx)(a.a.StrictMode,{children:Object(b.jsx)(S,{})}),document.getElementById("root")),E()}},[[49,1,2]]]);
//# sourceMappingURL=main.c03d470a.chunk.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
!function(e){function r(r){for(var n,a,i=r[0],c=r[1],f=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"e69bb6e5"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/free-programming-books-search/",a.oe=function(e){throw console.error(e),e};var i=this.webpackJsonpfpb_search_page=this.webpackJsonpfpb_search_page||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([]);
//# sourceMappingURL=runtime-main.70079c95.js.map
!function(e){function r(r){for(var n,a,i=r[0],c=r[1],f=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"8f51dd3f"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/free-programming-books-search/",a.oe=function(e){throw console.error(e),e};var i=this.webpackJsonpfpb_search_page=this.webpackJsonpfpb_search_page||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([]);
//# sourceMappingURL=runtime-main.a9bb282d.js.map

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB