diff options
author | Markandan R <rmarkandan@yahoo.com> | 2021-06-22 10:56:34 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 10:56:34 +0530 |
commit | a94ed659846f0bc93c05bccf0c96785b91e5c78f (patch) | |
tree | 0a50eeb85e9043708936da9a0c923b32edbe8ab9 /src/features/todos | |
parent | Downgraded submodule 'src/internal-server' (diff) | |
download | ferdium-app-a94ed659846f0bc93c05bccf0c96785b91e5c78f.tar.gz ferdium-app-a94ed659846f0bc93c05bccf0c96785b91e5c78f.tar.zst ferdium-app-a94ed659846f0bc93c05bccf0c96785b91e5c78f.zip |
Diffstat (limited to 'src/features/todos')
-rw-r--r-- | src/features/todos/components/TodosWebview.js | 2 | ||||
-rw-r--r-- | src/features/todos/constants.js | 4 | ||||
-rw-r--r-- | src/features/todos/containers/TodosScreen.js | 3 | ||||
-rw-r--r-- | src/features/todos/index.js | 10 | ||||
-rw-r--r-- | src/features/todos/store.js | 15 |
5 files changed, 16 insertions, 18 deletions
diff --git a/src/features/todos/components/TodosWebview.js b/src/features/todos/components/TodosWebview.js index 03bb5efe8..dccb818a6 100644 --- a/src/features/todos/components/TodosWebview.js +++ b/src/features/todos/components/TodosWebview.js | |||
@@ -5,7 +5,7 @@ import injectSheet from 'react-jss'; | |||
5 | import Webview from 'react-electron-web-view'; | 5 | import Webview from 'react-electron-web-view'; |
6 | import classnames from 'classnames'; | 6 | import classnames from 'classnames'; |
7 | 7 | ||
8 | import { TODOS_PARTITION_ID } from '..'; | 8 | import { TODOS_PARTITION_ID } from '../../../config'; |
9 | 9 | ||
10 | const styles = theme => ({ | 10 | const styles = theme => ({ |
11 | root: { | 11 | root: { |
diff --git a/src/features/todos/constants.js b/src/features/todos/constants.js index 2e8a431cc..303a7a16e 100644 --- a/src/features/todos/constants.js +++ b/src/features/todos/constants.js | |||
@@ -2,3 +2,7 @@ export const IPC = { | |||
2 | TODOS_HOST_CHANNEL: 'TODOS_HOST_CHANNEL', | 2 | TODOS_HOST_CHANNEL: 'TODOS_HOST_CHANNEL', |
3 | TODOS_CLIENT_CHANNEL: 'TODOS_CLIENT_CHANNEL', | 3 | TODOS_CLIENT_CHANNEL: 'TODOS_CLIENT_CHANNEL', |
4 | }; | 4 | }; |
5 | |||
6 | export const TODOS_ROUTES = { | ||
7 | TARGET: '/todos', | ||
8 | }; | ||
diff --git a/src/features/todos/containers/TodosScreen.js b/src/features/todos/containers/TodosScreen.js index 96147d5ab..6425746e6 100644 --- a/src/features/todos/containers/TodosScreen.js +++ b/src/features/todos/containers/TodosScreen.js | |||
@@ -5,7 +5,8 @@ import PropTypes from 'prop-types'; | |||
5 | import FeaturesStore from '../../../stores/FeaturesStore'; | 5 | import FeaturesStore from '../../../stores/FeaturesStore'; |
6 | import TodosWebview from '../components/TodosWebview'; | 6 | import TodosWebview from '../components/TodosWebview'; |
7 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; | 7 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; |
8 | import { TODOS_MIN_WIDTH, todosStore } from '..'; | 8 | import { todosStore } from '..'; |
9 | import { TODOS_MIN_WIDTH } from '../../../config'; | ||
9 | import { todoActions } from '../actions'; | 10 | import { todoActions } from '../actions'; |
10 | import ServicesStore from '../../../stores/ServicesStore'; | 11 | import ServicesStore from '../../../stores/ServicesStore'; |
11 | 12 | ||
diff --git a/src/features/todos/index.js b/src/features/todos/index.js index b6d13e5e1..1c6c9179a 100644 --- a/src/features/todos/index.js +++ b/src/features/todos/index.js | |||
@@ -5,16 +5,6 @@ const debug = require('debug')('Ferdi:feature:todos'); | |||
5 | 5 | ||
6 | export const GA_CATEGORY_TODOS = 'Todos'; | 6 | export const GA_CATEGORY_TODOS = 'Todos'; |
7 | 7 | ||
8 | export const DEFAULT_TODOS_WIDTH = 300; | ||
9 | export const TODOS_MIN_WIDTH = 200; | ||
10 | export const DEFAULT_TODOS_VISIBLE = true; | ||
11 | export const DEFAULT_IS_FEATURE_ENABLED_BY_USER = true; | ||
12 | export const TODOS_PARTITION_ID = 'persist:todos'; | ||
13 | |||
14 | export const TODOS_ROUTES = { | ||
15 | TARGET: '/todos', | ||
16 | }; | ||
17 | |||
18 | export const todosStore = new TodoStore(); | 8 | export const todosStore = new TodoStore(); |
19 | 9 | ||
20 | export default function initTodos(stores, actions) { | 10 | export default function initTodos(stores, actions) { |
diff --git a/src/features/todos/store.js b/src/features/todos/store.js index 4febd7bb1..429507927 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js | |||
@@ -7,17 +7,20 @@ import { | |||
7 | import localStorage from 'mobx-localstorage'; | 7 | import localStorage from 'mobx-localstorage'; |
8 | 8 | ||
9 | import { todoActions } from './actions'; | 9 | import { todoActions } from './actions'; |
10 | import { CUSTOM_TODO_SERVICE, TODO_SERVICE_RECIPE_IDS } from '../../config'; | 10 | import { |
11 | CUSTOM_TODO_SERVICE, | ||
12 | TODO_SERVICE_RECIPE_IDS, | ||
13 | DEFAULT_TODOS_WIDTH, | ||
14 | TODOS_MIN_WIDTH, | ||
15 | DEFAULT_TODOS_VISIBLE, | ||
16 | DEFAULT_IS_FEATURE_ENABLED_BY_USER, | ||
17 | } from '../../config'; | ||
11 | import { isValidExternalURL } from '../../helpers/url-helpers'; | 18 | import { isValidExternalURL } from '../../helpers/url-helpers'; |
12 | import { FeatureStore } from '../utils/FeatureStore'; | 19 | import { FeatureStore } from '../utils/FeatureStore'; |
13 | import { createReactions } from '../../stores/lib/Reaction'; | 20 | import { createReactions } from '../../stores/lib/Reaction'; |
14 | import { createActionBindings } from '../utils/ActionBinding'; | 21 | import { createActionBindings } from '../utils/ActionBinding'; |
15 | import { | 22 | import { IPC, TODOS_ROUTES } from './constants'; |
16 | DEFAULT_TODOS_WIDTH, TODOS_MIN_WIDTH, DEFAULT_TODOS_VISIBLE, TODOS_ROUTES, DEFAULT_IS_FEATURE_ENABLED_BY_USER, | ||
17 | } from '.'; | ||
18 | import { IPC } from './constants'; | ||
19 | import { state as delayAppState } from '../delayApp'; | 23 | import { state as delayAppState } from '../delayApp'; |
20 | |||
21 | import UserAgent from '../../models/UserAgent'; | 24 | import UserAgent from '../../models/UserAgent'; |
22 | 25 | ||
23 | const debug = require('debug')('Ferdi:feature:todos:store'); | 26 | const debug = require('debug')('Ferdi:feature:todos:store'); |