From 4726255665c5ef3d0cb80678eef5b94dd62e575d Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Wed, 18 Aug 2021 11:15:51 +0100 Subject: [PATCH] refactor: remove unused assets This change also moves the 2 remaining ones alongside the other assets. Refs #397 --- src/frontend/{svgs => assets/images}/add_prereview_icon.svg | 0 src/frontend/{svgs => assets/images}/prereview-logo.svg | 0 src/frontend/components/add-button.js | 2 +- src/frontend/components/footer.js | 2 +- src/frontend/components/header-bar-reviews.js | 2 +- src/frontend/components/header-bar.js | 2 +- src/frontend/components/join-modal.js | 2 +- src/frontend/components/loading.js | 2 +- src/frontend/components/login-modal.js | 2 +- src/frontend/components/login-required-modal.js | 2 +- src/frontend/components/welcome-modal.js | 2 +- src/frontend/svgs/add_prereview_icon_a.svg | 1 - src/frontend/svgs/epidemics-chart-2.svg | 1 - src/frontend/svgs/epidemics-chart.svg | 1 - src/frontend/svgs/incognito_icon.svg | 1 - src/frontend/svgs/outbreak-science-logo.svg | 1 - src/frontend/svgs/prereview-logo-animation.svg | 1 - src/frontend/svgs/rapid-prereview-icon.svg | 1 - src/frontend/svgs/rapid-prereview-logo-animation.svg | 1 - src/frontend/svgs/shell_icon.svg | 1 - src/frontend/svgs/wellcome-logo-black.svg | 1 - 21 files changed, 9 insertions(+), 19 deletions(-) rename src/frontend/{svgs => assets/images}/add_prereview_icon.svg (100%) rename src/frontend/{svgs => assets/images}/prereview-logo.svg (100%) delete mode 100644 src/frontend/svgs/add_prereview_icon_a.svg delete mode 100644 src/frontend/svgs/epidemics-chart-2.svg delete mode 100644 src/frontend/svgs/epidemics-chart.svg delete mode 100644 src/frontend/svgs/incognito_icon.svg delete mode 100644 src/frontend/svgs/outbreak-science-logo.svg delete mode 100644 src/frontend/svgs/prereview-logo-animation.svg delete mode 100644 src/frontend/svgs/rapid-prereview-icon.svg delete mode 100644 src/frontend/svgs/rapid-prereview-logo-animation.svg delete mode 100644 src/frontend/svgs/shell_icon.svg delete mode 100644 src/frontend/svgs/wellcome-logo-black.svg diff --git a/src/frontend/svgs/add_prereview_icon.svg b/src/frontend/assets/images/add_prereview_icon.svg similarity index 100% rename from src/frontend/svgs/add_prereview_icon.svg rename to src/frontend/assets/images/add_prereview_icon.svg diff --git a/src/frontend/svgs/prereview-logo.svg b/src/frontend/assets/images/prereview-logo.svg similarity index 100% rename from src/frontend/svgs/prereview-logo.svg rename to src/frontend/assets/images/prereview-logo.svg diff --git a/src/frontend/components/add-button.js b/src/frontend/components/add-button.js index 11e924be..69f8f3b3 100644 --- a/src/frontend/components/add-button.js +++ b/src/frontend/components/add-button.js @@ -7,7 +7,7 @@ import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; // icons -import icon from '../svgs/add_prereview_icon.svg'; +import icon from '../assets/images/add_prereview_icon.svg'; const useStyles = makeStyles(theme => ({ border: { diff --git a/src/frontend/components/footer.js b/src/frontend/components/footer.js index 58b72166..3b318b63 100644 --- a/src/frontend/components/footer.js +++ b/src/frontend/components/footer.js @@ -10,7 +10,7 @@ import Link from '@material-ui/core/Link'; import Typography from '@material-ui/core/Typography'; // site logo -import preReviewLogo from '../svgs/prereview-logo.svg'; +import preReviewLogo from '../assets/images/prereview-logo.svg'; // icons import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos'; diff --git a/src/frontend/components/header-bar-reviews.js b/src/frontend/components/header-bar-reviews.js index f082d38c..d63640ba 100644 --- a/src/frontend/components/header-bar-reviews.js +++ b/src/frontend/components/header-bar-reviews.js @@ -22,7 +22,7 @@ import { checkIfProfileNeedsUpdate } from '../utils/roles'; // icons import ErrorOutlineIcon from '@material-ui/icons/ErrorOutline'; import MenuIcon from '@material-ui/icons/Menu'; -import preReviewLogo from '../svgs/prereview-logo.svg'; +import preReviewLogo from '../assets/images/prereview-logo.svg'; const useStyles = makeStyles(theme => ({ content: { diff --git a/src/frontend/components/header-bar.js b/src/frontend/components/header-bar.js index 1bbfeeae..944b43e9 100644 --- a/src/frontend/components/header-bar.js +++ b/src/frontend/components/header-bar.js @@ -24,7 +24,7 @@ import { checkIfProfileNeedsUpdate } from '../utils/roles'; // icons import ErrorOutlineIcon from '@material-ui/icons/ErrorOutline'; import MenuIcon from '@material-ui/icons/Menu'; -import preReviewLogo from '../svgs/prereview-logo.svg'; +import preReviewLogo from '../assets/images/prereview-logo.svg'; const useStyles = makeStyles(theme => ({ content: { diff --git a/src/frontend/components/join-modal.js b/src/frontend/components/join-modal.js index e2a9d419..11b32c59 100644 --- a/src/frontend/components/join-modal.js +++ b/src/frontend/components/join-modal.js @@ -11,7 +11,7 @@ import IconButton from '@material-ui/core/IconButton'; // icons import CloseIcon from '@material-ui/icons/Close'; -import preReviewLogo from '../svgs/prereview-logo.svg'; +import preReviewLogo from '../assets/images/prereview-logo.svg'; const styles = makeStyles(theme => ({ root: { diff --git a/src/frontend/components/loading.js b/src/frontend/components/loading.js index f4e6e85f..63bd087a 100644 --- a/src/frontend/components/loading.js +++ b/src/frontend/components/loading.js @@ -6,7 +6,7 @@ import { makeStyles } from '@material-ui/core/styles'; import CircularProgress from '@material-ui/core/CircularProgress'; // icons -import preReviewLogo from '../svgs/prereview-logo.svg'; +import preReviewLogo from '../assets/images/prereview-logo.svg'; const useStyles = makeStyles(theme => ({ root: { diff --git a/src/frontend/components/login-modal.js b/src/frontend/components/login-modal.js index a7256d9a..41c63cc4 100644 --- a/src/frontend/components/login-modal.js +++ b/src/frontend/components/login-modal.js @@ -23,7 +23,7 @@ import CoCStepper from './coc-stepper'; // icons import CloseIcon from '@material-ui/icons/Close'; -import preReviewLogo from '../svgs/prereview-logo.svg'; +import preReviewLogo from '../assets/images/prereview-logo.svg'; const useStyles = makeStyles(theme => ({ root: { diff --git a/src/frontend/components/login-required-modal.js b/src/frontend/components/login-required-modal.js index 6ff0e852..63b56d68 100644 --- a/src/frontend/components/login-required-modal.js +++ b/src/frontend/components/login-required-modal.js @@ -15,7 +15,7 @@ import Typography from '@material-ui/core/Typography'; import { makeStyles } from '@material-ui/core/styles'; import CloseIcon from '@material-ui/icons/Close'; import ErrorOutlineIcon from '@material-ui/icons/ErrorOutline'; -import preReviewLogo from '../svgs/prereview-logo.svg'; +import preReviewLogo from '../assets/images/prereview-logo.svg'; const useStyles = makeStyles(theme => ({ close: { diff --git a/src/frontend/components/welcome-modal.js b/src/frontend/components/welcome-modal.js index e4978da2..59189c6b 100644 --- a/src/frontend/components/welcome-modal.js +++ b/src/frontend/components/welcome-modal.js @@ -9,7 +9,7 @@ import MuiButton from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; // icons -import preReviewLogo from '../svgs/prereview-logo.svg'; +import preReviewLogo from '../assets/images/prereview-logo.svg'; const Button = withStyles({ root: { diff --git a/src/frontend/svgs/add_prereview_icon_a.svg b/src/frontend/svgs/add_prereview_icon_a.svg deleted file mode 100644 index 0289f496..00000000 --- a/src/frontend/svgs/add_prereview_icon_a.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/epidemics-chart-2.svg b/src/frontend/svgs/epidemics-chart-2.svg deleted file mode 100644 index 8bc81fab..00000000 --- a/src/frontend/svgs/epidemics-chart-2.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/epidemics-chart.svg b/src/frontend/svgs/epidemics-chart.svg deleted file mode 100644 index 29c71d31..00000000 --- a/src/frontend/svgs/epidemics-chart.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/incognito_icon.svg b/src/frontend/svgs/incognito_icon.svg deleted file mode 100644 index a7eef319..00000000 --- a/src/frontend/svgs/incognito_icon.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/outbreak-science-logo.svg b/src/frontend/svgs/outbreak-science-logo.svg deleted file mode 100644 index 583bf340..00000000 --- a/src/frontend/svgs/outbreak-science-logo.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/prereview-logo-animation.svg b/src/frontend/svgs/prereview-logo-animation.svg deleted file mode 100644 index 2eeae497..00000000 --- a/src/frontend/svgs/prereview-logo-animation.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/rapid-prereview-icon.svg b/src/frontend/svgs/rapid-prereview-icon.svg deleted file mode 100644 index b53a240b..00000000 --- a/src/frontend/svgs/rapid-prereview-icon.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/rapid-prereview-logo-animation.svg b/src/frontend/svgs/rapid-prereview-logo-animation.svg deleted file mode 100644 index e6547f81..00000000 --- a/src/frontend/svgs/rapid-prereview-logo-animation.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/shell_icon.svg b/src/frontend/svgs/shell_icon.svg deleted file mode 100644 index a3fea5bc..00000000 --- a/src/frontend/svgs/shell_icon.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/svgs/wellcome-logo-black.svg b/src/frontend/svgs/wellcome-logo-black.svg deleted file mode 100644 index 5e9a032e..00000000 --- a/src/frontend/svgs/wellcome-logo-black.svg +++ /dev/null @@ -1 +0,0 @@ -