feat: Enhance City and Lodging components with region and country names, and improve password disable functionality

This commit is contained in:
Sean Morley
2025-03-17 10:38:41 -04:00
parent eb541225bd
commit 4e543fad55
6 changed files with 64 additions and 33 deletions

View File

@@ -63,6 +63,13 @@ export const load: PageServerLoad = async (event) => {
immichIntegration = await immichIntegrationsFetch.json();
}
let socialProvidersFetch = await fetch(`${endpoint}/auth/social-providers`, {
headers: {
Cookie: `sessionid=${sessionId}`
}
});
let socialProviders = await socialProvidersFetch.json();
let publicUrlFetch = await fetch(`${endpoint}/public-url/`);
let publicUrl = '';
if (!publicUrlFetch.ok) {
@@ -78,7 +85,8 @@ export const load: PageServerLoad = async (event) => {
emails,
authenticators,
immichIntegration,
publicUrl
publicUrl,
socialProviders
}
};
};