1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🧹 Optimize imports

This commit is contained in:
Steffo 2021-09-23 01:26:29 +02:00 committed by Stefano Pigozzi
parent 798a0ccee7
commit 5948395fbc
14 changed files with 8 additions and 24 deletions

View file

@ -1,5 +1,4 @@
import * as React from "react" import * as React from "react"
import * as ReactDOM from "react-dom"
import {useInstance} from "./InstanceContext"; import {useInstance} from "./InstanceContext";
import {Bluelib} from "@steffo/bluelib-react"; import {Bluelib} from "@steffo/bluelib-react";

View file

@ -1,11 +1,9 @@
import * as React from "react" import * as React from "react"
import {useState} from "react"
import Axios, {AxiosRequestConfig} from "axios-lab" import Axios, {AxiosRequestConfig} from "axios-lab"
import {useNotNullContext} from "../hooks/useNotNullContext"; import {useNotNullContext} from "../hooks/useNotNullContext";
import {useFormState} from "@steffo/bluelib-react";
import {FormState} from "@steffo/bluelib-react/dist/hooks/useFormState";
import {Validity} from "@steffo/bluelib-react/dist/types"; import {Validity} from "@steffo/bluelib-react/dist/types";
import {useStorageState} from "../hooks/useStorageState"; import {useStorageState} from "../hooks/useStorageState";
import {useState} from "react";
import {useAbortEffect} from "../hooks/useCancellable"; import {useAbortEffect} from "../hooks/useCancellable";
import {InstanceDetails} from "../types"; import {InstanceDetails} from "../types";
import {CHECK_TIMEOUT_MS} from "../constants"; import {CHECK_TIMEOUT_MS} from "../constants";

View file

@ -1,11 +1,9 @@
import * as React from "react" import * as React from "react"
import {Heading} from "@steffo/bluelib-react" import {Heading} from "@steffo/bluelib-react"
import {useInstance, useInstanceAxios} from "./InstanceContext"; import {useInstance} from "./InstanceContext";
import {InstanceDetails} from "../types";
import {Link} from "./Link"; import {Link} from "./Link";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faSpinner, faTimesCircle, faUniversity} from "@fortawesome/free-solid-svg-icons"; import {faUniversity} from "@fortawesome/free-solid-svg-icons";
import {Loading} from "./Loading";
export function InstanceTitle(): JSX.Element { export function InstanceTitle(): JSX.Element {

View file

@ -1,5 +1,5 @@
import * as React from "react" import * as React from "react"
import {Box, Form, Heading, Panel, BringAttention as B} from "@steffo/bluelib-react"; import {Box, BringAttention as B, Form, Heading, Panel} from "@steffo/bluelib-react";
import {useLogin} from "./LoginContext"; import {useLogin} from "./LoginContext";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faUser} from "@fortawesome/free-solid-svg-icons"; import {faUser} from "@fortawesome/free-solid-svg-icons";

View file

@ -1,5 +1,5 @@
import * as React from "react" import * as React from "react"
import {Field, Button, Select} from "@steffo/bluelib-react"; import {Button, Field, Select} from "@steffo/bluelib-react";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faPlus} from "@fortawesome/free-solid-svg-icons"; import {faPlus} from "@fortawesome/free-solid-svg-icons";
import {ObjectPanel} from "./ObjectPanel"; import {ObjectPanel} from "./ObjectPanel";

View file

@ -1,5 +1,4 @@
import * as React from "react" import * as React from "react"
import * as ReactDOM from "react-dom"
import {useDRFManagedDetail} from "../hooks/useDRF"; import {useDRFManagedDetail} from "../hooks/useDRF";
import {Box, Heading} from "@steffo/bluelib-react"; import {Box, Heading} from "@steffo/bluelib-react";
import {ResearchProject} from "../types"; import {ResearchProject} from "../types";

View file

@ -1,5 +1,4 @@
import * as React from "react" import * as React from "react"
import {Panel} from "@steffo/bluelib-react";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faEnvelope, faGlobe, faQuestion} from "@fortawesome/free-solid-svg-icons"; import {faEnvelope, faGlobe, faQuestion} from "@fortawesome/free-solid-svg-icons";
import {ResearchGroup} from "../types"; import {ResearchGroup} from "../types";

