feat: Add vercel.json

This commit is contained in:
2025-06-16 12:37:25 +03:00
parent d415441af8
commit 78800ee2ae
7 changed files with 16 additions and 9 deletions

View File

@ -18,7 +18,7 @@ import {
StationListPage,
// VehicleListPage,
ArticleListPage,
CityPreviewPage,
// CountryPreviewPage,
// VehiclePreviewPage,
// CarrierPreviewPage,

View File

@ -8,7 +8,7 @@ import {
InputLabel,
} from "@mui/material";
import { observer } from "mobx-react-lite";
import { ArrowLeft, Save, Minus } from "lucide-react";
import { ArrowLeft, Save } from "lucide-react";
import { Loader2 } from "lucide-react";
import { useNavigate } from "react-router-dom";
import { toast } from "react-toastify";

View File

@ -2,7 +2,7 @@ import { DataGrid, GridColDef, GridRenderCellParams } from "@mui/x-data-grid";
import { languageStore, cityStore } from "@shared";
import { useEffect, useState } from "react";
import { observer } from "mobx-react-lite";
import { Eye, Pencil, Trash2, Minus } from "lucide-react";
import { Pencil, Trash2, Minus } from "lucide-react";
import { useNavigate } from "react-router-dom";
import { CreateButton, DeleteModal, LanguageSwitcher } from "@widgets";
import { toast } from "react-toastify";

View File

@ -128,6 +128,10 @@ export const LinkedItemsContents = <
const [isLoading, setIsLoading] = useState<boolean>(true);
const [error, setError] = useState<string | null>(null);
useEffect(() => {
console.log(error);
}, [error]);
const parentResource = "route";
const childResource = "station";
@ -219,7 +223,7 @@ export const LinkedItemsContents = <
authInstance
.post(`/${parentResource}/${parentId}/${childResource}`, requestData)
.then((response) => {
.then(() => {
const newItem = allItems.find((item) => item.id === selectedItemId);
if (newItem) {
const updatedList = insertAtPosition(

View File

@ -2,7 +2,7 @@ import { Button, Stack, TextField, Typography } from "@mui/material";
import { useMapData } from "./MapDataContext";
import { useEffect, useState } from "react";
import { useTransform } from "./TransformContext";
import { coordinatesToLocal, localToCoordinates } from "./utils";
import { coordinatesToLocal } from "./utils";
export function RightSidebar() {
const {
@ -15,9 +15,9 @@ export function RightSidebar() {
} = useMapData();
const {
rotation,
position,
screenToLocal,
screenCenter,
// position,
// screenToLocal,
// screenCenter,
rotateToAngle,
setTransform,
} = useTransform();

File diff suppressed because one or more lines are too long

3
vercel.json Normal file
View File

@ -0,0 +1,3 @@
{
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}