Skip to content

Commit

Permalink
delet
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen committed May 21, 2024
2 parents 55d4e8a + 1bf7b65 commit 8bda066
Show file tree
Hide file tree
Showing 116 changed files with 55 additions and 234 deletions.
1 change: 0 additions & 1 deletion dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { BrowserRouter } from "react-router-dom";
import styled, { createGlobalStyle, ThemeProvider } from "styled-components";

import PorterErrorBoundary from "shared/error_handling/PorterErrorBoundary";
import midnight from "shared/themes/midnight";
import standard from "shared/themes/standard";

import MainWrapper from "./main/MainWrapper";
Expand Down
4 changes: 1 addition & 3 deletions dashboard/src/components/AWSCostConsent.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React, { useContext, useState } from "react";
import React, { useState } from "react";
import styled from "styled-components";

import api from "shared/api";
import { Context } from "shared/Context";

import Button from "./porter/Button";
import ExpandableSection from "./porter/ExpandableSection";
Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/components/AzureCredentialForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useContext, useEffect, useMemo, useState } from "react";
import React, { useContext, useState } from "react";
import styled from "styled-components";
import { v4 as uuidv4 } from "uuid";

import api from "shared/api";
import { Context } from "shared/Context";
Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/components/Breadcrumb.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Fragment, useState } from "react";
import React, { Fragment } from "react";
import styled from "styled-components";

import { Steps } from "main/home/onboarding/types";

type Props = {
currentStep: string;
Expand Down
1 change: 0 additions & 1 deletion dashboard/src/components/CloudFormationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { v4 as uuidv4 } from "uuid";

import api from "shared/api";
import { Context } from "shared/Context";
import theme from "shared/themes/midnight";
import aws from "assets/aws.png";
import cloudformationStatus from "assets/cloud-formation-stack-complete.png";

Expand Down
4 changes: 1 addition & 3 deletions dashboard/src/components/ClusterProvisioningPlaceholder.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React, { useContext, useEffect, useState } from "react";
import React, { useContext } from "react";
import { withRouter, type RouteComponentProps } from "react-router";
import styled from "styled-components";

import Heading from "components/form-components/Heading";
import Helper from "components/form-components/Helper";
import PorterLink from "components/porter/Link";

import { Context } from "shared/Context";
Expand Down
6 changes: 1 addition & 5 deletions dashboard/src/components/CredentialsForm.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useContext, useEffect, useMemo, useState } from "react";
import React, { useContext, useEffect, useState } from "react";
import styled from "styled-components";

import Heading from "components/form-components/Heading";
import Button from "components/porter/Button";

import api from "shared/api";
Expand All @@ -10,11 +9,8 @@ import addCircle from "assets/add-circle.png";
import aws from "assets/aws.png";
import credsIcon from "assets/creds.png";

import Helper from "./form-components/Helper";
import InputRow from "./form-components/InputRow";
import Loading from "./Loading";
import Error from "./porter/Error";
import Modal from "./porter/Modal";
import Spacer from "./porter/Spacer";
import Text from "./porter/Text";
import SaveButton from "./SaveButton";
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/ExpandableResource.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, useContext, useEffect } from "react";
import React, { useContext } from "react";
import styled from "styled-components";

import { baseApi } from "shared/baseApi";
Expand Down
4 changes: 1 addition & 3 deletions dashboard/src/components/GCPCostConsent.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React, { useContext, useState } from "react";
import React, { useState } from "react";
import styled from "styled-components";

import api from "shared/api";
import { Context } from "shared/Context";

import Button from "./porter/Button";
import ExpandableSection from "./porter/ExpandableSection";
Expand Down
4 changes: 0 additions & 4 deletions dashboard/src/components/GCPCredentialsForm.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import React, { useContext, useEffect, useState } from "react";
import styled from "styled-components";

import Helper from "components/form-components/Helper";
import UploadArea from "components/form-components/UploadArea";
import Loading from "components/Loading";
import Placeholder from "components/OldPlaceholder";
import Button from "components/porter/Button";
import Text from "components/porter/Text";
import { Flex } from "main/home/cluster-dashboard/stacks/components/styles";

