mirror of
https://github.com/evroon/bracket.git
synced 2026-03-09 02:27:41 -04:00
a708e10b89d126ca2feb1d8e4c36e78b628b0228
Bumps [swr](https://github.com/vercel/swr) from 2.0.4 to 2.1.5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vercel/swr/releases">swr's releases</a>.</em></p> <blockquote> <h2>v2.1.5</h2> <h2>What's Changed</h2> <ul> <li>fix: missing interop helpers in bundle by <a href="https://github.com/huozhi"><code>@huozhi</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2582">vercel/swr#2582</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/vercel/swr/compare/v2.1.4...v2.1.5">https://github.com/vercel/swr/compare/v2.1.4...v2.1.5</a></p> <h2>v2.1.4</h2> <h2>What's Changed</h2> <ul> <li>Upgrade bundler by <a href="https://github.com/huozhi"><code>@huozhi</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2557">vercel/swr#2557</a></li> <li>examples: fix invalid links by <a href="https://github.com/fxOne"><code>@fxOne</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2559">vercel/swr#2559</a></li> <li>types: Allow auto-import by improving generated types by <a href="https://github.com/oosawy"><code>@oosawy</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2563">vercel/swr#2563</a></li> <li>fix: pass serialized args to preload fetcher by <a href="https://github.com/oosawy"><code>@oosawy</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2564">vercel/swr#2564</a></li> <li>chore: use provenance for release by <a href="https://github.com/HerringtonDarkholme"><code>@HerringtonDarkholme</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2571">vercel/swr#2571</a></li> <li>deps: update <code>@testing-library/react</code> to v14 by <a href="https://github.com/koba04"><code>@koba04</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2578">vercel/swr#2578</a></li> <li>fix: Fix dependency tracking and useSES bug by <a href="https://github.com/shuding"><code>@shuding</code></a> and <a href="https://github.com/promer94"><code>@promer94</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2576">vercel/swr#2576</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/fxOne"><code>@fxOne</code></a> made their first contribution in <a href="https://redirect.github.com/vercel/swr/pull/2559">vercel/swr#2559</a></li> <li><a href="https://github.com/oosawy"><code>@oosawy</code></a> made their first contribution in <a href="https://redirect.github.com/vercel/swr/pull/2563">vercel/swr#2563</a></li> <li><a href="https://github.com/HerringtonDarkholme"><code>@HerringtonDarkholme</code></a> made their first contribution in <a href="https://redirect.github.com/vercel/swr/pull/2571">vercel/swr#2571</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/vercel/swr/compare/v2.1.3...v2.1.4">https://github.com/vercel/swr/compare/v2.1.3...v2.1.4</a></p> <h2>v2.1.3</h2> <h2>What's Changed</h2> <ul> <li>Fix <a href="https://redirect.github.com/vercel/swr/issues/2548">#2548</a>: pass origin key to subcription callback by <a href="https://github.com/Zheaoli"><code>@Zheaoli</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2550">vercel/swr#2550</a></li> <li>Examples: fix type in axios-typescript example by <a href="https://github.com/daochouwangu"><code>@daochouwangu</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2552">vercel/swr#2552</a></li> <li>Update Cache Interface types by <a href="https://github.com/dmmulroy"><code>@dmmulroy</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2554">vercel/swr#2554</a></li> <li>fix: data passed to refreshInterval function is not latest by <a href="https://github.com/hong24"><code>@hong24</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2354">vercel/swr#2354</a></li> <li>types: allow passing function as <code>Data</code> for <code>useSWRSubscriptionOptions</code> by <a href="https://github.com/promer94"><code>@promer94</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2551">vercel/swr#2551</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Zheaoli"><code>@Zheaoli</code></a> made their first contribution in <a href="https://redirect.github.com/vercel/swr/pull/2550">vercel/swr#2550</a></li> <li><a href="https://github.com/daochouwangu"><code>@daochouwangu</code></a> made their first contribution in <a href="https://redirect.github.com/vercel/swr/pull/2552">vercel/swr#2552</a></li> <li><a href="https://github.com/dmmulroy"><code>@dmmulroy</code></a> made their first contribution in <a href="https://redirect.github.com/vercel/swr/pull/2554">vercel/swr#2554</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/vercel/swr/compare/v2.1.2...v2.1.3">https://github.com/vercel/swr/compare/v2.1.2...v2.1.3</a></p> <h2>v2.1.2</h2> <h3>Patches</h3> <ul> <li>Improved type inferring for <code>swr/subscription</code></li> <li>Adding <code>SWRSubscriptionOptions</code> type for <code>swr/subscription</code></li> </ul> <h2>Changes</h2> <ul> <li>test: add typing test for empty config by <a href="https://github.com/koba04"><code>@koba04</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2521">vercel/swr#2521</a></li> <li>test: fix syntax error in Equal type alias implementation by <a href="https://github.com/SACHINnANYAKKARA"><code>@SACHINnANYAKKARA</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2517">vercel/swr#2517</a></li> <li>chore: remove engines by <a href="https://github.com/promer94"><code>@promer94</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2536">vercel/swr#2536</a></li> <li>types: improve <code>useSWRSubscription</code> types by <a href="https://github.com/promer94"><code>@promer94</code></a> in <a href="https://redirect.github.com/vercel/swr/pull/2535">vercel/swr#2535</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="5f9923e6a7"><code>5f9923e</code></a> 2.1.5</li> <li><a href="c1c71bddb2"><code>c1c71bd</code></a> fix: missing interop helpers in bundle (<a href="https://redirect.github.com/vercel/swr/issues/2582">#2582</a>)</li> <li><a href="3a8de88316"><code>3a8de88</code></a> 2.1.4</li> <li><a href="0859b54c41"><code>0859b54</code></a> fix: Fix dependency tracking and useSES bug (<a href="https://redirect.github.com/vercel/swr/issues/2576">#2576</a>)</li> <li><a href="f8603abb88"><code>f8603ab</code></a> deps: update <code>@testing-library/react</code> to v14 (<a href="https://redirect.github.com/vercel/swr/issues/2578">#2578</a>)</li> <li><a href="c2b2fb753a"><code>c2b2fb7</code></a> chore: use provenance for release (<a href="https://redirect.github.com/vercel/swr/issues/2571">#2571</a>)</li> <li><a href="342b82c818"><code>342b82c</code></a> fix: pass serialized args to preload fetcher (<a href="https://redirect.github.com/vercel/swr/issues/2564">#2564</a>)</li> <li><a href="a269839800"><code>a269839</code></a> types: Allow auto-import by improving generated types (<a href="https://redirect.github.com/vercel/swr/issues/2563">#2563</a>)</li> <li><a href="9371f1d063"><code>9371f1d</code></a> examples: fix invalid links (<a href="https://redirect.github.com/vercel/swr/issues/2559">#2559</a>)</li> <li><a href="17d9ff7127"><code>17d9ff7</code></a> Upgrade bundler (<a href="https://redirect.github.com/vercel/swr/issues/2557">#2557</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vercel/swr/compare/v2.0.4...v2.1.5">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bracket
Ladder tournament system meant to be easy to use. Bracket is written in async Python (with FastAPI) and Next.js as frontend using the Mantine library.
Preview
Setup
Database
First create a bracket cluster:
sudo pg_createcluster -u postgres -p 5532 13 bracket
pg_ctlcluster 13 bracket start
Subsequently, create a new bracket_dev database:
sudo -Hu postgres psql -p 5532
CREATE USER bracket_dev WITH PASSWORD 'bracket_dev';
CREATE DATABASE bracket_dev OWNER bracket_dev;
You can do the same but replace the user and database name with:
bracket_ci: for running testsbracket_prod: for a production database
The database URL can be specified per environment in the .env files (see config).
Config
Copy ci.env to prod.env and fill in the values:
PG_DSN: The URL of the PostgreSQL databaseJWT_SECRET: Create a random secret usingopenssl rand -hex 32CORS_ORIGINSandCORS_ORIGIN_REGEX: Specify allowed frontend domain names for CORS (see the FastAPI docs)ADMIN_EMAILandADMIN_PASSWORD: The credentials of the admin user, which is created when initializing the database
Running the frontend and backend
The following starts the frontend and backend for local development:
Frontend
cd frontend
yarn
npm run dev
Backend
cd backend
pipenv install -d
pipenv shell
./run.sh
Languages
TypeScript
51.1%
Python
47.6%
CSS
0.8%
Dockerfile
0.2%