Moved pages and styles into src
This commit is contained in:
parent
9a5ffab042
commit
a6f9573c3f
@ -1,6 +1,6 @@
|
|||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
import styles from "../../styles/avatar.module.css";
|
import styles from "../styles/avatar.module.css";
|
||||||
|
|
||||||
const Avatar = (props) => {
|
const Avatar = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import ReactCountryFlag from "react-country-flag";
|
import ReactCountryFlag from "react-country-flag";
|
||||||
|
|
||||||
import styles from "../../styles/playerStats.module.css";
|
import styles from "../styles/playerStats.module.css";
|
||||||
import Avatar from "./Avatar";
|
import Avatar from "./Avatar";
|
||||||
|
|
||||||
const PlayerStats = (props) => {
|
const PlayerStats = (props) => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Component } from "react";
|
import { Component } from "react";
|
||||||
|
|
||||||
import styles from "../../styles/scoreStats.module.css";
|
import styles from "../styles/scoreStats.module.css";
|
||||||
import Utils from "../utils/utils";
|
import Utils from "../utils/utils";
|
||||||
|
|
||||||
export default class ScoreStats extends Component {
|
export default class ScoreStats extends Component {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Image } from "@nextui-org/react";
|
import { Image } from "@nextui-org/react";
|
||||||
import { Component } from "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 {
|
export default class SongInfo extends Component {
|
||||||
constructor(params) {
|
constructor(params) {
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
import WebsiteTypes from "../../../src/consts/LeaderboardType";
|
import WebsiteTypes from "../../../../src/consts/LeaderboardType";
|
||||||
import { getValue, setValue, valueExists } from "../../../src/utils/redisUtils";
|
import {
|
||||||
|
getValue,
|
||||||
|
setValue,
|
||||||
|
valueExists,
|
||||||
|
} from "../../../../src/utils/redisUtils";
|
||||||
|
|
||||||
const KEY = "BL_MAP_STAR_";
|
const KEY = "BL_MAP_STAR_";
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
import { getMapData } from "../../../src/helpers/beatSaverHelpers";
|
import { getMapData } from "../../../../src/helpers/beatSaverHelpers";
|
||||||
|
|
||||||
export default async function handler(req, res) {
|
export default async function handler(req, res) {
|
||||||
const mapHash = req.query.hash;
|
const mapHash = req.query.hash;
|
@ -1,7 +1,11 @@
|
|||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
import WebsiteTypes from "../../../src/consts/LeaderboardType";
|
import WebsiteTypes from "../../../../src/consts/LeaderboardType";
|
||||||
import { getValue, setValue, valueExists } from "../../../src/utils/redisUtils";
|
import {
|
||||||
import { diffToScoreSaberDiff } from "../../../src/utils/scoreSaberUtils";
|
getValue,
|
||||||
|
setValue,
|
||||||
|
valueExists,
|
||||||
|
} from "../../../../src/utils/redisUtils";
|
||||||
|
import { diffToScoreSaberDiff } from "../../../../src/utils/scoreSaberUtils";
|
||||||
|
|
||||||
const KEY = "SS_MAP_STAR_";
|
const KEY = "SS_MAP_STAR_";
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
import { isValidSteamId } from "../../src/helpers/validateSteamId";
|
import { isValidSteamId } from "../../../src/helpers/validateSteamId";
|
||||||
|
|
||||||
export default async function handler(req, res) {
|
export default async function handler(req, res) {
|
||||||
const steamId = req.query.steamid;
|
const steamId = req.query.steamid;
|
@ -13,14 +13,14 @@ import {
|
|||||||
Text,
|
Text,
|
||||||
} from "@nextui-org/react";
|
} from "@nextui-org/react";
|
||||||
import { Component } from "react";
|
import { Component } from "react";
|
||||||
import NavBar from "../src/components/Navbar";
|
|
||||||
|
|
||||||
import { toast, ToastContainer } from "react-toastify";
|
import { toast, ToastContainer } from "react-toastify";
|
||||||
import "react-toastify/dist/ReactToastify.css";
|
import "react-toastify/dist/ReactToastify.css";
|
||||||
|
|
||||||
import { NextSeo } from "next-seo";
|
import { NextSeo } from "next-seo";
|
||||||
import Utils from "../src/utils/utils";
|
import NavBar from "../components/Navbar";
|
||||||
import styles from "../styles/main.module.css";
|
import styles from "../styles/main.module.css";
|
||||||
|
import Utils from "../utils/utils";
|
||||||
|
|
||||||
export default class Home extends Component {
|
export default class Home extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
@ -1,11 +1,11 @@
|
|||||||
import { Link, Spinner } from "@nextui-org/react";
|
import { Link, Spinner } from "@nextui-org/react";
|
||||||
import { NextSeo } from "next-seo";
|
import { NextSeo } from "next-seo";
|
||||||
import { Component } from "react";
|
import { Component } from "react";
|
||||||
import PlayerStats from "../src/components/PlayerStats";
|
import PlayerStats from "../../src/components/PlayerStats";
|
||||||
import ScoreStats from "../src/components/ScoreStats";
|
import ScoreStats from "../../src/components/ScoreStats";
|
||||||
import SongInfo from "../src/components/SongInfo";
|
import SongInfo from "../../src/components/SongInfo";
|
||||||
import LeaderboardType from "../src/consts/LeaderboardType";
|
import LeaderboardType from "../../src/consts/LeaderboardType";
|
||||||
import Utils from "../src/utils/utils";
|
import Utils from "../../src/utils/utils";
|
||||||
|
|
||||||
import styles from "../styles/overlay.module.css";
|
import styles from "../styles/overlay.module.css";
|
||||||
|
|
Reference in New Issue
Block a user