dependabot[bot] 430cdd94b0 Bump date-fns from 3.2.0 to 3.3.1 in /frontend (#421)
Bumps [date-fns](https://github.com/date-fns/date-fns) from 3.2.0 to
3.3.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/date-fns/date-fns/releases">date-fns's
releases</a>.</em></p>
<blockquote>
<h2>v3.3.1</h2>
<p>Kudos to <a
href="https://github.com/kossnocorp"><code>@​kossnocorp</code></a> and
<a href="https://github.com/fturmel"><code>@​fturmel</code></a> for
working on the release.</p>
<h3>Fixed</h3>
<ul>
<li>
<p>Fixed DST issue in <code>getOverlappingDaysInIntervals</code>,
resulting in an inconsistent number of days returned for intervals
starting and ending in different DST periods.</p>
</li>
<li>
<p>Fixed functions incorrectly using <code>trunc</code> instead of
<code>round</code>. The bug was introduced in v3.3.0. The affected
functions: <code>differenceInCalendarDays</code>,
<code>differenceInCalendarISOWeeks</code>,
<code>differenceInCalendarWeeks</code>, <code>getISOWeek</code>,
<code>getWeek</code>, and <code>getISOWeeksInYear</code>.</p>
</li>
</ul>
<h2>v3.3.0</h2>
<p>On this release worked <a
href="https://github.com/kossnocorp"><code>@​kossnocorp</code></a>, <a
href="https://github.com/TheKvikk"><code>@​TheKvikk</code></a>, <a
href="https://github.com/fturmel"><code>@​fturmel</code></a> and <a
href="https://github.com/ckcherry23"><code>@​ckcherry23</code></a>.</p>
<h3>Fixed</h3>
<ul>
<li>
<p>Fixed the bug in <code>getOverlappingDaysInIntervals</code> caused by
incorrect sorting of interval components that led to 0 for timestamps of
different lengths.</p>
</li>
<li>
<p>Fixed bugs when working with negative numbers caused by using
<code>Math.floor</code> (<code>-1.1</code> → <code>-2</code>) instead of
<code>Math.trunc</code> (<code>-1.1</code> → <code>-1</code>). Most of
the conversion functions (i.e., <code>hoursToMinutes</code>) were
affected when passing some negative fractional input. Also, some other
functions that could be possibly affected by unfortunate timezone/date
combinations were fixed.</p>
<p>The functions that were affected: <code>format</code>,
<code>parse</code>, <code>getUnixTime</code>, <code>daysToWeeks</code>,
<code>hoursToMilliseconds</code>, <code>hoursToMinutes</code>,
<code>hoursToSeconds</code>, <code>milliseconds</code>,
<code>minutesToMilliseconds</code>, <code>millisecondsToMinutes</code>,
<code>monthsToYears</code>, <code>millisecondsToHours</code>,
<code>millisecondsToSeconds</code>, <code>minutesToHours</code>,
<code>minutesToSeconds</code>, <code>yearsToQuarters</code>,
<code>yearsToMonths</code>, <code>yearsToDays</code>,
<code>weeksToDays</code>, <code>secondsToMinutes</code>,
<code>secondsToHours</code>, <code>quartersToYears</code>,
<code>quartersToMonths</code> and <code>monthsToQuarters</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/date-fns/date-fns/pull/3269">Fixed the
Czech locale's <code>formatDistance</code> to include <code>1</code> in
<code>formatDistance</code>.</a></p>
</li>
<li>
<p>Fixed <code>differenceInSeconds</code> and other functions relying on
rounding options that can produce a negative 0.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/date-fns/date-fns/pull/3662">Added a
preprocessor to the locales API, enabling fixing a long-standing bug in
the French locale.</a> (<a
href="https://redirect.github.com/date-fns/date-fns/issues/1391">#1391</a>)</p>
</li>
<li>
<p>Added missing <code>yearsToDays</code> to the FP submodule.</p>
</li>
<li>
<p>Made functions using rounding methods always return <code>0</code>
instead of <code>-0</code>.</p>
</li>
</ul>
<h3>Added</h3>
<ul>
<li><a
href="https://redirect.github.com/date-fns/date-fns/pull/3653">Added
<code>format</code> alias <code>formatDate</code> with corresponding
<code>FormatDateOptions</code> interface</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/date-fns/date-fns/blob/main/CHANGELOG.md">date-fns's
changelog</a>.</em></p>
<blockquote>
<h2>v3.3.1 - 2024-01-22</h2>
<p>Kudos to <a
href="https://github.com/kossnocorp"><code>@​kossnocorp</code></a> and
<a href="https://github.com/fturmel"><code>@​fturmel</code></a> for
working on the release.</p>
<h3>Fixed</h3>
<ul>
<li>
<p>Fixed DST issue in <code>getOverlappingDaysInIntervals</code>,
resulting in an inconsistent number of days returned for intervals
starting and ending in different DST periods.</p>
</li>
<li>
<p>Fixed functions incorrectly using <code>trunc</code> instead of
<code>round</code>. The bug was introduced in v3.3.0. The affected
functions: <code>differenceInCalendarDays</code>,
<code>differenceInCalendarISOWeeks</code>,
<code>differenceInCalendarWeeks</code>, <code>getISOWeek</code>,
<code>getWeek</code>, and <code>getISOWeeksInYear</code>.</p>
</li>
</ul>
<h2>v3.3.0 - 2024-01-20</h2>
<p>On this release worked <a
href="https://github.com/kossnocorp"><code>@​kossnocorp</code></a>, <a
href="https://github.com/TheKvikk"><code>@​TheKvikk</code></a>, <a
href="https://github.com/fturmel"><code>@​fturmel</code></a> and <a
href="https://github.com/ckcherry23"><code>@​ckcherry23</code></a>.</p>
<h3>Fixed</h3>
<ul>
<li>
<p>Fixed the bug in <code>getOverlappingDaysInIntervals</code> caused by
incorrect sorting of interval components that led to 0 for timestamps of
different lengths.</p>
</li>
<li>
<p>Fixed bugs when working with negative numbers caused by using
<code>Math.floor</code> (<code>-1.1</code> → <code>-2</code>) instead of
<code>Math.trunc</code> (<code>-1.1</code> → <code>-1</code>). Most of
the conversion functions (i.e., <code>hoursToMinutes</code>) were
affected when passing some negative fractional input. Also, some other
functions that could be possibly affected by unfortunate timezone/date
combinations were fixed.</p>
<p>The functions that were affected: <code>format</code>,
<code>parse</code>, <code>getUnixTime</code>, <code>daysToWeeks</code>,
<code>hoursToMilliseconds</code>, <code>hoursToMinutes</code>,
<code>hoursToSeconds</code>, <code>milliseconds</code>,
<code>minutesToMilliseconds</code>, <code>millisecondsToMinutes</code>,
<code>monthsToYears</code>, <code>millisecondsToHours</code>,
<code>millisecondsToSeconds</code>, <code>minutesToHours</code>,
<code>minutesToSeconds</code>, <code>yearsToQuarters</code>,
<code>yearsToMonths</code>, <code>yearsToDays</code>,
<code>weeksToDays</code>, <code>secondsToMinutes</code>,
<code>secondsToHours</code>, <code>quartersToYears</code>,
<code>quartersToMonths</code> and <code>monthsToQuarters</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/date-fns/date-fns/pull/3269">Fixed the
Czech locale's <code>formatDistance</code> to include <code>1</code> in
<code>formatDistance</code>.</a></p>
</li>
<li>
<p>Fixed <code>differenceInSeconds</code> and other functions relying on
rounding options that can produce a negative 0.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/date-fns/date-fns/pull/3662">Added a
preprocessor to the locales API, enabling fixing a long-standing bug in
the French locale.</a> (<a
href="https://redirect.github.com/date-fns/date-fns/issues/1391">#1391</a>)</p>
</li>
<li>
<p>Added missing <code>yearsToDays</code> to the FP submodule.</p>
</li>
<li>
<p>Made functions using rounding methods always return <code>0</code>
instead of <code>-0</code>.</p>
</li>
</ul>
<h3>Added</h3>
<ul>
<li><a
href="https://redirect.github.com/date-fns/date-fns/pull/3653">Added
<code>format</code> alias <code>formatDate</code> with corresponding
<code>FormatDateOptions</code> interface</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="35c1858780"><code>35c1858</code></a>
Upgrade Vitest</li>
<li><a
href="aa264e394b"><code>aa264e3</code></a>
Fix DST issue in getOverlappingDaysInIntervals</li>
<li><a
href="a960fc2100"><code>a960fc2</code></a>
Enable extended timezone tests on main</li>
<li><a
href="29394724f7"><code>2939472</code></a>
Fix incorrect rounding introduced in v3.3.0</li>
<li><a
href="ff60d48298"><code>ff60d48</code></a>
Fix browser tests (<a
href="https://redirect.github.com/date-fns/date-fns/issues/3677">#3677</a>)</li>
<li><a
href="659ad02d1c"><code>659ad02</code></a>
Update v3.3.0 changelog</li>
<li><a
href="3e4af151a9"><code>3e4af15</code></a>
What's wrong with you, Lodash?</li>
<li><a
href="37079068ce"><code>3707906</code></a>
Prepare v3.3.0</li>
<li><a
href="fadd58b132"><code>fadd58b</code></a>
Add missing <code>yearsToDays</code> to FP</li>
<li><a
href="ad2c654a6a"><code>ad2c654</code></a>
Fix bug in getOverlappingDaysInIntervals</li>
<li>Additional commits viewable in <a
href="https://github.com/date-fns/date-fns/compare/v3.2.0...v3.3.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=date-fns&package-manager=npm_and_yarn&previous-version=3.2.0&new-version=3.3.1)](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 show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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>
2024-02-03 14:42:41 +01:00
2024-02-03 14:37:44 +01:00
2024-02-03 14:18:57 +01:00
2023-09-12 21:37:48 +02:00
2023-11-27 20:38:30 +01:00
2023-12-13 12:44:04 +01:00

Favicon of Bracket

Bracket

codecov backend frontend last
commit release


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.

It has the following features:

  • Supports single elimination, round-robin and swiss formats.
  • Build your tournament structure with multiple stages that can have multiple groups/brackets in them.
  • Drag-and-drop matches to different courts or reschedule them to another start time.
  • Various dashboard pages are available that can be presented to the public, customized with a logo.
  • Create/update teams, and add players to teams.
  • Create multiple clubs, with multiple tournaments per club.
  • Swiss tournaments can be handled dynamically, with automatic scheduling of matches.

Preview

Quickstart

To quickly run bracket to see how it works, clone it and run docker-compose up:

git clone git@github.com:evroon/bracket.git
cd bracket
sudo docker-compose up -d

This will start the backend and frontend of Bracket, as well as a postgres instance. You should now be able to view bracket at http://localhost:3000. You can log in with username test@example.org and password aeGhoe1ahng2Aezai0Dei6Aih6dieHoo.

To insert dummy rows into the database, run:

sudo docker exec bracket-backend pipenv run ./cli.py create-dev-db

Setup

Database

First create a bracket cluster:

sudo pg_createcluster -u postgres -p 5532 16 bracket
pg_ctlcluster 16 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 tests
  • bracket_prod: for a production database

The database URL can be specified per environment in the .env files (see config).

Read the full documentation about setting up Bracket in the docs.

Config

Copy ci.env to prod.env and fill in the values:

  • PG_DSN: The URL of the PostgreSQL database
  • JWT_SECRET: Create a random secret using openssl rand -hex 32
  • CORS_ORIGINS and CORS_ORIGIN_REGEX: Specify allowed frontend domain names for CORS (see the FastAPI docs)
  • ADMIN_EMAIL and ADMIN_PASSWORD: The credentials of the admin user, which is created when initializing the database

Read more about configuration in the docs.

Running the frontend and backend for development

The following starts the frontend and backend for local development:

Frontend

cd frontend
yarn run dev

Backend

cd backend
pipenv install -d
pipenv shell
./run.sh

License

Bracket is licensed under AGPL-v3.0 See LICENSE

Description
No description provided
Readme AGPL-3.0 37 MiB
Languages
TypeScript 51.1%
Python 47.6%
CSS 0.8%
Dockerfile 0.2%