feat: migrate project secrets and user-scoped colors
This commit is contained in:
1 parent
dcfdb3d7af
commit
0e450d53de
9 files changed
+263
-7
No files matched your search
@@ -1,9 +1,11 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import type { Snippet } from 'svelte';
|
||||
import type { NavItem } from '../types';
|
||||
import Header from './Header.svelte';
|
||||
import NotificationStack from './NotificationStack.svelte';
|
||||
import PageHeader from './PageHeader.svelte';
|
||||
import { initPrimaryColor, setPrimaryColorUser } from '../primary-color.svelte';
|
||||
|
||||
let {
|
||||
aboutHref,
|
||||
@@ -52,6 +54,12 @@
|
||||
item.href === '/' ? currentPath === '/' : currentPath === item.href || currentPath.startsWith(`${item.href}/`),
|
||||
),
|
||||
);
|
||||
|
||||
$effect(() => {
|
||||
setPrimaryColorUser(username);
|
||||
});
|
||||
|
||||
onMount(() => initPrimaryColor(brand, username));
|
||||
</script>
|
||||
|
||||
<div class={`sc-root sc-app-shell ${className}`} data-theme={theme === 'system' ? undefined : theme}>
|
||||
|
||||
Reference in new issue
Block a user