Moved pages and styles into src

This commit is contained in:
Liam 2022-10-23 21:47:57 +01:00
parent 9a5ffab042
commit a6f9573c3f
20 changed files with 26 additions and 18 deletions

View File

@ -1,6 +1,6 @@
import Image from "next/image";
import styles from "../../styles/avatar.module.css";
import styles from "../styles/avatar.module.css";
const Avatar = (props) => {
return (

View File

@ -1,6 +1,6 @@
import ReactCountryFlag from "react-country-flag";
import styles from "../../styles/playerStats.module.css";
import styles from "../styles/playerStats.module.css";
import Avatar from "./Avatar";
const PlayerStats = (props) => {

View File

@ -1,6 +1,6 @@
import { Component } from "react";
import styles from "../../styles/scoreStats.module.css";
import styles from "../styles/scoreStats.module.css";
import Utils from "../utils/utils";
export default class ScoreStats extends Component {

View File

@ -1,7 +1,7 @@
import { Image } from "@nextui-org/react";
import { Component } from "react";
import styles from "../../styles/songInfo.module.css";
import styles from "../styles/songInfo.module.css";
export default class SongInfo extends Component {
constructor(params) {

View File

@ -1,6 +1,10 @@
import fetch from "node-fetch";
import WebsiteTypes from "../../../src/consts/LeaderboardType";
import { getValue, setValue, valueExists } from "../../../src/utils/redisUtils";
import WebsiteTypes from "../../../../src/consts/LeaderboardType";
import {
getValue,
setValue,
valueExists,
} from "../../../../src/utils/redisUtils";
const KEY = "BL_MAP_STAR_";

View File

@ -1,4 +1,4 @@
import { getMapData } from "../../../src/helpers/beatSaverHelpers";
import { getMapData } from "../../../../src/helpers/beatSaverHelpers";
export default async function handler(req, res) {
const mapHash = req.query.hash;

View File

@ -1,7 +1,11 @@
import fetch from "node-fetch";
import WebsiteTypes from "../../../src/consts/LeaderboardType";
import { getValue, setValue, valueExists } from "../../../src/utils/redisUtils";
import { diffToScoreSaberDiff } from "../../../src/utils/scoreSaberUtils";
import WebsiteTypes from "../../../../src/consts/LeaderboardType";
import {
getValue,
setValue,
valueExists,
} from "../../../../src/utils/redisUtils";
import { diffToScoreSaberDiff } from "../../../../src/utils/scoreSaberUtils";
const KEY = "SS_MAP_STAR_";

View File

@ -1,4 +1,4 @@
import { isValidSteamId } from "../../src/helpers/validateSteamId";
import { isValidSteamId } from "../../../src/helpers/validateSteamId";
export default async function handler(req, res) {
const steamId = req.query.steamid;

View File

@ -13,14 +13,14 @@ import {
Text,
} from "@nextui-org/react";
import { Component } from "react";
import NavBar from "../src/components/Navbar";
import { toast, ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import { NextSeo } from "next-seo";
import Utils from "../src/utils/utils";
import NavBar from "../components/Navbar";
import styles from "../styles/main.module.css";
import Utils from "../utils/utils";
export default class Home extends Component {
constructor(props) {

View File

@ -1,11 +1,11 @@
import { Link, Spinner } from "@nextui-org/react";
import { NextSeo } from "next-seo";
import { Component } from "react";
import PlayerStats from "../src/components/PlayerStats";
import ScoreStats from "../src/components/ScoreStats";
import SongInfo from "../src/components/SongInfo";
import LeaderboardType from "../src/consts/LeaderboardType";
import Utils from "../src/utils/utils";
import PlayerStats from "../../src/components/PlayerStats";
import ScoreStats from "../../src/components/ScoreStats";
import SongInfo from "../../src/components/SongInfo";
import LeaderboardType from "../../src/consts/LeaderboardType";
import Utils from "../../src/utils/utils";
import styles from "../styles/overlay.module.css";