made for you page
This commit is contained in:
parent
60221d5e01
commit
7f3e455b78
6 changed files with 41 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -302,3 +302,7 @@ bh_unicode_properties.cache
|
|||
# Sublime-github package stores a github token in this file
|
||||
# https://packagecontrol.io/packages/sublime-github
|
||||
GitHub.sublime-settings
|
||||
|
||||
#Service Worker mappings
|
||||
src/renderer/sw.js.map
|
||||
src/renderer/workbox-962786f2.js.map
|
||||
|
|
|
@ -131,6 +131,7 @@ const app = new Vue({
|
|||
},
|
||||
browsepage: [],
|
||||
listennow: [],
|
||||
madeforyou: [],
|
||||
radio: {
|
||||
personal: []
|
||||
},
|
||||
|
@ -1206,6 +1207,18 @@ const app = new Vue({
|
|||
this.getRadioStations(attempt + 1)
|
||||
}
|
||||
},
|
||||
async getMadeForYou(attempt = 0) {
|
||||
if (attempt > 3) {
|
||||
return
|
||||
}
|
||||
try {
|
||||
mfu = await app.mk.api.v3.music("/v1/me/library/playlists?platform=web&extend=editorialVideo&fields%5Bplaylists%5D=lastModifiedDate&filter%5Bfeatured%5D=made-for-you&include%5Blibrary-playlists%5D=catalog&fields%5Blibrary-playlists%5D=artwork%2Cname%2CplayParams%2CdateAdded")
|
||||
this.madeforyou = mfu.data
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
this.getMadeForYou(attempt + 1)
|
||||
}
|
||||
},
|
||||
unauthorize() {
|
||||
this.mk.unauthorize()
|
||||
},
|
||||
|
|
|
@ -2740,4 +2740,8 @@ input[type=checkbox][switch]:checked:active::before {
|
|||
left: -1px;
|
||||
}
|
||||
|
||||
/* End Switch Checkbox */
|
||||
/* End Switch Checkbox */
|
||||
|
||||
.madeforyou-body{
|
||||
margin-top: 15px;
|
||||
}
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"sw.js","sources":["C:/Users/vieta/AppData/Local/Temp/b97cb0fb56dd447f95668d4898340903/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from 'C:/Users/vieta/AppData/Roaming/nvm/v14.18.1/node_modules/workbox-cli/node_modules/workbox-routing/registerRoute.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from 'C:/Users/vieta/AppData/Roaming/nvm/v14.18.1/node_modules/workbox-cli/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from 'C:/Users/vieta/AppData/Roaming/nvm/v14.18.1/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.addEventListener('message', (event) => {\n if (event.data && event.data.type === 'SKIP_WAITING') {\n self.skipWaiting();\n }\n});\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"ameframework.css\",\n \"revision\": \"4bcc8646bb5742638fad52b94e231601\"\n },\n {\n \"url\": \"apple-hls.js\",\n \"revision\": \"2b74055662676b0fcc2d4a4bf994a9dc\"\n },\n {\n \"url\": \"hlscider.js\",\n \"revision\": \"cf7f512e83e32694f2c94f904714fe4c\"\n },\n {\n \"url\": \"index_old.html\",\n \"revision\": \"c21f3e9c5b015599d3ab07639f64a7a8\"\n },\n {\n \"url\": \"index.js\",\n \"revision\": \"8591a69fc9c975a063eb264b7447f173\"\n },\n {\n \"url\": \"less.js\",\n \"revision\": \"b6e574e4d680686786a28e7e71a17bbc\"\n },\n {\n \"url\": \"musickit.js\",\n \"revision\": \"211d80891c3336c1795cb83df58d4b63\"\n },\n {\n \"url\": \"sortable.min.js\",\n \"revision\": \"5cbc31ebec32adf60e27b76418e79d93\"\n },\n {\n \"url\": \"style-old.css\",\n \"revision\": \"aea9ea49df13f2deee42b68654aeea06\"\n },\n {\n \"url\": \"todo.js\",\n \"revision\": \"18d49fabcb96de8bd11455877d8eacb6\"\n },\n {\n \"url\": \"vue-observe-visibility.min.js\",\n \"revision\": \"5a52e761f6aa71b4f65a7b458f698b95\"\n },\n {\n \"url\": \"vue.js\",\n \"revision\": \"0a9a4681294d8c5f476687eea6e74842\"\n },\n {\n \"url\": \"vuedraggable.umd.min.js\",\n \"revision\": \"9a84fec5263bb510cee88e1c3b9583cc\"\n }\n], {\n \"ignoreURLParametersMatching\": [/^utm_/, /^fbclid$/, /^X-Amz-Algorithm/, /^X-Amz-Date/, /^X-Amz-SignedHeaders/, /^X-Amz-Expires/, /^X-Amz-Credential/, /^X-Amz-Signature/]\n});\n\n\n\n\nworkbox_routing_registerRoute(/\\.(?:png|jpg|jpeg|svg|webp)$/, new workbox_strategies_CacheFirst({ \"cacheName\":\"imageinternet\", plugins: [] }), 'GET');\nworkbox_routing_registerRoute(/https:\\/\\/is[0-9]-ssl\\.mzstatic\\.com\\/image+/, new workbox_strategies_CacheFirst(), 'GET');\nworkbox_routing_registerRoute(/^https:\\/\\/store-\\d{3}\\.blobstore\\.apple\\.com\\/.{65}\\/image+/, new workbox_strategies_CacheFirst(), 'GET');\n\n\n\n\n"],"names":["self","addEventListener","event","data","type","skipWaiting","workbox_strategies_CacheFirst","plugins"],"mappings":"0nBAqBAA,KAAKC,iBAAiB,WAAYC,IAC5BA,EAAMC,MAA4B,iBAApBD,EAAMC,KAAKC,MAC3BJ,KAAKK,oCAY2B,CAClC,KACS,4BACK,oCAEd,KACS,wBACK,oCAEd,KACS,uBACK,oCAEd,KACS,0BACK,oCAEd,KACS,oBACK,oCAEd,KACS,mBACK,oCAEd,KACS,uBACK,oCAEd,KACS,2BACK,oCAEd,KACS,yBACK,oCAEd,KACS,mBACK,oCAEd,KACS,yCACK,oCAEd,KACS,kBACK,oCAEd,KACS,mCACK,qCAEb,6BAC8B,CAAC,QAAS,WAAY,mBAAoB,cAAe,uBAAwB,iBAAkB,oBAAqB,sCAM3H,+BAAgC,IAAIC,aAA8B,WAAc,gBAAiBC,QAAS,KAAO,uBACjH,+CAAgD,IAAID,aAAiC,uBACrF,+DAAgE,IAAIA,aAAiC"}
|
||||
{"version":3,"file":"sw.js","sources":["C:/Users/vapormusic/AppData/Local/Temp/b97cb0fb56dd447f95668d4898340903/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from 'C:/Users/vieta/AppData/Roaming/nvm/v14.18.1/node_modules/workbox-cli/node_modules/workbox-routing/registerRoute.mjs';\nimport {CacheFirst as workbox_strategies_CacheFirst} from 'C:/Users/vieta/AppData/Roaming/nvm/v14.18.1/node_modules/workbox-cli/node_modules/workbox-strategies/CacheFirst.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from 'C:/Users/vieta/AppData/Roaming/nvm/v14.18.1/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.addEventListener('message', (event) => {\n if (event.data && event.data.type === 'SKIP_WAITING') {\n self.skipWaiting();\n }\n});\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"ameframework.css\",\n \"revision\": \"4bcc8646bb5742638fad52b94e231601\"\n },\n {\n \"url\": \"apple-hls.js\",\n \"revision\": \"2b74055662676b0fcc2d4a4bf994a9dc\"\n },\n {\n \"url\": \"hlscider.js\",\n \"revision\": \"cf7f512e83e32694f2c94f904714fe4c\"\n },\n {\n \"url\": \"index_old.html\",\n \"revision\": \"c21f3e9c5b015599d3ab07639f64a7a8\"\n },\n {\n \"url\": \"index.js\",\n \"revision\": \"8591a69fc9c975a063eb264b7447f173\"\n },\n {\n \"url\": \"less.js\",\n \"revision\": \"b6e574e4d680686786a28e7e71a17bbc\"\n },\n {\n \"url\": \"musickit.js\",\n \"revision\": \"211d80891c3336c1795cb83df58d4b63\"\n },\n {\n \"url\": \"sortable.min.js\",\n \"revision\": \"5cbc31ebec32adf60e27b76418e79d93\"\n },\n {\n \"url\": \"style-old.css\",\n \"revision\": \"aea9ea49df13f2deee42b68654aeea06\"\n },\n {\n \"url\": \"todo.js\",\n \"revision\": \"18d49fabcb96de8bd11455877d8eacb6\"\n },\n {\n \"url\": \"vue-observe-visibility.min.js\",\n \"revision\": \"5a52e761f6aa71b4f65a7b458f698b95\"\n },\n {\n \"url\": \"vue.js\",\n \"revision\": \"0a9a4681294d8c5f476687eea6e74842\"\n },\n {\n \"url\": \"vuedraggable.umd.min.js\",\n \"revision\": \"9a84fec5263bb510cee88e1c3b9583cc\"\n }\n], {\n \"ignoreURLParametersMatching\": [/^utm_/, /^fbclid$/, /^X-Amz-Algorithm/, /^X-Amz-Date/, /^X-Amz-SignedHeaders/, /^X-Amz-Expires/, /^X-Amz-Credential/, /^X-Amz-Signature/]\n});\n\n\n\n\nworkbox_routing_registerRoute(/\\.(?:png|jpg|jpeg|svg|webp)$/, new workbox_strategies_CacheFirst({ \"cacheName\":\"imageinternet\", plugins: [] }), 'GET');\nworkbox_routing_registerRoute(/https:\\/\\/is[0-9]-ssl\\.mzstatic\\.com\\/image+/, new workbox_strategies_CacheFirst(), 'GET');\nworkbox_routing_registerRoute(/^https:\\/\\/store-\\d{3}\\.blobstore\\.apple\\.com\\/.{65}\\/image+/, new workbox_strategies_CacheFirst(), 'GET');\n\n\n\n\n"],"names":["self","addEventListener","event","data","type","skipWaiting","workbox_strategies_CacheFirst","plugins"],"mappings":"0nBAqBAA,KAAKC,iBAAiB,WAAYC,IAC5BA,EAAMC,MAA4B,iBAApBD,EAAMC,KAAKC,MAC3BJ,KAAKK,oCAY2B,CAClC,KACS,4BACK,oCAEd,KACS,wBACK,oCAEd,KACS,uBACK,oCAEd,KACS,0BACK,oCAEd,KACS,oBACK,oCAEd,KACS,mBACK,oCAEd,KACS,uBACK,oCAEd,KACS,2BACK,oCAEd,KACS,yBACK,oCAEd,KACS,mBACK,oCAEd,KACS,yCACK,oCAEd,KACS,kBACK,oCAEd,KACS,mCACK,qCAEb,6BAC8B,CAAC,QAAS,WAAY,mBAAoB,cAAe,uBAAwB,iBAAkB,oBAAqB,sCAM3H,+BAAgC,IAAIC,aAA8B,WAAc,gBAAiBC,QAAS,KAAO,uBACjH,+CAAgD,IAAID,aAAiC,uBACrF,+DAAgE,IAAIA,aAAiC"}
|
|
@ -375,6 +375,13 @@
|
|||
<%- include('pages/library-albums') %>');
|
||||
%>
|
||||
</transition>
|
||||
<!-- Library - Albums -->
|
||||
<transition name="wpfade" v-on:enter="getMadeForYou()">
|
||||
<template v-if="page == 'library-madeforyou'" >
|
||||
<%- include('pages/madeforyou') %>');
|
||||
%>
|
||||
</template>
|
||||
</transition>
|
||||
</div>
|
||||
<transition name="drawertransition">
|
||||
<div class="app-drawer" v-if="drawer.open">
|
||||
|
|
11
src/renderer/views/pages/madeforyou.ejs
Normal file
11
src/renderer/views/pages/madeforyou.ejs
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div class="content-inner">
|
||||
<div class="row">
|
||||
<div class="col" style="padding:0px">
|
||||
<h1 class="header-text">Made For You</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="madeforyou-body">
|
||||
<mediaitem-square-large :item="item" v-for="item in madeforyou.data">
|
||||
</mediaitem-square-large>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue