aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index c6724c20f..0756a05eb 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -181,7 +181,9 @@ export default class AppStore extends Store {
181 181
182 this.locale = this._getDefaultLocale(); 182 this.locale = this._getDefaultLocale();
183 183
184 this._healthCheck(); 184 setTimeout(() => {
185 this._healthCheck();
186 }, 1000);
185 187
186 this.isSystemDarkModeEnabled = systemPreferences.isDarkMode(); 188 this.isSystemDarkModeEnabled = systemPreferences.isDarkMode();
187 189
@@ -227,20 +229,35 @@ export default class AppStore extends Store {
227 } 229 }
228 230
229 @computed get debugInfo() { 231 @computed get debugInfo() {
232 const settings = JSON.parse(JSON.stringify(this.stores.settings.app));
233 settings.lockedPassword = '******';
234
230 return { 235 return {
231 host: { 236 host: {
232 platform: process.platform, 237 platform: process.platform,
233 release: os.release(), 238 release: os.release(),
234 screens: screen.getAllDisplays(), 239 screens: screen.getAllDisplays(),
235 }, 240 },
236 franz: { 241 ferdi: {
237 version: app.getVersion(), 242 version: app.getVersion(),
238 electron: process.versions.electron, 243 electron: process.versions.electron,
239 installedRecipes: this.stores.recipes.all.map(recipe => ({ id: recipe.id, version: recipe.version })), 244 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 })), 245 devRecipes: this.stores.recipePreviews.dev.map(recipe => ({ id: recipe.id, version: recipe.version })),
241 services: this.stores.services.all.map(service => ({ id: service.id, recipe: service.recipe.id })), 246 services: this.stores.services.all.map(service => ({
247 id: service.id,
248 recipe: service.recipe.id,
249 isAttached: service.isAttached,
250 isActive: service.isActive,
251 isEnabled: service.isEnabled,
252 isHibernating: service.isHibernating,
253 hasCrashed: service.hasCrashed,
254 isDarkModeEnabled: service.isDarkModeEnabled,
255 })),
256 messages: this.stores.globalError.messages,
242 workspaces: this.stores.workspaces.workspaces.map(workspace => ({ id: workspace.id, services: workspace.services })), 257 workspaces: this.stores.workspaces.workspaces.map(workspace => ({ id: workspace.id, services: workspace.services })),
243 windowSettings: readJsonSync(path.join(app.getPath('userData'), 'window-state.json')), 258 windowSettings: readJsonSync(path.join(app.getPath('userData'), 'window-state.json')),
259 settings,
260 features: this.stores.features.features,
244 user: this.stores.user.data.id, 261 user: this.stores.user.data.id,
245 }, 262 },
246 }; 263 };