View file

@ -1,9 +1,8 @@
import * as React from "react" import * as React from "react"
import * as ReactDOM from "react-dom"
import {ObjectPanel} from "./ObjectPanel"; import {ObjectPanel} from "./ObjectPanel";
import {ResearchProject} from "../types"; import {ResearchProject} from "../types";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faEnvelope, faGlobe, faLock, faQuestion, faUniversity} from "@fortawesome/free-solid-svg-icons"; import {faGlobe, faLock, faQuestion, faUniversity} from "@fortawesome/free-solid-svg-icons";
import {Link} from "./Link"; import {Link} from "./Link";

View file

@ -4,8 +4,6 @@ import {ResearchProject} from "../types";
import {Loading} from "./Loading"; import {Loading} from "./Loading";
import {Box, Heading} from "@steffo/bluelib-react"; import {Box, Heading} from "@steffo/bluelib-react";
import {ResearchProjectPanel} from "./ResearchProjectPanel"; import {ResearchProjectPanel} from "./ResearchProjectPanel";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faPlus} from "@fortawesome/free-solid-svg-icons";
import {NewResearchGroupPanel} from "./NewResearchGroupPanel"; import {NewResearchGroupPanel} from "./NewResearchGroupPanel";

View file

@ -1,9 +1,7 @@
import * as React from "react" import * as React from "react"
import * as ReactDOM from "react-dom"
import {useDRFManagedList} from "../hooks/useDRF"; import {useDRFManagedList} from "../hooks/useDRF";
import {ResearchGroup, ResearchProject} from "../types"; import {ResearchProject} from "../types";
import {Loading} from "./Loading"; import {Loading} from "./Loading";
import {ResearchGroupPanel} from "./ResearchGroupPanel";
import {Box, Heading} from "@steffo/bluelib-react"; import {Box, Heading} from "@steffo/bluelib-react";
import {ResearchProjectPanel} from "./ResearchProjectPanel"; import {ResearchProjectPanel} from "./ResearchProjectPanel";

View file

@ -1,8 +1,7 @@
import * as React from "react" import * as React from "react"
import * as ReactDOM from "react-dom"
import {useDRFManagedDetail} from "../hooks/useDRF"; import {useDRFManagedDetail} from "../hooks/useDRF";
import {Loading} from "./Loading"; import {Loading} from "./Loading";
import {Box, Heading, BringAttention as B, Idiomatic as I, Anchor} from "@steffo/bluelib-react"; import {Anchor, Box, BringAttention as B, Heading, Idiomatic as I} from "@steffo/bluelib-react";
import {User} from "../types"; import {User} from "../types";
import {useInstance} from "./InstanceContext"; import {useInstance} from "./InstanceContext";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";

View file

@ -1,7 +1,6 @@
import * as React from "react" import * as React from "react"
import {ResearchGroupListBox} from "../components/ResearchGroupListBox"; import {ResearchGroupListBox} from "../components/ResearchGroupListBox";
import {InstanceDescriptionBox} from "../components/InstanceDescriptionBox"; import {InstanceDescriptionBox} from "../components/InstanceDescriptionBox";
import {ResearchProjectsListBox} from "../components/ResearchProjectsListBox";
export function InstancePage(): JSX.Element { export function InstancePage(): JSX.Element {

View file

@ -1,5 +1,4 @@
import * as React from "react" import * as React from "react"
import * as ReactDOM from "react-dom"
import {ResearchGroupDescriptionBox} from "../components/ResearchGroupDescriptionBox"; import {ResearchGroupDescriptionBox} from "../components/ResearchGroupDescriptionBox";
import {ResearchProjectsByGroupListBox} from "../components/ResearchProjectsByGroupListBox"; import {ResearchProjectsByGroupListBox} from "../components/ResearchProjectsByGroupListBox";

View file

@ -1,5 +1,4 @@
import * as React from "react" import * as React from "react"
import * as ReactDOM from "react-dom"
import {UserBox} from "../components/UserBox"; import {UserBox} from "../components/UserBox";