chore: fewer windows
This commit is contained in:
parent
9b4ae01743
commit
f1223b73ee
4 changed files with 1 additions and 19 deletions
|
@ -4,12 +4,10 @@ import { buildChart } from './helpers/music.js'
|
|||
export default async function () {
|
||||
const monthChart = JSON.parse(await readFile('./src/_data/json/scrobbles-month-chart.json', 'utf8'));
|
||||
const threeMonthChart = JSON.parse(await readFile('./src/_data/json/scrobbles-three-month-chart.json', 'utf8'));
|
||||
const sixMonthChart = JSON.parse(await readFile('./src/_data/json/scrobbles-six-month-chart.json', 'utf8'));
|
||||
const artists = JSON.parse(await readFile('./src/_data/json/artists-map.json', 'utf8'));
|
||||
const albums = JSON.parse(await readFile('./src/_data/json/albums-map.json', 'utf8'));
|
||||
return {
|
||||
month: buildChart(monthChart['data'], artists, albums),
|
||||
threeMonthChart: buildChart(threeMonthChart['data'], artists, albums),
|
||||
sixMonthChart: buildChart(sixMonthChart['data'], artists, albums),
|
||||
}
|
||||
}
|
|
@ -22,7 +22,6 @@ layout: default
|
|||
<button class="small active" data-toggle="artists-window">This week</button>
|
||||
<button class="small secondary" data-toggle="artists-month">This month</button>
|
||||
<button class="small secondary" data-toggle="artists-three-months">3 months</button>
|
||||
<button class="small secondary" data-toggle="artists-six-months">6 months</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="artists-window">
|
||||
|
@ -34,9 +33,6 @@ layout: default
|
|||
<div class="hidden" id="artists-three-months">
|
||||
{% render "partials/now/media-grid.liquid", data:musicCharts.threeMonthChart.artists, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<div class="hidden" id="artists-six-months">
|
||||
{% render "partials/now/media-grid.liquid", data:musicCharts.sixMonthChart.artists, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<div class="now__section--header-wrapper">
|
||||
<h2 id="albums" class="now__section--header flex--centered">
|
||||
{% tablericon "vinyl" "Albums" %}
|
||||
|
@ -46,7 +42,6 @@ layout: default
|
|||
<button class="small active" data-toggle="albums-window">This week</button>
|
||||
<button class="small secondary" data-toggle="albums-month">This month</button>
|
||||
<button class="small secondary" data-toggle="albums-three-months">3 months</button>
|
||||
<button class="small secondary" data-toggle="albums-six-months">6 months</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="albums-window">
|
||||
|
@ -58,9 +53,6 @@ layout: default
|
|||
<div class="hidden" id="albums-three-months">
|
||||
{% render "partials/now/media-grid.liquid", data:musicCharts.threeMonthChart.albums, shape: "square", count: 8 %}
|
||||
</div>
|
||||
<div class="hidden" id="albums-six-months">
|
||||
{% render "partials/now/media-grid.liquid", data:musicCharts.sixMonthChart.albums, shape: "square", count: 8 %}
|
||||
</div>
|
||||
{% render "partials/now/albumReleases.liquid", albumReleases:albumReleases %}
|
||||
<h2 id="books" class="now__section--header flex--centered">
|
||||
{% tablericon "books" "Books" %}
|
||||
|
|
Reference in a new issue