feat(settings): restructure settings layout and separate route modules

This commit is contained in:
poyrazavsever
2026-07-20 10:25:40 +03:00
parent cc22c8ee1d
commit b424385667
34 changed files with 2867 additions and 1691 deletions
@@ -0,0 +1,29 @@
import { getBrandingService } from "@/server/branding/runtime";
import { getUserPreferences } from "@/server/settings/preferences";
import { requireFreelancerBackend } from "@/server/web/freelancer";
import { AppearanceSettingsForm } from "./appearance-settings-form";
export default async function AppearanceSettingsPage() {
const { actor } = await requireFreelancerBackend();
const branding = getBrandingService().getPublic();
const preferences = getUserPreferences(actor);
return (
<AppearanceSettingsForm
initial={{
colorMode: preferences.colorMode,
primaryColor: branding.primaryColor,
urls: {
lightLogo: branding.lightLogoUrl ?? "",
darkLogo: branding.darkLogoUrl ?? "",
favicon: branding.iconUrl ?? "",
},
custom: {
lightLogo: Boolean(branding.lightLogoFileId),
darkLogo: Boolean(branding.darkLogoFileId),
favicon: Boolean(branding.iconFileId),
},
}}
/>
);
}