diff options
author | 2018-11-27 18:10:40 +0100 | |
---|---|---|
committer | 2018-11-27 18:10:40 +0100 | |
commit | 4f3db8100a1b76ff6c7af40123f543f5b6c222e6 (patch) | |
tree | 211f00689e947d4e26eb6f27a511c499793cc56a | |
parent | feat(App): Add proxy support for services (diff) | |
download | ferdium-app-4f3db8100a1b76ff6c7af40123f543f5b6c222e6.tar.gz ferdium-app-4f3db8100a1b76ff6c7af40123f543f5b6c222e6.tar.zst ferdium-app-4f3db8100a1b76ff6c7af40123f543f5b6c222e6.zip |
Fix linting issues
-rw-r--r-- | src/models/Settings.js | 30 | ||||
-rw-r--r-- | src/stores/SettingsStore.js | 1 |
2 files changed, 0 insertions, 31 deletions
diff --git a/src/models/Settings.js b/src/models/Settings.js deleted file mode 100644 index 87ab8de67..000000000 --- a/src/models/Settings.js +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | import { observable, extendObservable } from 'mobx'; | ||
2 | import { DEFAULT_APP_SETTINGS } from '../config'; | ||
3 | |||
4 | export default class Settings { | ||
5 | @observable app = DEFAULT_APP_SETTINGS | ||
6 | |||
7 | @observable proxy = {} | ||
8 | |||
9 | @observable service = { | ||
10 | activeService: '', | ||
11 | } | ||
12 | |||
13 | @observable stats = { | ||
14 | appStarts: 0, | ||
15 | } | ||
16 | |||
17 | @observable migration = {} | ||
18 | |||
19 | constructor({ app, proxy, service, stats, migration }) { | ||
20 | Object.assign(this.app, app); | ||
21 | Object.assign(this.proxy, proxy); | ||
22 | Object.assign(this.service, service); | ||
23 | Object.assign(this.stats, stats); | ||
24 | Object.assign(this.migration, migration); | ||
25 | } | ||
26 | |||
27 | update(data) { | ||
28 | extendObservable(this, data); | ||
29 | } | ||
30 | } | ||
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index a5c2c8b52..b62ac15e0 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -3,7 +3,6 @@ import { action, computed, observable } from 'mobx'; | |||
3 | import localStorage from 'mobx-localstorage'; | 3 | import localStorage from 'mobx-localstorage'; |
4 | 4 | ||
5 | import Store from './lib/Store'; | 5 | import Store from './lib/Store'; |
6 | import SettingsModel from '../models/Settings'; | ||
7 | import Request from './lib/Request'; | 6 | import Request from './lib/Request'; |
8 | import CachedRequest from './lib/CachedRequest'; | 7 | import CachedRequest from './lib/CachedRequest'; |
9 | 8 | ||