Compare commits
2 Commits
104ec70695
...
70a4ece5bc
Author | SHA1 | Date | |
---|---|---|---|
70a4ece5bc | |||
406ea9ffdd |
6
main.py
6
main.py
@ -18,10 +18,8 @@ from security import (
|
|||||||
app = FastAPI(title="cutt")
|
app = FastAPI(title="cutt")
|
||||||
api_router = APIRouter(prefix="/api")
|
api_router = APIRouter(prefix="/api")
|
||||||
origins = [
|
origins = [
|
||||||
"*",
|
"https://cutt.0124816.xyz",
|
||||||
"http://localhost",
|
"http://localhost:5173",
|
||||||
"http://localhost:3000",
|
|
||||||
"http://localhost:8000",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
|
@ -64,13 +64,13 @@ const RaceChart: FC<RaceChartProps> = ({ players, std }) => {
|
|||||||
paintOrder={"stroke fill"}
|
paintOrder={"stroke fill"}
|
||||||
fontFamily="monospace"
|
fontFamily="monospace"
|
||||||
>
|
>
|
||||||
{player.name}
|
{index + 1}. {player.name}
|
||||||
</text>
|
</text>
|
||||||
<text
|
<text
|
||||||
key={index}
|
key={index}
|
||||||
x={
|
x={
|
||||||
4 +
|
4 +
|
||||||
Math.max(...players.map((p, _) => p.name.length)) *
|
(4 + Math.max(...players.map((p, _) => p.name.length))) *
|
||||||
(barHeight - 1.5 * gap) *
|
(barHeight - 1.5 * gap) *
|
||||||
0.66
|
0.66
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user