* feat: multitranslational support * - completion of settings page - completion of sidebar * sidebar rerendering bug fix * completion of the lesson navigation & materials page * completion of the course navigation * completion of requested languages * - Implementation of Language Picker - Rename Bug Fixes * checkpoint save * - addition of the language picker to the onboarding. - addition of the language switcher for the lesson notes. * merge completion * initialization of the new branch * add transition.svelte file * lesson note bug fix * feat: add translation migration * completion of translation * fix height issue of dropdown * refactoring * fix: improve code with LOCALE from db * finally get it fully functional * connect with AI * backward compatibility for lesson note * preserve old content, when generating AI content * undo translations in upgrade modal * fix duplicate key issue from codacy trigger --------- Co-authored-by: Rotimi Best <[email protected]>
34 lines
977 B
Svelte
34 lines
977 B
Svelte
<script>
|
|
import { page } from '$app/stores';
|
|
import AddOrgModal from '$lib/components/Org/AddOrgModal/AddOrgModal.svelte';
|
|
import { isQuizPage } from '$lib/utils/functions/app';
|
|
import OrgSideBar from '$lib/components/Org/SideBar.svelte';
|
|
import VerifyEmailModal from '$lib/components/Org/VerifyEmail/VerifyEmailModal.svelte';
|
|
import Box from '$lib/components/Box/index.svelte';
|
|
import { currentOrg } from '$lib/utils/store/org';
|
|
import { goto } from '$app/navigation';
|
|
|
|
export let data;
|
|
|
|
$: if ($currentOrg.id && data.orgName === '*') {
|
|
goto(`/org/${$currentOrg.siteName}`);
|
|
}
|
|
</script>
|
|
|
|
<AddOrgModal />
|
|
|
|
<VerifyEmailModal />
|
|
|
|
<div class="org-root w-full flex items-center justify-between">
|
|
{#if !isQuizPage($page.url?.pathname)}
|
|
<OrgSideBar />
|
|
{/if}
|
|
<div class="org-slot bg-white dark:bg-black w-full">
|
|
{#if data.orgName === '*'}
|
|
<Box>Taking you to your organization...</Box>
|
|
{:else}
|
|
<slot />
|
|
{/if}
|
|
</div>
|
|
</div>
|