From 7c713a99ab065a5a1449ad7ad13114222a5253e9 Mon Sep 17 00:00:00 2001
From: Liam <67254223+RealFascinated@users.noreply.github.com>
Date: Fri, 14 Oct 2022 20:00:47 +0100
Subject: [PATCH] Formatted code
---
pages/_app.js | 84 ++++----
pages/_document.js | 64 +++---
pages/api/beatsaver/art/[hash].js | 46 ++---
pages/api/beatsaver/map.js | 31 +--
pages/api/mockdata.js | 15 +-
pages/index.js | 329 +++++++++++++++++++-----------
pages/overlay.js | 289 ++++++++++++++------------
src/components/Avatar.js | 34 +--
src/components/Navbar.js | 20 +-
src/components/PlayerStats.js | 49 +++--
src/components/ScoreStats.js | 77 +++----
src/components/SongInfo.js | 167 ++++++++-------
src/consts/WebsiteType.js | 24 +--
src/utils/utils.js | 22 +-
styles/avatar.module.css | 2 +-
styles/globals.css | 6 +-
styles/main.module.css | 4 +-
styles/overlay.module.css | 6 +-
styles/playerStats.module.css | 2 +-
styles/scoreStats.module.css | 8 +-
styles/songInfo.module.css | 6 +-
utils/utils.js | 60 +++---
22 files changed, 759 insertions(+), 586 deletions(-)
diff --git a/pages/_app.js b/pages/_app.js
index 9f0b947..dc9ff36 100644
--- a/pages/_app.js
+++ b/pages/_app.js
@@ -1,49 +1,55 @@
// 1. import `NextUIProvider` component
-import { NextUIProvider } from '@nextui-org/react';
-import { NextSeo } from 'next-seo';
-import Head from 'next/head'
+import { NextUIProvider } from "@nextui-org/react";
+import { NextSeo } from "next-seo";
+import Head from "next/head";
-import Config from '../config.json';
+import Config from "../config.json";
-import '../styles/globals.css';
+import "../styles/globals.css";
function MyApp({ Component, pageProps }) {
- return (
- // 2. Use at the root of your app
-
{props.pp}pp ({props.websiteType})
-#{props.globalPos}
-#{props.countryRank}
-+ {props.pp}pp{" "} + + ({props.websiteType}) + +
+#{props.globalPos}
+#{props.countryRank}
+{data.percentage}
-{data.currentScore.toLocaleString()}
-Average Cut
-{this.getAverage(data.leftHand.averagePreSwing).toFixed(2)}
-{this.getAverage(data.leftHand.averagePostSwing).toFixed(2)}
-{this.getAverage(data.leftHand.averageCut).toFixed(2)}
-{this.getAverage(data.rightHand.averagePreSwing).toFixed(2)}
-{this.getAverage(data.rightHand.averagePostSwing).toFixed(2)}
-{this.getAverage(data.rightHand.averageCut).toFixed(2)}
-{data.percentage}
+{data.currentScore.toLocaleString()}
+Average Cut
+{this.getAverage(data.leftHand.averagePreSwing).toFixed(2)}
+{this.getAverage(data.leftHand.averagePostSwing).toFixed(2)}
+{this.getAverage(data.leftHand.averageCut).toFixed(2)}
+{this.getAverage(data.rightHand.averagePreSwing).toFixed(2)}
+{this.getAverage(data.rightHand.averagePostSwing).toFixed(2)}
+{this.getAverage(data.rightHand.averageCut).toFixed(2)}
+{songName.length > 35 ? songName.substring(0, 35) + "..." : songName}
-{songAuthorName}
-{difficulty}
-!bsr {bsr}
-{this.msToMinSeconds(this.props.data.currentSongTime * 1000)}/{this.msToMinSeconds(data.length)}
-+ {songName.length > 35 + ? songName.substring(0, 35) + "..." + : songName} +
+{songAuthorName}
++ {difficulty} +
+!bsr {bsr}
++ {this.msToMinSeconds(this.props.data.currentSongTime * 1000)}/ + {this.msToMinSeconds(data.length)} +
+