Merge branch 'main' into dev

This commit is contained in:
Félix MARQUET
2025-12-08 10:00:41 +00:00
9 changed files with 19 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
FROM node:25-alpine
FROM node:24-alpine
WORKDIR /app
COPY package*.json ./
COPY pnpm-lock.yaml ./

View File

@@ -1,11 +1,11 @@
'use client';
import { useState } from 'react';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from '@/components/ui/dialog';
import { Button } from '../../../components/ui/button';
import { Card, CardContent, CardHeader, CardTitle } from '../../../components/ui/card';
import { Input } from '../../../components/ui/input';
import { Label } from '../../../components/ui/label';
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from '../../../components/ui/dialog';
import { toast } from 'sonner';
interface ParsedUser {

View File

@@ -106,7 +106,7 @@ export default function AdminPage() {
const [selectedUserIds, setSelectedUserIds] = useState<string[]>([]);
const [sortBy, setSortBy] = useState<'date' | 'createdAt'>('date');
const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('desc');
const [showPendingFirst, setShowPendingFirst] = useState(false);
const [showPendingFirst, setShowPendingFirst] = useState(true);
const { refetchSettings } = useSettings();
useEffect(() => {

View File

@@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from 'next/server';
import { getServerSession } from 'next-auth';
import { authOptions } from '@/lib/auth';
import { prisma } from '@/lib/prisma';
import { authOptions } from '../../../lib/auth';
import { prisma } from '../../../lib/prisma';
import bcrypt from 'bcryptjs';
export async function POST(request: NextRequest) {

View File

@@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from 'next/server';
import { prisma } from '@/lib/prisma';
import { prisma } from '../../../lib/prisma';
import { getServerSession } from 'next-auth';
import { authOptions } from '@/lib/auth';
import { authOptions } from '../../../lib/auth';
import bcrypt from 'bcryptjs';
import ExcelJS from 'exceljs';
import { v4 as uuidv4 } from 'uuid';

View File

@@ -3,10 +3,10 @@
import { useEffect, useState } from 'react';
import { useSession, signOut } from 'next-auth/react';
import { useRouter } from 'next/navigation';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Button } from '../../components/ui/button';
import { Input } from '../../components/ui/input';
import { Label } from '../../components/ui/label';
import { Card, CardContent, CardHeader, CardTitle } from '../../components/ui/card';
import { toast } from 'sonner';
export default function ChangePasswordPage() {

View File

@@ -4,12 +4,12 @@ import * as React from "react"
import { Moon, Sun, Laptop } from "lucide-react"
import { useTheme } from "next-themes"
import { Button } from "@/components/ui/button"
import { Button } from "./ui/button"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/components/ui/popover"
} from "./ui/popover"
export function ModeToggle() {
const { setTheme, theme } = useTheme()

View File

@@ -4,7 +4,7 @@ import * as React from "react"
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
import { CheckIcon } from "lucide-react"
import { cn } from "@/lib/utils"
import { cn } from "../../lib/utils"
function Checkbox({
className,

View File

@@ -4,7 +4,7 @@ import * as React from "react"
import * as SelectPrimitive from "@radix-ui/react-select"
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"
import { cn } from "@/lib/utils"
import { cn } from "../../lib/utils"
function Select({
...props