refactor: webpack alias imports

This commit is contained in:
David Ralph
2021-08-28 15:34:12 +01:00
parent 4db47d9fec
commit 06038a201e
42 changed files with 71 additions and 64 deletions

View File

@@ -7,7 +7,7 @@ import Search from './search/Search';
import QuickLinks from './quicklinks/QuickLinks';
import Date from './time/Date';
import EventBus from '../../modules/helpers/eventbus';
import EventBus from 'modules/helpers/eventbus';
const Weather = lazy(() => import('./weather/Weather'));
const renderLoader = () => <></>;

View File

@@ -3,9 +3,9 @@ import { PureComponent } from 'react';
import PhotoInformation from './PhotoInformation';
import EventBus from '../../../modules/helpers/eventbus';
import Interval from '../../../modules/helpers/interval';
import { videoCheck, offlineBackground, gradientStyleBuilder } from '../../../modules/helpers/background/widget';
import EventBus from 'modules/helpers/eventbus';
import Interval from 'modules/helpers/interval';
import { videoCheck, offlineBackground, gradientStyleBuilder } from 'modules/helpers/background/widget';
import './scss/index.scss';

View File

@@ -2,7 +2,7 @@ import { PureComponent } from 'react';
import { Star, StarBorder } from '@material-ui/icons';
import Hotkeys from 'react-hot-keys';
import Tooltip from '../../helpers/tooltip/Tooltip';
import Tooltip from 'components/helpers/tooltip/Tooltip';
export default class Favourite extends PureComponent {
buttons = {

View File

@@ -2,7 +2,7 @@ import { PureComponent } from 'react';
import { Fullscreen } from '@material-ui/icons';
import Hotkeys from 'react-hot-keys';
import Tooltip from '../../helpers/tooltip/Tooltip';
import Tooltip from 'components/helpers/tooltip/Tooltip';
export default class Maximise extends PureComponent {
constructor() {

View File

@@ -1,7 +1,7 @@
import { PureComponent, createRef } from 'react';
import { nth, convertTimezone } from '../../../modules/helpers/date';
import EventBus from '../../../modules/helpers/eventbus';
import { nth, convertTimezone } from 'modules/helpers/date';
import EventBus from 'modules/helpers/eventbus';
import './greeting.scss';

View File

@@ -4,9 +4,9 @@ import { RefreshRounded, SettingsRounded, AssignmentRounded as NotesRounded, Sms
import Notes from './Notes';
import Maximise from '../background/Maximise';
import Favourite from '../background/Favourite';
import Tooltip from '../../helpers/tooltip/Tooltip';
import Tooltip from 'components/helpers/tooltip/Tooltip';
import EventBus from '../../../modules/helpers/eventbus';
import EventBus from 'modules/helpers/eventbus';
import './scss/index.scss';

View File

@@ -2,9 +2,9 @@ import { PureComponent, createRef } from 'react';
import { TextareaAutosize } from '@material-ui/core';
import Hotkeys from 'react-hot-keys';
import Tooltip from '../../helpers/tooltip/Tooltip';
import Tooltip from 'components/helpers/tooltip/Tooltip';
import EventBus from '../../../modules/helpers/eventbus';
import EventBus from 'modules/helpers/eventbus';
import './quicklinks.scss';

View File

@@ -3,8 +3,8 @@ import { FilterNone as FileCopy, Twitter, Star, StarBorder } from '@material-ui/
import { toast } from 'react-toastify';
import Hotkeys from 'react-hot-keys';
import Interval from '../../../modules/helpers/interval';
import EventBus from '../../../modules/helpers/eventbus';
import Interval from 'modules/helpers/interval';
import EventBus from 'modules/helpers/eventbus';
import './quote.scss';

View File

@@ -2,9 +2,9 @@ import { PureComponent, Fragment } from 'react';
import { Search as SearchIcon, Mic } from '@material-ui/icons';
import Hotkeys from 'react-hot-keys';
import AutocompleteInput from '../../helpers/autocomplete/Autocomplete';
import AutocompleteInput from 'components/helpers/autocomplete/Autocomplete';
import EventBus from '../../../modules/helpers/eventbus';
import EventBus from 'modules/helpers/eventbus';
import './search.scss';

View File

@@ -1,7 +1,7 @@
import { PureComponent, Suspense, lazy } from 'react';
import { convertTimezone } from '../../../modules/helpers/date';
import EventBus from '../../../modules/helpers/eventbus';
import { convertTimezone } from 'modules/helpers/date';
import EventBus from 'modules/helpers/eventbus';
import './clock.scss';

View File

@@ -1,7 +1,7 @@
import { PureComponent, createRef } from 'react';
import { nth, convertTimezone } from '../../../modules/helpers/date';
import EventBus from '../../../modules/helpers/eventbus';
import { nth, convertTimezone } from 'modules/helpers/date';
import EventBus from 'modules/helpers/eventbus';
import './date.scss';

View File

@@ -4,7 +4,7 @@ import { WiHumidity, WiWindy, WiBarometer, WiCloud } from 'weather-icons-react';
import WeatherIcon from './WeatherIcon';
import WindDirectionIcon from './WindDirectionIcon';
import EventBus from '../../../modules/helpers/eventbus';
import EventBus from 'modules/helpers/eventbus';
import './weather.scss';