diff options
author | 2024-03-22 02:33:33 +0530 | |
---|---|---|
committer | 2024-03-21 21:24:35 +0000 | |
commit | 2f3f2ae7f098376f535e5aa993c9eedc14e36f5d (patch) | |
tree | d919bda212744493a7b66c2e91a75455421d62cc /src/components/services | |
parent | Upgrade electron to '29.1.5' (diff) | |
download | ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.tar.gz ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.tar.zst ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.zip |
Upgrade node modules
Diffstat (limited to 'src/components/services')
-rw-r--r-- | src/components/services/content/ConnectionLostBanner.tsx | 12 | ||||
-rw-r--r-- | src/components/services/content/ServiceDisabled.tsx | 8 | ||||
-rw-r--r-- | src/components/services/content/ServiceView.tsx | 18 | ||||
-rw-r--r-- | src/components/services/content/ServiceWebview.tsx | 6 | ||||
-rw-r--r-- | src/components/services/content/Services.tsx | 18 | ||||
-rw-r--r-- | src/components/services/content/WebviewCrashHandler.tsx | 8 | ||||
-rw-r--r-- | src/components/services/content/WebviewErrorHandler.tsx | 10 | ||||
-rw-r--r-- | src/components/services/tabs/TabBarSortableList.tsx | 4 | ||||
-rw-r--r-- | src/components/services/tabs/TabItem.tsx | 24 | ||||
-rw-r--r-- | src/components/services/tabs/Tabbar.tsx | 4 |
10 files changed, 68 insertions, 44 deletions
diff --git a/src/components/services/content/ConnectionLostBanner.tsx b/src/components/services/content/ConnectionLostBanner.tsx index 7040337f0..04e62ff6b 100644 --- a/src/components/services/content/ConnectionLostBanner.tsx +++ b/src/components/services/content/ConnectionLostBanner.tsx | |||
@@ -1,8 +1,12 @@ | |||
1 | import { Component, ReactElement } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | ||
3 | import withStyles, { WithStylesProps } from 'react-jss'; | ||
4 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | ||
5 | import { mdiAlert } from '@mdi/js'; | 1 | import { mdiAlert } from '@mdi/js'; |
2 | import { observer } from 'mobx-react'; | ||
3 | import { Component, type ReactElement } from 'react'; | ||
4 | import { | ||
5 | type WrappedComponentProps, | ||
6 | defineMessages, | ||
7 | injectIntl, | ||
8 | } from 'react-intl'; | ||
9 | import withStyles, { type WithStylesProps } from 'react-jss'; | ||
6 | import { LIVE_API_FERDIUM_WEBSITE } from '../../../config'; | 10 | import { LIVE_API_FERDIUM_WEBSITE } from '../../../config'; |
7 | import Icon from '../../ui/icon'; | 11 | import Icon from '../../ui/icon'; |
8 | 12 | ||
diff --git a/src/components/services/content/ServiceDisabled.tsx b/src/components/services/content/ServiceDisabled.tsx index 2f0d439ec..9b9f377b1 100644 --- a/src/components/services/content/ServiceDisabled.tsx +++ b/src/components/services/content/ServiceDisabled.tsx | |||
@@ -1,6 +1,10 @@ | |||
1 | import { Component, ReactElement } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | 1 | import { observer } from 'mobx-react'; |
3 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | 2 | import { Component, type ReactElement } from 'react'; |
3 | import { | ||
4 | type WrappedComponentProps, | ||
5 | defineMessages, | ||
6 | injectIntl, | ||
7 | } from 'react-intl'; | ||
4 | import Button from '../../ui/button'; | 8 | import Button from '../../ui/button'; |
5 | import { H1 } from '../../ui/headline'; | 9 | import { H1 } from '../../ui/headline'; |
6 | 10 | ||
diff --git a/src/components/services/content/ServiceView.tsx b/src/components/services/content/ServiceView.tsx index d89cd0610..577473b5d 100644 --- a/src/components/services/content/ServiceView.tsx +++ b/src/components/services/content/ServiceView.tsx | |||
@@ -1,18 +1,18 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import { autorun, IReactionDisposer } from 'mobx'; | ||
3 | import { observer, inject } from 'mobx-react'; | ||
4 | import classnames from 'classnames'; | 1 | import classnames from 'classnames'; |
2 | import { type IReactionDisposer, autorun } from 'mobx'; | ||
3 | import { inject, observer } from 'mobx-react'; | ||
4 | import { Component } from 'react'; | ||
5 | import TopBarProgress from 'react-topbar-progress-indicator'; | 5 | import TopBarProgress from 'react-topbar-progress-indicator'; |
6 | import ServiceModel from '../../../models/Service'; | 6 | import { CUSTOM_WEBSITE_RECIPE_ID } from '../../../config'; |
7 | import WebControlsScreen from '../../../features/webControls/containers/WebControlsScreen'; | ||
8 | import type ServiceModel from '../../../models/Service'; | ||
9 | import type { RealStores } from '../../../stores'; | ||
7 | import StatusBarTargetUrl from '../../ui/StatusBarTargetUrl'; | 10 | import StatusBarTargetUrl from '../../ui/StatusBarTargetUrl'; |
8 | import WebviewLoader from '../../ui/WebviewLoader'; | 11 | import WebviewLoader from '../../ui/WebviewLoader'; |
9 | import WebviewCrashHandler from './WebviewCrashHandler'; | ||
10 | import WebviewErrorHandler from './WebviewErrorHandler'; | ||
11 | import ServiceDisabled from './ServiceDisabled'; | 12 | import ServiceDisabled from './ServiceDisabled'; |
12 | import ServiceWebview from './ServiceWebview'; | 13 | import ServiceWebview from './ServiceWebview'; |
13 | import WebControlsScreen from '../../../features/webControls/containers/WebControlsScreen'; | 14 | import WebviewCrashHandler from './WebviewCrashHandler'; |
14 | import { CUSTOM_WEBSITE_RECIPE_ID } from '../../../config'; | 15 | import WebviewErrorHandler from './WebviewErrorHandler'; |
15 | import { RealStores } from '../../../stores'; | ||
16 | 16 | ||
17 | interface IProps { | 17 | interface IProps { |
18 | service: ServiceModel; | 18 | service: ServiceModel; |
diff --git a/src/components/services/content/ServiceWebview.tsx b/src/components/services/content/ServiceWebview.tsx index c598d4be6..0cf34c14b 100644 --- a/src/components/services/content/ServiceWebview.tsx +++ b/src/components/services/content/ServiceWebview.tsx | |||
@@ -1,9 +1,9 @@ | |||
1 | import { join } from 'node:path'; | 1 | import { join } from 'node:path'; |
2 | import { Component, ReactElement } from 'react'; | ||
3 | import { observer } from 'mobx-react'; | ||
4 | import { action, makeObservable, observable, reaction } from 'mobx'; | 2 | import { action, makeObservable, observable, reaction } from 'mobx'; |
3 | import { observer } from 'mobx-react'; | ||
4 | import { Component, type ReactElement } from 'react'; | ||
5 | import ElectronWebView from 'react-electron-web-view'; | 5 | import ElectronWebView from 'react-electron-web-view'; |
6 | import ServiceModel from '../../../models/Service'; | 6 | import type ServiceModel from '../../../models/Service'; |
7 | 7 | ||
8 | const debug = require('../../../preload-safe-debug')('Ferdium:Services'); | 8 | const debug = require('../../../preload-safe-debug')('Ferdium:Services'); |
9 | 9 | ||
diff --git a/src/components/services/content/Services.tsx b/src/components/services/content/Services.tsx index 5766e0d75..65359d0b4 100644 --- a/src/components/services/content/Services.tsx +++ b/src/components/services/content/Services.tsx | |||
@@ -1,13 +1,17 @@ | |||
1 | import { Component, ReactElement } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | 1 | import { observer } from 'mobx-react'; |
3 | import { Link } from 'react-router-dom'; | ||
4 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | ||
5 | import Confetti from 'react-confetti'; | ||
6 | import ms from 'ms'; | 2 | import ms from 'ms'; |
7 | import withStyles, { WithStylesProps } from 'react-jss'; | 3 | import { Component, type ReactElement } from 'react'; |
8 | import ServiceView from './ServiceView'; | 4 | import Confetti from 'react-confetti'; |
5 | import { | ||
6 | type WrappedComponentProps, | ||
7 | defineMessages, | ||
8 | injectIntl, | ||
9 | } from 'react-intl'; | ||
10 | import withStyles, { type WithStylesProps } from 'react-jss'; | ||
11 | import { Link } from 'react-router-dom'; | ||
12 | import type Service from '../../../models/Service'; | ||
9 | import Appear from '../../ui/effects/Appear'; | 13 | import Appear from '../../ui/effects/Appear'; |
10 | import Service from '../../../models/Service'; | 14 | import ServiceView from './ServiceView'; |
11 | 15 | ||
12 | const messages = defineMessages({ | 16 | const messages = defineMessages({ |
13 | getStarted: { | 17 | getStarted: { |
diff --git a/src/components/services/content/WebviewCrashHandler.tsx b/src/components/services/content/WebviewCrashHandler.tsx index 91c9cf927..0306dcbda 100644 --- a/src/components/services/content/WebviewCrashHandler.tsx +++ b/src/components/services/content/WebviewCrashHandler.tsx | |||
@@ -1,7 +1,11 @@ | |||
1 | import { Component, ReactElement } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | 1 | import { observer } from 'mobx-react'; |
3 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | ||
4 | import ms from 'ms'; | 2 | import ms from 'ms'; |
3 | import { Component, type ReactElement } from 'react'; | ||
4 | import { | ||
5 | type WrappedComponentProps, | ||
6 | defineMessages, | ||
7 | injectIntl, | ||
8 | } from 'react-intl'; | ||
5 | import Button from '../../ui/button'; | 9 | import Button from '../../ui/button'; |
6 | import { H1 } from '../../ui/headline'; | 10 | import { H1 } from '../../ui/headline'; |
7 | 11 | ||
diff --git a/src/components/services/content/WebviewErrorHandler.tsx b/src/components/services/content/WebviewErrorHandler.tsx index b99c15006..1d33ae117 100644 --- a/src/components/services/content/WebviewErrorHandler.tsx +++ b/src/components/services/content/WebviewErrorHandler.tsx | |||
@@ -1,7 +1,11 @@ | |||
1 | import { Component, ReactElement } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | 1 | import { observer } from 'mobx-react'; |
3 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | 2 | import { Component, type ReactElement } from 'react'; |
4 | import withStyles, { WithStylesProps } from 'react-jss'; | 3 | import { |
4 | type WrappedComponentProps, | ||
5 | defineMessages, | ||
6 | injectIntl, | ||
7 | } from 'react-intl'; | ||
8 | import withStyles, { type WithStylesProps } from 'react-jss'; | ||
5 | import Button from '../../ui/button'; | 9 | import Button from '../../ui/button'; |
6 | import { H1 } from '../../ui/headline'; | 10 | import { H1 } from '../../ui/headline'; |
7 | 11 | ||
diff --git a/src/components/services/tabs/TabBarSortableList.tsx b/src/components/services/tabs/TabBarSortableList.tsx index a30587470..2f76c17f1 100644 --- a/src/components/services/tabs/TabBarSortableList.tsx +++ b/src/components/services/tabs/TabBarSortableList.tsx | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | 1 | import { observer } from 'mobx-react'; |
2 | import { Component } from 'react'; | ||
3 | import { SortableContainer } from 'react-sortable-hoc'; | 3 | import { SortableContainer } from 'react-sortable-hoc'; |
4 | 4 | ||
5 | import type Service from '../../../models/Service'; | ||
5 | import TabItem from './TabItem'; | 6 | import TabItem from './TabItem'; |
6 | import Service from '../../../models/Service'; | ||
7 | 7 | ||
8 | interface IProps { | 8 | interface IProps { |
9 | showMessageBadgeWhenMutedSetting: boolean; | 9 | showMessageBadgeWhenMutedSetting: boolean; |
diff --git a/src/components/services/tabs/TabItem.tsx b/src/components/services/tabs/TabItem.tsx index 804efe8a5..bf193e136 100644 --- a/src/components/services/tabs/TabItem.tsx +++ b/src/components/services/tabs/TabItem.tsx | |||
@@ -1,19 +1,23 @@ | |||
1 | import { app, dialog, Menu } from '@electron/remote'; | 1 | import { Menu, app, dialog } from '@electron/remote'; |
2 | import { mdiExclamation, mdiVolumeSource } from '@mdi/js'; | ||
3 | import classnames from 'classnames'; | ||
2 | import { noop } from 'lodash'; | 4 | import { noop } from 'lodash'; |
3 | import { Component } from 'react'; | 5 | import { autorun, makeObservable, observable, reaction } from 'mobx'; |
4 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | ||
5 | import { inject, observer } from 'mobx-react'; | 6 | import { inject, observer } from 'mobx-react'; |
6 | import classnames from 'classnames'; | ||
7 | import { SortableElement } from 'react-sortable-hoc'; | ||
8 | import injectSheet, { WithStylesProps } from 'react-jss'; | ||
9 | import ms from 'ms'; | 7 | import ms from 'ms'; |
10 | import { autorun, makeObservable, observable, reaction } from 'mobx'; | 8 | import { Component } from 'react'; |
11 | import { mdiExclamation, mdiVolumeSource } from '@mdi/js'; | 9 | import { |
12 | import Service from '../../../models/Service'; | 10 | type WrappedComponentProps, |
11 | defineMessages, | ||
12 | injectIntl, | ||
13 | } from 'react-intl'; | ||
14 | import injectSheet, { type WithStylesProps } from 'react-jss'; | ||
15 | import { SortableElement } from 'react-sortable-hoc'; | ||
16 | import type { Stores } from '../../../@types/stores.types'; | ||
13 | import { altKey, cmdOrCtrlShortcutKey, shiftKey } from '../../../environment'; | 17 | import { altKey, cmdOrCtrlShortcutKey, shiftKey } from '../../../environment'; |
14 | import globalMessages from '../../../i18n/globalMessages'; | 18 | import globalMessages from '../../../i18n/globalMessages'; |
19 | import type Service from '../../../models/Service'; | ||
15 | import Icon from '../../ui/icon'; | 20 | import Icon from '../../ui/icon'; |
16 | import { Stores } from '../../../@types/stores.types'; | ||
17 | import MenuItemConstructorOptions = Electron.MenuItemConstructorOptions; | 21 | import MenuItemConstructorOptions = Electron.MenuItemConstructorOptions; |
18 | import { acceleratorString } from '../../../jsUtils'; | 22 | import { acceleratorString } from '../../../jsUtils'; |
19 | 23 | ||
diff --git a/src/components/services/tabs/Tabbar.tsx b/src/components/services/tabs/Tabbar.tsx index d19a4b8de..164051aae 100644 --- a/src/components/services/tabs/Tabbar.tsx +++ b/src/components/services/tabs/Tabbar.tsx | |||
@@ -1,8 +1,8 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | 1 | import { observer } from 'mobx-react'; |
2 | import { Component } from 'react'; | ||
3 | 3 | ||
4 | import type Service from '../../../models/Service'; | ||
4 | import TabBarSortableList from './TabBarSortableList'; | 5 | import TabBarSortableList from './TabBarSortableList'; |
5 | import Service from '../../../models/Service'; | ||
6 | 6 | ||
7 | interface IProps { | 7 | interface IProps { |
8 | useHorizontalStyle: boolean; | 8 | useHorizontalStyle: boolean; |