Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Dec 18, 2024
1 parent 576d58a commit 567d9f6
Show file tree
Hide file tree
Showing 93 changed files with 3,728 additions and 1,022 deletions.
3 changes: 3 additions & 0 deletions .idea/Flow - mittwald Design System.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,365 changes: 828 additions & 537 deletions .pnp.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demos/remote-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "run next build",
"build:deps:watch": "run -T build:deps:watch @mittwald/flow-demo-remote-dom",
"dev": "run nx run-many --outputStyle=stream --projects=@mittwald/flow-demo-remote-dom --targets=start,build:deps:watch,build:imports",
"dev": "run nx run-many --outputStyle=stream --projects=@mittwald/flow-demo-remote-dom --targets=start,build:deps:watch",
"start": "run next dev",
"test:compile": "run tsc --noEmit"
},
Expand Down Expand Up @@ -33,7 +33,7 @@
"@types/react-dom": "^19.0.2",
"@yarnpkg/pnpify": "^4.1.3",
"eslint": "^9.16.0",
"nx": "^20.2.1",
"nx": "^20.2.2",
"typescript": "^5.7.2"
},
"overrides": {
Expand Down
18 changes: 17 additions & 1 deletion demos/remote-dom/src/app/host/[demo]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,21 @@ import { useParams } from "next/navigation";

export default function Page() {
const { demo } = useParams<{ demo: string }>();
return <RemoteRenderer src={`http://localhost:3000/remote/${demo}`} />;
return (
<RemoteRenderer
src={`http://localhost:3000/remote/${demo}`}
iframeStyle={{
border: 0,
bottom: 0,
left: 0,
right: 0,
height: "50%",
minHeight: "300px",
position: "fixed",
width: "100%",
boxSizing: "border-box",
paddingInline: "10%",
}}
/>
);
}
2 changes: 2 additions & 0 deletions demos/remote-dom/src/app/host/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ export default function Layout(props: PropsWithChildren) {
<Link href="/host/modal">Modal</Link>
<Link href="/host/simple-form">Simple Form</Link>
<Link href="/host/action-form">Action Form</Link>
<Link href="/host/rhf-form">RHF Form</Link>
<Link href="/host/suspense">Suspense</Link>
<Link href="/host/svg">Icon/SVG</Link>
<Link href="/host/list">List</Link>
<Link href="/host/performance">Performance</Link>
</HeaderNavigation>
<Separator />
<main className={styles.mainContainer}>
Expand Down
21 changes: 21 additions & 0 deletions demos/remote-dom/src/app/remote/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
body {
background-color: bisque;
}

script {
display: none;
}

* {
background-color: rgba(0, 0, 0, 0.1);
display: block;
font-family: sans-serif;
}

[flr-*] {
display: none;
}

* * {
padding-left: 20px;
}
1 change: 1 addition & 0 deletions demos/remote-dom/src/app/remote/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";
import { type PropsWithChildren } from "react";
import { Root } from "@mittwald/flow-remote-react-components";
import "./layout.css";

export default function Page(props: PropsWithChildren) {
return <Root>{props.children}</Root>;
Expand Down
Loading

0 comments on commit 567d9f6

Please sign in to comment.