Skip to content

Commit 020a5ed

Browse files
committed
chore: fix format
1 parent 5004919 commit 020a5ed

53 files changed

Lines changed: 2587 additions & 2068 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

infrastructure/control-panel/src/routes/+layout.svelte

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,48 @@
7979
// Fetch evaults if we have IDs
8080
if (evaultsData) {
8181
const evaultIds = JSON.parse(evaultsData);
82-
if (Array.isArray(evaultIds) && evaultIds.length > 0 && typeof evaultIds[0] === 'string') {
83-
const { EVaultService } = await import('$lib/services/evaultService');
82+
if (
83+
Array.isArray(evaultIds) &&
84+
evaultIds.length > 0 &&
85+
typeof evaultIds[0] === 'string'
86+
) {
87+
const { EVaultService } =
88+
await import('$lib/services/evaultService');
8489
const allEVaults = await EVaultService.getEVaults();
8590
const evaultObjects = evaultIds
86-
.map((id: string) => allEVaults.find((e: any) => (e.evault || e.ename || e.id) === id))
91+
.map((id: string) =>
92+
allEVaults.find(
93+
(e: any) => (e.evault || e.ename || e.id) === id
94+
)
95+
)
8796
.filter(Boolean);
88-
sessionStorage.setItem('selectedEVaultsData', JSON.stringify(evaultObjects));
97+
sessionStorage.setItem(
98+
'selectedEVaultsData',
99+
JSON.stringify(evaultObjects)
100+
);
89101
}
90102
}
91103

92104
// Fetch platforms if we have URLs
93105
if (platformsData) {
94106
const platformUrls = JSON.parse(platformsData);
95-
if (Array.isArray(platformUrls) && platformUrls.length > 0 && typeof platformUrls[0] === 'string') {
96-
const { registryService } = await import('$lib/services/registry');
107+
if (
108+
Array.isArray(platformUrls) &&
109+
platformUrls.length > 0 &&
110+
typeof platformUrls[0] === 'string'
111+
) {
112+
const { registryService } =
113+
await import('$lib/services/registry');
97114
const allPlatforms = await registryService.getPlatforms();
98115
const platformObjects = platformUrls
99-
.map((url: string) => allPlatforms.find((p: any) => p.url === url))
116+
.map((url: string) =>
117+
allPlatforms.find((p: any) => p.url === url)
118+
)
100119
.filter(Boolean);
101-
sessionStorage.setItem('selectedPlatformsData', JSON.stringify(platformObjects));
120+
sessionStorage.setItem(
121+
'selectedPlatformsData',
122+
JSON.stringify(platformObjects)
123+
);
102124
}
103125
}
104126
} catch (error) {
@@ -107,8 +129,7 @@
107129

108130
// Navigate to monitoring
109131
goto('/monitoring');
110-
}}
111-
>Start Monitoring</ButtonAction
132+
}}>Start Monitoring</ButtonAction
112133
>
113134
</div>
114135
{:else}

infrastructure/eid-wallet/src/app.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,3 @@ body {
170170
position: relative;
171171
z-index: 1;
172172
}
173-

infrastructure/eid-wallet/src/lib/global/controllers/evault.ts

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ export class VaultController {
401401
try {
402402
const now = new Date().toISOString();
403403
const client = await this.ensureClient(w3id, ename);
404-
const existingProfile = await this.findExistingUserProfile(client);
404+
const existingProfile =
405+
await this.findExistingUserProfile(client);
405406
const payload = this.buildUserProfilePayload(
406407
ename,
407408
displayName,
@@ -413,17 +414,18 @@ export class VaultController {
413414
console.log(
414415
`Attempting to update existing UserProfile in eVault (attempt ${attempt}/${maxRetries})`,
415416
);
416-
const response = await client.request<UpdateMetaEnvelopeResponse>(
417-
UPDATE_META_ENVELOPE,
418-
{
419-
id: existingProfile.id,
420-
input: {
421-
ontology: USER_PROFILE_ONTOLOGY,
422-
payload,
423-
acl: ["*"],
417+
const response =
418+
await client.request<UpdateMetaEnvelopeResponse>(
419+
UPDATE_META_ENVELOPE,
420+
{
421+
id: existingProfile.id,
422+
input: {
423+
ontology: USER_PROFILE_ONTOLOGY,
424+
payload,
425+
acl: ["*"],
426+
},
424427
},
425-
},
426-
);
428+
);
427429
this.throwIfGraphQLErrors(
428430
response.updateMetaEnvelope.errors,
429431
"update",
@@ -439,23 +441,25 @@ export class VaultController {
439441
console.log(
440442
`Attempting to create UserProfile in eVault (attempt ${attempt}/${maxRetries})`,
441443
);
442-
const response = await client.request<CreateMetaEnvelopeResponse>(
443-
CREATE_META_ENVELOPE,
444-
{
445-
input: {
446-
ontology: USER_PROFILE_ONTOLOGY,
447-
payload,
448-
acl: ["*"],
444+
const response =
445+
await client.request<CreateMetaEnvelopeResponse>(
446+
CREATE_META_ENVELOPE,
447+
{
448+
input: {
449+
ontology: USER_PROFILE_ONTOLOGY,
450+
payload,
451+
acl: ["*"],
452+
},
449453
},
450-
},
451-
);
454+
);
452455
this.throwIfGraphQLErrors(
453456
response.createMetaEnvelope.errors,
454457
"create",
455458
);
456459
console.log(
457460
"UserProfile created successfully in eVault:",
458-
response.createMetaEnvelope.metaEnvelope?.id ?? "unknown-id",
461+
response.createMetaEnvelope.metaEnvelope?.id ??
462+
"unknown-id",
459463
);
460464
return;
461465
} catch (error) {

0 commit comments

Comments
 (0)