diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 2efa01f..da599f0 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -21,5 +21,61 @@
"edit": "Редактировать страну",
"show": "Показать страну"
}
+ },
+ "city": {
+ "titles": {
+ "create": "Создать город",
+ "edit": "Редактировать город",
+ "show": "Показать город"
+ }
+ },
+ "carrier": {
+ "titles": {
+ "create": "Создать перевозчика",
+ "edit": "Редактировать перевозчика",
+ "show": "Показать перевозчика"
+ }
+ },
+ "media": {
+ "titles": {
+ "create": "Создать медиа",
+ "edit": "Редактировать медиа",
+ "show": "Показать медиа"
+ }
+ },
+ "article": {
+ "titles": {
+ "create": "Создать статью",
+ "edit": "Редактировать статью",
+ "show": "Показать статью"
+ }
+ },
+ "sight": {
+ "titles": {
+ "create": "Создать вид",
+ "edit": "Редактировать вид",
+ "show": "Показать вид"
+ }
+ },
+ "station": {
+ "titles": {
+ "create": "Создать станцию",
+ "edit": "Редактировать станцию",
+ "show": "Показать станцию"
+ }
+ },
+ "vehicle": {
+ "titles": {
+ "create": "Создать транспорт",
+ "edit": "Редактировать транспорт",
+ "show": "Показать транспорт"
+ }
+ },
+ "route": {
+ "titles": {
+ "create": "Создать маршрут",
+ "edit": "Редактировать маршрут",
+ "show": "Показать маршрут"
+ }
}
}
diff --git a/src/pages/article/create.tsx b/src/pages/article/create.tsx
index f6c65c9..2afca28 100644
--- a/src/pages/article/create.tsx
+++ b/src/pages/article/create.tsx
@@ -19,7 +19,7 @@ export const ArticleCreate = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Heading'}
+ label={'Заголовок'}
name="heading"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Body'}
+ label={'Контент'}
name="body"
/>
diff --git a/src/pages/article/edit.tsx b/src/pages/article/edit.tsx
index 96f3ebb..7ca0d05 100644
--- a/src/pages/article/edit.tsx
+++ b/src/pages/article/edit.tsx
@@ -14,7 +14,7 @@ export const ArticleEdit = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Heading'}
+ label={'Заголовок'}
name="heading"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Body'}
+ label={'Контент'}
name="body"
/>
diff --git a/src/pages/article/list.tsx b/src/pages/article/list.tsx
index 075defb..c2ffd60 100644
--- a/src/pages/article/list.tsx
+++ b/src/pages/article/list.tsx
@@ -20,7 +20,7 @@ export const ArticleList = () => {
},
{
field: 'heading',
- headerName: 'Heading',
+ headerName: 'Заголовок',
type: 'string',
minWidth: 300,
display: 'flex',
@@ -29,7 +29,7 @@ export const ArticleList = () => {
},
{
field: 'body',
- headerName: 'Body',
+ headerName: 'Контент',
type: 'string',
display: 'flex',
align: 'left',
@@ -38,7 +38,7 @@ export const ArticleList = () => {
},
{
field: 'actions',
- headerName: 'Actions',
+ headerName: 'Действия',
align: 'right',
headerAlign: 'center',
minWidth: 120,
diff --git a/src/pages/article/show.tsx b/src/pages/article/show.tsx
index 73f5dd3..0737c67 100644
--- a/src/pages/article/show.tsx
+++ b/src/pages/article/show.tsx
@@ -97,15 +97,15 @@ export const ArticleShow = () => {
}
const fields = [
- {label: 'ID', data: 'id'},
- {label: 'Heading', data: 'heading'},
- {label: 'Body', data: 'body'},
+ // {label: 'ID', data: 'id'},
+ {label: 'Заголовок', data: 'heading'},
+ {label: 'Контент', data: 'body'},
]
const mediaFields = [
- {label: 'ID', data: 'id' as keyof MediaItem},
- {label: 'Filename', data: 'filename' as keyof MediaItem},
- {label: 'Media Type', data: 'media_type' as keyof MediaItem},
+ // {label: 'ID', data: 'id' as keyof MediaItem},
+ {label: 'Имя', data: 'filename' as keyof MediaItem},
+ {label: 'Тип', data: 'media_type' as keyof MediaItem},
]
return (
@@ -122,7 +122,7 @@ export const ArticleShow = () => {
- Media
+ Медиа
@@ -145,25 +145,25 @@ export const ArticleShow = () => {
))}
))
) : (
- No media found
+ Медиа не найдены
)}
- Link Media
+ Привязать медиа
- Media
-
- setMediaOrder(Number(e.target.value))} fullWidth InputLabelProps={{shrink: true}} />
+ setMediaOrder(Number(e.target.value))} fullWidth InputLabelProps={{shrink: true}} />
diff --git a/src/pages/carrier/create.tsx b/src/pages/carrier/create.tsx
index 0450601..5ff07d5 100644
--- a/src/pages/carrier/create.tsx
+++ b/src/pages/carrier/create.tsx
@@ -22,7 +22,7 @@ export const CarrierCreate = () => {
(
{
isOptionEqualToValue={(option, value) => {
return option.id === value?.id
}}
- renderInput={(params) => }
+ renderInput={(params) => }
/>
)}
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Full Name'}
+ label={'Полное имя'}
name="full_name"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Short Name'}
+ label={'Короткое имя'}
name="short_name"
/>
diff --git a/src/pages/carrier/edit.tsx b/src/pages/carrier/edit.tsx
index 08ebd41..850a7af 100644
--- a/src/pages/carrier/edit.tsx
+++ b/src/pages/carrier/edit.tsx
@@ -21,7 +21,7 @@ export const CarrierEdit = () => {
(
{
isOptionEqualToValue={(option, value) => {
return option.id === value?.id
}}
- renderInput={(params) => }
+ renderInput={(params) => }
/>
)}
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Full Name'}
+ label={'Полное имя'}
name="full_name"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Short Name'}
+ label={'Короткое имя'}
name="short_name"
/>
diff --git a/src/pages/carrier/list.tsx b/src/pages/carrier/list.tsx
index f84f534..73a2924 100644
--- a/src/pages/carrier/list.tsx
+++ b/src/pages/carrier/list.tsx
@@ -17,7 +17,7 @@ export const CarrierList = () => {
},
{
field: 'city_id',
- headerName: 'City ID',
+ headerName: 'ID Города',
type: 'number',
minWidth: 100,
align: 'left',
@@ -25,20 +25,20 @@ export const CarrierList = () => {
},
{
field: 'full_name',
- headerName: 'Full Name',
+ headerName: 'Полное имя',
type: 'string',
minWidth: 200,
},
{
field: 'short_name',
- headerName: 'Short Name',
+ headerName: 'Короткое имя',
type: 'string',
minWidth: 150,
flex: 1,
},
{
field: 'actions',
- headerName: 'Actions',
+ headerName: 'Действия',
align: 'right',
headerAlign: 'center',
minWidth: 120,
diff --git a/src/pages/carrier/show.tsx b/src/pages/carrier/show.tsx
index 1dd28c6..ef26e56 100644
--- a/src/pages/carrier/show.tsx
+++ b/src/pages/carrier/show.tsx
@@ -9,10 +9,10 @@ export const CarrierShow = () => {
const record = data?.data
const fields = [
- {label: 'ID', data: 'id'},
- {label: 'City ID', data: 'city_id'},
- {label: 'Full Name', data: 'full_name'},
- {label: 'Short Name', data: 'short_name'},
+ // {label: 'ID', data: 'id'},
+ {label: 'ID города', data: 'city_id'},
+ {label: 'Полное имя', data: 'full_name'},
+ {label: 'Короткое имя', data: 'short_name'},
]
return (
diff --git a/src/pages/city/create.tsx b/src/pages/city/create.tsx
index 3951293..09bdd63 100644
--- a/src/pages/city/create.tsx
+++ b/src/pages/city/create.tsx
@@ -22,7 +22,7 @@ export const CityCreate = () => {
(
{
isOptionEqualToValue={(option, value) => {
return option.id === value?.id
}}
- renderInput={(params) => }
+ renderInput={(params) => }
/>
)}
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Name'}
+ label={'Название'}
name="name"
/>
diff --git a/src/pages/city/edit.tsx b/src/pages/city/edit.tsx
index e03e34a..d9c7769 100644
--- a/src/pages/city/edit.tsx
+++ b/src/pages/city/edit.tsx
@@ -21,7 +21,7 @@ export const CityEdit = () => {
(
{
isOptionEqualToValue={(option, value) => {
return option.id === value?.id
}}
- renderInput={(params) => }
+ renderInput={(params) => }
/>
)}
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Name'}
+ label={'Название'}
name="name"
/>
diff --git a/src/pages/city/list.tsx b/src/pages/city/list.tsx
index 7c35c33..f8a9839 100644
--- a/src/pages/city/list.tsx
+++ b/src/pages/city/list.tsx
@@ -17,7 +17,7 @@ export const CityList = () => {
},
{
field: 'country_code',
- headerName: 'Country Code',
+ headerName: 'Код страны',
type: 'string',
minWidth: 150,
align: 'left',
@@ -25,14 +25,14 @@ export const CityList = () => {
},
{
field: 'name',
- headerName: 'City Name',
+ headerName: 'Название',
type: 'string',
minWidth: 150,
flex: 1,
},
{
field: 'actions',
- headerName: 'Actions',
+ headerName: 'Действия',
align: 'right',
headerAlign: 'center',
minWidth: 120,
diff --git a/src/pages/city/show.tsx b/src/pages/city/show.tsx
index d7501a8..17e4a96 100644
--- a/src/pages/city/show.tsx
+++ b/src/pages/city/show.tsx
@@ -9,9 +9,9 @@ export const CityShow = () => {
const record = data?.data
const fields = [
- {label: 'ID', data: 'id'},
- {label: 'City Name', data: 'name'},
- {label: 'Country Code', data: 'country_code'},
+ // {label: 'ID', data: 'id'},
+ {label: 'Название', data: 'name'},
+ {label: 'Код страны', data: 'country_code'},
]
return (
diff --git a/src/pages/media/create.tsx b/src/pages/media/create.tsx
index d7f3ac2..b4ac0bf 100644
--- a/src/pages/media/create.tsx
+++ b/src/pages/media/create.tsx
@@ -56,7 +56,7 @@ export const MediaCreate = () => {
@@ -76,7 +76,7 @@ export const MediaCreate = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label="File Name"
+ label="Название"
name="filename"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label="Media Type"
+ label="Тип"
name="media_type"
/>
diff --git a/src/pages/media/edit.tsx b/src/pages/media/edit.tsx
index 562e63c..9e96a01 100644
--- a/src/pages/media/edit.tsx
+++ b/src/pages/media/edit.tsx
@@ -44,7 +44,7 @@ export const MediaEdit = () => {
@@ -64,7 +64,7 @@ export const MediaEdit = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label="File Name"
+ label="Название"
name="filename"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label="Media Type"
+ label="Тип"
name="media_type"
/>
diff --git a/src/pages/media/list.tsx b/src/pages/media/list.tsx
index e68df8c..68ace07 100644
--- a/src/pages/media/list.tsx
+++ b/src/pages/media/list.tsx
@@ -9,7 +9,7 @@ export const MediaList = () => {
() => [
{
field: 'filename',
- headerName: 'File name',
+ headerName: 'Название',
type: 'string',
minWidth: 250,
display: 'flex',
@@ -18,7 +18,7 @@ export const MediaList = () => {
},
{
field: 'media_type',
- headerName: 'Media Type',
+ headerName: 'Тип',
type: 'number',
minWidth: 150,
display: 'flex',
@@ -36,7 +36,7 @@ export const MediaList = () => {
},
{
field: 'actions',
- headerName: 'Actions',
+ headerName: 'Действия',
align: 'right',
headerAlign: 'center',
minWidth: 130,
diff --git a/src/pages/media/show.tsx b/src/pages/media/show.tsx
index fdf8c09..21e01b5 100644
--- a/src/pages/media/show.tsx
+++ b/src/pages/media/show.tsx
@@ -8,31 +8,25 @@ export const MediaShow = () => {
const record = data?.data
+ const fields = [
+ {label: 'Название', data: 'filename'},
+ {label: 'Тип', data: 'media_type'},
+ {label: 'ID', data: 'id'},
+ ]
+
return (
{record &&
}
-
-
- {'File name'}
-
-
-
-
-
-
- {'Media Type'}
-
-
-
-
-
-
- {'ID'}
-
-
-
+ {fields.map(({label, data}) => (
+
+
+ {label}
+
+
+
+ ))}
)
diff --git a/src/pages/route/create.tsx b/src/pages/route/create.tsx
index 5c1b0a4..020fbbd 100644
--- a/src/pages/route/create.tsx
+++ b/src/pages/route/create.tsx
@@ -21,7 +21,7 @@ export const RouteCreate = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Carrier ID'}
+ label={'ID перевозчика'}
name="carrier_id"
/>
String(value),
})}
error={!!(errors as any)?.route_number}
@@ -44,14 +44,14 @@ export const RouteCreate = () => {
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Route Number'}
+ label={'Номер маршрута'}
name="route_number"
/>
field.onChange(e.target.checked)} />} label="Route Direction" />}
+ render={({field}: {field: any}) => field.onChange(e.target.checked)} />} label="Направление маршрута" />}
/>
diff --git a/src/pages/route/edit.tsx b/src/pages/route/edit.tsx
index c5f1a1c..26fbf53 100644
--- a/src/pages/route/edit.tsx
+++ b/src/pages/route/edit.tsx
@@ -16,7 +16,7 @@ export const RouteEdit = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Carrier ID'}
+ label={'ID перевозчика'}
name="carrier_id"
/>
String(value),
})}
error={!!(errors as any)?.route_number}
@@ -39,14 +39,14 @@ export const RouteEdit = () => {
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Route Number'}
+ label={'Номер маршрута'}
name="route_number"
/>
field.onChange(e.target.checked)} />} label="Route Direction" />}
+ render={({field}: {field: any}) => field.onChange(e.target.checked)} />} label="Направление маршрута" />}
/>
diff --git a/src/pages/route/list.tsx b/src/pages/route/list.tsx
index 7cc3aa6..7ae11f6 100644
--- a/src/pages/route/list.tsx
+++ b/src/pages/route/list.tsx
@@ -20,25 +20,25 @@ export const RouteList = () => {
},
{
field: 'carrier_id',
- headerName: 'Carrier ID',
+ headerName: 'ID перевозчика',
type: 'number',
- minWidth: 70,
- display: 'flex',
- align: 'left',
- headerAlign: 'left',
- },
- {
- field: 'route_number',
- headerName: 'Route Number',
- type: 'string',
minWidth: 150,
display: 'flex',
align: 'left',
headerAlign: 'left',
},
+ {
+ field: 'route_number',
+ headerName: 'Номер маршрута',
+ type: 'string',
+ minWidth: 170,
+ display: 'flex',
+ align: 'left',
+ headerAlign: 'left',
+ },
{
field: 'route_direction',
- headerName: 'Route Direction',
+ headerName: 'Направление маршрута',
type: 'boolean',
display: 'flex',
align: 'left',
@@ -47,7 +47,7 @@ export const RouteList = () => {
},
{
field: 'actions',
- headerName: 'Actions',
+ headerName: 'Действия',
align: 'right',
headerAlign: 'center',
minWidth: 120,
diff --git a/src/pages/route/show.tsx b/src/pages/route/show.tsx
index e13a5b9..6ec307f 100644
--- a/src/pages/route/show.tsx
+++ b/src/pages/route/show.tsx
@@ -9,10 +9,10 @@ export const RouteShow = () => {
const record = data?.data
const fields = [
- {label: 'ID', data: 'id'},
- {label: 'Carrier ID', data: 'carrier_id'},
- {label: 'Route Number', data: 'route_number'},
- {label: 'Route Direction', data: 'route_direction'},
+ // {label: 'ID', data: 'id'},
+ {label: 'ID перевозчика', data: 'carrier_id'},
+ {label: 'Номер маршрута', data: 'route_number'},
+ {label: 'Направление маршрута', data: 'route_direction'},
]
return (
diff --git a/src/pages/sight/create.tsx b/src/pages/sight/create.tsx
index 967661f..b1bb90c 100644
--- a/src/pages/sight/create.tsx
+++ b/src/pages/sight/create.tsx
@@ -25,7 +25,7 @@ export const SightCreate = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Name'}
+ label={'Название'}
name="name"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Latitude'}
+ label={'Широта'}
name="latitude"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Longitude'}
+ label={'Долгота'}
name="longitude"
/>
(
{
isOptionEqualToValue={(option, value) => {
return option.id === value?.id
}}
- renderInput={(params) => }
+ renderInput={(params) => }
/>
)}
/>
diff --git a/src/pages/sight/edit.tsx b/src/pages/sight/edit.tsx
index 41fdd3c..0f618b2 100644
--- a/src/pages/sight/edit.tsx
+++ b/src/pages/sight/edit.tsx
@@ -20,7 +20,7 @@ export const SightEdit = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Name'}
+ label={'Название'}
name="name"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Latitude'}
+ label={'Широта'}
name="latitude"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Longitude'}
+ label={'Долгота'}
name="longitude"
/>
(
{
isOptionEqualToValue={(option, value) => {
return option.id === value?.id
}}
- renderInput={(params) => }
+ renderInput={(params) => }
/>
)}
/>
diff --git a/src/pages/sight/list.tsx b/src/pages/sight/list.tsx
index 19bd7ef..aac0f0a 100644
--- a/src/pages/sight/list.tsx
+++ b/src/pages/sight/list.tsx
@@ -20,16 +20,16 @@ export const SightList = () => {
},
{
field: 'name',
- headerName: 'Name',
+ headerName: 'Название',
type: 'string',
- minWidth: 200,
+ minWidth: 150,
display: 'flex',
align: 'left',
headerAlign: 'left',
},
{
field: 'latitude',
- headerName: 'Latitude',
+ headerName: 'Широта',
type: 'number',
minWidth: 150,
display: 'flex',
@@ -38,7 +38,7 @@ export const SightList = () => {
},
{
field: 'longitude',
- headerName: 'Longitude',
+ headerName: 'Долгота',
type: 'number',
minWidth: 150,
display: 'flex',
@@ -47,7 +47,7 @@ export const SightList = () => {
},
{
field: 'city_id',
- headerName: 'City ID',
+ headerName: 'ID города',
type: 'number',
minWidth: 70,
display: 'flex',
@@ -57,7 +57,7 @@ export const SightList = () => {
},
{
field: 'actions',
- headerName: 'Actions',
+ headerName: 'Действия',
align: 'right',
headerAlign: 'center',
minWidth: 120,
diff --git a/src/pages/sight/show.tsx b/src/pages/sight/show.tsx
index 9300fef..357c497 100644
--- a/src/pages/sight/show.tsx
+++ b/src/pages/sight/show.tsx
@@ -97,11 +97,11 @@ export const SightShow = () => {
}
const fields = [
- {label: 'ID', data: 'id'},
- {label: 'Name', data: 'name'},
- {label: 'Latitude', data: 'latitude'},
- {label: 'Longitude', data: 'longitude'},
- {label: 'City ID', data: 'city_id'},
+ // {label: 'ID', data: 'id'},
+ {label: 'Название', data: 'name'},
+ {label: 'Широта', data: 'latitude'},
+ {label: 'Долгота', data: 'longitude'},
+ {label: 'ID города', data: 'city_id'},
]
return (
@@ -118,46 +118,41 @@ export const SightShow = () => {
- Linked Articles
+ Привязанные статьи
{articlesLoading ? (
- Loading articles...
+ Загрузка статей...
) : linkedArticles.length > 0 ? (
linkedArticles.map((article) => (
-
-
- ID: {article.id}
-
-
- Heading: {article.heading}
-
-
- Body: {article.body}
+
+
+ {article.heading}
+ {article.body}
))
) : (
- No articles linked
+ Статьи не найдены
)}
- Link Article
+ Привязать статью
- Article
- setSelectedArticleId(Number(e.target.value))} label="Article" fullWidth>
+ Статья
+ setSelectedArticleId(Number(e.target.value))} label="Статья" fullWidth>
{availableArticles.map((article) => (
- setPageNum(Number(e.target.value))} fullWidth InputLabelProps={{shrink: true}} />
+ setPageNum(Number(e.target.value))} fullWidth InputLabelProps={{shrink: true}} />
diff --git a/src/pages/station/create.tsx b/src/pages/station/create.tsx
index 6a267c6..5ee0308 100644
--- a/src/pages/station/create.tsx
+++ b/src/pages/station/create.tsx
@@ -19,7 +19,7 @@ export const StationCreate = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Name'}
+ label={'Название'}
name="name"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Description'}
+ label={'Описание'}
name="description"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Latitude'}
+ label={'Широта'}
name="latitude"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Longitude'}
+ label={'Долгота'}
name="longitude"
/>
diff --git a/src/pages/station/edit.tsx b/src/pages/station/edit.tsx
index d405628..dfaa150 100644
--- a/src/pages/station/edit.tsx
+++ b/src/pages/station/edit.tsx
@@ -14,7 +14,7 @@ export const StationEdit = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Name'}
+ label={'Название'}
name="name"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="text"
- label={'Description'}
+ label={'Описание'}
name="description"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Latitude'}
+ label={'Широта'}
name="latitude"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Longitude'}
+ label={'Долгота'}
name="longitude"
/>
diff --git a/src/pages/station/list.tsx b/src/pages/station/list.tsx
index f64995b..a2578c2 100644
--- a/src/pages/station/list.tsx
+++ b/src/pages/station/list.tsx
@@ -20,7 +20,7 @@ export const StationList = () => {
},
{
field: 'name',
- headerName: 'Name',
+ headerName: 'Название',
type: 'string',
minWidth: 300,
display: 'flex',
@@ -29,7 +29,7 @@ export const StationList = () => {
},
{
field: 'latitude',
- headerName: 'Latitude',
+ headerName: 'Широта',
type: 'number',
minWidth: 150,
display: 'flex',
@@ -38,7 +38,7 @@ export const StationList = () => {
},
{
field: 'longitude',
- headerName: 'Longitude',
+ headerName: 'Долгота',
type: 'number',
minWidth: 150,
display: 'flex',
@@ -47,7 +47,7 @@ export const StationList = () => {
},
{
field: 'description',
- headerName: 'Description',
+ headerName: 'Описание',
type: 'string',
display: 'flex',
align: 'left',
@@ -56,7 +56,7 @@ export const StationList = () => {
},
{
field: 'actions',
- headerName: 'Actions',
+ headerName: 'Действия',
align: 'right',
headerAlign: 'center',
minWidth: 120,
diff --git a/src/pages/station/show.tsx b/src/pages/station/show.tsx
index 0fa2a55..591d60c 100644
--- a/src/pages/station/show.tsx
+++ b/src/pages/station/show.tsx
@@ -96,19 +96,19 @@ export const StationShow = () => {
}
const fields = [
- {label: 'ID', data: 'id'},
- {label: 'Name', data: 'name'},
- {label: 'Latitude', data: 'latitude'},
- {label: 'Longitude', data: 'longitude'},
- {label: 'Description', data: 'description'},
+ // {label: 'ID', data: 'id'},
+ {label: 'Название', data: 'name'},
+ {label: 'Широта', data: 'latitude'},
+ {label: 'Долгота', data: 'longitude'},
+ {label: 'Описание', data: 'description'},
]
const sightFields = [
- {label: 'ID', data: 'id' as keyof SightItem},
- {label: 'Name', data: 'name' as keyof SightItem},
- {label: 'Latitude', data: 'latitude' as keyof SightItem},
- {label: 'Longitude', data: 'longitude' as keyof SightItem},
- {label: 'City ID', data: 'city_id' as keyof SightItem},
+ // {label: 'ID', data: 'id' as keyof SightItem},
+ {label: 'Название', data: 'name' as keyof SightItem},
+ {label: 'Широта', data: 'latitude' as keyof SightItem},
+ {label: 'Долгота', data: 'longitude' as keyof SightItem},
+ {label: 'ID города', data: 'city_id' as keyof SightItem},
]
return (
@@ -125,12 +125,12 @@ export const StationShow = () => {
- Linked Sights
+ Привязанные виды
{sightsLoading ? (
- Loading sights...
+ Загрузка видов...
) : linkedSights.length > 0 ? (
linkedSights.map((sight, index) => (
@@ -142,24 +142,24 @@ export const StationShow = () => {
))}
))
) : (
- No sights found
+ Виды не найдены
)}
- Link Sight
+ Привязать вид
- Sight
- setSelectedSightId(Number(e.target.value))} label="Sight" fullWidth>
+ Вид
+ setSelectedSightId(Number(e.target.value))} label="Вид" fullWidth>
{availableSights.map((sight) => (
diff --git a/src/pages/vehicle/create.tsx b/src/pages/vehicle/create.tsx
index c2d23d8..b42c6fd 100644
--- a/src/pages/vehicle/create.tsx
+++ b/src/pages/vehicle/create.tsx
@@ -21,7 +21,7 @@ export const VehicleCreate = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Tail Number'}
+ label={'Номер рейса'}
name="tail_number"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Type'}
+ label={'Тип'}
name="type"
/>
(
{
isOptionEqualToValue={(option, value) => {
return option.id === value?.id
}}
- renderInput={(params) => }
+ renderInput={(params) => }
/>
)}
/>
diff --git a/src/pages/vehicle/edit.tsx b/src/pages/vehicle/edit.tsx
index 01e866f..c001d56 100644
--- a/src/pages/vehicle/edit.tsx
+++ b/src/pages/vehicle/edit.tsx
@@ -20,7 +20,7 @@ export const VehicleEdit = () => {
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Tail Number'}
+ label={'Номер рейса'}
name="tail_number"
/>
{
fullWidth
InputLabelProps={{shrink: true}}
type="number"
- label={'Type'}
+ label={'Тип'}
name="type"
/>
(
{
isOptionEqualToValue={(option, value) => {
return option.id === value?.id
}}
- renderInput={(params) => }
+ renderInput={(params) => }
/>
)}
/>
diff --git a/src/pages/vehicle/list.tsx b/src/pages/vehicle/list.tsx
index 0b7f536..1c3219c 100644
--- a/src/pages/vehicle/list.tsx
+++ b/src/pages/vehicle/list.tsx
@@ -18,7 +18,7 @@ export const VehicleList = () => {
},
{
field: 'tail_number',
- headerName: 'Tail Number',
+ headerName: 'Номер рейса',
type: 'number',
minWidth: 150,
display: 'flex',
@@ -27,7 +27,7 @@ export const VehicleList = () => {
},
{
field: 'type',
- headerName: 'Type',
+ headerName: 'Тип',
type: 'number',
minWidth: 150,
display: 'flex',
@@ -36,7 +36,7 @@ export const VehicleList = () => {
},
{
field: 'city_id',
- headerName: 'City ID',
+ headerName: 'ID города',
type: 'number',
minWidth: 70,
display: 'flex',
@@ -46,7 +46,7 @@ export const VehicleList = () => {
},
{
field: 'actions',
- headerName: 'Actions',
+ headerName: 'Действия',
align: 'right',
headerAlign: 'center',
minWidth: 120,
diff --git a/src/pages/vehicle/show.tsx b/src/pages/vehicle/show.tsx
index 864ce9a..6d05a48 100644
--- a/src/pages/vehicle/show.tsx
+++ b/src/pages/vehicle/show.tsx
@@ -9,10 +9,10 @@ export const VehicleShow = () => {
const record = data?.data
const fields = [
- {label: 'ID', data: 'id'},
- {label: 'Tail Number', data: 'tail_number'},
- {label: 'Type', data: 'type'},
- {label: 'City_id', data: 'city_id'},
+ // {label: 'ID', data: 'id'},
+ {label: 'Номер рейса', data: 'tail_number'},
+ {label: 'Тип', data: 'type'},
+ {label: 'ID города', data: 'city_id'},
]
return (