mirror of
https://github.com/evroon/bracket.git
synced 2026-03-03 22:58:03 -05:00
98eb21cf96b65003addf6ca8f2f310be08a9647a
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p> <blockquote> <h2>3.0.1</h2> <p>🔗 <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md#301">Changelog</a></p> <h2>3.0.0</h2> <p><a href="https://github.com/prettier/prettier/compare/3.0.0-alpha.6...3.0.0">diff</a></p> <p>🔗 <a href="https://prettier.io/blog/2023/07/05/3.0.0.html">Release note</a></p> <h2>3.0.0-alpha.6</h2> <h2>What's Changed</h2> <ul> <li>Update <code>.d.ts</code> files of plugins to use <code>export default ...</code> by <a href="https://github.com/fisker"><code>@fisker</code></a> in <a href="https://redirect.github.com/prettier/prettier/pull/14435">prettier/prettier#14435</a></li> </ul> <p>Other changes since v2, see <a href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code> release notes</a></p> <p><strong>Full Changelog</strong>: <a href="https://github.com/prettier/prettier/compare/3.0.0-alpha.5...3.0.0-alpha.6">https://github.com/prettier/prettier/compare/3.0.0-alpha.5...3.0.0-alpha.6</a></p> <h2>3.0.0-alpha.5</h2> <h2>What's Changed</h2> <ul> <li>Add <code>.d.ts</code> files by <a href="https://github.com/sosukesuzuki"><code>@sosukesuzuki</code></a> in <a href="https://redirect.github.com/prettier/prettier/pull/14212">prettier/prettier#14212</a></li> <li>Support TypeScript 5 via <code>babel-ts</code> parser by <a href="https://github.com/fisker"><code>@fisker</code></a> in <a href="https://redirect.github.com/prettier/prettier/pull/14391">prettier/prettier#14391</a></li> </ul> <p>Other changes since v2, see <a href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code> release notes</a></p> <p><strong>Full Changelog</strong>: <a href="https://github.com/prettier/prettier/compare/3.0.0-alpha.4...3.0.0-alpha.5">https://github.com/prettier/prettier/compare/3.0.0-alpha.4...3.0.0-alpha.5</a></p> <h2>3.0.0-alpha.4</h2> <h2>What's Changed</h2> <ul> <li>Remove support for Flow comment types by <a href="https://github.com/thorn0"><code>@thorn0</code></a> in <a href="https://redirect.github.com/prettier/prettier/pull/13687">prettier/prettier#13687</a></li> <li>Make <code>resolveParser</code> work like v2 by <a href="https://github.com/fisker"><code>@fisker</code></a> in <a href="https://redirect.github.com/prettier/prettier/pull/13732">prettier/prettier#13732</a></li> <li>Add <code>__debug</code> apis to cjs version by <a href="https://github.com/fisker"><code>@fisker</code></a> in <a href="https://redirect.github.com/prettier/prettier/pull/13731">prettier/prettier#13731</a></li> </ul> <p>Other changes since v2, see <a href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code> release notes</a></p> <p><strong>Full Changelog</strong>: <a href="https://github.com/prettier/prettier/compare/3.0.0-alpha.3...3.0.0-alpha.4">https://github.com/prettier/prettier/compare/3.0.0-alpha.3...3.0.0-alpha.4</a></p> <h2>3.0.0-alpha.3</h2> <ul> <li>Fix <code>exports</code> field in <code>package.json</code> file</li> </ul> <p>Other changes since v2, see <a href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code> release notes</a></p> <p><strong>Full Changelog</strong>: <a href="https://github.com/prettier/prettier/compare/3.0.0-alpha.2...3.0.0-alpha.3">https://github.com/prettier/prettier/compare/3.0.0-alpha.2...3.0.0-alpha.3</a></p> <h2>3.0.0-alpha.2</h2> <ul> <li>Fix bundled <code>index.cjs</code> file</li> </ul> <p>Other changes since v2, see <a href="https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1"><code>3.0.0-alpha.1</code> release notes</a></p> <p><strong>Full Changelog</strong>: <a href="https://github.com/prettier/prettier/compare/3.0.0-alpha.1...3.0.0-alpha.2">https://github.com/prettier/prettier/compare/3.0.0-alpha.1...3.0.0-alpha.2</a></p> <h2>3.0.0-alpha.1</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p> <blockquote> <h1>3.0.1</h1> <p><a href="https://github.com/prettier/prettier/compare/3.0.0...3.0.1">diff</a></p> <h4>Fix cursor positioning for a special case (<a href="https://redirect.github.com/prettier/prettier/pull/14812">#14812</a> by <a href="https://github.com/fisker"><code>@fisker</code></a>)</h4> <!-- raw HTML omitted --> <pre lang="js"><code>// <|> is the cursor position <p>/* Input */ // All messages are represented in JSON. // So, the prettier.py controls a subprocess which spawns "node {this_file}". import {<|> } from "fs"</p> <p>/* Prettier 3.0.0 */ // All messages are represented in JSON. // So, the prettier.py <|>controls a subprocess which spawns "node {this_file}". import {} from "fs"</p> <p>/* Prettier 3.0.1 */ // All messages are represented in JSON. // So, the prettier.py controls a subprocess which spawns "node {this_file}". import {<|>} from "fs" </code></pre></p> <h4>Fix plugins/estree.d.ts to make it a module (<a href="https://redirect.github.com/prettier/prettier/pull/15018">#15018</a> by <a href="https://github.com/kingyue737"><code>@kingyue737</code></a>)</h4> <p>Add <code>export {}</code> in <code>plugins/estree.d.ts</code> to fix the "File is not a module" error</p> <h4>Add parenthesis around leading multiline comment in return statement (<a href="https://redirect.github.com/prettier/prettier/pull/15037">#15037</a> by <a href="https://github.com/auvred"><code>@auvred</code></a>)</h4> <!-- raw HTML omitted --> <pre lang="jsx"><code>// Input function fn() { return ( /** * @type {...} */ expresssion ) } <p>// Prettier 3.0.0 function fn() { return /**</p> <ul> <li><a href="https://github.com/type"><code>@type</code></a> {...} */ expresssion; }</li> </ul> <p></tr></table> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="afee0db664"><code>afee0db</code></a> Release 3.0.1</li> <li><a href="c3d53dce7e"><code>c3d53dc</code></a> Fix <code>runYarn</code> function in release script (<a href="https://redirect.github.com/prettier/prettier/issues/15200">#15200</a>)</li> <li><a href="825425c57f"><code>825425c</code></a> chore(deps): update dependency eslint-plugin-import to v2.28.0 (<a href="https://redirect.github.com/prettier/prettier/issues/15184">#15184</a>)</li> <li><a href="448217df22"><code>448217d</code></a> chore(deps): update dependency eslint to v8.46.0 (<a href="https://redirect.github.com/prettier/prettier/issues/15182">#15182</a>)</li> <li><a href="f35e9e6bab"><code>f35e9e6</code></a> chore(deps): update dependency <code>@angular/compiler</code> to v16.1.7 (<a href="https://redirect.github.com/prettier/prettier/issues/15173">#15173</a>)</li> <li><a href="d14e893147"><code>d14e893</code></a> chore(deps): update dependency c8 to v8.0.1 (<a href="https://redirect.github.com/prettier/prettier/issues/15174">#15174</a>)</li> <li><a href="c44d4b761e"><code>c44d4b7</code></a> chore(deps): update dependency eslint-plugin-react to v7.33.1 (<a href="https://redirect.github.com/prettier/prettier/issues/15176">#15176</a>)</li> <li><a href="57e8c87506"><code>57e8c87</code></a> chore(deps): update dependency esbuild to v0.18.17 (<a href="https://redirect.github.com/prettier/prettier/issues/15175">#15175</a>)</li> <li><a href="36c3738aa9"><code>36c3738</code></a> chore(deps): update dependency eslint-plugin-unicorn to v48.0.1 (<a href="https://redirect.github.com/prettier/prettier/issues/15177">#15177</a>)</li> <li><a href="2d274dfcdd"><code>2d274df</code></a> chore(deps): update dependency flow-parser to v0.213.1 (<a href="https://redirect.github.com/prettier/prettier/issues/15178">#15178</a>)</li> <li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/2.8.8...3.0.1">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
Warning
This project is still under construction and considered beta software. Release v1.0.0 will be the first out-of-beta release.
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%