translation 2

english
gman 1 month ago
parent 9765f215db
commit b19f4ba5d9

File diff suppressed because one or more lines are too long

2
dist/index.html vendored

@ -5,7 +5,7 @@
<link href="/vite.svg" rel="icon"/> <link href="/vite.svg" rel="icon"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DZKH by Spatial</title> <title>DZKH by Spatial</title>
<script type="module" crossorigin src="/assets/index.d79bd832.js"></script> <script type="module" crossorigin src="/assets/index.d44a9096.js"></script>
<link rel="stylesheet" href="/assets/index.767ffdb3.css"> <link rel="stylesheet" href="/assets/index.767ffdb3.css">
</head> </head>
<body> <body>

@ -1,10 +1,10 @@
import {commonPopupConfig,} from "./config"; import { Button, Col, Row } from "antd";
import {Button, Col, Row} from "antd"; import { useGetRegions } from "../../../components/RegionSelect.jsx";
import {isNil} from "../../../utils.js"; import { tempMapper } from "../../../config.js";
import {useGetRegions} from "../../../components/RegionSelect.jsx"; import { useWeatherFilter } from "../../../dzkh-features/WeatherSlider/useWeatherFilter.js";
import {useSimulateAccident} from "../../../stores/useSimulateAccident.js"; import { useSimulateAccident } from "../../../stores/useSimulateAccident.js";
import {useWeatherFilter} from "../../../dzkh-features/WeatherSlider/useWeatherFilter.js"; import { isNil } from "../../../utils.js";
import {tempMapper} from "../../../config.js"; import { commonPopupConfig, } from "./config";
const dynamicFields = [ const dynamicFields = [
{ {
@ -44,7 +44,7 @@ export const FeatureProperties = ({ feature }) => {
if (isSourcePoint) { if (isSourcePoint) {
return [ return [
...commonPopupConfig, {field: `prob6_${tempMapper[temperature]}`, name: 'TP failure'} ...commonPopupConfig, {field: `prob6_${tempMapper[temperature]}`, name: 'Energy source failure'}
] ]
} }

@ -1,7 +1,7 @@
export const CONSUMER_OPTIONS = [ export const CONSUMER_OPTIONS = [
{ {
value: "category1", value: "category1",
title: "Forecasting", title: " Emergency forecasting",
selectable: false, selectable: false,
children: [ children: [
{ {
@ -28,7 +28,7 @@ export const CONSUMER_OPTIONS = [
}, },
{ {
value: "category2", value: "category2",
title: "Response", title: "Emergency response",
selectable: false, selectable: false,
children: [ children: [
{ {

@ -1,9 +1,9 @@
import { Button, Col, Divider, Modal, Popover, Row, Tooltip } from "antd"; import { Button, Popover } from "antd";
import {useSimulateAccident} from "../stores/useSimulateAccident.js";
import {Title} from "../components/Title.jsx";
import { AccidentSimulationModal } from "./AccidentSimulation/AccidentSimulationModal.jsx";
import { useState } from "react"; import { useState } from "react";
import { BiInfoCircle } from "react-icons/all.js"; import { BiInfoCircle } from "react-icons/all.js";
import { Title } from "../components/Title.jsx";
import { useSimulateAccident } from "../stores/useSimulateAccident.js";
import { AccidentSimulationModal } from "./AccidentSimulation/AccidentSimulationModal.jsx";
export const AccidentSimulationResults = () => { export const AccidentSimulationResults = () => {
const {selectedSourceConfig, setSelectedSourceConfig} = useSimulateAccident(); const {selectedSourceConfig, setSelectedSourceConfig} = useSimulateAccident();
@ -17,7 +17,7 @@ export const AccidentSimulationResults = () => {
return ( return (
<> <>
<div className='absolute bottom-[20px] left-[20px] text-grey z-10 bg-white-background rounded-xl p-3 text-center'> <div className='absolute bottom-[20px] left-[20px] text-grey z-10 bg-white-background rounded-xl p-3 text-center'>
<Title text={`Results of TP failure simulation ${selectedSourceConfig?.sourceId}`}/> <Title text={`Results of Energy source failure simulation ${selectedSourceConfig?.sourceId}`}/>
<div className="flex justify-center flex-row gap-2"> <div className="flex justify-center flex-row gap-2">
<Button type="primary" onClick={stopSimulation}>Cancel</Button> <Button type="primary" onClick={stopSimulation}>Cancel</Button>
{!!pointId && ( {!!pointId && (

@ -11,7 +11,7 @@ export const ConsumerParameterSelect = ({ disabled }) => {
return ( return (
<div> <div>
<Title text={"Consumer parameter"} /> <Title text={"Energy consumer parameter"} />
<TreeSelect <TreeSelect
mode="tags" mode="tags"

@ -4,7 +4,7 @@ import { useDzkhFilters } from "../../stores/useDzkhFilters.js";
const options = [{ const options = [{
value: "prob6", value: "prob6",
label: "TP failure" label: "Energy source failure"
}]; }];
export const SourceParameterSelect = ({ disabled }) => { export const SourceParameterSelect = ({ disabled }) => {
@ -15,7 +15,7 @@ export const SourceParameterSelect = ({ disabled }) => {
return ( return (
<div> <div>
<Title text={"Source parameter"} /> <Title text={"Energy source parameter"} />
<TreeSelect <TreeSelect
mode="tags" mode="tags"

@ -1,9 +1,9 @@
import {tempMapper} from "../../config"; import { useEffect, useMemo } from "react";
import {useEffect, useMemo} from "react"; import { useGetRegions } from "../../components/RegionSelect.jsx";
import {useGetRegions} from "../../components/RegionSelect.jsx"; import { tempMapper } from "../../config";
import {useTable} from "../../stores/useTable.js"; import { useWeatherFilter } from "../../dzkh-features/WeatherSlider/useWeatherFilter.js";
import useLocalStorage from "../../hooks/useLocalStorage.js"; import useLocalStorage from "../../hooks/useLocalStorage.js";
import {useWeatherFilter} from "../../dzkh-features/WeatherSlider/useWeatherFilter.js"; import { useTable } from "../../stores/useTable.js";
export const useColumns = (key) => { export const useColumns = (key) => {
const { data: regions } = useGetRegions(); const { data: regions } = useGetRegions();
@ -99,7 +99,7 @@ export const useColumns = (key) => {
showSorterTooltip: false, showSorterTooltip: false,
}, },
{ {
title: "TP failure", title: "Energy source failure",
dataIndex: `prob6_${tempMapper[temperature]}`, dataIndex: `prob6_${tempMapper[temperature]}`,
key: "prob6", key: "prob6",
width: "120px", width: "120px",

Loading…
Cancel
Save