Compare commits
22 Commits
5918ce050c
...
45e2665997
Author | SHA1 | Date | |
---|---|---|---|
45e2665997 | |||
ae7b338771 | |||
7ea96ea7ad | |||
dde976b076 | |||
63d4420806 | |||
de595bbf51 | |||
7c6f00155a | |||
924922c425 | |||
![]() |
5230b96983 | ||
![]() |
7cbd683857 | ||
![]() |
a74a15bdb6 | ||
![]() |
67a92722be | ||
![]() |
dad56c029c | ||
![]() |
0c83f96d20 | ||
![]() |
26f2ab63a2 | ||
![]() |
fb83e45508 | ||
![]() |
b16e87e118 | ||
![]() |
6d695bdb91 | ||
ec81e8b38c | |||
1017e2c582 | |||
![]() |
977c39dc77 | ||
![]() |
7fc5dd90db |
20
.github/workflows/license_finder.yml
vendored
Normal file
20
.github/workflows/license_finder.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Check usage of free licenses
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
build-static-assets:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '3.3'
|
||||||
|
- name: Install license finder gem
|
||||||
|
run: gem install license_finder
|
||||||
|
- name: Run license finder
|
||||||
|
run: license_finder
|
@ -1,38 +1,41 @@
|
|||||||
'use client'
|
'use client';
|
||||||
|
|
||||||
import { Guest } from '@/app/lib/definitions';
|
|
||||||
import SkeletonRow from './skeleton-row';
|
|
||||||
import { Suspense } from 'react';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
|
import React, { useState, useEffect } from 'react';
|
||||||
|
import { Guest } from '@/app/lib/definitions';
|
||||||
|
|
||||||
export function TableHeader() {
|
export default function guestsTable() {
|
||||||
|
const [guests, setGuests] = useState<Array<Guest>>([]);
|
||||||
|
|
||||||
}
|
function loadGuests() {
|
||||||
|
fetch("http://localhost:3001/guests.json")
|
||||||
export default async function guestsTable() {
|
.then((response) => response.json())
|
||||||
|
.then((data) => {
|
||||||
|
setGuests(data.data.map((record: any) => {
|
||||||
|
return ({
|
||||||
|
id: record.id,
|
||||||
|
name: record.attributes.name,
|
||||||
|
email: record.attributes.email,
|
||||||
|
group_name: record.attributes.group_name,
|
||||||
|
status: record.attributes.status
|
||||||
|
});
|
||||||
|
}));
|
||||||
|
}, (error) => {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
function handleInviteGuest() {
|
const handleInviteGuest = (e: React.MouseEvent<HTMLElement>) => {
|
||||||
fetch("http://localhost:3001/guests/123.json", {method: 'PATCH', body: JSON.stringify({guest: {status: 'Invited'}})})
|
fetch("http://localhost:3001/guests/bulk-status-change.json", { method: 'POST', body: JSON.stringify({ status: "Invited", guest_ids: [e.currentTarget.getAttribute('data-guest-id')] }) })
|
||||||
.then((response) => console.log(response.json()))
|
.then((response) => console.log(response.json()))
|
||||||
.catch((error) => console.error(error));
|
.catch((error) => console.error(error));
|
||||||
}
|
}
|
||||||
|
|
||||||
let guests: Guest[] = await fetch("http://localhost:3001/guests.json")
|
|
||||||
.then((response) => response.json())
|
|
||||||
.then((data) => {
|
guests.length === 0 && loadGuests();
|
||||||
return data.data.map((record: any) => {
|
|
||||||
return ({
|
|
||||||
id: record.id,
|
|
||||||
name: record.attributes.name,
|
|
||||||
email: record.attributes.email,
|
|
||||||
group_name: record.attributes.group_name,
|
|
||||||
status: record.attributes.status
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}, (error) => {
|
|
||||||
return [];
|
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full relative overflow-x-auto shadow-md sm:rounded-lg">
|
<div className="w-full relative overflow-x-auto shadow-md sm:rounded-lg">
|
||||||
@ -88,7 +91,7 @@ export default async function guestsTable() {
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{guest.status === 'Considered' && (<button onClick={handleInviteGuest} className="bg-blue-300 hover:bg-blue-500 text-white py-1 px-2 rounded">
|
{guest.status === 'Considered' && (<button data-guest-id={guest.id} onClick={handleInviteGuest} className="bg-blue-300 hover:bg-blue-500 text-white py-1 px-2 rounded">
|
||||||
Invite
|
Invite
|
||||||
</button>)}
|
</button>)}
|
||||||
</td>
|
</td>
|
||||||
|
85
doc/dependency_decisions.yml
Normal file
85
doc/dependency_decisions.yml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
---
|
||||||
|
- - :permit
|
||||||
|
- MIT
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:45:36.831184284 Z
|
||||||
|
- - :permit
|
||||||
|
- ISC
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:48:14.527140943 Z
|
||||||
|
- - :permit
|
||||||
|
- Apache 2.0
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:48:23.863998708 Z
|
||||||
|
- - :permit
|
||||||
|
- Simplified BSD
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:49:01.330574375 Z
|
||||||
|
- - :permit
|
||||||
|
- New BSD
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:49:53.995999923 Z
|
||||||
|
- - :permit
|
||||||
|
- LGPL-3.0-or-later
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:51:16.274818102 Z
|
||||||
|
- - :permit
|
||||||
|
- Python-2.0
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:51:32.610018037 Z
|
||||||
|
- - :permit
|
||||||
|
- BlueOak-1.0.0
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:52:28.568966565 Z
|
||||||
|
- - :permit
|
||||||
|
- BSD
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:52:37.235297087 Z
|
||||||
|
- - :permit
|
||||||
|
- The Unlicense
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:52:49.646463302 Z
|
||||||
|
- - :permit
|
||||||
|
- CC-BY-4.0
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:54:29.363007852 Z
|
||||||
|
- - :permit
|
||||||
|
- "(MIT AND Zlib)"
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:54:49.936741134 Z
|
||||||
|
- - :permit
|
||||||
|
- BSD Zero Clause License
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:55:31.968339009 Z
|
||||||
|
- - :permit
|
||||||
|
- Artistic-2.0
|
||||||
|
- :who:
|
||||||
|
:why:
|
||||||
|
:versions: []
|
||||||
|
:when: 2024-10-25 17:55:52.371898047 Z
|
14
package.json
14
package.json
@ -12,24 +12,24 @@
|
|||||||
"autoprefixer": "10.4.20",
|
"autoprefixer": "10.4.20",
|
||||||
"bcrypt": "^5.1.1",
|
"bcrypt": "^5.1.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"next": "15.0.0-rc.0",
|
"next": "15.0.1",
|
||||||
"next-auth": "5.0.0-beta.20",
|
"next-auth": "5.0.0-beta.25",
|
||||||
"postcss": "8.4.43",
|
"postcss": "8.4.47",
|
||||||
"primeicons": "^7.0.0",
|
"primeicons": "^7.0.0",
|
||||||
"primereact": "^10.8.2",
|
"primereact": "^10.8.2",
|
||||||
"react": "19.0.0-rc-f38c22b244-20240704",
|
"react": "19.0.0-rc-f38c22b244-20240704",
|
||||||
"react-dom": "19.0.0-rc-f38c22b244-20240704",
|
"react-dom": "19.0.0-rc-f38c22b244-20240704",
|
||||||
"tailwindcss": "3.4.10",
|
"tailwindcss": "3.4.14",
|
||||||
"typescript": "5.5.4",
|
"typescript": "5.6.3",
|
||||||
"use-debounce": "^10.0.1",
|
"use-debounce": "^10.0.1",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.23.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "^1.46.0",
|
"@playwright/test": "^1.46.0",
|
||||||
"@types/bcrypt": "^5.0.2",
|
"@types/bcrypt": "^5.0.2",
|
||||||
"@types/node": "22.5.4",
|
"@types/node": "22.7.9",
|
||||||
"@types/react": "18.3.5",
|
"@types/react": "18.3.5",
|
||||||
"@types/react-dom": "18.3.0"
|
"@types/react-dom": "18.3.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.12.0"
|
"node": ">=20.12.0"
|
||||||
|
565
pnpm-lock.yaml
generated
565
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user