Skip to content

Commit

Permalink
[#51] Remove react-moment
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Oct 29, 2024
1 parent e74536d commit 4fe0c2e
Show file tree
Hide file tree
Showing 8 changed files with 4,209 additions and 13,535 deletions.
17,717 changes: 4,209 additions & 13,508 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"react-dom": "^18.2.0",
"react-imported-component": "^6.5.4",
"react-json-pretty": "^2.2.0",
"react-moment": "^1.1.1",
"react-router-dom": "^5.1.2",
"react-spring": "^8.0.27",
"react-treebeard": "^3.2.4",
Expand Down
11 changes: 0 additions & 11 deletions src/components/Executions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
import { Col, Container, Row, Table } from "react-bootstrap";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faMugHot, faTrash, faRunning, faPlayCircle, faEdit, faQuestion } from "@fortawesome/free-solid-svg-icons";
import Moment from "react-moment";
import { Link } from "react-router-dom";

class Executions extends React.Component {
Expand Down Expand Up @@ -61,16 +60,6 @@ class Executions extends React.Component {
<FontAwesomeIcon icon={faMugHot} />
</td>
<td>{data[DISPLAY_NAME]}</td>
<td>
<Moment unix format="DD.MM.YYYY - HH:mm:ss">
{data[START_DATE_UNIX] / 1000}
</Moment>
</td>
<td>
<Moment unix format="DD.MM.YYYY - HH:mm:ss">
{data[FINISH_DATE_UNIX] / 1000}
</Moment>
</td>
<td>{data[EXECUTION_DURATION]}ms</td>
<td>
<Container>
Expand Down
1 change: 0 additions & 1 deletion src/components/modal/MoveModuleModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
} from "../rest/Rest";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faEdit, faMugHot, faPlayCircle, faTrash } from "@fortawesome/free-solid-svg-icons";
import Moment from "react-moment";
import { Link } from "react-router-dom";
import Layout from "../Layout";

Expand Down
1 change: 0 additions & 1 deletion src/components/modal/ScriptActionsModuleModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
} from "../rest/Rest";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faEdit, faMugHot, faPlayCircle, faTrash } from "@fortawesome/free-solid-svg-icons";
import Moment from "react-moment";
import { Link } from "react-router-dom";
import Layout from "../Layout";

Expand Down
11 changes: 0 additions & 11 deletions src/components/modal/ScriptExecutionModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
MODULE_VARIABLE_VALUE,
} from "../rest/Rest";
import { faDownload, faMugHot } from "@fortawesome/free-solid-svg-icons";
import Moment from "react-moment";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

class ScriptOntologyModal extends React.Component {
Expand Down Expand Up @@ -96,16 +95,6 @@ class ScriptOntologyModal extends React.Component {
</td>
<td>{data[MODULE_EXECUTION_DURATION]}ms</td>
{/*<td><Moment unix format="DD.MM.YYYY">{data[MODULE_EXECUTION_START_DATE]/1000}</Moment></td>*/}
<td>
<Moment unix format="HH:mm:ss">
{data[MODULE_EXECUTION_START_DATE] / 1000}
</Moment>
</td>
<td>
<Moment unix format="HH:mm:ss">
{data[MODULE_EXECUTION_FINISH_DATE] / 1000}
</Moment>
</td>
<td>
{data[MODULE_INPUT_PATH].map((d, k) => {
return (
Expand Down
1 change: 0 additions & 1 deletion src/components/modal/ScriptOntologyModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
} from "../rest/Rest";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faEdit, faMugHot, faPlayCircle, faPlusCircle, faTrash } from "@fortawesome/free-solid-svg-icons";
import Moment from "react-moment";
import { Link } from "react-router-dom";
import Layout from "../Layout";

Expand Down
1 change: 0 additions & 1 deletion src/components/modal/ValidationReportModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
} from "../rest/Rest";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faEdit, faMugHot, faPlayCircle, faTrash } from "@fortawesome/free-solid-svg-icons";
import Moment from "react-moment";
import { Link } from "react-router-dom";

class FunctionExecutionModal extends React.Component {
Expand Down

0 comments on commit 4fe0c2e

Please sign in to comment.