disabled statsfm & moved common components

This commit is contained in:
Ryan Freeman 2023-05-28 21:15:39 +01:00
parent 09f73e0e6f
commit 69d62b153a
9 changed files with 30 additions and 30 deletions

View File

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import {OuterContainer, InnerContainer} from './Container' import {OuterContainer, InnerContainer} from './Container'
import {NavLink} from '@/components/ui/Navigation' import {NavLink} from '@/components/ui/Navigation'
import {SpotifyPlayer} from './ui/SpotifyPlayer' import {SpotifyPlayer} from '@/components/ui/SpotifyPlayer'
import {SocialLink} from '@/components/ui/SocialLink' import {SocialLink} from '@/components/ui/SocialLink'
import {GitHubIcon, LinkedInIcon, TwitterIcon} from '@/components/icons/SocialIcons' import {GitHubIcon, LinkedInIcon, TwitterIcon} from '@/components/icons/SocialIcons'

View File

@ -1,10 +1,10 @@
import {useRouter} from 'next/router' import {useRouter} from 'next/router'
import {useEffect, useRef} from 'react' import {useEffect, useRef} from 'react'
import {Container} from './Container' import {Container} from './Container'
import {MobileNavigation, DesktopNavigation} from './ui/Navigation' import {MobileNavigation, DesktopNavigation} from '@/components/ui/Navigation'
import {Avatar, AvatarContainer} from './ui/Avatar' import {Avatar, AvatarContainer} from '@/components/ui/Avatar'
import {MoonIcon} from './icons/MoonIcon' import {MoonIcon} from '@/components/icons/MoonIcon'
import {SunIcon} from './icons/SunIcon' import {SunIcon} from '@/components/icons/SunIcon'
function ModeToggle() { function ModeToggle() {
function disableTransitionsTemporarily() { function disableTransitionsTemporarily() {

View File

@ -2,7 +2,7 @@ import React, {ReactNode} from 'react'
import * as process from 'process' import * as process from 'process'
import Head from 'next/head' import Head from 'next/head'
import Link from 'next/link' import Link from 'next/link'
import {Container} from '@/components/Container' import {Container} from '@/components/common/Container'
import {Prose} from '@/components/ui/Prose' import {Prose} from '@/components/ui/Prose'
import {Views} from '@/components/ui/Views' import {Views} from '@/components/ui/Views'
import {ArrowDownIcon} from '@/components/icons/ArrowDownIcon' import {ArrowDownIcon} from '@/components/icons/ArrowDownIcon'

View File

@ -1,5 +1,5 @@
import {ReactNode} from 'react' import {ReactNode} from 'react'
import {Container} from '@/components/Container' import {Container} from '@/components/common/Container'
import {twMerge} from 'tailwind-merge' import {twMerge} from 'tailwind-merge'
type SimpleLayout = { type SimpleLayout = {

View File

@ -26,27 +26,27 @@ export async function getDashboardData(context: GetServerSidePropsContext) {
const totalArticles = (await getAllArticles()).length const totalArticles = (await getAllArticles()).length
const topArtist = await getTopArtist() const topArtist = await getTopArtist()
const {genre} = await getTopGenre() const {genre} = await getTopGenre()
const {hoursListened, minutesListened, streams} = await getStats() // const {hoursListened, minutesListened, streams} = await getStats()
const metrics: Metric[] = [ const metrics: Metric[] = [
{ // {
title: "Streams", // title: "Streams",
value: +streams, // value: +streams,
group: "Spotify", // group: "Spotify",
href: "https://open.spotify.com/?" // href: "https://open.spotify.com/?"
}, // },
{ // {
title: "Hours listened", // title: "Hours listened",
value: +hoursListened, // value: +hoursListened,
group: "Spotify", // group: "Spotify",
href: "https://open.spotify.com/?" // href: "https://open.spotify.com/?"
}, // },
{ // {
title: "Minutes listened", // title: "Minutes listened",
value: +minutesListened, // value: +minutesListened,
group: "Spotify", // group: "Spotify",
href: "https://open.spotify.com/?" // href: "https://open.spotify.com/?"
}, // },
{ {
title: "Top genre", title: "Top genre",
value: genre, value: genre,

View File

@ -4,8 +4,8 @@ import NProgress from 'nprogress'
import {createBrowserSupabaseClient} from '@supabase/auth-helpers-nextjs' import {createBrowserSupabaseClient} from '@supabase/auth-helpers-nextjs'
import {SessionContextProvider, Session} from '@supabase/auth-helpers-react' import {SessionContextProvider, Session} from '@supabase/auth-helpers-react'
import {useEffect, useState} from 'react' import {useEffect, useState} from 'react'
import {Header} from '@/components/Header' import {Header} from '@/components/common/Header'
import {Footer} from '@/components/Footer' import {Footer} from '@/components/common/Footer'
import '../styles/nprogress.css' import '../styles/nprogress.css'
import '../styles/tailwind.css' import '../styles/tailwind.css'

View File

@ -4,7 +4,7 @@ import Head from 'next/head'
import Link from 'next/link' import Link from 'next/link'
import clsx from 'clsx' import clsx from 'clsx'
import {Container} from '@/components/Container' import {Container} from '@/components/common/Container'
import { import {
GitHubIcon, GitHubIcon,
LinkedInIcon, LinkedInIcon,

View File

@ -3,7 +3,7 @@ import Head from 'next/head'
import {GetStaticProps} from 'next' import {GetStaticProps} from 'next'
import {Card} from '@/components/ui/Card' import {Card} from '@/components/ui/Card'
import {Resume} from '@/components/ui/Resume' import {Resume} from '@/components/ui/Resume'
import {Container} from '@/components/Container' import {Container} from '@/components/common/Container'
import { import {
GitHubIcon, GitHubIcon,
LinkedInIcon, LinkedInIcon,