diff options
author | vantezzen <hello@vantezzen.io> | 2019-10-26 15:50:39 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-10-26 15:50:39 +0200 |
commit | 49e351d6ba03bf21543585d17eb4260516843978 (patch) | |
tree | 743344c53175aad988f0d725c7bb3c31a8465261 /src/stores/AppStore.js | |
parent | Attempt at fixing Travis conditional sed (diff) | |
download | ferdium-app-49e351d6ba03bf21543585d17eb4260516843978.tar.gz ferdium-app-49e351d6ba03bf21543585d17eb4260516843978.tar.zst ferdium-app-49e351d6ba03bf21543585d17eb4260516843978.zip |
Extend debug information
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 59b100b55..894c19347 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -227,6 +227,9 @@ export default class AppStore extends Store { | |||
227 | } | 227 | } |
228 | 228 | ||
229 | @computed get debugInfo() { | 229 | @computed get debugInfo() { |
230 | const settings = JSON.parse(JSON.stringify(this.stores.settings.app)); | ||
231 | settings.lockedPassword = '******'; | ||
232 | |||
230 | return { | 233 | return { |
231 | host: { | 234 | host: { |
232 | platform: process.platform, | 235 | platform: process.platform, |
@@ -238,19 +241,20 @@ export default class AppStore extends Store { | |||
238 | electron: process.versions.electron, | 241 | electron: process.versions.electron, |
239 | installedRecipes: this.stores.recipes.all.map(recipe => ({ id: recipe.id, version: recipe.version })), | 242 | installedRecipes: this.stores.recipes.all.map(recipe => ({ id: recipe.id, version: recipe.version })), |
240 | devRecipes: this.stores.recipePreviews.dev.map(recipe => ({ id: recipe.id, version: recipe.version })), | 243 | devRecipes: this.stores.recipePreviews.dev.map(recipe => ({ id: recipe.id, version: recipe.version })), |
241 | services: this.stores.services.all.map(service => ({ | 244 | services: this.stores.services.all.map(service => ({ |
242 | id: service.id, | 245 | id: service.id, |
243 | recipe: service.recipe.id, | 246 | recipe: service.recipe.id, |
244 | isAttached: service.isAttached, | 247 | isAttached: service.isAttached, |
245 | isActive: service.isActive, | 248 | isActive: service.isActive, |
246 | isEnabled: service.isEnabled, | 249 | isEnabled: service.isEnabled, |
247 | isHibernating: service.isHibernating, | 250 | isHibernating: service.isHibernating, |
248 | hasCrashed: service.hasCrashed, | 251 | hasCrashed: service.hasCrashed, |
249 | isDarkModeEnabled: service.isDarkModeEnabled, | 252 | isDarkModeEnabled: service.isDarkModeEnabled, |
250 | })), | 253 | })), |
254 | errors: this.stores.globalError.errors, | ||
251 | workspaces: this.stores.workspaces.workspaces.map(workspace => ({ id: workspace.id, services: workspace.services })), | 255 | workspaces: this.stores.workspaces.workspaces.map(workspace => ({ id: workspace.id, services: workspace.services })), |
252 | windowSettings: readJsonSync(path.join(app.getPath('userData'), 'window-state.json')), | 256 | windowSettings: readJsonSync(path.join(app.getPath('userData'), 'window-state.json')), |
253 | settings: this.stores.settings.app, | 257 | settings, |
254 | features: this.stores.features.features, | 258 | features: this.stores.features.features, |
255 | user: this.stores.user.data.id, | 259 | user: this.stores.user.data.id, |
256 | }, | 260 | }, |