diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2024-03-22 02:33:33 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2024-03-21 21:24:35 +0000 |
commit | 2f3f2ae7f098376f535e5aa993c9eedc14e36f5d (patch) | |
tree | d919bda212744493a7b66c2e91a75455421d62cc /src/features/todos | |
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/features/todos')
-rw-r--r-- | src/features/todos/actions.ts | 2 | ||||
-rw-r--r-- | src/features/todos/components/TodosWebview.tsx | 13 | ||||
-rw-r--r-- | src/features/todos/containers/TodosScreen.tsx | 10 | ||||
-rw-r--r-- | src/features/todos/store.ts | 25 |
4 files changed, 28 insertions, 22 deletions
diff --git a/src/features/todos/actions.ts b/src/features/todos/actions.ts index 5273cc858..c2000752f 100644 --- a/src/features/todos/actions.ts +++ b/src/features/todos/actions.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Webview } from 'react-electron-web-view'; | ||
2 | import PropTypes from 'prop-types'; | 1 | import PropTypes from 'prop-types'; |
2 | import type { Webview } from 'react-electron-web-view'; | ||
3 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; | 3 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; |
4 | 4 | ||
5 | export interface TodoClientMessage { | 5 | export interface TodoClientMessage { |
diff --git a/src/features/todos/components/TodosWebview.tsx b/src/features/todos/components/TodosWebview.tsx index 1ccfa3cdd..f9493d519 100644 --- a/src/features/todos/components/TodosWebview.tsx +++ b/src/features/todos/components/TodosWebview.tsx | |||
@@ -1,10 +1,15 @@ | |||
1 | import { Component, createRef, ReactElement, MouseEvent } from 'react'; | 1 | import classnames from 'classnames'; |
2 | import { observer } from 'mobx-react'; | 2 | import { observer } from 'mobx-react'; |
3 | import withStyles, { WithStylesProps } from 'react-jss'; | 3 | import { |
4 | Component, | ||
5 | type MouseEvent, | ||
6 | type ReactElement, | ||
7 | createRef, | ||
8 | } from 'react'; | ||
4 | import Webview from 'react-electron-web-view'; | 9 | import Webview from 'react-electron-web-view'; |
5 | import classnames from 'classnames'; | 10 | import withStyles, { type WithStylesProps } from 'react-jss'; |
6 | import { TODOS_PARTITION_ID } from '../../../config'; | 11 | import { TODOS_PARTITION_ID } from '../../../config'; |
7 | import { TodoClientMessage } from '../actions'; | 12 | import type { TodoClientMessage } from '../actions'; |
8 | 13 | ||
9 | const styles = theme => ({ | 14 | const styles = theme => ({ |
10 | root: { | 15 | root: { |
diff --git a/src/features/todos/containers/TodosScreen.tsx b/src/features/todos/containers/TodosScreen.tsx index 8941a4b39..29ecd5a0e 100644 --- a/src/features/todos/containers/TodosScreen.tsx +++ b/src/features/todos/containers/TodosScreen.tsx | |||
@@ -1,11 +1,11 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { inject, observer } from 'mobx-react'; |
2 | import { observer, inject } from 'mobx-react'; | 2 | import { Component, type ReactElement } from 'react'; |
3 | import TodosWebview from '../components/TodosWebview'; | ||
4 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; | ||
5 | import { todosStore } from '..'; | 3 | import { todosStore } from '..'; |
4 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; | ||
6 | import { TODOS_MIN_WIDTH } from '../../../config'; | 5 | import { TODOS_MIN_WIDTH } from '../../../config'; |
6 | import type { RealStores } from '../../../stores'; | ||
7 | import { todoActions } from '../actions'; | 7 | import { todoActions } from '../actions'; |
8 | import { RealStores } from '../../../stores'; | 8 | import TodosWebview from '../components/TodosWebview'; |
9 | 9 | ||
10 | interface IProps { | 10 | interface IProps { |
11 | stores?: RealStores; | 11 | stores?: RealStores; |
diff --git a/src/features/todos/store.ts b/src/features/todos/store.ts index 50704c73f..b3f7195e7 100644 --- a/src/features/todos/store.ts +++ b/src/features/todos/store.ts | |||
@@ -1,25 +1,26 @@ | |||
1 | import { Webview } from 'react-electron-web-view'; | 1 | import { action, computed, makeObservable, observable } from 'mobx'; |
2 | import { computed, action, observable, makeObservable } from 'mobx'; | ||
3 | import localStorage from 'mobx-localstorage'; | 2 | import localStorage from 'mobx-localstorage'; |
4 | import { Actions } from '../../actions/lib/actions'; | 3 | import type { Webview } from 'react-electron-web-view'; |
4 | import type { Actions } from '../../actions/lib/actions'; | ||
5 | 5 | ||
6 | import { ThemeType } from '../../themes'; | ||
7 | import { todoActions } from './actions'; | ||
8 | import { | 6 | import { |
9 | CUSTOM_TODO_SERVICE, | 7 | CUSTOM_TODO_SERVICE, |
10 | TODO_SERVICE_RECIPE_IDS, | 8 | DEFAULT_IS_TODO_FEATURE_ENABLED_BY_USER, |
9 | DEFAULT_TODOS_VISIBLE, | ||
11 | DEFAULT_TODOS_WIDTH, | 10 | DEFAULT_TODOS_WIDTH, |
12 | TODOS_MIN_WIDTH, | 11 | TODOS_MIN_WIDTH, |
13 | DEFAULT_TODOS_VISIBLE, | 12 | TODO_SERVICE_RECIPE_IDS, |
14 | DEFAULT_IS_TODO_FEATURE_ENABLED_BY_USER, | ||
15 | } from '../../config'; | 13 | } from '../../config'; |
16 | import { isValidExternalURL } from '../../helpers/url-helpers'; | 14 | import { isValidExternalURL } from '../../helpers/url-helpers'; |
17 | import FeatureStore from '../utils/FeatureStore'; | 15 | import { ifUndefined } from '../../jsUtils'; |
18 | import Reaction, { createReactions } from '../../stores/lib/Reaction'; | 16 | import UserAgent from '../../models/UserAgent'; |
17 | import type Reaction from '../../stores/lib/Reaction'; | ||
18 | import { createReactions } from '../../stores/lib/Reaction'; | ||
19 | import { ThemeType } from '../../themes'; | ||
19 | import { createActionBindings } from '../utils/ActionBinding'; | 20 | import { createActionBindings } from '../utils/ActionBinding'; |
21 | import FeatureStore from '../utils/FeatureStore'; | ||
22 | import { todoActions } from './actions'; | ||
20 | import { IPC, TODOS_ROUTES } from './constants'; | 23 | import { IPC, TODOS_ROUTES } from './constants'; |
21 | import UserAgent from '../../models/UserAgent'; | ||
22 | import { ifUndefined } from '../../jsUtils'; | ||
23 | 24 | ||
24 | const debug = require('../../preload-safe-debug')( | 25 | const debug = require('../../preload-safe-debug')( |
25 | 'Ferdium:feature:todos:store', | 26 | 'Ferdium:feature:todos:store', |