mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 19:25:41 +00:00
Updated metric order
This commit is contained in:
parent
682a8af265
commit
0e73439677
@ -16,6 +16,18 @@ export async function getDashboardData() {
|
|||||||
const {statsfm} = JSON.parse(await getLocalData())
|
const {statsfm} = JSON.parse(await getLocalData())
|
||||||
|
|
||||||
const metrics: Metric[] = [
|
const metrics: Metric[] = [
|
||||||
|
{
|
||||||
|
title: "Top genre",
|
||||||
|
value: statsfm.top_genre,
|
||||||
|
group: "Spotify",
|
||||||
|
href: "https://spotify.com/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Top artist",
|
||||||
|
value: statsfm.top_artist,
|
||||||
|
group: "Spotify",
|
||||||
|
href: "https://spotify.com/"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "Repos",
|
title: "Repos",
|
||||||
value: totalRepos,
|
value: totalRepos,
|
||||||
@ -34,18 +46,6 @@ export async function getDashboardData() {
|
|||||||
group: "GitHub",
|
group: "GitHub",
|
||||||
href: "https://github.com/r-freeman/"
|
href: "https://github.com/r-freeman/"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "Top genre",
|
|
||||||
value: statsfm.top_genre,
|
|
||||||
group: "Spotify",
|
|
||||||
href: "https://spotify.com/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Top artist",
|
|
||||||
value: statsfm.top_artist,
|
|
||||||
group: "Spotify",
|
|
||||||
href: "https://spotify.com/"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Total articles",
|
title: "Total articles",
|
||||||
value: totalArticles,
|
value: totalArticles,
|
||||||
@ -57,8 +57,7 @@ export async function getDashboardData() {
|
|||||||
value: totalArticleViews,
|
value: totalArticleViews,
|
||||||
group: "Website",
|
group: "Website",
|
||||||
href: "/writing"
|
href: "/writing"
|
||||||
},
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
// sort metrics into named groups
|
// sort metrics into named groups
|
||||||
|
Loading…
Reference in New Issue
Block a user