@@ -329,62 +329,53 @@ class Local extends Config {
329
329
return {
330
330
projectId: this.get("projectId"),
331
331
projectName: this.get("projectName"),
332
+ projectSettings: this.get('projectSettings')
332
333
};
333
334
}
334
335
335
- setProject(projectId, projectName) {
336
+ setProject(projectId, projectName, projectSettings = {} ) {
336
337
this.set("projectId", projectId);
337
338
this.set("projectName", projectName);
338
- }
339
-
340
-
341
- getProjectSettings() {
342
- if (!this.has("projectSettings")) {
343
- return {};
344
- }
345
-
346
- return this.get('projectSettings')
347
- }
348
339
349
- setProjectSettings(project) {
350
340
const settings = {
351
341
services: {
352
- account: project .serviceStatusForAccount,
353
- avatars: project .serviceStatusForAvatars,
354
- databases: project .serviceStatusForDatabases,
355
- locale: project .serviceStatusForLocale,
356
- health: project .serviceStatusForHealth,
357
- storage: project .serviceStatusForStorage,
358
- teams: project .serviceStatusForTeams,
359
- users: project .serviceStatusForUsers,
360
- functions: project .serviceStatusForFunctions,
361
- graphql: project .serviceStatusForGraphql,
362
- messaging: project .serviceStatusForMessaging,
342
+ account: projectSettings .serviceStatusForAccount,
343
+ avatars: projectSettings .serviceStatusForAvatars,
344
+ databases: projectSettings .serviceStatusForDatabases,
345
+ locale: projectSettings .serviceStatusForLocale,
346
+ health: projectSettings .serviceStatusForHealth,
347
+ storage: projectSettings .serviceStatusForStorage,
348
+ teams: projectSettings .serviceStatusForTeams,
349
+ users: projectSettings .serviceStatusForUsers,
350
+ functions: projectSettings .serviceStatusForFunctions,
351
+ graphql: projectSettings .serviceStatusForGraphql,
352
+ messaging: projectSettings .serviceStatusForMessaging,
363
353
364
354
},
365
355
auth: {
366
356
methods: {
367
- jwt: project .authJWT,
368
- phone: project .authPhone,
369
- invites: project .authInvites,
370
- anonymous: project .authAnonymous,
371
- "email-otp": project .authEmailOtp,
372
- "magic-url": project .authUsersAuthMagicURL,
373
- "email-password": project .authEmailPassword
357
+ jwt: projectSettings .authJWT,
358
+ phone: projectSettings .authPhone,
359
+ invites: projectSettings .authInvites,
360
+ anonymous: projectSettings .authAnonymous,
361
+ "email-otp": projectSettings .authEmailOtp,
362
+ "magic-url": projectSettings .authUsersAuthMagicURL,
363
+ "email-password": projectSettings .authEmailPassword
374
364
},
375
365
security: {
376
- duration: project .authDuration,
377
- limit: project .authLimit,
378
- sessionsLimit: project .authSessionsLimit,
379
- passwordHistory: project .authPasswordHistory,
380
- passwordDictionary: project .authPasswordDictionary,
381
- personalDataCheck: project .authPersonalDataCheck
366
+ duration: projectSettings .authDuration,
367
+ limit: projectSettings .authLimit,
368
+ sessionsLimit: projectSettings .authSessionsLimit,
369
+ passwordHistory: projectSettings .authPasswordHistory,
370
+ passwordDictionary: projectSettings .authPasswordDictionary,
371
+ personalDataCheck: projectSettings .authPersonalDataCheck
382
372
}
383
373
}
384
374
};
385
375
386
376
this.set('projectSettings', settings)
387
377
}
378
+
388
379
}
389
380
390
381
class Global extends Config {
0 commit comments