Refactor component imports and structure: Update import paths for various components to improve organization, moving them into appropriate subdirectories. Remove unused components related to user and event management, enhancing code clarity and maintainability across the application.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m36s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m36s
This commit is contained in:
@@ -2,8 +2,8 @@ import { redirect } from "next/navigation";
|
|||||||
import { auth } from "@/lib/auth";
|
import { auth } from "@/lib/auth";
|
||||||
import { sitePreferencesService } from "@/services/preferences/site-preferences.service";
|
import { sitePreferencesService } from "@/services/preferences/site-preferences.service";
|
||||||
import { Role } from "@/prisma/generated/prisma/client";
|
import { Role } from "@/prisma/generated/prisma/client";
|
||||||
import NavigationWrapper from "@/components/NavigationWrapper";
|
import NavigationWrapper from "@/components/navigation/NavigationWrapper";
|
||||||
import AdminPanel from "@/components/AdminPanel";
|
import AdminPanel from "@/components/admin/AdminPanel";
|
||||||
|
|
||||||
export const dynamic = "force-dynamic";
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import Navigation from "@/components/Navigation";
|
import Navigation from "@/components/navigation/Navigation";
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Input,
|
Input,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import NavigationWrapper from "@/components/NavigationWrapper";
|
import NavigationWrapper from "@/components/navigation/NavigationWrapper";
|
||||||
import EventsPageSection from "@/components/EventsPageSection";
|
import EventsPageSection from "@/components/events/EventsPageSection";
|
||||||
import { eventService } from "@/services/events/event.service";
|
import { eventService } from "@/services/events/event.service";
|
||||||
import { eventRegistrationService } from "@/services/events/event-registration.service";
|
import { eventRegistrationService } from "@/services/events/event-registration.service";
|
||||||
import { getBackgroundImage } from "@/lib/preferences";
|
import { getBackgroundImage } from "@/lib/preferences";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import { useState, useEffect, useTransition, type FormEvent } from "react";
|
import { useState, useEffect, useTransition, type FormEvent } from "react";
|
||||||
import { useSession } from "next-auth/react";
|
import { useSession } from "next-auth/react";
|
||||||
import { useRouter, useParams } from "next/navigation";
|
import { useRouter, useParams } from "next/navigation";
|
||||||
import Navigation from "@/components/Navigation";
|
import Navigation from "@/components/navigation/Navigation";
|
||||||
import { createFeedback } from "@/actions/events/feedback";
|
import { createFeedback } from "@/actions/events/feedback";
|
||||||
import {
|
import {
|
||||||
StarRating,
|
StarRating,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import type { Metadata } from "next";
|
|||||||
import type { ReactNode } from "react";
|
import type { ReactNode } from "react";
|
||||||
import { Orbitron, Rajdhani } from "next/font/google";
|
import { Orbitron, Rajdhani } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import SessionProvider from "@/components/SessionProvider";
|
import SessionProvider from "@/components/layout/SessionProvider";
|
||||||
|
|
||||||
const orbitron = Orbitron({
|
const orbitron = Orbitron({
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import NavigationWrapper from "@/components/NavigationWrapper";
|
import NavigationWrapper from "@/components/navigation/NavigationWrapper";
|
||||||
import LeaderboardSection from "@/components/LeaderboardSection";
|
import LeaderboardSection from "@/components/leaderboard/LeaderboardSection";
|
||||||
import { userStatsService } from "@/services/users/user-stats.service";
|
import { userStatsService } from "@/services/users/user-stats.service";
|
||||||
import { getBackgroundImage } from "@/lib/preferences";
|
import { getBackgroundImage } from "@/lib/preferences";
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { useState, type FormEvent } from "react";
|
|||||||
import { signIn } from "next-auth/react";
|
import { signIn } from "next-auth/react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Navigation from "@/components/Navigation";
|
import Navigation from "@/components/navigation/Navigation";
|
||||||
import {
|
import {
|
||||||
Input,
|
Input,
|
||||||
Button,
|
Button,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import NavigationWrapper from "@/components/NavigationWrapper";
|
import NavigationWrapper from "@/components/navigation/NavigationWrapper";
|
||||||
import HeroSection from "@/components/HeroSection";
|
import HeroSection from "@/components/layout/HeroSection";
|
||||||
import EventsSection from "@/components/EventsSection";
|
import EventsSection from "@/components/events/EventsSection";
|
||||||
import { eventService } from "@/services/events/event.service";
|
import { eventService } from "@/services/events/event.service";
|
||||||
import { getBackgroundImage } from "@/lib/preferences";
|
import { getBackgroundImage } from "@/lib/preferences";
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import { redirect } from "next/navigation";
|
|||||||
import { auth } from "@/lib/auth";
|
import { auth } from "@/lib/auth";
|
||||||
import { userService } from "@/services/users/user.service";
|
import { userService } from "@/services/users/user.service";
|
||||||
import { getBackgroundImage } from "@/lib/preferences";
|
import { getBackgroundImage } from "@/lib/preferences";
|
||||||
import NavigationWrapper from "@/components/NavigationWrapper";
|
import NavigationWrapper from "@/components/navigation/NavigationWrapper";
|
||||||
import ProfileForm from "@/components/ProfileForm";
|
import ProfileForm from "@/components/profile/ProfileForm";
|
||||||
|
|
||||||
export default async function ProfilePage() {
|
export default async function ProfilePage() {
|
||||||
const session = await auth();
|
const session = await auth();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import { useState, useRef, type ChangeEvent, type FormEvent } from "react";
|
import { useState, useRef, type ChangeEvent, type FormEvent } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Navigation from "@/components/Navigation";
|
import Navigation from "@/components/navigation/Navigation";
|
||||||
import {
|
import {
|
||||||
Avatar,
|
Avatar,
|
||||||
Input,
|
Input,
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import UserManagement from "@/components/UserManagement";
|
import UserManagement from "@/components/admin/UserManagement";
|
||||||
import EventManagement from "@/components/EventManagement";
|
import EventManagement from "@/components/admin/EventManagement";
|
||||||
import FeedbackManagement from "@/components/FeedbackManagement";
|
import FeedbackManagement from "@/components/admin/FeedbackManagement";
|
||||||
import BackgroundPreferences from "@/components/BackgroundPreferences";
|
import BackgroundPreferences from "@/components/admin/BackgroundPreferences";
|
||||||
import { Button, Card, SectionTitle } from "@/components/ui";
|
import { Button, Card, SectionTitle } from "@/components/ui";
|
||||||
|
|
||||||
interface SitePreferences {
|
interface SitePreferences {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useState, useEffect, useMemo } from "react";
|
import { useState, useEffect, useMemo } from "react";
|
||||||
import ImageSelector from "@/components/ImageSelector";
|
import ImageSelector from "@/components/layout/ImageSelector";
|
||||||
import { updateSitePreferences } from "@/actions/admin/preferences";
|
import { updateSitePreferences } from "@/actions/admin/preferences";
|
||||||
import { Button, Card } from "@/components/ui";
|
import { Button, Card } from "@/components/ui";
|
||||||
|
|
||||||
@@ -4,7 +4,7 @@ import { useState, useEffect, useMemo, useRef, useTransition } from "react";
|
|||||||
import { useSession } from "next-auth/react";
|
import { useSession } from "next-auth/react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { calculateEventStatus } from "@/lib/eventStatus";
|
import { calculateEventStatus } from "@/lib/eventStatus";
|
||||||
import FeedbackModal from "@/components/FeedbackModal";
|
import FeedbackModal from "@/components/feedback/FeedbackModal";
|
||||||
import {
|
import {
|
||||||
registerForEvent,
|
registerForEvent,
|
||||||
unregisterFromEvent,
|
unregisterFromEvent,
|
||||||
@@ -4,7 +4,7 @@ import Link from "next/link";
|
|||||||
import { useSession, signOut } from "next-auth/react";
|
import { useSession, signOut } from "next-auth/react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import PlayerStats from "./PlayerStats";
|
import PlayerStats from "@/components/profile/PlayerStats";
|
||||||
import { Button } from "@/components/ui";
|
import { Button } from "@/components/ui";
|
||||||
|
|
||||||
interface UserData {
|
interface UserData {
|
||||||
Reference in New Issue
Block a user