1
Fork 0

Remove preview for spotify playlists

This commit is contained in:
Jake Howard 2018-05-27 14:38:09 +01:00
parent 5d822073c3
commit 952d96f8ea
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 5 additions and 61 deletions

View file

@ -11,14 +11,12 @@
</a>
<table class="table table-hover table-striped">
<caption><a href="{{ $playlist.external_urls.spotify }}">View playlist on Spotify</a></caption>
<thead>
<tr>
<th scope="row"></th>
<th scope="row">Track</th>
<th scope="row">Artist</th>
<th scope="row">Album</th>
<th scope="row">Preview</th>
</tr>
</thead>
<tbody>
@ -33,11 +31,6 @@
{{ range $i, $e := .artists }}{{ if $i }}, {{ end }}{{ .name }}{{ end }}
</td>
<td>{{ .album.name }}</td>
<td>
<audio controls class="mejs__player" data-plyr='{"controls": ["play", "progress"]}'>
<source src="{{ .preview_url }}" type="audio/mpeg" />
</audio>
</td>
</tr>
{{ end }}
{{ end }}

56
package-lock.json generated
View file

@ -401,27 +401,11 @@
"babel-runtime": "6.26.0"
}
},
"babel-polyfill": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
"integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=",
"requires": {
"babel-runtime": "6.26.0",
"core-js": "2.5.3",
"regenerator-runtime": "0.10.5"
},
"dependencies": {
"regenerator-runtime": {
"version": "0.10.5",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
"integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg="
}
}
},
"babel-runtime": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
"integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
"dev": true,
"requires": {
"core-js": "2.5.3",
"regenerator-runtime": "0.11.1"
@ -1445,7 +1429,8 @@
"core-js": {
"version": "2.5.3",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.3.tgz",
"integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4="
"integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=",
"dev": true
},
"core-util-is": {
"version": "1.0.2",
@ -1562,11 +1547,6 @@
"array-find-index": "1.0.2"
}
},
"custom-event-polyfill": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/custom-event-polyfill/-/custom-event-polyfill-0.3.0.tgz",
"integrity": "sha1-mYB4Ob5i7bRGtkWDLg2A6tb6GIg="
},
"d": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz",
@ -4281,11 +4261,6 @@
"strip-bom": "2.0.0"
}
},
"loadjs": {
"version": "3.5.4",
"resolved": "https://registry.npmjs.org/loadjs/-/loadjs-3.5.4.tgz",
"integrity": "sha512-vJO1whnJ/9Cg+Z8tOLVGuIaLiGpCxEd/+R1OgzWJxoJHAfXOfHqJWnsGbst9Q8dQAGVvt4/X8zhCO0EtlnXcRg=="
},
"lodash": {
"version": "4.17.5",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz",
@ -5667,18 +5642,6 @@
"integrity": "sha1-0aIUg/0iu0HlihL6NCGCMUCJfEU=",
"dev": true
},
"plyr": {
"version": "3.3.8",
"resolved": "https://registry.npmjs.org/plyr/-/plyr-3.3.8.tgz",
"integrity": "sha512-IaenPLlT3KSxRB1+2XXdBAH25FgbOJQaECd+F8camA3IUSyogNHaqz463bY4P6/efHlwf4sI/Xp5CF5aGkrfOA==",
"requires": {
"babel-polyfill": "6.26.0",
"custom-event-polyfill": "0.3.0",
"loadjs": "3.5.4",
"raven-js": "3.25.2",
"url-polyfill": "1.0.13"
}
},
"pngquant-bin": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/pngquant-bin/-/pngquant-bin-4.0.0.tgz",
@ -6119,11 +6082,6 @@
"integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=",
"dev": true
},
"raven-js": {
"version": "3.25.2",
"resolved": "https://registry.npmjs.org/raven-js/-/raven-js-3.25.2.tgz",
"integrity": "sha512-En+UitE5SW8flqfqreZl2WIPslubX8/EWUJcg0V1XShxXkFM3rS6ddWc9kXkjS1mNOleEfamDGWQ4YWWtefUVg=="
},
"raw-body": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz",
@ -6256,7 +6214,8 @@
"regenerator-runtime": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
"integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg=="
"integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==",
"dev": true
},
"regex-cache": {
"version": "0.4.4",
@ -7752,11 +7711,6 @@
"prepend-http": "1.0.4"
}
},
"url-polyfill": {
"version": "1.0.13",
"resolved": "https://registry.npmjs.org/url-polyfill/-/url-polyfill-1.0.13.tgz",
"integrity": "sha512-tNb+OrSQWDkKNapyp84/tvzQUBpTj1HvE07ySZCvsu/P736+HJbqTVY3NqWd+GPGt5OknqNaWqT0s1VsAmTqJA=="
},
"url-regex": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/url-regex/-/url-regex-3.2.0.tgz",

View file

@ -26,7 +26,6 @@
"lg-thumbnail": "1.1.0",
"lightgallery": "1.6.11",
"mermaid": "7.1.2",
"plyr": "3.3.8",
"popper.js": "1.14.3",
"speedpack": "0.2.0"
}

View file

@ -7,7 +7,6 @@ require('bootstrap');
require('lightgallery/dist/js/lightgallery');
require('lg-thumbnail/dist/lg-thumbnail');
require('plyr').setup();
var Clipboard = require('clipboard');

View file

@ -4,7 +4,6 @@
@import "node_modules/lightgallery/src/sass/lightgallery";
@import "node_modules/bootstrap/scss/bootstrap";
@import "node_modules/plyr/src/sass/plyr";
html, body {