mirror of
https://github.com/mue/mue.git
synced 2026-07-17 22:14:13 +02:00
refactor(modules): experimental changes to module structure
This commit is contained in:
@@ -9,7 +9,7 @@ import Date from './time/Date';
|
||||
import Message from './message/Message';
|
||||
import { WidgetsLayout } from 'components/Layout';
|
||||
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
// weather is lazy loaded due to the size of the weather icons module
|
||||
// since we're using react-icons this might not be accurate,
|
||||
|
||||
@@ -5,17 +5,17 @@ import { PureComponent } from 'react';
|
||||
|
||||
import PhotoInformation from './PhotoInformation';
|
||||
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
import {
|
||||
videoCheck,
|
||||
offlineBackground,
|
||||
getGradient,
|
||||
randomColourStyleBuilder,
|
||||
} from 'modules/helpers/background/widget';
|
||||
} from 'utils/helpers/background/widget';
|
||||
|
||||
import './scss/index.scss';
|
||||
import { decodeBlurHash } from 'fast-blurhash';
|
||||
import { supportsAVIF } from 'modules/helpers/background/avif';
|
||||
import { supportsAVIF } from 'utils/helpers/background/avif';
|
||||
|
||||
export default class Background extends PureComponent {
|
||||
constructor() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import variables from 'config/variables';
|
||||
import { memo } from 'react';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
import { Tooltip } from 'components/Elements';
|
||||
|
||||
import { MdClose, MdDone } from 'react-icons/md';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import variables from 'config/variables';
|
||||
import { PureComponent, createRef } from 'react';
|
||||
|
||||
import { nth, convertTimezone } from 'modules/helpers/date';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import { nth, convertTimezone } from 'utils/helpers/date';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
import './greeting.scss';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState, useEffect, useRef } from 'react';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
import './message.scss';
|
||||
|
||||
const Message = () => {
|
||||
|
||||
@@ -6,7 +6,7 @@ import { MdPlaylistRemove, MdOutlineApps } from 'react-icons/md';
|
||||
import { Tooltip } from 'components/Elements';
|
||||
|
||||
import { shift, useFloating } from '@floating-ui/react-dom';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
class Apps extends PureComponent {
|
||||
constructor() {
|
||||
|
||||
@@ -8,7 +8,7 @@ import Todo from './Todo';
|
||||
import Apps from './Apps';
|
||||
import Maximise from '../background/Maximise';
|
||||
import { Tooltip } from 'components/Elements';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
import './scss/index.scss';
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import TextareaAutosize from '@mui/material/TextareaAutosize';
|
||||
import { toast } from 'react-toastify';
|
||||
import { Tooltip } from 'components/Elements';
|
||||
|
||||
import { saveFile } from 'modules/helpers/settings/modals';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import { saveFile } from 'utils/helpers/settings/modals';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
class Notes extends PureComponent {
|
||||
constructor() {
|
||||
|
||||
@@ -15,7 +15,7 @@ import { Tooltip } from 'components/Elements';
|
||||
import Checkbox from '@mui/material/Checkbox';
|
||||
import { shift, useFloating } from '@floating-ui/react-dom';
|
||||
import { sortableContainer, sortableElement, sortableHandle } from '@muetab/react-sortable-hoc';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
const SortableItem = sortableElement(({ value }) => <div>{value}</div>);
|
||||
const SortableContainer = sortableContainer(({ children }) => <div>{children}</div>);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PureComponent, createRef } from 'react';
|
||||
import { Tooltip } from 'components/Elements';
|
||||
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
import './quicklinks.scss';
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import { ShareModal } from 'components/Elements';
|
||||
|
||||
import offline_quotes from './offline_quotes.json';
|
||||
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
import './quote.scss';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import { FaYandex } from 'react-icons/fa';
|
||||
import { Tooltip } from 'components/Elements';
|
||||
import AutocompleteInput from 'features/helpers/autocomplete/Autocomplete';
|
||||
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
import './search.scss';
|
||||
|
||||
|
||||
@@ -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 'utils/helpers/date';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
import './clock.scss';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import variables from 'config/variables';
|
||||
import { PureComponent, createRef } from 'react';
|
||||
|
||||
import { nth, convertTimezone } from '../../../modules/helpers/date';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import { nth, convertTimezone } from 'utils/helpers/date';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
import './date.scss';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { PureComponent } from 'react';
|
||||
import WeatherIcon from './WeatherIcon';
|
||||
import Expanded from './Expanded';
|
||||
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import EventBus from 'utils/helpers/eventbus';
|
||||
|
||||
import './weather.scss';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user