Skip to content

Commit

Permalink
chore: fixes linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoldknott committed Feb 26, 2025
1 parent 2717662 commit 8ae12cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions frontend_svelte/src/lib/theming.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
SchemeMonochrome,
// SchemeMonochrome,
SchemeNeutral,
SchemeTonalSpot,
SchemeVibrant,
SchemeExpressive,
// SchemeExpressive,
SchemeFidelity,
SchemeContent,
SchemeRainbow,
SchemeFruitSalad,
// SchemeFruitSalad,
argbFromHex,
Hct,
customColor,
Expand Down
16 changes: 8 additions & 8 deletions frontend_svelte/src/routes/(layout)/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Actions } from './$types';
import { Variant } from '$lib/theming';
import { backendAPI } from '$lib/server/apis';
import { fail } from '@sveltejs/kit';

Expand Down Expand Up @@ -30,13 +29,14 @@ export const actions: Actions = {
if (response.status !== 200) {
return fail(response.status, { error: response.statusText });
}
// console.log('=== layout - layout.server - putProfile - locals.sessionData.userProfile ===');
// console.log(locals.sessionData.userProfile);
locals.sessionData.userProfile.user_profile.theme_color = payload.user_profile.theme_color;
locals.sessionData.userProfile.user_profile.theme_variant = payload.user_profile.theme_variant;
locals.sessionData.userProfile.user_profile.contrast = payload.user_profile.contrast;
console.log('=== layout - layout.server - putProfile - locals.sessionData.userProfile ===');
console.log(locals.sessionData.userProfile);
// console.log('=== layout - layout.server - putProfile - locals.sessionData.userProfile ===');
// console.log(locals.sessionData.userProfile);
locals.sessionData.userProfile.user_profile.theme_color = payload.user_profile.theme_color;
locals.sessionData.userProfile.user_profile.theme_variant =
payload.user_profile.theme_variant;
locals.sessionData.userProfile.user_profile.contrast = payload.user_profile.contrast;
console.log('=== layout - layout.server - putProfile - locals.sessionData.userProfile ===');
console.log(locals.sessionData.userProfile);
}
}
};

0 comments on commit 8ae12cb

Please sign in to comment.