a88b3f776c
Strip the proprietary client EE so the fork ships a clean community/AGPL edition, mirroring Forkmost. Delete apps/client/src/ee (201 files) and packages/ee, and patch every consumer that imported from @/ee/*. - gate-out EE features (useHasFeature -> false): API keys, SSO, MFA, SCIM, audit logs, AI / AI-chat, templates, page permissions, page verification, comment resolution, trash retention, viewer comments - drop cloud/billing/trial/entitlement/posthog flows; sign-in is now email+password only (no SSO/LDAP/cloud) - remove EE routes from App.tsx and EE entries from sidebars/settings nav - restore the community page-share button (ShareModal) that the EE PageShareModal used to provide - remove the dead "Attachments" search filter, dead MFA navigation and orphaned route constants Client type-checks clean; full `pnpm build` is green for all three projects.
20 lines
670 B
TypeScript
20 lines
670 B
TypeScript
import { UserProvider } from "@/features/user/user-provider.tsx";
|
|
import { Outlet, useParams } from "react-router-dom";
|
|
import GlobalAppShell from "@/components/layouts/global/global-app-shell.tsx";
|
|
import { SearchSpotlight } from "@/features/search/components/search-spotlight.tsx";
|
|
import { useGetSpaceBySlugQuery } from "@/features/space/queries/space-query.ts";
|
|
|
|
export default function Layout() {
|
|
const { spaceSlug } = useParams();
|
|
const { data: space } = useGetSpaceBySlugQuery(spaceSlug);
|
|
|
|
return (
|
|
<UserProvider>
|
|
<GlobalAppShell>
|
|
<Outlet />
|
|
</GlobalAppShell>
|
|
<SearchSpotlight spaceId={space?.id} />
|
|
</UserProvider>
|
|
);
|
|
}
|