chore: fewer windows

This commit is contained in:
Cory Dransfeldt 2024-04-05 09:47:36 -07:00
parent 9b4ae01743
commit f1223b73ee
No known key found for this signature in database
4 changed files with 1 additions and 19 deletions

View file

@ -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),
}
}