Compare commits
73 Commits
groups-tre
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
c691359356 | ||
|
4e5202bdba | ||
|
cdf688e8af | ||
|
46a686f578 | ||
5c2249621d | |||
501bb3a81a | |||
69f6fcbebe | |||
5d7c71b9ab | |||
0c05cf7661 | |||
f0e6ff9425 | |||
20bd7f5983 | |||
52902ff2ba | |||
c233cb60de | |||
|
44ba54db95 | ||
|
be4f9caec7 | ||
|
190118a0d1 | ||
|
862d1f85af | ||
|
42d2b7091b | ||
|
7024a9ca11 | ||
|
5951440efb | ||
|
2cdf8aca58 | ||
|
82ebaea275 | ||
|
ff406c35ec | ||
|
23901834bc | ||
f8a6f4d245 | |||
5dabecc9ed | |||
b3dc01bbb5 | |||
2ded8676f4 | |||
1db83a6004 | |||
1269a1a56f | |||
3e0fb208e2 | |||
0594bf9456 | |||
36c9acee51 | |||
|
b799a052a8 | ||
|
7a402d81b9 | ||
c540828463 | |||
a6b678c6ae | |||
6d35009593 | |||
dc735f1a2c | |||
c49acf8ab6 | |||
52fb808d45 | |||
d307ff6927 | |||
b7e2bbb46f | |||
3f38a9191f | |||
07476221c3 | |||
b1339e2ce9 | |||
ff73133e05 | |||
70b023acac | |||
|
42d02306eb | ||
|
632a2f9815 | ||
|
e536fd1cd1 | ||
|
6dcc87a2c2 | ||
|
96c45ee175 | ||
|
fac573c69d | ||
231be64e45 | |||
658b94a2dc | |||
96655bf62b | |||
|
5f9512991e | ||
ed7d51dee4 | |||
|
82dc0a3e35 | ||
|
35b42e2bb8 | ||
09a37675a9 | |||
9029d756e7 | |||
93662f5903 | |||
7dbfbb76b7 | |||
|
53811299c8 | ||
|
6731dcc874 | ||
c57bdec9fc | |||
6d5e57724c | |||
be73e7018a | |||
37360264ea | |||
c3e191982d | |||
2b0fab797e |
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@ -1,8 +1,6 @@
|
||||
name: Build Nginx-based docker image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
@ -24,13 +22,32 @@ jobs:
|
||||
registry: ${{ secrets.PRIVATE_REGISTRY_HOST }}
|
||||
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
|
||||
- name: Build and push intermediate stages (deps)
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: |
|
||||
${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
|
||||
cache-from: type=registry,ref=user/app:latest
|
||||
target: deps
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:deps
|
||||
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:deps
|
||||
cache-to: type=inline
|
||||
|
||||
- name: Build and push intermediate stages (builder)
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
target: builder
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:builder
|
||||
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:builder
|
||||
cache-to: type=inline
|
||||
|
||||
- name: Build and push (final)
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
|
||||
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
|
||||
cache-to: type=inline
|
2
.github/workflows/copyright_notice.yml
vendored
2
.github/workflows/copyright_notice.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
ref: ${{ github.head_ref }}
|
||||
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
|
||||
with:
|
||||
CopyrightString: '/* Copyright (C) 2024 Manuel Bustillo*/\n\n'
|
||||
CopyrightString: '/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/\n\n'
|
||||
FileType: '.tsx, .jsx, .ts'
|
||||
Path: 'app/, config/, db/'
|
||||
IgnorePath: 'testfolder1/a/, testfolder3'
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client'
|
||||
|
||||
|
@ -1,9 +1,12 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
import { AbstractApi, } from '@/app/api/abstract-api';
|
||||
import { AbstractApi, } from '@/app/api/abstract-api';
|
||||
import { Group, GroupSerializer } from '@/app/lib/group';
|
||||
import { Guest, GuestSerializer } from '@/app/lib/guest';
|
||||
import { getCsrfToken, getSlug } from '@/app/lib/utils';
|
||||
import AffinitiesFormDialog from '@/app/ui/components/affinities-form-dialog';
|
||||
import { classNames } from '@/app/ui/components/button';
|
||||
import GroupFormDialog from '@/app/ui/components/group-form-dialog';
|
||||
import GuestFormDialog from '@/app/ui/components/guest-form-dialog';
|
||||
@ -12,7 +15,6 @@ import SkeletonTable from '@/app/ui/guests/skeleton-row';
|
||||
import GuestsTable from '@/app/ui/guests/table';
|
||||
import { TabPanel, TabView } from 'primereact/tabview';
|
||||
import { Suspense, useState } from 'react';
|
||||
import { Group, GroupSerializer } from '@/app/lib/group';
|
||||
|
||||
|
||||
export default function Page() {
|
||||
@ -30,10 +32,22 @@ export default function Page() {
|
||||
});
|
||||
}
|
||||
|
||||
function resetAffinities() {
|
||||
fetch(`/api/${getSlug()}/groups/affinities/reset`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'X-CSRF-TOKEN': getCsrfToken(),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const [groupsLoaded, setGroupsLoaded] = useState(false);
|
||||
const [groups, setGroups] = useState<Array<Group>>([]);
|
||||
const [groupBeingEdited, setGroupBeingEdited] = useState<Group | undefined>(undefined);
|
||||
|
||||
const [groupAffinitiesBeingEditted, setGroupAffinitiesBeingEditted] = useState<Group | undefined>(undefined);
|
||||
|
||||
const [guestsLoaded, setGuestsLoaded] = useState(false);
|
||||
const [guests, setGuests] = useState<Array<Guest>>([]);
|
||||
const [guestBeingEdited, setGuestBeingEdited] = useState<Guest | undefined>(undefined);
|
||||
@ -67,7 +81,11 @@ export default function Page() {
|
||||
<TabPanel header="Groups" leftIcon="pi pi-sitemap mx-2">
|
||||
<div className="flex flex-col w-full items-center justify-between">
|
||||
|
||||
<button onClick={() => setGroupBeingEdited({})} className={classNames('primary')}>Add new</button>
|
||||
<div>
|
||||
<button onClick={() => setGroupBeingEdited({})} className={classNames('primary')}>Add new</button>
|
||||
<button onClick={resetAffinities} className={classNames('yellow')}>Reset affinities</button>
|
||||
</div>
|
||||
|
||||
<GroupFormDialog
|
||||
key={groupBeingEdited?.id}
|
||||
groups={groups}
|
||||
@ -77,11 +95,19 @@ export default function Page() {
|
||||
onHide={() => { setGroupBeingEdited(undefined) }}
|
||||
/>
|
||||
|
||||
<AffinitiesFormDialog
|
||||
groups={groups}
|
||||
group={groupAffinitiesBeingEditted}
|
||||
visible={groupAffinitiesBeingEditted !== undefined}
|
||||
onHide={() => { setGroupAffinitiesBeingEditted(undefined) }}
|
||||
/>
|
||||
|
||||
<Suspense fallback={<SkeletonTable />}>
|
||||
<GroupsTable
|
||||
<GroupsTable
|
||||
groups={groups}
|
||||
onUpdate={refreshGroups}
|
||||
onEdit={(group) => setGroupBeingEdited(group)}
|
||||
onEditAffinities={(group) => setGroupAffinitiesBeingEditted(group)}
|
||||
/>
|
||||
</Suspense>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import SideNav from '@/app/ui/dashboard/sidenav';
|
||||
|
||||
|
@ -1,9 +1,26 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client'
|
||||
|
||||
import { GlobalSummary as Summary } from '@/app/lib/definitions';
|
||||
import { getSlug } from '@/app/lib/utils';
|
||||
import GlobalSummary from '@/app/ui/dashboard/global-summary';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
export default function Page() {
|
||||
return(
|
||||
<GlobalSummary />
|
||||
const [globalSummary, setGlobalSummary] = useState<Summary | undefined>(undefined);
|
||||
|
||||
function refreshSummary() {
|
||||
fetch(`/api/${getSlug()}/summary`)
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
setGlobalSummary(data);
|
||||
})
|
||||
}
|
||||
|
||||
useEffect(refreshSummary, []);
|
||||
|
||||
return (
|
||||
globalSummary && <GlobalSummary summary={globalSummary} />
|
||||
);
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { Entity } from '@/app/lib/definitions';
|
||||
import { getCsrfToken, getSlug } from '@/app/lib/utils';
|
||||
|
||||
export interface Api<T extends Entity> {
|
||||
getAll(serializable: Serializable<T> ,callback: (objets: T[]) => void): void;
|
||||
get(serializable: Serializable<T>, id: string, callback: (object: T) => void): void;
|
||||
create(serializable: Serializable<T>, object: T, callback: () => void): void;
|
||||
update(serializable: Serializable<T>, object: T, callback: () => void): void;
|
||||
destroy(serializable: Serializable<T>, object: T, callback: () => void): void;
|
||||
@ -29,6 +30,16 @@ export class AbstractApi<T extends Entity> implements Api<T> {
|
||||
});
|
||||
}
|
||||
|
||||
get(serializable: Serializable<T>, id: string, callback: (object: T) => void): void {
|
||||
fetch(`/api/${getSlug()}/${serializable.apiPath()}/${id}`)
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
callback(serializable.fromJson(data));
|
||||
}, (error) => {
|
||||
return [];
|
||||
});
|
||||
}
|
||||
|
||||
update(serializable: Serializable<T>, object: T, callback: () => void): void {
|
||||
fetch(`/api/${getSlug()}/${serializable.apiPath()}/${object.id}`, {
|
||||
method: 'PUT',
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { asArray, getCsrfToken, getSlug } from '@/app/lib/utils';
|
||||
import { Captcha, StructuredErrors, User } from '@/app/lib/definitions';
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { data } from "autoprefixer";
|
||||
import { getCsrfToken } from "../lib/utils";
|
||||
|
7
app/api/health/route.ts
Normal file
7
app/api/health/route.ts
Normal file
@ -0,0 +1,7 @@
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
export function GET() {
|
||||
return NextResponse.json({});
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { TableArrangement } from '@/app/lib/definitions';
|
||||
import { getSlug } from '../lib/utils';
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import '@/app/ui/global.css'
|
||||
|
||||
|
5
app/lib/affinities.tsx
Normal file
5
app/lib/affinities.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
export class Affinities {
|
||||
[key:string]: number;
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { AttendanceSummary } from "./group";
|
||||
import { Guest } from "./guest";
|
||||
|
||||
export interface Entity {
|
||||
@ -14,17 +15,6 @@ export type TableArrangement = {
|
||||
discomfort?: number
|
||||
}
|
||||
|
||||
export type guestsTable = {
|
||||
id: string;
|
||||
customer_id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
image_url: string;
|
||||
date: string;
|
||||
amount: number;
|
||||
status: 'pending' | 'paid';
|
||||
};
|
||||
|
||||
export type User = {
|
||||
id: string;
|
||||
email: string;
|
||||
@ -37,4 +27,23 @@ export type Captcha = {
|
||||
|
||||
export type StructuredErrors = {
|
||||
[key: string]: string[] | string;
|
||||
};
|
||||
};
|
||||
|
||||
export type GlobalSummary = {
|
||||
expenses: ExpenseSummary;
|
||||
guests: AttendanceSummary
|
||||
}
|
||||
|
||||
export type ExpenseSummary = {
|
||||
projected: ExpensePossibleSummary;
|
||||
confirmed: ExpensePossibleSummary;
|
||||
status: StatusSummary;
|
||||
}
|
||||
|
||||
export type ExpensePossibleSummary = {
|
||||
total: number;
|
||||
guests: number;
|
||||
}
|
||||
export type StatusSummary = {
|
||||
paid: number;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { Serializable } from "../api/abstract-api";
|
||||
import { Entity } from "./definitions";
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { Entity } from "./definitions";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { Serializable } from "../api/abstract-api";
|
||||
import { Entity } from "./definitions";
|
||||
@ -13,20 +13,22 @@ export class Guest implements Entity {
|
||||
groupId?: string;
|
||||
color?: string;
|
||||
status?: GuestStatus;
|
||||
children?: Guest[];
|
||||
|
||||
constructor(id?: string, name?: string, group_name?: string, groupId?: string, color?: string, status?: GuestStatus) {
|
||||
constructor(id?: string, name?: string, group_name?: string, groupId?: string, color?: string, status?: GuestStatus, children?: Guest[]) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.group_name = group_name;
|
||||
this.groupId = groupId;
|
||||
this.color = color;
|
||||
this.status = status;
|
||||
this.children = children;
|
||||
}
|
||||
}
|
||||
|
||||
export class GuestSerializer implements Serializable<Guest> {
|
||||
fromJson(data: any): Guest {
|
||||
return new Guest(data.id, data.name, data.group_name, data.group_id, data.color, data.status);
|
||||
return new Guest(data.id, data.name, data.group?.name, data.group?.id, data.color, data.status, data.children);
|
||||
}
|
||||
|
||||
toJson(guest: Guest): string {
|
||||
|
71
app/lib/tableSimulation.tsx
Normal file
71
app/lib/tableSimulation.tsx
Normal file
@ -0,0 +1,71 @@
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { Serializable } from "../api/abstract-api";
|
||||
import { Entity } from "./definitions";
|
||||
import { Guest } from "./guest";
|
||||
|
||||
export type Discomfort = {
|
||||
discomfort: number;
|
||||
breakdown: {
|
||||
tableSizePenalty: number;
|
||||
cohesionPenalty: number;
|
||||
}
|
||||
}
|
||||
|
||||
export type Table = {
|
||||
number: number;
|
||||
guests: Guest[];
|
||||
discomfort: Discomfort;
|
||||
}
|
||||
|
||||
export class TableSimulation implements Entity {
|
||||
id: string;
|
||||
tables: Table[];
|
||||
|
||||
constructor(id: string, tables: Table[]) {
|
||||
this.id = id;
|
||||
this.tables = tables;
|
||||
}
|
||||
}
|
||||
|
||||
export class TableSimulationSerializer implements Serializable<TableSimulation> {
|
||||
fromJson(data: any): TableSimulation {
|
||||
return new TableSimulation(data.id, data.tables.map((table: any) => {
|
||||
return {
|
||||
number: table.number,
|
||||
guests: table.guests.map((guest: any) => new Guest(guest.id, guest.name, guest.group?.name, guest.group?.id, guest.color)),
|
||||
discomfort: {
|
||||
discomfort: table.discomfort.discomfort,
|
||||
breakdown: {
|
||||
tableSizePenalty: table.discomfort.breakdown.table_size_penalty,
|
||||
cohesionPenalty: table.discomfort.breakdown.cohesion_penalty,
|
||||
}
|
||||
},
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
toJson(simulation: TableSimulation): string {
|
||||
return JSON.stringify({ simulation: { tables: simulation.tables.map((table) => {
|
||||
return {
|
||||
number: table.number,
|
||||
guests: table.guests.map((guest) => {
|
||||
return {
|
||||
id: guest.id,
|
||||
name: guest.name,
|
||||
group_id: guest.groupId,
|
||||
color: guest.color,
|
||||
status: guest.status,
|
||||
children: guest.children,
|
||||
}
|
||||
}),
|
||||
discomfort: table.discomfort,
|
||||
}
|
||||
}) } });
|
||||
}
|
||||
|
||||
apiPath(): string {
|
||||
return 'tables_arrangements';
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
export const getCsrfToken = () => {
|
||||
return document.cookie
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import * as HeroIcon from '@heroicons/react/24/outline'
|
||||
import { ComponentProps } from 'react'
|
||||
|
@ -1,45 +1,38 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import { AbstractApi } from '@/app/api/abstract-api';
|
||||
import { TableArrangement } from '@/app/lib/definitions';
|
||||
import { lusitana } from '@/app/ui/fonts';
|
||||
import { Table } from '@/app/ui/components/table';
|
||||
import { TableSimulation, TableSimulationSerializer } from '@/app/lib/tableSimulation';
|
||||
import { getSlug } from '@/app/lib/utils';
|
||||
import { Table } from '@/app/ui/components/table';
|
||||
import { lusitana } from '@/app/ui/fonts';
|
||||
import { useState, useEffect } from 'react';
|
||||
|
||||
export default function Arrangement({ id }: { id: string }) {
|
||||
|
||||
const [tables, setTables] = useState<Array<TableArrangement>>([]);
|
||||
const [simulation, setSimulation] = useState<TableSimulation | undefined>(undefined);
|
||||
|
||||
function loadTables() {
|
||||
fetch(`/api/${getSlug()}/tables_arrangements/${id}`)
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
setTables(data.map((record: any) => {
|
||||
return ({
|
||||
id: record.number,
|
||||
guests: record.guests
|
||||
});
|
||||
}));
|
||||
}, (error) => {
|
||||
return [];
|
||||
});
|
||||
}
|
||||
function loadSimulation() {
|
||||
new AbstractApi<TableSimulation>().get(new TableSimulationSerializer(), id, (object: TableSimulation) => {
|
||||
setSimulation(object);
|
||||
});
|
||||
}
|
||||
|
||||
tables.length === 0 && loadTables();
|
||||
useEffect(loadSimulation, []);
|
||||
|
||||
return (
|
||||
<div className="w-full">
|
||||
<div className="w-full items-center justify-between">
|
||||
<h1 className={`${lusitana.className} text-2xl my-5`}>Table distributions</h1>
|
||||
<div className="flex flex-row flex-wrap justify-around">
|
||||
{tables.map((table) => (
|
||||
<Table key={table.number} guests={table.guests || []} style="rounded" />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
return (
|
||||
<div className="w-full">
|
||||
<div className="w-full items-center justify-between">
|
||||
<h1 className={`${lusitana.className} text-2xl my-5`}>Table distributions</h1>
|
||||
<div className="flex flex-row flex-wrap justify-around">
|
||||
{simulation && simulation.tables.map((table) => (
|
||||
<Table key={table.number} table={table} style="rounded" />
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import clsx from 'clsx';
|
||||
|
||||
|
82
app/ui/components/affinities-form-dialog.tsx
Normal file
82
app/ui/components/affinities-form-dialog.tsx
Normal file
@ -0,0 +1,82 @@
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
import { Affinities } from '@/app/lib/affinities';
|
||||
import { Group } from '@/app/lib/group';
|
||||
import { getCsrfToken, getSlug } from '@/app/lib/utils';
|
||||
import { classNames } from '@/app/ui/components/button';
|
||||
import { Dialog } from 'primereact/dialog';
|
||||
import { useEffect, useState } from 'react';
|
||||
import AffinitySlider from './form/affinitySlider';
|
||||
|
||||
export default function AffinitiesFormDialog({ groups, group, visible, onHide }: {
|
||||
groups: Group[],
|
||||
group?: Group,
|
||||
visible: boolean,
|
||||
onHide: () => void,
|
||||
}) {
|
||||
const [affinities, setAffinities] = useState<Affinities>({});
|
||||
const [isLoadingAffinities, setIsLoadingAffinities] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
setIsLoadingAffinities(true);
|
||||
if (group?.id === undefined) {
|
||||
setAffinities({});
|
||||
setIsLoadingAffinities(false)
|
||||
} else {
|
||||
fetch(`/api/${getSlug()}/groups/${group?.id}/affinities`)
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
setAffinities(data);
|
||||
setIsLoadingAffinities(false)
|
||||
});
|
||||
}
|
||||
}, [group]);
|
||||
|
||||
function submitAffinities() {
|
||||
const formattedAffinities = Object.entries(affinities).map(([groupId, affinity]) => ({ group_id: groupId, affinity: affinity }));
|
||||
fetch(`/api/${getSlug()}/groups/${group?.id}/affinities/bulk_update`, {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRF-TOKEN': getCsrfToken(),
|
||||
},
|
||||
body: JSON.stringify({ affinities: formattedAffinities })
|
||||
}).then(() => {
|
||||
onHide();
|
||||
});
|
||||
}
|
||||
|
||||
function resetAffinities() {
|
||||
fetch(`/api/${getSlug()}/groups/${group?.id}/affinities/default`, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
}
|
||||
}).then((response) => response.json())
|
||||
.then(setAffinities);
|
||||
}
|
||||
|
||||
return (
|
||||
<Dialog header="Update affinities" visible={visible} style={{ width: '60vw' }} onHide={onHide}>
|
||||
{!isLoadingAffinities && <div className="card justify-evenly py-5 bg-gray-200 flex flex-col">
|
||||
<span className="text-center p-4">Describe the affinity with the rest of the groups</span>
|
||||
|
||||
{
|
||||
groups.filter((currentGroup) => currentGroup.id !== group?.id).map((group) =>
|
||||
<div key={group.id} className="flex flex-row hover:bg-gray-300 px-3 py-2 items-center">
|
||||
<span className="w-1/3 text-right px-4">{group.name}</span>
|
||||
<AffinitySlider value={group.id && affinities[group.id] || 1} onChange={(value) => setAffinities({ ...affinities, [group.id || "default"]: value })} />
|
||||
</div>)
|
||||
}
|
||||
|
||||
<div className="flex justify-center">
|
||||
<button className={classNames('gray')} onClick={resetAffinities} >Reset</button>
|
||||
<button className={classNames('primary')} onClick={submitAffinities} >Update</button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</Dialog>
|
||||
);
|
||||
}
|
@ -1,14 +1,15 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import clsx from "clsx";
|
||||
|
||||
type ButtonColor = 'primary' | 'blue' | 'green' | 'red' | 'yellow';
|
||||
type ButtonColor = 'primary' | 'blue' | 'green' | 'red' | 'yellow' | 'gray';
|
||||
|
||||
export function classNames(type: ButtonColor) {
|
||||
return (clsx("text-white py-1 px-2 mx-1 rounded disabled:opacity-50 disabled:cursor-not-allowed", {
|
||||
'bg-blue-400 hover:bg-blue-600': type === 'primary' || type === 'blue',
|
||||
'bg-green-500 hover:bg-green-600': type === 'green',
|
||||
'bg-red-500 hover:bg-red-600': type === 'red',
|
||||
'bg-yellow-500 hover:bg-yellow-700': type === 'yellow'
|
||||
'bg-yellow-500 hover:bg-yellow-700': type === 'yellow',
|
||||
'bg-gray-500 hover:bg-gray-700': type === 'gray'
|
||||
}))
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import clsx from "clsx"
|
||||
import { Icon } from "../../types";
|
||||
@ -21,7 +21,7 @@ const colorClasses = (style: Style) => {
|
||||
}
|
||||
}
|
||||
|
||||
export async function MainCard({ amount, title, subtitle, style, iconName }:
|
||||
export function MainCard({ amount, title, subtitle, style, iconName }:
|
||||
{
|
||||
amount: string,
|
||||
title: string,
|
||||
@ -42,7 +42,7 @@ export async function MainCard({ amount, title, subtitle, style, iconName }:
|
||||
);
|
||||
}
|
||||
|
||||
export async function SecondaryCard({ amount, title, iconName, style }: { amount: string, title: string, iconName: keyof typeof HeroIcon, style: Style }) {
|
||||
export function SecondaryCard({ amount, title, iconName, style }: { amount: string, title: string, iconName: keyof typeof HeroIcon, style: Style }) {
|
||||
return (
|
||||
<div className={`h-12 w-80 m-1 p-2 text-white flex flex-row items-center ${colorClasses(style)}`}>
|
||||
<Icon className="m-3 h-7 w-7" name={iconName} />
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
|
40
app/ui/components/form/affinitySlider.tsx
Normal file
40
app/ui/components/form/affinitySlider.tsx
Normal file
@ -0,0 +1,40 @@
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { Slider } from 'primereact/slider';
|
||||
|
||||
export default function AffinitySlider({ value, onChange }: { value: number, onChange: (value: number) => void }) {
|
||||
|
||||
const toNumber = (value : number | [number, number]) => {
|
||||
if(value instanceof Array) {
|
||||
return value[0];
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
const label = (value: number) => {
|
||||
if (value < 0.2) {
|
||||
return 'Nemesis';
|
||||
} else if (value < 0.5) {
|
||||
return 'Enemies';
|
||||
} else if (value < 0.9) {
|
||||
return 'Bad vibes';
|
||||
} else if (value < 1.1) {
|
||||
return 'Neutral';
|
||||
} else if (value < 1.5) {
|
||||
return 'Good vibes';
|
||||
} else if (value < 1.8) {
|
||||
return 'Good friends';
|
||||
} else {
|
||||
return 'Besties';
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Slider value={value} min={0} max={2} step={.1} onChange={(e) => onChange(toNumber(e.value))} className='w-80 bg-gray-400' />
|
||||
<span className="px-4 w-1/5">
|
||||
{label(value)}
|
||||
</span>
|
||||
</>
|
||||
)
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import React, { useState } from 'react';
|
||||
|
||||
|
@ -1,19 +1,18 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
import { AbstractApi } from '@/app/api/abstract-api';
|
||||
import { Group, GroupSerializer } from '@/app/lib/group';
|
||||
import { classNames } from '@/app/ui/components/button';
|
||||
import { Dialog } from 'primereact/dialog';
|
||||
import { ColorPicker } from 'primereact/colorpicker';
|
||||
import { Dialog } from 'primereact/dialog';
|
||||
import { Dropdown } from 'primereact/dropdown';
|
||||
import { FloatLabel } from 'primereact/floatlabel';
|
||||
import { InputText } from 'primereact/inputtext';
|
||||
import { useState } from 'react';
|
||||
import { Group, GroupSerializer } from '@/app/lib/group';
|
||||
import { ApiError } from 'next/dist/server/api-utils';
|
||||
import { AbstractApi } from '@/app/api/abstract-api';
|
||||
|
||||
export default function GroupFormDialog({groups, onCreate, onHide, group, visible }: {
|
||||
export default function GroupFormDialog({ groups, onCreate, onHide, group, visible }: {
|
||||
groups: Group[],
|
||||
onCreate?: () => void,
|
||||
onHide: () => void,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
export default function TableOfContents<Type>({ headers, caption, elements, rowRender }: { headers: string[], caption: string, elements: Type[], rowRender: (element: Type) => JSX.Element }) {
|
||||
return (
|
||||
|
@ -1,69 +1,107 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { Guest } from "@/app/lib/guest";
|
||||
import { Table as TableType } from "@/app/lib/tableSimulation";
|
||||
import { RectangleGroupIcon, UserGroupIcon } from "@heroicons/react/24/outline";
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { Tooltip } from "primereact/tooltip";
|
||||
import clsx from "clsx";
|
||||
|
||||
|
||||
function Dish({ guest, rotation }: { guest: Guest, rotation?: number }) {
|
||||
rotation = rotation || 0
|
||||
return (
|
||||
<div className={`m-3 w-24 h-24 rounded-full content-center text-center cursor-default`} style={{
|
||||
rotate: `${360 - rotation}deg`,
|
||||
backgroundColor: guest.color,
|
||||
}}>
|
||||
{guest.name}
|
||||
</div>
|
||||
)
|
||||
rotation = rotation || 0
|
||||
return (
|
||||
<div className={`m-3 w-24 h-24 rounded-full content-center text-center cursor-default`} style={{
|
||||
rotate: `${360 - rotation}deg`,
|
||||
backgroundColor: guest.color,
|
||||
}}>
|
||||
{guest.name}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
function GuestRow({ guests }: { guests: Guest[] }) {
|
||||
return (
|
||||
<div className="justify-around flex flex-row">
|
||||
{guests.map((guest) => <Dish key={guest.id} guest={guest} />)}
|
||||
</div>
|
||||
)
|
||||
return (
|
||||
<div className="justify-around flex flex-row">
|
||||
{guests.map((guest) => <Dish key={guest.id} guest={guest} />)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function RectangularTable({ guests }: { guests: Guest[] }) {
|
||||
const halfwayThrough = Math.floor(guests.length / 2)
|
||||
const arrayFirstHalf = guests.slice(0, halfwayThrough);
|
||||
const arraySecondHalf = guests.slice(halfwayThrough, guests.length);
|
||||
function RectangularTable({ table }: { table: TableType }) {
|
||||
const guests = table.guests;
|
||||
const halfwayThrough = Math.floor(guests.length / 2)
|
||||
const arrayFirstHalf = guests.slice(0, halfwayThrough);
|
||||
const arraySecondHalf = guests.slice(halfwayThrough, guests.length);
|
||||
|
||||
return (
|
||||
<div className="m-12 h-64 bg-cyan-800 flex flex-col justify-between">
|
||||
<GuestRow guests={arrayFirstHalf} />
|
||||
<GuestRow guests={arraySecondHalf} />
|
||||
</div>
|
||||
)
|
||||
return (
|
||||
<div className="m-12 h-64 bg-cyan-800 flex flex-col justify-between">
|
||||
<GuestRow guests={arrayFirstHalf} />
|
||||
<GuestRow guests={arraySecondHalf} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function RoundedTable({ guests }: { guests: Guest[] }) {
|
||||
const size = 500
|
||||
const rotation = 360 / guests.length
|
||||
return (
|
||||
<div className={`m-12 rounded-full bg-cyan-800 relative z-0`} style={{ width: `${size}px`, height: `${size}px` }}>
|
||||
{
|
||||
guests.map((guest, index) => {
|
||||
return (
|
||||
<div key={guest.id} className={`border-dashed grid justify-items-center absolute inset-0`} style={{
|
||||
rotate: `${index * rotation}deg`,
|
||||
height: `${size}px`,
|
||||
width: `${size}px`,
|
||||
}}>
|
||||
<Dish guest={guest} rotation={index * rotation} />
|
||||
</div>
|
||||
)
|
||||
})
|
||||
}
|
||||
</div>
|
||||
)
|
||||
function RoundedTable({ table }: { table: TableType }) {
|
||||
const guests = table.guests;
|
||||
const size = 500
|
||||
const rotation = 360 / guests.length
|
||||
|
||||
const className = (penalty: number) => {
|
||||
return clsx("px-2 tooltip-cohesion", {
|
||||
"hidden": penalty === 0,
|
||||
"text-orange-300": penalty <= 5,
|
||||
"text-orange-500": penalty > 5 && penalty <= 10,
|
||||
"text-orange-700": penalty > 10,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div className={`m-12 rounded-full bg-cyan-800 relative z-0 grid flex items-center justify-items-center`} style={{ width: `${size}px`, height: `${size}px` }}>
|
||||
|
||||
{
|
||||
guests.map((guest, index) => {
|
||||
return (
|
||||
<div key={guest.id} className={`border-dashed grid justify-items-center absolute inset-0`} style={{
|
||||
rotate: `${index * rotation}deg`,
|
||||
height: `${size}px`,
|
||||
width: `${size}px`,
|
||||
}}>
|
||||
<Dish guest={guest} rotation={index * rotation} />
|
||||
</div>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
<div className="bg-zinc-200 w-48 h-12 p-3 flex flex-row rounded z-10">
|
||||
<div className="px-2 text-slate-800">{`Table #${table.number}`}</div>
|
||||
|
||||
|
||||
<Tooltip target=".tooltip-cohesion" />
|
||||
<Tooltip target=".tooltip-size" />
|
||||
|
||||
<RectangleGroupIcon
|
||||
className={className(table.discomfort.breakdown.cohesionPenalty)}
|
||||
data-pr-tooltip={`Cohesion penalty: ${Math.round(table.discomfort.breakdown.cohesionPenalty)}`}
|
||||
data-pr-position="top"
|
||||
/>
|
||||
|
||||
<UserGroupIcon
|
||||
className={className(table.discomfort.breakdown.tableSizePenalty)}
|
||||
data-pr-tooltip={`Table size penalty: ${Math.round(table.discomfort.breakdown.tableSizePenalty)}`}
|
||||
data-pr-position="top"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export function Table({ guests, style }: { guests: Guest[], style: "rectangular" | "rounded" }) {
|
||||
return (
|
||||
<>
|
||||
{style === "rectangular" && <RectangularTable guests={guests} />}
|
||||
{style === "rounded" && <RoundedTable guests={guests} />}
|
||||
</>
|
||||
)
|
||||
export function Table({ table, style }: { table: TableType, style: "rectangular" | "rounded" }) {
|
||||
return (
|
||||
<>
|
||||
{style === "rectangular" && <RectangularTable table={table} />}
|
||||
{style === "rounded" && <RoundedTable table={table} />}
|
||||
</>
|
||||
)
|
||||
}
|
@ -1,45 +1,41 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { GlobalSummary as Summary} from '@/app/lib/definitions';
|
||||
import { MainCard, SecondaryCard } from '../components/dashboard-cards';
|
||||
|
||||
export default async function GlobalSummary() {
|
||||
return (
|
||||
<div className="my-4">
|
||||
|
||||
<div className="flex flex-row w-full my-2">
|
||||
<MainCard style="green" amount="65000€" title="Projected" subtitle="150 guests" iconName="ArrowTrendingUpIcon" />
|
||||
|
||||
<div className="flex flex-col">
|
||||
<MainCard amount="10000€" title="Paid already" iconName="Square3Stack3DIcon" style='blue' />
|
||||
<MainCard amount="198€" title="/ guest" iconName="UserIcon" style='blue' />
|
||||
</div>
|
||||
<div className="flex flex-col">
|
||||
<MainCard amount="78000€" title="Max." subtitle='200 guests' iconName="ChevronDoubleUpIcon" style="orange" />
|
||||
<MainCard amount="45000€" title="Min." subtitle="125 guests" iconName="ChevronDoubleDownIcon" style="green" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div className="flex flex-row w-full my-2">
|
||||
<MainCard style="blue" amount="150" title="Invites sent" iconName="UsersIcon" />
|
||||
|
||||
<div className="flex flex-col">
|
||||
<SecondaryCard amount="31%" title="confirmed (27 guests)" iconName="CheckIcon" style='green' />
|
||||
<SecondaryCard amount="5%" title="declined (8 guests)" iconName="XMarkIcon" style='red' />
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col">
|
||||
<SecondaryCard amount="17%" title="tentative (14 guests)" iconName="QuestionMarkCircleIcon" style='orange' />
|
||||
<SecondaryCard amount="65%" title="awaiting (72 guests)" iconName="EllipsisHorizontalIcon" style='gray' />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-row w-full my-2">
|
||||
<MainCard style="blue" amount="5" title="Table simulations" iconName="ServerStackIcon" />
|
||||
<MainCard style="blue" amount="9" title="Bus simulations" iconName="TruckIcon" />
|
||||
<MainCard style="blue" amount="98" title="QR codes" iconName="QrCodeIcon" />
|
||||
</div>
|
||||
export default function GlobalSummary({ summary }: { summary: Summary }) {
|
||||
return (
|
||||
<div className="my-4">
|
||||
<div className="flex flex-row w-full my-2">
|
||||
<div className="flex flex-col">
|
||||
<MainCard amount={`${summary.expenses.projected.total}€`} title="Projected" subtitle={`${summary.expenses.projected.guests} guests`} style="blue" iconName="ArrowTrendingUpIcon" />
|
||||
<MainCard amount={`${Math.round(summary.expenses.projected.total / summary.expenses.projected.guests)}€`} title="/ guest" iconName="UserIcon" style='blue' />
|
||||
</div>
|
||||
);
|
||||
<div className="flex flex-col">
|
||||
<MainCard amount={`${summary.expenses.confirmed.total}€`} title="Min." subtitle={`${summary.expenses.confirmed.guests} guests`} iconName="ChevronDoubleDownIcon" style="green" />
|
||||
<MainCard amount={`${Math.round(summary.expenses.confirmed.total / summary.expenses.confirmed.guests)}€`} title="/ guest" iconName="UserIcon" style='green' />
|
||||
|
||||
</div>
|
||||
<div className="flex flex-col">
|
||||
<MainCard amount={`${summary.expenses.status.paid}€`} title="Paid already" subtitle={`${Math.round(summary.expenses.status.paid / summary.expenses.projected.total * 100)}% of projected`} iconName="CheckIcon" style='blue' />
|
||||
<MainCard amount={`${summary.expenses.projected.total - summary.expenses.status.paid}€`} title="To pay" subtitle={`${100 - Math.round(summary.expenses.status.paid / summary.expenses.projected.total * 100)}% of projected`} iconName="BanknotesIcon" style="orange" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div className="flex flex-row w-full my-2">
|
||||
<MainCard style="blue" amount={summary.guests.total.toString()} title="Invites sent" iconName="UsersIcon" />
|
||||
|
||||
<div className="flex flex-col">
|
||||
<SecondaryCard amount={`${Math.round(summary.guests.confirmed / summary.guests.total * 100)}%`} title={`confirmed (${summary.guests.confirmed} guests)`} iconName="CheckIcon" style='green' />
|
||||
<SecondaryCard amount={`${Math.round(summary.guests.declined / summary.guests.total * 100)}%`} title={`declined (${summary.guests.declined} guests)`} iconName="XMarkIcon" style='red' />
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col">
|
||||
<SecondaryCard amount={`${Math.round(summary.guests.tentative / summary.guests.total * 100)}%`} title={`tentative (${summary.guests.tentative} guests)`} iconName="QuestionMarkCircleIcon" style='orange' />
|
||||
<SecondaryCard amount={`${Math.round(summary.guests.invited / summary.guests.total * 100)}%`} title={`awaiting (${summary.guests.invited} guests)`} iconName="EllipsisHorizontalIcon" style='gray' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
export default function Loading() {
|
||||
return <div>Loading...</div>;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
@ -17,7 +17,7 @@ export default function SideNav() {
|
||||
<div className="flex h-full flex-col px-3 py-4 md:px-2">
|
||||
<Link
|
||||
className="mb-2 flex h-20 items-center justify-start rounded-md bg-blue-600 p-4 md:h-20"
|
||||
href="/dashboard/guests"
|
||||
href={`/${getSlug()}/dashboard`}
|
||||
>
|
||||
<div className={`${gloriaHallelujah.className} "w-32 text-white md:w-40 antialiased`}>
|
||||
<h1>Wedding Planner</h1>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import { Inter, Lusitana, Gloria_Hallelujah} from 'next/font/google';
|
||||
|
||||
|
@ -1,60 +1,105 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
import { Group, GroupSerializer } from '@/app/lib/group';
|
||||
import TableOfContents from '../components/table-of-contents';
|
||||
import { PencilIcon, TrashIcon } from '@heroicons/react/24/outline';
|
||||
import { AbstractApi } from '@/app/api/abstract-api';
|
||||
import { Group, GroupSerializer } from '@/app/lib/group';
|
||||
import { AdjustmentsHorizontalIcon, PencilIcon, TrashIcon } from '@heroicons/react/24/outline';
|
||||
import { Column } from 'primereact/column';
|
||||
import { TreeNode } from 'primereact/treenode';
|
||||
import { TreeTable } from 'primereact/treetable';
|
||||
|
||||
export default function GroupsTable({ groups, onUpdate, onEdit }: {
|
||||
export default function GroupsTable({ groups, onUpdate, onEdit, onEditAffinities }: {
|
||||
groups: Group[],
|
||||
onUpdate: () => void,
|
||||
onEdit: (group: Group) => void,
|
||||
onEditAffinities: (group: Group) => void,
|
||||
}) {
|
||||
|
||||
const api = new AbstractApi<Group>();
|
||||
const serializer = new GroupSerializer();
|
||||
|
||||
const actions = (group: Group) => (
|
||||
<div className="flex flex-row items-center">
|
||||
<TrashIcon className='size-6 cursor-pointer' onClick={() => { api.destroy(serializer, group, onUpdate) }} />
|
||||
<PencilIcon className='size-6 cursor-pointer' onClick={() => onEdit(group)} />
|
||||
<AdjustmentsHorizontalIcon className='size-6 cursor-pointer' onClick={() => onEditAffinities(group)} />
|
||||
</div>
|
||||
);
|
||||
|
||||
const index = groups.reduce((acc, group) => {
|
||||
if (group.id) {
|
||||
acc.set(group.id, group)
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, new Map());
|
||||
|
||||
groups.forEach(group => group.children = []);
|
||||
groups.forEach(group => {
|
||||
if (group.parentId) {
|
||||
const parent = index.get(group.parentId);
|
||||
if (parent) {
|
||||
if (!parent.children) {
|
||||
parent.children = [];
|
||||
}
|
||||
parent.children.push(group);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const renderTree = (group: Group): TreeNode => {
|
||||
const childrenAttendance = (group.children || []).reduce((acc, child) => {
|
||||
acc.confirmed += child.attendance?.confirmed || 0;
|
||||
acc.tentative += child.attendance?.tentative || 0;
|
||||
acc.invited += child.attendance?.invited || 0;
|
||||
acc.declined += child.attendance?.declined || 0;
|
||||
acc.considered += child.attendance?.considered || 0;
|
||||
acc.total += child.attendance?.total || 0;
|
||||
return acc;
|
||||
}, { confirmed: 0, tentative: 0, invited: 0, declined: 0, considered: 0, total: 0 });
|
||||
|
||||
return {
|
||||
id: group.id,
|
||||
key: group.id,
|
||||
label: group.name,
|
||||
data: {
|
||||
name: group.name,
|
||||
color: <div className="w-8 h-8 rounded-full" style={{ backgroundColor: group.color }} />,
|
||||
confirmed: childrenAttendance.confirmed + (group.attendance?.confirmed || 0),
|
||||
tentative: childrenAttendance.tentative + (group.attendance?.tentative || 0),
|
||||
pending: childrenAttendance.invited + (group.attendance?.invited || 0),
|
||||
declined: childrenAttendance.declined + (group.attendance?.declined || 0),
|
||||
considered: childrenAttendance.considered + (group.attendance?.considered || 0),
|
||||
total: childrenAttendance.total + (group.attendance?.total || 0),
|
||||
actions: actions(group),
|
||||
},
|
||||
children: group.children?.map(renderTree),
|
||||
}
|
||||
}
|
||||
|
||||
const nodes: TreeNode[] = groups
|
||||
.filter(group => !group.parentId)
|
||||
.map(renderTree)
|
||||
|
||||
const headers = ['Name', 'Color', 'Confirmed', 'Tentative', 'Pending', 'Declined', 'Considered', 'Total', 'Actions'];
|
||||
const rowClassName = () => {
|
||||
return { 'border-b odd:bg-white even:bg-gray-50 hover:bg-gray-100': true };
|
||||
}
|
||||
|
||||
return (
|
||||
<TableOfContents
|
||||
headers={['Name', 'Color', 'Confirmed', 'Tentative', 'Pending', 'Declined', 'Considered', 'Total', 'Actions']}
|
||||
caption='Groups'
|
||||
elements={groups}
|
||||
rowRender={(group) => (
|
||||
<tr key={group.id} className="bg-white border-b odd:bg-white odd:dark:bg-gray-900 even:bg-gray-50 even:dark:bg-gray-800">
|
||||
<td scope="row" className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
|
||||
{group.name}
|
||||
</td>
|
||||
<td className="px-6">
|
||||
<div className="w-8 h-8 rounded-full" style={{ backgroundColor: group.color }}></div>
|
||||
</td>
|
||||
<td className="px-6 text-lg">
|
||||
{group.attendance?.confirmed}
|
||||
</td>
|
||||
<td className="px-6 text-sm">
|
||||
{group.attendance?.tentative}
|
||||
</td>
|
||||
<td className="px-6 text-sm">
|
||||
{group.attendance?.invited}
|
||||
</td>
|
||||
<td className="px-6 text-sm">
|
||||
{group.attendance?.declined}
|
||||
</td>
|
||||
<td className="px-6 text-sm">
|
||||
{group.attendance?.considered}
|
||||
</td>
|
||||
<td className="px-6 text-sm">
|
||||
{group.attendance?.total}
|
||||
</td>
|
||||
<td>
|
||||
<div className="flex flex-row items-center">
|
||||
<TrashIcon className='size-6 cursor-pointer' onClick={() => { api.destroy(serializer, group, onUpdate) }} />
|
||||
<PencilIcon className='size-6 cursor-pointer' onClick={() => onEdit(group)} />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
)}
|
||||
/>
|
||||
<>
|
||||
<TreeTable value={nodes} rowClassName={rowClassName} className='py-4'>
|
||||
<Column expander field="name" header="Name" className='w-2/5' />
|
||||
<Column field="color" header="Color" bodyClassName="text-sm" />
|
||||
<Column field="confirmed" header="Confirmed" bodyClassName="text-sm" />
|
||||
<Column field="tentative" header="Tentative" bodyClassName="text-sm" />
|
||||
<Column field="pending" header="Pending" bodyClassName="text-sm" />
|
||||
<Column field="declined" header="Declined" bodyClassName="text-sm" />
|
||||
<Column field="considered" header="Considered" bodyClassName="text-sm" />
|
||||
<Column field="total" header="Total" bodyClassName="text-sm" />
|
||||
<Column field="actions" header="Actions" />
|
||||
</TreeTable>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
import Skeleton from '@/app/ui/skeleton';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
'use client';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Manuel Bustillo*/
|
||||
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
||||
|
||||
export default function Skeleton({ className }: { className: string }) {
|
||||
return <div className={`bg-slate-200 motion-safe:animate-pulse rounded ${className}`} />;
|
||||
|
17
package.json
17
package.json
@ -11,27 +11,28 @@
|
||||
"autoprefixer": "10.4.20",
|
||||
"bcrypt": "^5.1.1",
|
||||
"clsx": "^2.1.1",
|
||||
"next": "15.0.3",
|
||||
"next": "15.1.4",
|
||||
"next-auth": "5.0.0-beta.25",
|
||||
"postcss": "8.4.49",
|
||||
"postcss": "8.5.1",
|
||||
"primeicons": "^7.0.0",
|
||||
"primereact": "^10.8.2",
|
||||
"react": "19.0.0-rc-f38c22b244-20240704",
|
||||
"react-dom": "19.0.0-rc-f38c22b244-20240704",
|
||||
"tailwindcss": "3.4.16",
|
||||
"typescript": "5.7.2",
|
||||
"tailwindcss": "3.4.17",
|
||||
"typescript": "5.7.3",
|
||||
"use-debounce": "^10.0.1",
|
||||
"uuid": "11.0.5",
|
||||
"zod": "^3.23.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.46.0",
|
||||
"@types/bcrypt": "^5.0.2",
|
||||
"@types/node": "22.10.1",
|
||||
"@types/react": "18.3.12",
|
||||
"@types/react-dom": "18.3.1"
|
||||
"@types/node": "22.10.7",
|
||||
"@types/react": "18.3.18",
|
||||
"@types/react-dom": "18.3.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=23.0.0"
|
||||
},
|
||||
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
|
||||
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
|
||||
}
|
||||
|
294
pnpm-lock.yaml
generated
294
pnpm-lock.yaml
generated
@ -13,10 +13,10 @@ importers:
|
||||
version: 2.2.0(react@19.0.0-rc-f38c22b244-20240704)
|
||||
'@tailwindcss/forms':
|
||||
specifier: ^0.5.7
|
||||
version: 0.5.9(tailwindcss@3.4.16)
|
||||
version: 0.5.10(tailwindcss@3.4.17)
|
||||
autoprefixer:
|
||||
specifier: 10.4.20
|
||||
version: 10.4.20(postcss@8.4.49)
|
||||
version: 10.4.20(postcss@8.5.1)
|
||||
bcrypt:
|
||||
specifier: ^5.1.1
|
||||
version: 5.1.1
|
||||
@ -24,20 +24,20 @@ importers:
|
||||
specifier: ^2.1.1
|
||||
version: 2.1.1
|
||||
next:
|
||||
specifier: 15.0.3
|
||||
version: 15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
specifier: 15.1.4
|
||||
version: 15.1.4(@playwright/test@1.49.1)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
next-auth:
|
||||
specifier: 5.0.0-beta.25
|
||||
version: 5.0.0-beta.25(next@15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
version: 5.0.0-beta.25(next@15.1.4(@playwright/test@1.49.1)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
postcss:
|
||||
specifier: 8.4.49
|
||||
version: 8.4.49
|
||||
specifier: 8.5.1
|
||||
version: 8.5.1
|
||||
primeicons:
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
primereact:
|
||||
specifier: ^10.8.2
|
||||
version: 10.8.5(@types/react@18.3.12)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
version: 10.9.1(@types/react@18.3.18)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
react:
|
||||
specifier: 19.0.0-rc-f38c22b244-20240704
|
||||
version: 19.0.0-rc-f38c22b244-20240704
|
||||
@ -45,33 +45,36 @@ importers:
|
||||
specifier: 19.0.0-rc-f38c22b244-20240704
|
||||
version: 19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704)
|
||||
tailwindcss:
|
||||
specifier: 3.4.16
|
||||
version: 3.4.16
|
||||
specifier: 3.4.17
|
||||
version: 3.4.17
|
||||
typescript:
|
||||
specifier: 5.7.2
|
||||
version: 5.7.2
|
||||
specifier: 5.7.3
|
||||
version: 5.7.3
|
||||
use-debounce:
|
||||
specifier: ^10.0.1
|
||||
version: 10.0.4(react@19.0.0-rc-f38c22b244-20240704)
|
||||
uuid:
|
||||
specifier: 11.0.5
|
||||
version: 11.0.5
|
||||
zod:
|
||||
specifier: ^3.23.8
|
||||
version: 3.23.8
|
||||
version: 3.24.1
|
||||
devDependencies:
|
||||
'@playwright/test':
|
||||
specifier: ^1.46.0
|
||||
version: 1.49.0
|
||||
version: 1.49.1
|
||||
'@types/bcrypt':
|
||||
specifier: ^5.0.2
|
||||
version: 5.0.2
|
||||
'@types/node':
|
||||
specifier: 22.10.1
|
||||
version: 22.10.1
|
||||
specifier: 22.10.7
|
||||
version: 22.10.7
|
||||
'@types/react':
|
||||
specifier: 18.3.12
|
||||
version: 18.3.12
|
||||
specifier: 18.3.18
|
||||
version: 18.3.18
|
||||
'@types/react-dom':
|
||||
specifier: 18.3.1
|
||||
version: 18.3.1
|
||||
specifier: 18.3.5
|
||||
version: 18.3.5(@types/react@18.3.18)
|
||||
|
||||
packages:
|
||||
|
||||
@ -236,53 +239,53 @@ packages:
|
||||
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
|
||||
hasBin: true
|
||||
|
||||
'@next/env@15.0.3':
|
||||
resolution: {integrity: sha512-t9Xy32pjNOvVn2AS+Utt6VmyrshbpfUMhIjFO60gI58deSo/KgLOp31XZ4O+kY/Is8WAGYwA5gR7kOb1eORDBA==}
|
||||
'@next/env@15.1.4':
|
||||
resolution: {integrity: sha512-2fZ5YZjedi5AGaeoaC0B20zGntEHRhi2SdWcu61i48BllODcAmmtj8n7YarSPt4DaTsJaBFdxQAVEVzgmx2Zpw==}
|
||||
|
||||
'@next/swc-darwin-arm64@15.0.3':
|
||||
resolution: {integrity: sha512-s3Q/NOorCsLYdCKvQlWU+a+GeAd3C8Rb3L1YnetsgwXzhc3UTWrtQpB/3eCjFOdGUj5QmXfRak12uocd1ZiiQw==}
|
||||
'@next/swc-darwin-arm64@15.1.4':
|
||||
resolution: {integrity: sha512-wBEMBs+np+R5ozN1F8Y8d/Dycns2COhRnkxRc+rvnbXke5uZBHkUGFgWxfTXn5rx7OLijuUhyfB+gC/ap58dDw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@next/swc-darwin-x64@15.0.3':
|
||||
resolution: {integrity: sha512-Zxl/TwyXVZPCFSf0u2BNj5sE0F2uR6iSKxWpq4Wlk/Sv9Ob6YCKByQTkV2y6BCic+fkabp9190hyrDdPA/dNrw==}
|
||||
'@next/swc-darwin-x64@15.1.4':
|
||||
resolution: {integrity: sha512-7sgf5rM7Z81V9w48F02Zz6DgEJulavC0jadab4ZsJ+K2sxMNK0/BtF8J8J3CxnsJN3DGcIdC260wEKssKTukUw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@next/swc-linux-arm64-gnu@15.0.3':
|
||||
resolution: {integrity: sha512-T5+gg2EwpsY3OoaLxUIofmMb7ohAUlcNZW0fPQ6YAutaWJaxt1Z1h+8zdl4FRIOr5ABAAhXtBcpkZNwUcKI2fw==}
|
||||
'@next/swc-linux-arm64-gnu@15.1.4':
|
||||
resolution: {integrity: sha512-JaZlIMNaJenfd55kjaLWMfok+vWBlcRxqnRoZrhFQrhM1uAehP3R0+Aoe+bZOogqlZvAz53nY/k3ZyuKDtT2zQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-arm64-musl@15.0.3':
|
||||
resolution: {integrity: sha512-WkAk6R60mwDjH4lG/JBpb2xHl2/0Vj0ZRu1TIzWuOYfQ9tt9NFsIinI1Epma77JVgy81F32X/AeD+B2cBu/YQA==}
|
||||
'@next/swc-linux-arm64-musl@15.1.4':
|
||||
resolution: {integrity: sha512-7EBBjNoyTO2ipMDgCiORpwwOf5tIueFntKjcN3NK+GAQD7OzFJe84p7a2eQUeWdpzZvhVXuAtIen8QcH71ZCOQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-x64-gnu@15.0.3':
|
||||
resolution: {integrity: sha512-gWL/Cta1aPVqIGgDb6nxkqy06DkwJ9gAnKORdHWX1QBbSZZB+biFYPFti8aKIQL7otCE1pjyPaXpFzGeG2OS2w==}
|
||||
'@next/swc-linux-x64-gnu@15.1.4':
|
||||
resolution: {integrity: sha512-9TGEgOycqZFuADyFqwmK/9g6S0FYZ3tphR4ebcmCwhL8Y12FW8pIBKJvSwV+UBjMkokstGNH+9F8F031JZKpHw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-x64-musl@15.0.3':
|
||||
resolution: {integrity: sha512-QQEMwFd8r7C0GxQS62Zcdy6GKx999I/rTO2ubdXEe+MlZk9ZiinsrjwoiBL5/57tfyjikgh6GOU2WRQVUej3UA==}
|
||||
'@next/swc-linux-x64-musl@15.1.4':
|
||||
resolution: {integrity: sha512-0578bLRVDJOh+LdIoKvgNDz77+Bd85c5JrFgnlbI1SM3WmEQvsjxTA8ATu9Z9FCiIS/AliVAW2DV/BDwpXbtiQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-win32-arm64-msvc@15.0.3':
|
||||
resolution: {integrity: sha512-9TEp47AAd/ms9fPNgtgnT7F3M1Hf7koIYYWCMQ9neOwjbVWJsHZxrFbI3iEDJ8rf1TDGpmHbKxXf2IFpAvheIQ==}
|
||||
'@next/swc-win32-arm64-msvc@15.1.4':
|
||||
resolution: {integrity: sha512-JgFCiV4libQavwII+kncMCl30st0JVxpPOtzWcAI2jtum4HjYaclobKhj+JsRu5tFqMtA5CJIa0MvYyuu9xjjQ==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@next/swc-win32-x64-msvc@15.0.3':
|
||||
resolution: {integrity: sha512-VNAz+HN4OGgvZs6MOoVfnn41kBzT+M+tB+OK4cww6DNyWS6wKaDpaAm/qLeOUbnMh0oVx1+mg0uoYARF69dJyA==}
|
||||
'@next/swc-win32-x64-msvc@15.1.4':
|
||||
resolution: {integrity: sha512-xxsJy9wzq7FR5SqPCUqdgSXiNXrMuidgckBa8nH9HtjjxsilgcN6VgXF6tZ3uEWuVEadotQJI8/9EQ6guTC4Yw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
@ -306,21 +309,21 @@ packages:
|
||||
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
|
||||
engines: {node: '>=14'}
|
||||
|
||||
'@playwright/test@1.49.0':
|
||||
resolution: {integrity: sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==}
|
||||
'@playwright/test@1.49.1':
|
||||
resolution: {integrity: sha512-Ky+BVzPz8pL6PQxHqNRW1k3mIyv933LML7HktS8uik0bUXNCdPhoS/kLihiO1tMf/egaJb4IutXd7UywvXEW+g==}
|
||||
engines: {node: '>=18'}
|
||||
hasBin: true
|
||||
|
||||
'@swc/counter@0.1.3':
|
||||
resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
|
||||
|
||||
'@swc/helpers@0.5.13':
|
||||
resolution: {integrity: sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==}
|
||||
'@swc/helpers@0.5.15':
|
||||
resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}
|
||||
|
||||
'@tailwindcss/forms@0.5.9':
|
||||
resolution: {integrity: sha512-tM4XVr2+UVTxXJzey9Twx48c1gcxFStqn1pQz0tRsX8o3DvxhN5oY5pvyAbUx7VTaZxpej4Zzvc6h+1RJBzpIg==}
|
||||
'@tailwindcss/forms@0.5.10':
|
||||
resolution: {integrity: sha512-utI1ONF6uf/pPNO68kmN1b8rEwNXv3czukalo8VtJH8ksIkZXr3Q3VYudZLkCsDd4Wku120uF02hYK25XGPorw==}
|
||||
peerDependencies:
|
||||
tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20'
|
||||
tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20 || >= 4.0.0-beta.1'
|
||||
|
||||
'@types/bcrypt@5.0.2':
|
||||
resolution: {integrity: sha512-6atioO8Y75fNcbmj0G7UjI9lXN2pQ/IGJ2FWT4a/btd0Lk9lQalHLKhkgKVZ3r+spnmWUKfbMi1GEe9wyHQfNQ==}
|
||||
@ -328,20 +331,24 @@ packages:
|
||||
'@types/cookie@0.6.0':
|
||||
resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}
|
||||
|
||||
'@types/node@22.10.1':
|
||||
resolution: {integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==}
|
||||
'@types/node@22.10.7':
|
||||
resolution: {integrity: sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==}
|
||||
|
||||
'@types/prop-types@15.7.12':
|
||||
resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==}
|
||||
|
||||
'@types/react-dom@18.3.1':
|
||||
resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==}
|
||||
'@types/react-dom@18.3.5':
|
||||
resolution: {integrity: sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==}
|
||||
peerDependencies:
|
||||
'@types/react': ^18.0.0
|
||||
|
||||
'@types/react-transition-group@4.4.11':
|
||||
resolution: {integrity: sha512-RM05tAniPZ5DZPzzNFP+DmrcOdD0efDUxMy3145oljWSl3x9ZV5vhme98gTxFrj2lhXvmGNnUiuDyJgY9IKkNA==}
|
||||
'@types/react-transition-group@4.4.12':
|
||||
resolution: {integrity: sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==}
|
||||
peerDependencies:
|
||||
'@types/react': '*'
|
||||
|
||||
'@types/react@18.3.12':
|
||||
resolution: {integrity: sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==}
|
||||
'@types/react@18.3.18':
|
||||
resolution: {integrity: sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==}
|
||||
|
||||
abbrev@1.1.1:
|
||||
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
|
||||
@ -719,6 +726,11 @@ packages:
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
hasBin: true
|
||||
|
||||
nanoid@3.3.8:
|
||||
resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==}
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
hasBin: true
|
||||
|
||||
next-auth@5.0.0-beta.25:
|
||||
resolution: {integrity: sha512-2dJJw1sHQl2qxCrRk+KTQbeH+izFbGFPuJj5eGgBZFYyiYYtvlrBeUw1E/OJJxTRjuxbSYGnCTkUIRsIIW0bog==}
|
||||
peerDependencies:
|
||||
@ -735,16 +747,16 @@ packages:
|
||||
nodemailer:
|
||||
optional: true
|
||||
|
||||
next@15.0.3:
|
||||
resolution: {integrity: sha512-ontCbCRKJUIoivAdGB34yCaOcPgYXr9AAkV/IwqFfWWTXEPUgLYkSkqBhIk9KK7gGmgjc64B+RdoeIDM13Irnw==}
|
||||
next@15.1.4:
|
||||
resolution: {integrity: sha512-mTaq9dwaSuwwOrcu3ebjDYObekkxRnXpuVL21zotM8qE2W0HBOdVIdg2Li9QjMEZrj73LN96LcWcz62V19FjAg==}
|
||||
engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@opentelemetry/api': ^1.1.0
|
||||
'@playwright/test': ^1.41.2
|
||||
babel-plugin-react-compiler: '*'
|
||||
react: ^18.2.0 || 19.0.0-rc-66855b96-20241106
|
||||
react-dom: ^18.2.0 || 19.0.0-rc-66855b96-20241106
|
||||
react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
|
||||
react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
|
||||
sass: ^1.3.0
|
||||
peerDependenciesMeta:
|
||||
'@opentelemetry/api':
|
||||
@ -835,13 +847,13 @@ packages:
|
||||
resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}
|
||||
engines: {node: '>= 6'}
|
||||
|
||||
playwright-core@1.49.0:
|
||||
resolution: {integrity: sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==}
|
||||
playwright-core@1.49.1:
|
||||
resolution: {integrity: sha512-BzmpVcs4kE2CH15rWfzpjzVGhWERJfmnXmniSyKeRZUs9Ws65m+RGIi7mjJK/euCegfn3i7jvqWeWyHe9y3Vgg==}
|
||||
engines: {node: '>=18'}
|
||||
hasBin: true
|
||||
|
||||
playwright@1.49.0:
|
||||
resolution: {integrity: sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==}
|
||||
playwright@1.49.1:
|
||||
resolution: {integrity: sha512-VYL8zLoNTBxVOrJBbDuRgDWa3i+mfQgDTrL8Ah9QXZ7ax4Dsj0MSq5bYgytRnDVVe+njoKnfsYkH3HzqVj5UZA==}
|
||||
engines: {node: '>=18'}
|
||||
hasBin: true
|
||||
|
||||
@ -886,8 +898,8 @@ packages:
|
||||
resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
|
||||
postcss@8.4.49:
|
||||
resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==}
|
||||
postcss@8.5.1:
|
||||
resolution: {integrity: sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
|
||||
preact-render-to-string@5.2.3:
|
||||
@ -904,8 +916,8 @@ packages:
|
||||
primeicons@7.0.0:
|
||||
resolution: {integrity: sha512-jK3Et9UzwzTsd6tzl2RmwrVY/b8raJ3QZLzoDACj+oTJ0oX7L9Hy+XnVwgo4QVKlKpnP/Ur13SXV/pVh4LzaDw==}
|
||||
|
||||
primereact@10.8.5:
|
||||
resolution: {integrity: sha512-B1LeJdNGGAB8P1VRJE0TDYz6rZSDwxE7Ft8PLFjRYLO44+mIJNDsLYSB56LRJOoqUNRhQrRIe/5ctS5eyQAzwQ==}
|
||||
primereact@10.9.1:
|
||||
resolution: {integrity: sha512-mq5Pr6/zySO913RlL5oUWD+n1ygTjJjhhxBoRWhLNKx7Na8pHpswh/QCesShFXlfYyCjDOVXFVT6J2sSDceF1g==}
|
||||
engines: {node: '>=14.0.0'}
|
||||
peerDependencies:
|
||||
'@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0
|
||||
@ -1063,8 +1075,8 @@ packages:
|
||||
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
tailwindcss@3.4.16:
|
||||
resolution: {integrity: sha512-TI4Cyx7gDiZ6r44ewaJmt0o6BrMCT5aK5e0rmJ/G9Xq3w7CX/5VXl/zIPEJZFUK5VEqwByyhqNPycPlvcK4ZNw==}
|
||||
tailwindcss@3.4.17:
|
||||
resolution: {integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==}
|
||||
engines: {node: '>=14.0.0'}
|
||||
hasBin: true
|
||||
|
||||
@ -1089,11 +1101,11 @@ packages:
|
||||
ts-interface-checker@0.1.13:
|
||||
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
|
||||
|
||||
tslib@2.6.3:
|
||||
resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==}
|
||||
tslib@2.8.1:
|
||||
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
|
||||
|
||||
typescript@5.7.2:
|
||||
resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==}
|
||||
typescript@5.7.3:
|
||||
resolution: {integrity: sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==}
|
||||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
@ -1115,6 +1127,10 @@ packages:
|
||||
util-deprecate@1.0.2:
|
||||
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
|
||||
|
||||
uuid@11.0.5:
|
||||
resolution: {integrity: sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==}
|
||||
hasBin: true
|
||||
|
||||
webidl-conversions@3.0.1:
|
||||
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
|
||||
|
||||
@ -1148,8 +1164,8 @@ packages:
|
||||
engines: {node: '>= 14'}
|
||||
hasBin: true
|
||||
|
||||
zod@3.23.8:
|
||||
resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}
|
||||
zod@3.24.1:
|
||||
resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==}
|
||||
|
||||
snapshots:
|
||||
|
||||
@ -1171,7 +1187,7 @@ snapshots:
|
||||
|
||||
'@emnapi/runtime@1.2.0':
|
||||
dependencies:
|
||||
tslib: 2.6.3
|
||||
tslib: 2.8.1
|
||||
optional: true
|
||||
|
||||
'@heroicons/react@2.2.0(react@19.0.0-rc-f38c22b244-20240704)':
|
||||
@ -1294,30 +1310,30 @@ snapshots:
|
||||
- encoding
|
||||
- supports-color
|
||||
|
||||
'@next/env@15.0.3': {}
|
||||
'@next/env@15.1.4': {}
|
||||
|
||||
'@next/swc-darwin-arm64@15.0.3':
|
||||
'@next/swc-darwin-arm64@15.1.4':
|
||||
optional: true
|
||||
|
||||
'@next/swc-darwin-x64@15.0.3':
|
||||
'@next/swc-darwin-x64@15.1.4':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-arm64-gnu@15.0.3':
|
||||
'@next/swc-linux-arm64-gnu@15.1.4':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-arm64-musl@15.0.3':
|
||||
'@next/swc-linux-arm64-musl@15.1.4':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-x64-gnu@15.0.3':
|
||||
'@next/swc-linux-x64-gnu@15.1.4':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-x64-musl@15.0.3':
|
||||
'@next/swc-linux-x64-musl@15.1.4':
|
||||
optional: true
|
||||
|
||||
'@next/swc-win32-arm64-msvc@15.0.3':
|
||||
'@next/swc-win32-arm64-msvc@15.1.4':
|
||||
optional: true
|
||||
|
||||
'@next/swc-win32-x64-msvc@15.0.3':
|
||||
'@next/swc-win32-x64-msvc@15.1.4':
|
||||
optional: true
|
||||
|
||||
'@nodelib/fs.scandir@2.1.5':
|
||||
@ -1337,42 +1353,42 @@ snapshots:
|
||||
'@pkgjs/parseargs@0.11.0':
|
||||
optional: true
|
||||
|
||||
'@playwright/test@1.49.0':
|
||||
'@playwright/test@1.49.1':
|
||||
dependencies:
|
||||
playwright: 1.49.0
|
||||
playwright: 1.49.1
|
||||
|
||||
'@swc/counter@0.1.3': {}
|
||||
|
||||
'@swc/helpers@0.5.13':
|
||||
'@swc/helpers@0.5.15':
|
||||
dependencies:
|
||||
tslib: 2.6.3
|
||||
tslib: 2.8.1
|
||||
|
||||
'@tailwindcss/forms@0.5.9(tailwindcss@3.4.16)':
|
||||
'@tailwindcss/forms@0.5.10(tailwindcss@3.4.17)':
|
||||
dependencies:
|
||||
mini-svg-data-uri: 1.4.4
|
||||
tailwindcss: 3.4.16
|
||||
tailwindcss: 3.4.17
|
||||
|
||||
'@types/bcrypt@5.0.2':
|
||||
dependencies:
|
||||
'@types/node': 22.10.1
|
||||
'@types/node': 22.10.7
|
||||
|
||||
'@types/cookie@0.6.0': {}
|
||||
|
||||
'@types/node@22.10.1':
|
||||
'@types/node@22.10.7':
|
||||
dependencies:
|
||||
undici-types: 6.20.0
|
||||
|
||||
'@types/prop-types@15.7.12': {}
|
||||
|
||||
'@types/react-dom@18.3.1':
|
||||
'@types/react-dom@18.3.5(@types/react@18.3.18)':
|
||||
dependencies:
|
||||
'@types/react': 18.3.12
|
||||
'@types/react': 18.3.18
|
||||
|
||||
'@types/react-transition-group@4.4.11':
|
||||
'@types/react-transition-group@4.4.12(@types/react@18.3.18)':
|
||||
dependencies:
|
||||
'@types/react': 18.3.12
|
||||
'@types/react': 18.3.18
|
||||
|
||||
'@types/react@18.3.12':
|
||||
'@types/react@18.3.18':
|
||||
dependencies:
|
||||
'@types/prop-types': 15.7.12
|
||||
csstype: 3.1.3
|
||||
@ -1411,14 +1427,14 @@ snapshots:
|
||||
|
||||
arg@5.0.2: {}
|
||||
|
||||
autoprefixer@10.4.20(postcss@8.4.49):
|
||||
autoprefixer@10.4.20(postcss@8.5.1):
|
||||
dependencies:
|
||||
browserslist: 4.23.3
|
||||
caniuse-lite: 1.0.30001651
|
||||
fraction.js: 4.3.7
|
||||
normalize-range: 0.1.2
|
||||
picocolors: 1.0.1
|
||||
postcss: 8.4.49
|
||||
postcss: 8.5.1
|
||||
postcss-value-parser: 4.2.0
|
||||
|
||||
balanced-match@1.0.2: {}
|
||||
@ -1729,17 +1745,19 @@ snapshots:
|
||||
|
||||
nanoid@3.3.7: {}
|
||||
|
||||
next-auth@5.0.0-beta.25(next@15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
|
||||
nanoid@3.3.8: {}
|
||||
|
||||
next-auth@5.0.0-beta.25(next@15.1.4(@playwright/test@1.49.1)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
|
||||
dependencies:
|
||||
'@auth/core': 0.37.2
|
||||
next: 15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
next: 15.1.4(@playwright/test@1.49.1)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
react: 19.0.0-rc-f38c22b244-20240704
|
||||
|
||||
next@15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
|
||||
next@15.1.4(@playwright/test@1.49.1)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
|
||||
dependencies:
|
||||
'@next/env': 15.0.3
|
||||
'@next/env': 15.1.4
|
||||
'@swc/counter': 0.1.3
|
||||
'@swc/helpers': 0.5.13
|
||||
'@swc/helpers': 0.5.15
|
||||
busboy: 1.6.0
|
||||
caniuse-lite: 1.0.30001651
|
||||
postcss: 8.4.31
|
||||
@ -1747,15 +1765,15 @@ snapshots:
|
||||
react-dom: 19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704)
|
||||
styled-jsx: 5.1.6(react@19.0.0-rc-f38c22b244-20240704)
|
||||
optionalDependencies:
|
||||
'@next/swc-darwin-arm64': 15.0.3
|
||||
'@next/swc-darwin-x64': 15.0.3
|
||||
'@next/swc-linux-arm64-gnu': 15.0.3
|
||||
'@next/swc-linux-arm64-musl': 15.0.3
|
||||
'@next/swc-linux-x64-gnu': 15.0.3
|
||||
'@next/swc-linux-x64-musl': 15.0.3
|
||||
'@next/swc-win32-arm64-msvc': 15.0.3
|
||||
'@next/swc-win32-x64-msvc': 15.0.3
|
||||
'@playwright/test': 1.49.0
|
||||
'@next/swc-darwin-arm64': 15.1.4
|
||||
'@next/swc-darwin-x64': 15.1.4
|
||||
'@next/swc-linux-arm64-gnu': 15.1.4
|
||||
'@next/swc-linux-arm64-musl': 15.1.4
|
||||
'@next/swc-linux-x64-gnu': 15.1.4
|
||||
'@next/swc-linux-x64-musl': 15.1.4
|
||||
'@next/swc-win32-arm64-msvc': 15.1.4
|
||||
'@next/swc-win32-x64-msvc': 15.1.4
|
||||
'@playwright/test': 1.49.1
|
||||
sharp: 0.33.5
|
||||
transitivePeerDependencies:
|
||||
- '@babel/core'
|
||||
@ -1815,36 +1833,36 @@ snapshots:
|
||||
|
||||
pirates@4.0.6: {}
|
||||
|
||||
playwright-core@1.49.0: {}
|
||||
playwright-core@1.49.1: {}
|
||||
|
||||
playwright@1.49.0:
|
||||
playwright@1.49.1:
|
||||
dependencies:
|
||||
playwright-core: 1.49.0
|
||||
playwright-core: 1.49.1
|
||||
optionalDependencies:
|
||||
fsevents: 2.3.2
|
||||
|
||||
postcss-import@15.1.0(postcss@8.4.49):
|
||||
postcss-import@15.1.0(postcss@8.5.1):
|
||||
dependencies:
|
||||
postcss: 8.4.49
|
||||
postcss: 8.5.1
|
||||
postcss-value-parser: 4.2.0
|
||||
read-cache: 1.0.0
|
||||
resolve: 1.22.8
|
||||
|
||||
postcss-js@4.0.1(postcss@8.4.49):
|
||||
postcss-js@4.0.1(postcss@8.5.1):
|
||||
dependencies:
|
||||
camelcase-css: 2.0.1
|
||||
postcss: 8.4.49
|
||||
postcss: 8.5.1
|
||||
|
||||
postcss-load-config@4.0.2(postcss@8.4.49):
|
||||
postcss-load-config@4.0.2(postcss@8.5.1):
|
||||
dependencies:
|
||||
lilconfig: 3.1.3
|
||||
yaml: 2.4.3
|
||||
optionalDependencies:
|
||||
postcss: 8.4.49
|
||||
postcss: 8.5.1
|
||||
|
||||
postcss-nested@6.2.0(postcss@8.4.49):
|
||||
postcss-nested@6.2.0(postcss@8.5.1):
|
||||
dependencies:
|
||||
postcss: 8.4.49
|
||||
postcss: 8.5.1
|
||||
postcss-selector-parser: 6.1.2
|
||||
|
||||
postcss-selector-parser@6.1.2:
|
||||
@ -1860,9 +1878,9 @@ snapshots:
|
||||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.1
|
||||
|
||||
postcss@8.4.49:
|
||||
postcss@8.5.1:
|
||||
dependencies:
|
||||
nanoid: 3.3.7
|
||||
nanoid: 3.3.8
|
||||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.1
|
||||
|
||||
@ -1877,14 +1895,14 @@ snapshots:
|
||||
|
||||
primeicons@7.0.0: {}
|
||||
|
||||
primereact@10.8.5(@types/react@18.3.12)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
|
||||
primereact@10.9.1(@types/react@18.3.18)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
|
||||
dependencies:
|
||||
'@types/react-transition-group': 4.4.11
|
||||
'@types/react-transition-group': 4.4.12(@types/react@18.3.18)
|
||||
react: 19.0.0-rc-f38c22b244-20240704
|
||||
react-dom: 19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704)
|
||||
react-transition-group: 4.4.5(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
|
||||
optionalDependencies:
|
||||
'@types/react': 18.3.12
|
||||
'@types/react': 18.3.18
|
||||
|
||||
prop-types@15.8.1:
|
||||
dependencies:
|
||||
@ -2044,7 +2062,7 @@ snapshots:
|
||||
|
||||
supports-preserve-symlinks-flag@1.0.0: {}
|
||||
|
||||
tailwindcss@3.4.16:
|
||||
tailwindcss@3.4.17:
|
||||
dependencies:
|
||||
'@alloc/quick-lru': 5.2.0
|
||||
arg: 5.0.2
|
||||
@ -2060,11 +2078,11 @@ snapshots:
|
||||
normalize-path: 3.0.0
|
||||
object-hash: 3.0.0
|
||||
picocolors: 1.1.1
|
||||
postcss: 8.4.49
|
||||
postcss-import: 15.1.0(postcss@8.4.49)
|
||||
postcss-js: 4.0.1(postcss@8.4.49)
|
||||
postcss-load-config: 4.0.2(postcss@8.4.49)
|
||||
postcss-nested: 6.2.0(postcss@8.4.49)
|
||||
postcss: 8.5.1
|
||||
postcss-import: 15.1.0(postcss@8.5.1)
|
||||
postcss-js: 4.0.1(postcss@8.5.1)
|
||||
postcss-load-config: 4.0.2(postcss@8.5.1)
|
||||
postcss-nested: 6.2.0(postcss@8.5.1)
|
||||
postcss-selector-parser: 6.1.2
|
||||
resolve: 1.22.8
|
||||
sucrase: 3.35.0
|
||||
@ -2096,9 +2114,9 @@ snapshots:
|
||||
|
||||
ts-interface-checker@0.1.13: {}
|
||||
|
||||
tslib@2.6.3: {}
|
||||
tslib@2.8.1: {}
|
||||
|
||||
typescript@5.7.2: {}
|
||||
typescript@5.7.3: {}
|
||||
|
||||
undici-types@6.20.0: {}
|
||||
|
||||
@ -2114,6 +2132,8 @@ snapshots:
|
||||
|
||||
util-deprecate@1.0.2: {}
|
||||
|
||||
uuid@11.0.5: {}
|
||||
|
||||
webidl-conversions@3.0.1: {}
|
||||
|
||||
whatwg-url@5.0.0:
|
||||
@ -2147,4 +2167,4 @@ snapshots:
|
||||
|
||||
yaml@2.4.3: {}
|
||||
|
||||
zod@3.23.8: {}
|
||||
zod@3.24.1: {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user