import api from "shared/api";
import { Context } from "shared/Context";
Expand Down
9 changes: 0 additions & 9 deletions dashboard/src/components/GCPProvisionerSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { log } from "console";
import React, { useContext, useEffect, useState } from "react";
import {
Cluster,
Expand All @@ -16,7 +15,6 @@ import { withRouter, type RouteComponentProps } from "react-router";
import styled from "styled-components";

import Heading from "components/form-components/Heading";
import Helper from "components/form-components/Helper";
import SelectRow from "components/form-components/SelectRow";
import Loading from "components/Loading";
import { OFState } from "main/home/onboarding/state";
Expand All @@ -26,20 +24,13 @@ import api from "shared/api";
import { Context } from "shared/Context";
import { pushFiltered } from "shared/routing";
import { type ClusterType } from "shared/types";
import failure from "assets/failure.svg";
import healthy from "assets/status-healthy.png";

import InputRow from "./form-components/InputRow";
import Placeholder from "./Placeholder";
import Button from "./porter/Button";
import Error from "./porter/Error";
import ExpandableSection from "./porter/ExpandableSection";
import Fieldset from "./porter/Fieldset";
import InputSlider from "./porter/InputSlider";
import Link from "./porter/Link";
import Select from "./porter/Select";
import Spacer from "./porter/Spacer";
import Step from "./porter/Step";
import Text from "./porter/Text";
import VerticalSteps from "./porter/VerticalSteps";
import PreflightChecks from "./PreflightChecks";
Expand Down
5 changes: 1 addition & 4 deletions dashboard/src/components/GPUCostConsent.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import React, { useContext, useState } from "react";
import React, { useState } from "react";
import styled from "styled-components";

import api from "shared/api";
import { Context } from "shared/Context";

import Button from "./porter/Button";
import ExpandableSection from "./porter/ExpandableSection";
import Fieldset from "./porter/Fieldset";
import Input from "./porter/Input";
import Link from "./porter/Link";
import Modal from "./porter/Modal";
import Spacer from "./porter/Spacer";
import Text from "./porter/Text";

Expand Down
5 changes: 1 addition & 4 deletions dashboard/src/components/LogSearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React, { useState } from "react";
import dayjs from "dayjs";
import styled from "styled-components";
import React from "react";

import Button from "./Button";
import SearchBar from "./porter/SearchBar";

type Props = {
Expand Down
1 change: 0 additions & 1 deletion dashboard/src/components/OldTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Loading from "components/Loading";

import loading from "assets/loading.gif";

import Button from "./porter/Button";
import Selector from "./Selector";

const GlobalFilter: React.FunctionComponent<any> = ({
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/PreflightChecks.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect, useState } from "react";
import React, { useState } from "react";
import { withRouter, type RouteComponentProps } from "react-router";
import styled from "styled-components";

Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/components/ProvisionerFlow.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, { useContext, useMemo, useState } from "react";
import React, { useContext, useState } from "react";
import styled from "styled-components";

import AzureCredentialForm from "components/AzureCredentialForm";
import CloudFormationForm from "components/CloudFormationForm";
import CredentialsForm from "components/CredentialsForm";
import Helper from "components/form-components/Helper";
import GCPCredentialsForm from "components/GCPCredentialsForm";
import ProvisionerForm from "components/ProvisionerForm";

Expand Down
4 changes: 1 addition & 3 deletions dashboard/src/components/ProvisionerForm.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import React, { useContext, useEffect, useState } from "react";
import React from "react";
import styled from "styled-components";

import Heading from "components/form-components/Heading";

import aws from "assets/aws.png";
import azure from "assets/azure.png";
import gcp from "assets/gcp.png";

import AzureProvisionerSettings from "./AzureProvisionerSettings";
import Helper from "./form-components/Helper";
import GCPProvisionerSettings from "./GCPProvisionerSettings";
import Container from "./porter/Container";
import Spacer from "./porter/Spacer";
Expand Down
2 changes: 0 additions & 2 deletions dashboard/src/components/ProvisionerSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
} from "@porter-dev/api-contracts";
import { withRouter, type RouteComponentProps } from "react-router";
import styled from "styled-components";
import { Integer } from "type-fest";

import Heading from "components/form-components/Heading";
import SelectRow from "components/form-components/SelectRow";
Expand All @@ -40,7 +39,6 @@ import Button from "./porter/Button";
import Checkbox from "./porter/Checkbox";
import Icon from "./porter/Icon";
import Input from "./porter/Input";
import InputSlider from "./porter/InputSlider";
import Select from "./porter/Select";
import Spacer from "./porter/Spacer";
import Text from "./porter/Text";
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/ProvisionerStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect, useRef, useState } from "react";
import React, { useContext, useEffect, useState } from "react";
import styled, { keyframes } from "styled-components";

import api from "shared/api";
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/SaveButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from "react";
import React from "react";
import styled from "styled-components";

import loading from "assets/loading.gif";
Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/components/date-time-picker/DateTimePicker.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { useState } from "react";
import React from "react";
import DatePicker from "react-datepicker";
import styled from "styled-components";

import time from "assets/time.svg";

import "./react-datepicker.css";

Expand Down
1 change: 0 additions & 1 deletion dashboard/src/components/form-components/Helper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import styled from "styled-components";

export const Helper = styled.div<{ color?: string }>`
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/form-components/SelectRow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from "react";
import React from "react";
import styled from "styled-components";

import Selector, { type SelectorPropsType } from "../Selector";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { isValidCron } from "cron-validator";
import CronParser from "cronstrue";
import styled from "styled-components";

import DocsHelper from "components/DocsHelper";
import DynamicLink from "components/DynamicLink";
import InputRow from "components/form-components/InputRow";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { useEffect } from "react";
import React from "react";

import DictionaryEditor from "components/porter/DictionaryEditor";

import InputRow from "../../form-components/InputRow";
import useFormField from "../hooks/useFormField";
import {
type DictionaryField,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useContext, useEffect, useState } from "react";
import _, { differenceBy, isObject, omit } from "lodash";
import { differenceBy, isObject, omit } from "lodash";
import styled, { keyframes } from "styled-components";

import Heading from "components/form-components/Heading";
Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/components/porter-form/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { merge, unionBy } from "lodash";
import { unionBy } from "lodash";

import { KeyValueType } from "main/home/cluster-dashboard/env-groups/EnvGroupArray";

import { type GenericInputField } from "./types";

Expand Down
1 change: 0 additions & 1 deletion dashboard/src/components/porter/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import styled from "styled-components";

import info from "assets/info.svg";
import warning from "assets/warning.png";

type Props = {
type?: string;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/porter/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React from "react";
import styled, { keyframes } from "styled-components";

import loading from "assets/loading.gif";
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/porter/ClickToCopy.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React, { useState } from "react";
import styled from "styled-components";

import check from "assets/check.svg";
Expand Down
1 change: 0 additions & 1 deletion dashboard/src/components/porter/Clickable.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import styled from "styled-components";

import Container from "./Container";

type Props = {
children: React.ReactNode;
Expand Down
2 changes: 0 additions & 2 deletions dashboard/src/components/porter/DictionaryEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { ok } from "assert";
import React, { useEffect, useState } from "react";
import styled from "styled-components";

import Container from "./Container";
import Spacer from "./Spacer";
import Text from "./Text";

Expand Down
4 changes: 1 addition & 3 deletions dashboard/src/components/porter/Dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React, { type ReactNode } from "react";
import { AnimatePresence, motion } from "framer-motion";
import styled, { keyframes } from "styled-components";
import styled from "styled-components";

import Container from "./Container";
import Spacer from "./Spacer";
import Tag from "./Tag";
import Text from "./Text";

type Props = {
key: string;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/porter/ExpandableSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React, { useState } from "react";
import styled from "styled-components";

import CopyToClipboard from "components/CopyToClipboard";
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/porter/Fieldset.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React from "react";
import styled from "styled-components";

type Props = {
Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/components/porter/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useEffect, useState } from "react";
import React from "react";
import styled from "styled-components";
import { boolean } from "zod";

import Tooltip from "./Tooltip";

Expand Down
4 changes: 1 addition & 3 deletions dashboard/src/components/porter/InputSlider.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React, { useEffect, useState } from "react";
import React, { useState } from "react";
import Slider, { type Mark } from "@material-ui/core/Slider";
import { withStyles } from "@material-ui/core/styles";
import Tooltip from "@material-ui/core/Tooltip";
import Typography from "@material-ui/core/Typography";
import styled from "styled-components";

import Spacer from "./Spacer";
import Text from "./Text";

type InputSliderProps = {
label?: string;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/porter/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React from "react";
import { createPortal } from "react-dom";
import styled from "styled-components";

Expand Down
1 change: 0 additions & 1 deletion dashboard/src/components/porter/Pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import styled from "styled-components";

import Button from "./Button";
import Container from "./Container";
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/porter/SearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React from "react";
import styled from "styled-components";

import search from "assets/search.png";
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/porter/Spacer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React from "react";
import styled from "styled-components";

type Props = {
Expand Down
Loading

0 comments on commit 8bda066

Please sign in to comment.