Skip to content

Commit

Permalink
Fixing saga
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Chinem Kameya committed Apr 11, 2019
1 parent b0e8991 commit 9c51d09
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 56 deletions.
6 changes: 3 additions & 3 deletions client/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"main.js": "/static/js/main.21054fbc.chunk.js",
"main.js.map": "/static/js/main.21054fbc.chunk.js.map",
"main.js": "/static/js/main.51c06e3b.chunk.js",
"main.js.map": "/static/js/main.51c06e3b.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.a8a9905a.js",
"runtime~main.js.map": "/static/js/runtime~main.a8a9905a.js.map",
"static/css/2.690a941a.chunk.css": "/static/css/2.690a941a.chunk.css",
"static/js/2.f6546bbd.chunk.js": "/static/js/2.f6546bbd.chunk.js",
"static/js/2.f6546bbd.chunk.js.map": "/static/js/2.f6546bbd.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.f9aca6fac4c274b292a616116eaaa83b.js": "/precache-manifest.f9aca6fac4c274b292a616116eaaa83b.js",
"precache-manifest.8ede458803cfacbcd5a899d0c4dce1f9.js": "/precache-manifest.8ede458803cfacbcd5a899d0c4dce1f9.js",
"service-worker.js": "/service-worker.js",
"static/css/2.690a941a.chunk.css.map": "/static/css/2.690a941a.chunk.css.map",
"static/media/index.css": "/static/media/roboto-latin-900italic.bc833e72.woff",
Expand Down
2 changes: 1 addition & 1 deletion client/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en" style="font-size:62.5%;height:100%;position:relative;margin:0;padding:0"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet"><title>Fast Player for Spotify</title><link href="/static/css/2.690a941a.chunk.css" rel="stylesheet"></head><body style="background-image:radial-gradient(circle farthest-corner at 50% -70.6%,#2c3134 100%,#141919 70.2%);margin:0;padding:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={1:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="/static/js/2.f6546bbd.chunk.js"></script><script src="/static/js/main.21054fbc.chunk.js"></script></body></html>
<!doctype html><html lang="en" style="font-size:62.5%;height:100%;position:relative;margin:0;padding:0"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet"><title>Fast Player for Spotify</title><link href="/static/css/2.690a941a.chunk.css" rel="stylesheet"></head><body style="background-image:radial-gradient(circle farthest-corner at 50% -70.6%,#2c3134 100%,#141919 70.2%);margin:0;padding:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={1:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="/static/js/2.f6546bbd.chunk.js"></script><script src="/static/js/main.51c06e3b.chunk.js"></script></body></html>
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
self.__precacheManifest = [
{
"revision": "a1471d1d6431c893582a5f6a250db3f9",
"url": "/static/media/roboto-latin-300.a1471d1d.woff"
"revision": "de8b7431b74642e830af4d4f4b513ec9",
"url": "/static/media/roboto-latin-500.de8b7431.woff"
},
{
"revision": "e853f3afed2f8192a1d4",
"url": "/static/js/main.21054fbc.chunk.js"
"revision": "81012ce0b699999906f3",
"url": "/static/js/main.51c06e3b.chunk.js"
},
{
"revision": "a3036462a716292cd7d40147fe242f48",
"url": "/static/media/search.a3036462.svg"
},
{
"revision": "7b770d6c53423deb1a8e49d3c9175184",
"url": "/static/media/roboto-latin-900italic.7b770d6c.woff2"
"revision": "bc833e725c137257c2c42a789845d82f",
"url": "/static/media/roboto-latin-900italic.bc833e72.woff"
},
{
"revision": "e9dbbe8a693dd275c16d32feb101f1c1",
"url": "/static/media/roboto-latin-100.e9dbbe8a.woff"
},
{
"revision": "55536c8e9e9a532651e3cf374f290ea3",
"url": "/static/media/roboto-latin-300.55536c8e.woff2"
},
{
"revision": "987b84570ea69ee660455b8d5e91f5f1",
Expand All @@ -24,89 +32,81 @@ self.__precacheManifest = [
"url": "/static/media/roboto-latin-100italic.6232f43d.woff2"
},
{
"revision": "e9dbbe8a693dd275c16d32feb101f1c1",
"url": "/static/media/roboto-latin-100.e9dbbe8a.woff"
},
{
"revision": "55536c8e9e9a532651e3cf374f290ea3",
"url": "/static/media/roboto-latin-300.55536c8e.woff2"
"revision": "a1471d1d6431c893582a5f6a250db3f9",
"url": "/static/media/roboto-latin-300.a1471d1d.woff"
},
{
"revision": "d704bb3d579b7d5e40880c75705c8a71",
"url": "/static/media/roboto-latin-100italic.d704bb3d.woff"
"revision": "5d4aeb4e5f5ef754e307d7ffaef688bd",
"url": "/static/media/roboto-latin-400.5d4aeb4e.woff2"
},
{
"revision": "d69924b98acd849cdeba9fbff3f88ea6",
"url": "/static/media/roboto-latin-300italic.d69924b9.woff2"
},
{
"revision": "210a7c781f5a354a0e4985656ab456d9",
"url": "/static/media/roboto-latin-300italic.210a7c78.woff"
"revision": "d704bb3d579b7d5e40880c75705c8a71",
"url": "/static/media/roboto-latin-100italic.d704bb3d.woff"
},
{
"revision": "bafb105baeb22d965c70fe52ba6b49d9",
"url": "/static/media/roboto-latin-400.bafb105b.woff"
},
{
"revision": "5d4aeb4e5f5ef754e307d7ffaef688bd",
"url": "/static/media/roboto-latin-400.5d4aeb4e.woff2"
},
{
"revision": "9680d5a0c32d2fd084e07bbc4c8b2923",
"url": "/static/media/roboto-latin-400italic.9680d5a0.woff"
},
{
"revision": "d8bcbe724fd6f4ba44d0ee6a2675890f",
"url": "/static/media/roboto-latin-400italic.d8bcbe72.woff2"
},
{
"revision": "285467176f7fe6bb6a9c6873b3dad2cc",
"url": "/static/media/roboto-latin-500.28546717.woff2"
},
{
"revision": "42ac5946195a7306e2a5",
"url": "/static/js/runtime~main.a8a9905a.js"
},
{
"revision": "de8b7431b74642e830af4d4f4b513ec9",
"url": "/static/media/roboto-latin-500.de8b7431.woff"
"revision": "510dec37fa69fba39593e01a469ee018",
"url": "/static/media/roboto-latin-500italic.510dec37.woff2"
},
{
"revision": "ffcc050b2d92d4b14a4fcb527ee0bcc8",
"url": "/static/media/roboto-latin-500italic.ffcc050b.woff"
},
{
"revision": "285467176f7fe6bb6a9c6873b3dad2cc",
"url": "/static/media/roboto-latin-500.28546717.woff2"
},
{
"revision": "510dec37fa69fba39593e01a469ee018",
"url": "/static/media/roboto-latin-500italic.510dec37.woff2"
"revision": "210a7c781f5a354a0e4985656ab456d9",
"url": "/static/media/roboto-latin-300italic.210a7c78.woff"
},
{
"revision": "037d830416495def72b7881024c14b7b",
"url": "/static/media/roboto-latin-700.037d8304.woff2"
},
{
"revision": "846d1890aee87fde5d8ced8eba360c3a",
"url": "/static/media/roboto-latin-700italic.846d1890.woff"
},
{
"revision": "cf6613d1adf490972c557a8e318e0868",
"url": "/static/media/roboto-latin-700.cf6613d1.woff"
"revision": "9680d5a0c32d2fd084e07bbc4c8b2923",
"url": "/static/media/roboto-latin-400italic.9680d5a0.woff"
},
{
"revision": "010c1aeee3c6d1cbb1d5761d80353823",
"url": "/static/media/roboto-latin-700italic.010c1aee.woff2"
},
{
"revision": "8c2ade503b34e31430d6c98aa29a52a3",
"url": "/static/media/roboto-latin-900.8c2ade50.woff"
"revision": "cf6613d1adf490972c557a8e318e0868",
"url": "/static/media/roboto-latin-700.cf6613d1.woff"
},
{
"revision": "bc833e725c137257c2c42a789845d82f",
"url": "/static/media/roboto-latin-900italic.bc833e72.woff"
"revision": "846d1890aee87fde5d8ced8eba360c3a",
"url": "/static/media/roboto-latin-700italic.846d1890.woff"
},
{
"revision": "19b7a0adfdd4f808b53af7e2ce2ad4e5",
"url": "/static/media/roboto-latin-900.19b7a0ad.woff2"
},
{
"revision": "8c2ade503b34e31430d6c98aa29a52a3",
"url": "/static/media/roboto-latin-900.8c2ade50.woff"
},
{
"revision": "7b770d6c53423deb1a8e49d3c9175184",
"url": "/static/media/roboto-latin-900italic.7b770d6c.woff2"
},
{
"revision": "d07493b8a1404e3aa58d",
"url": "/static/js/2.f6546bbd.chunk.js"
Expand All @@ -116,7 +116,7 @@ self.__precacheManifest = [
"url": "/static/css/2.690a941a.chunk.css"
},
{
"revision": "e0cb157895fa9f1a7bc2fb63034e3a88",
"revision": "8cf493b86cdb682ae20b4eb4184a414e",
"url": "/index.html"
}
];
2 changes: 1 addition & 1 deletion client/build/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");

importScripts(
"/precache-manifest.f9aca6fac4c274b292a616116eaaa83b.js"
"/precache-manifest.8ede458803cfacbcd5a899d0c4dce1f9.js"
);

workbox.clientsClaim();
Expand Down
1 change: 0 additions & 1 deletion client/build/static/js/main.21054fbc.chunk.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/build/static/js/main.51c06e3b.chunk.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions client/src/sagas/songSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ function* fetchSongsFromPlaylist() {
}
}

function* fetchSongsSearch(action) {
function* fetchSongsSearch({ term }) {
try {
if (action.term !== '') {
const result = yield call([spotifyApi, 'searchTracks'], action.term, { limit: 5 });
if (term !== '') {
const result = yield call([spotifyApi, 'searchTracks'], term, { limit: 5 });
yield put({ type: songTypes.FETCH_SONGS_SEARCH_SUCCEEDED, songResults: result.tracks.items });
} else {
yield put({ type: songTypes.CLEAR_SEARCH });
Expand All @@ -41,7 +41,7 @@ function* fetchSongsSearch(action) {
}
}

function* addSongToPlaylist(song) {
function* addSongToPlaylist({ song }) {
try {
const track = yield call(spotifyApi.getMyCurrentPlayingTrack);
const info = track.context.uri.split(':');
Expand Down Expand Up @@ -70,7 +70,7 @@ function* skipPrevious() {
}
}

function* togglePlay(playing) {
function* togglePlay({ playing }) {
try {
if (playing)
yield call([spotifyApi, 'pause']);
Expand Down

0 comments on commit 9c51d09

Please sign in to comment.