Updates
This commit is contained in:
parent
d8f5e6e7be
commit
7500407dc9
@ -1,19 +1,20 @@
|
||||
{
|
||||
"files": {
|
||||
"main.js": "/spoti-search/static/js/main.22b0658b.chunk.js",
|
||||
"main.js.map": "/spoti-search/static/js/main.22b0658b.chunk.js.map",
|
||||
"main.js": "/spoti-search/static/js/main.c7cb2f1e.chunk.js",
|
||||
"main.js.map": "/spoti-search/static/js/main.c7cb2f1e.chunk.js.map",
|
||||
"runtime-main.js": "/spoti-search/static/js/runtime-main.c30f5be2.js",
|
||||
"runtime-main.js.map": "/spoti-search/static/js/runtime-main.c30f5be2.js.map",
|
||||
"static/js/2.f5c44d15.chunk.js": "/spoti-search/static/js/2.f5c44d15.chunk.js",
|
||||
"static/js/2.f5c44d15.chunk.js.map": "/spoti-search/static/js/2.f5c44d15.chunk.js.map",
|
||||
"static/js/2.d626d217.chunk.js": "/spoti-search/static/js/2.d626d217.chunk.js",
|
||||
"static/js/2.d626d217.chunk.js.map": "/spoti-search/static/js/2.d626d217.chunk.js.map",
|
||||
"index.html": "/spoti-search/index.html",
|
||||
"precache-manifest.b213c01397981b274331e0418d6787b0.js": "/spoti-search/precache-manifest.b213c01397981b274331e0418d6787b0.js",
|
||||
"precache-manifest.d8fbda311a3519b888976cb4ff61afae.js": "/spoti-search/precache-manifest.d8fbda311a3519b888976cb4ff61afae.js",
|
||||
"service-worker.js": "/spoti-search/service-worker.js",
|
||||
"static/js/2.f5c44d15.chunk.js.LICENSE.txt": "/spoti-search/static/js/2.f5c44d15.chunk.js.LICENSE.txt"
|
||||
"static/js/2.d626d217.chunk.js.LICENSE.txt": "/spoti-search/static/js/2.d626d217.chunk.js.LICENSE.txt",
|
||||
"static/media/placeholder-music.jpg": "/spoti-search/static/media/placeholder-music.97fa2780.jpg"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/js/runtime-main.c30f5be2.js",
|
||||
"static/js/2.f5c44d15.chunk.js",
|
||||
"static/js/main.22b0658b.chunk.js"
|
||||
"static/js/2.d626d217.chunk.js",
|
||||
"static/js/main.c7cb2f1e.chunk.js"
|
||||
]
|
||||
}
|
@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/spoti-search/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A frontend to search for an artist and display its albums"/><link rel="apple-touch-icon" href="/spoti-search/logo192.png"/><link rel="manifest" href="/spoti-search/manifest.json"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"/><title>Spoti Search</title><style>body{margin:0}</style></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,i,a=r[0],l=r[1],p=r[2],f=0,s=[];f<a.length;f++)i=a[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var l=t[a];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(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,i),t.l=!0,t.exports}i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/spoti-search/";var a=this["webpackJsonpspoti-search"]=this["webpackJsonpspoti-search"]||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var p=0;p<a.length;p++)r(a[p]);var c=l;t()}([])</script><script src="/spoti-search/static/js/2.f5c44d15.chunk.js"></script><script src="/spoti-search/static/js/main.22b0658b.chunk.js"></script></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/spoti-search/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A frontend to search for an artist and display its albums"/><link rel="apple-touch-icon" href="/spoti-search/logo192.png"/><link rel="manifest" href="/spoti-search/manifest.json"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"/><title>Spoti Search</title><style>body{margin:0}</style></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,i,a=r[0],l=r[1],p=r[2],f=0,s=[];f<a.length;f++)i=a[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var l=t[a];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(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,i),t.l=!0,t.exports}i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/spoti-search/";var a=this["webpackJsonpspoti-search"]=this["webpackJsonpspoti-search"]||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var p=0;p<a.length;p++)r(a[p]);var c=l;t()}([])</script><script src="/spoti-search/static/js/2.d626d217.chunk.js"></script><script src="/spoti-search/static/js/main.c7cb2f1e.chunk.js"></script></body></html>
|
@ -1,22 +0,0 @@
|
||||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||
{
|
||||
"revision": "94fd44d7d63890de7cc178c7929ab2a8",
|
||||
"url": "/spoti-search/index.html"
|
||||
},
|
||||
{
|
||||
"revision": "a49a0085cdfcd7ebe955",
|
||||
"url": "/spoti-search/static/js/2.f5c44d15.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "150ff86ada6d4117f6d430f6acba325e",
|
||||
"url": "/spoti-search/static/js/2.f5c44d15.chunk.js.LICENSE.txt"
|
||||
},
|
||||
{
|
||||
"revision": "34084e83f60d93d51a23",
|
||||
"url": "/spoti-search/static/js/main.22b0658b.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "d8701ba7eff8f72dc134",
|
||||
"url": "/spoti-search/static/js/runtime-main.c30f5be2.js"
|
||||
}
|
||||
]);
|
26
precache-manifest.d8fbda311a3519b888976cb4ff61afae.js
Normal file
26
precache-manifest.d8fbda311a3519b888976cb4ff61afae.js
Normal file
@ -0,0 +1,26 @@
|
||||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||
{
|
||||
"revision": "c8365894e220cc973299a6a4f0386e7b",
|
||||
"url": "/spoti-search/index.html"
|
||||
},
|
||||
{
|
||||
"revision": "8306b0ecbfa1a20c1d19",
|
||||
"url": "/spoti-search/static/js/2.d626d217.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "150ff86ada6d4117f6d430f6acba325e",
|
||||
"url": "/spoti-search/static/js/2.d626d217.chunk.js.LICENSE.txt"
|
||||
},
|
||||
{
|
||||
"revision": "dc4b359a6a1388f37363",
|
||||
"url": "/spoti-search/static/js/main.c7cb2f1e.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "d8701ba7eff8f72dc134",
|
||||
"url": "/spoti-search/static/js/runtime-main.c30f5be2.js"
|
||||
},
|
||||
{
|
||||
"revision": "97fa2780aad57ae30b35afe4244d0034",
|
||||
"url": "/spoti-search/static/media/placeholder-music.97fa2780.jpg"
|
||||
}
|
||||
]);
|
@ -14,7 +14,7 @@
|
||||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||
|
||||
importScripts(
|
||||
"/spoti-search/precache-manifest.b213c01397981b274331e0418d6787b0.js"
|
||||
"/spoti-search/precache-manifest.d8fbda311a3519b888976cb4ff61afae.js"
|
||||
);
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
|
3
static/js/2.d626d217.chunk.js
Normal file
3
static/js/2.d626d217.chunk.js
Normal file
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
@ -1,2 +0,0 @@
|
||||
(this["webpackJsonpspoti-search"]=this["webpackJsonpspoti-search"]||[]).push([[0],{115:function(e,t,a){e.exports=a(131)},131:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),l=a(33),i=a.n(l),c=a(56),o=a(57),s=a(88),m=a(55),u=a(51),g=a(91),d=a(145),h=a(92),f=a(77),p=a(89),b=a(146),v=function(e){return r.a.createElement(b.a,Object.assign({as:"header",direction:"row",align:"center",justify:"center",background:"brand",pad:{left:"medium",right:"small",vertical:"small"},style:{zIndex:1}},e))},E=a(143),j=a(144),y=function(e){var t=e.inputValue,a=e.handleChange,n=e.suggestions,l=e.handleSelect;return r.a.createElement(b.a,{as:"section",direction:"row",justify:"center",margin:{vertical:"large"}},r.a.createElement(E.a,{value:t,onChange:function(e){return a(e.target.value)},onSelect:function(e){return l(e.suggestion)},placeholder:"Type an artist name",icon:r.a.createElement(j.a,{color:"plain"}),dropHeight:"large",suggestions:n}))},O=a(149),k=a(148),w=a(142),S=a(147),x=function(e){var t=e.image,a=e.name;return r.a.createElement(b.a,{round:"xxsmall",elevation:"small",overflow:"hidden"},r.a.createElement(b.a,{height:"300px"},r.a.createElement(S.a,{src:t,fit:"cover"})),r.a.createElement(k.a,{level:"4",margin:{bottom:"small",top:"small",left:"small"}},a))},A=function(e){var t=e.image,a=e.name,n=e.handleClick;return r.a.createElement(b.a,{round:"xxsmall",overflow:"hidden",align:"center",pad:"small",onClick:function(){return n(a)}},r.a.createElement(k.a,{level:"4",margin:{bottom:"small",top:"small",left:"small"}},a),r.a.createElement(b.a,{height:"small",width:"small",round:"full",background:{repeat:"no-repeat",size:"cover",image:"url(".concat(t,")")}}))},C=function(e){var t=e.artists,a=e.handleClick,n=t[0],l=n.name,i=n.image,c=n.albums,o=t.slice(1,t.length),s=[],m=new Set;return c.forEach((function(e){m.has(e.name)||(m.add(e.name),s.push(e))})),r.a.createElement(O.a,{as:"section",rows:["fit","fit"],columns:["fit","2/3"],gap:"small",areas:[["artist-title","other-title"],["artist","other"],["disco-title","disco-title"],["discography","discography"]]},r.a.createElement(k.a,{level:"1",gridArea:"artist-title",margin:{vertical:"none"}},l),r.a.createElement(O.a,{gridArea:"artist",margin:{bottom:"medium"}},r.a.createElement(b.a,{round:"full",background:{repeat:"no-repeat",size:"cover",image:"url(".concat(i,")")},height:"300px",width:"300px"})),r.a.createElement(k.a,{level:"2",gridArea:"other-title",margin:{vertical:"none"},alignSelf:"end",size:"small"},"Other results"),r.a.createElement(w.a.Consumer,null,(function(e){return r.a.createElement(b.a,{gridArea:"other",direction:"row",wrap:!0},o.map((function(e){return r.a.createElement(A,{key:e.id,image:e.image,name:e.name,handleClick:a})})))})),r.a.createElement(k.a,{level:"2",gridArea:"disco-title",size:"large"},"Discography"),r.a.createElement(w.a.Consumer,null,(function(e){return r.a.createElement(O.a,{gridArea:"discography",align:"start",columns:{count:"fill",size:"300px"},gap:"large"},s.map((function(e){return r.a.createElement(x,{key:e.id,image:e.image,name:e.name})})))})))};function q(){var e=Object(g.a)(["\n\tquery Artist($byName: String!) {\n\t\tqueryArtists(byName: $byName) {\n\t\t\tname\n\t\t\timage\n\t\t\tid\n\t\t\talbums {\n\t\t\t\tname\n\t\t\t\timage\n\t\t\t\tid\n\t\t\t}\n\t\t}\n\t}\n"]);return q=function(){return e},e}var z=Object(f.a)(q());function N(){var e=Object(n.useState)(""),t=Object(u.a)(e,2),a=t[0],l=t[1],i=Object(p.a)(z),c=Object(u.a)(i,2),o=c[0],s=c[1].data,g=Object(n.useState)([]),f=Object(u.a)(g,2),b=f[0],E=f[1],j=Object(n.useState)([]),O=Object(u.a)(j,2),k=O[0],w=O[1],S=Object(n.useState)(!1),x=Object(u.a)(S,2),A=x[0],q=x[1],N=Object(n.useCallback)(Object(h.debounce)((function(){o({variables:{byName:a}})}),200),[a]);Object(n.useEffect)((function(){return N(),N.cancel}),[a,N]);return Object(n.useEffect)((function(){if(s&&s.queryArtists!==[]){var e=s.queryArtists.slice(0,5).map((function(e){return e.name}));w(e)}}),[s]),r.a.createElement(d.a,{theme:I},r.a.createElement(v,null,r.a.createElement("h1",null,"Spoti Search")),r.a.createElement(y,{inputValue:a,handleChange:function(e){l(e)},suggestions:k,handleSelect:function(e){for(var t=[],a=s.queryArtists.slice(0,5),n=0;n<a.length;n++)if(a[n].name===e){var r=null===a||void 0===a?void 0:a.splice(n,1),l=a;t=[].concat(Object(m.a)(r),Object(m.a)(l));break}E(t),q(!0)}}),A&&r.a.createElement(C,{artists:b,handleClick:function(e){for(var t=[],a=0;a<b.length;a++)if(b[a].name===e){var n=b.splice(a,1),r=b;t=[].concat(Object(m.a)(n),Object(m.a)(r));break}E(t)}}))}var I={global:{font:{family:"Roboto",size:"18px",height:"20px"}}},J=new c.a({uri:"https://spotify-graphql-server.herokuapp.com/graphql",cache:new o.a});i.a.render(r.a.createElement(r.a.StrictMode,null,r.a.createElement(s.a,{client:J},r.a.createElement(N,null))),document.getElementById("root"))}},[[115,1,2]]]);
|
||||
//# sourceMappingURL=main.22b0658b.chunk.js.map
|
File diff suppressed because one or more lines are too long
2
static/js/main.c7cb2f1e.chunk.js
Normal file
2
static/js/main.c7cb2f1e.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
static/js/main.c7cb2f1e.chunk.js.map
Normal file
1
static/js/main.c7cb2f1e.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
static/media/placeholder-music.97fa2780.jpg
Normal file
BIN
static/media/placeholder-music.97fa2780.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Loading…
Reference in New Issue
Block a user