feat: Add vercel.json
This commit is contained in:
@ -18,7 +18,7 @@ import {
|
|||||||
StationListPage,
|
StationListPage,
|
||||||
// VehicleListPage,
|
// VehicleListPage,
|
||||||
ArticleListPage,
|
ArticleListPage,
|
||||||
CityPreviewPage,
|
|
||||||
// CountryPreviewPage,
|
// CountryPreviewPage,
|
||||||
// VehiclePreviewPage,
|
// VehiclePreviewPage,
|
||||||
// CarrierPreviewPage,
|
// CarrierPreviewPage,
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
InputLabel,
|
InputLabel,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import { observer } from "mobx-react-lite";
|
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 { Loader2 } from "lucide-react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { toast } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
|
@ -2,7 +2,7 @@ import { DataGrid, GridColDef, GridRenderCellParams } from "@mui/x-data-grid";
|
|||||||
import { languageStore, cityStore } from "@shared";
|
import { languageStore, cityStore } from "@shared";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { observer } from "mobx-react-lite";
|
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 { useNavigate } from "react-router-dom";
|
||||||
import { CreateButton, DeleteModal, LanguageSwitcher } from "@widgets";
|
import { CreateButton, DeleteModal, LanguageSwitcher } from "@widgets";
|
||||||
import { toast } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
|
@ -128,6 +128,10 @@ export const LinkedItemsContents = <
|
|||||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||||
const [error, setError] = useState<string | null>(null);
|
const [error, setError] = useState<string | null>(null);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.log(error);
|
||||||
|
}, [error]);
|
||||||
|
|
||||||
const parentResource = "route";
|
const parentResource = "route";
|
||||||
const childResource = "station";
|
const childResource = "station";
|
||||||
|
|
||||||
@ -219,7 +223,7 @@ export const LinkedItemsContents = <
|
|||||||
|
|
||||||
authInstance
|
authInstance
|
||||||
.post(`/${parentResource}/${parentId}/${childResource}`, requestData)
|
.post(`/${parentResource}/${parentId}/${childResource}`, requestData)
|
||||||
.then((response) => {
|
.then(() => {
|
||||||
const newItem = allItems.find((item) => item.id === selectedItemId);
|
const newItem = allItems.find((item) => item.id === selectedItemId);
|
||||||
if (newItem) {
|
if (newItem) {
|
||||||
const updatedList = insertAtPosition(
|
const updatedList = insertAtPosition(
|
||||||
|
@ -2,7 +2,7 @@ import { Button, Stack, TextField, Typography } from "@mui/material";
|
|||||||
import { useMapData } from "./MapDataContext";
|
import { useMapData } from "./MapDataContext";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useTransform } from "./TransformContext";
|
import { useTransform } from "./TransformContext";
|
||||||
import { coordinatesToLocal, localToCoordinates } from "./utils";
|
import { coordinatesToLocal } from "./utils";
|
||||||
|
|
||||||
export function RightSidebar() {
|
export function RightSidebar() {
|
||||||
const {
|
const {
|
||||||
@ -15,9 +15,9 @@ export function RightSidebar() {
|
|||||||
} = useMapData();
|
} = useMapData();
|
||||||
const {
|
const {
|
||||||
rotation,
|
rotation,
|
||||||
position,
|
// position,
|
||||||
screenToLocal,
|
// screenToLocal,
|
||||||
screenCenter,
|
// screenCenter,
|
||||||
rotateToAngle,
|
rotateToAngle,
|
||||||
setTransform,
|
setTransform,
|
||||||
} = useTransform();
|
} = useTransform();
|
||||||
|
File diff suppressed because one or more lines are too long
3
vercel.json
Normal file
3
vercel.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
|
||||||
|
}
|
Reference in New Issue
Block a user