-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #703 from contember/feat/headless-tenant
new tenant components
- Loading branch information
Showing
140 changed files
with
5,485 additions
and
316 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
projects: | ||
admin-sandbox: packages/admin-sandbox | ||
playground: packages/playground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
VITE_CONTEMBER_ADMIN_API_BASE_URL=http://localhost:3001 | ||
VITE_CONTEMBER_ADMIN_SESSION_TOKEN=0000000000000000000000000000000000000000 | ||
VITE_CONTEMBER_ADMIN_LOGIN_TOKEN=1111111111111111111111111111111111111111 | ||
VITE_CONTEMBER_ADMIN_PROJECT_NAME=playground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
VITE_CONTEMBER_ADMIN_API_BASE_URL=/_api | ||
VITE_CONTEMBER_ADMIN_SESSION_TOKEN=__SESSION_TOKEN__ | ||
VITE_CONTEMBER_ADMIN_LOGIN_TOKEN=__LOGIN_TOKEN__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
packages/playground/admin/config.ts → packages/playground/admin/app/config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1"> | ||
<link rel="icon" type="image/png" href="../favicon.png"> | ||
<link rel="apple-touch-icon" href="../apple-touch-icon.png"> | ||
<title>Contember Interface</title> | ||
<script type="module" src="/app/index.tsx"></script> | ||
|
||
</head> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { ApplicationEntrypoint, PageModule, Pages } from '@contember/interface' | ||
import { SlotsProvider } from '@contember/react-slots' | ||
import { Layout } from './components/layout' | ||
import '../index.css' | ||
import { Toaster } from '../lib/components/ui/toast' | ||
import { createErrorHandler, DevBar, DevPanel } from '@contember/react-devbar' | ||
import { LogInIcon } from 'lucide-react' | ||
import { LoginWithEmail } from '../lib/components/dev/login-panel' | ||
import { createRoot } from 'react-dom/client' | ||
import { getConfig } from './config' | ||
import { OutdatedApplicationDialog } from '../lib/components/outdated-application-dialog' | ||
|
||
const errorHandler = createErrorHandler((dom, react, onRecoverableError) => createRoot(dom, { onRecoverableError }).render(react)) | ||
|
||
const rootEl = document.body.appendChild(document.createElement('div')) | ||
|
||
errorHandler(onRecoverableError => createRoot(rootEl, { onRecoverableError }).render(<> | ||
<SlotsProvider> | ||
<ApplicationEntrypoint | ||
{...getConfig()} | ||
children={ | ||
<> | ||
<Toaster> | ||
<Pages | ||
layout={Layout} | ||
children={import.meta.glob<PageModule>( | ||
'./pages/**/*.tsx', | ||
{ eager: true }, | ||
)} | ||
/> | ||
{import.meta.env.DEV && <DevBar> | ||
<DevPanel heading="Login" icon={<LogInIcon />}><LoginWithEmail /></DevPanel> | ||
</DevBar>} | ||
</Toaster> | ||
<OutdatedApplicationDialog /> | ||
</> | ||
} | ||
/> | ||
</SlotsProvider> | ||
</>)) |
Oops, something went wrong.