Skip to content

Commit

Permalink
Bump versions, dont use app dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Aug 11, 2023
1 parent 8e9c0f7 commit 1aa1c13
Show file tree
Hide file tree
Showing 6 changed files with 8,639 additions and 5,755 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"devDependencies": {
"kill-port": "^2.0.1",
"turbo": "^1.10.12"
},
"dependencies": {
"reactflow": "^11.8.1"
}
}
18 changes: 0 additions & 18 deletions packages/client/src/app/page.tsx

This file was deleted.

10 changes: 10 additions & 0 deletions packages/client/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"use client";

import { DataStory } from "@data-story/ui";
import '@data-story/ui/dist/data-story.css';

export default function Home() {
return <main className="h-screen">
<DataStory />
</main>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ import { ConsoleLog, Application, DiagramBuilder, Merge, Signal, Updates, Sample
import { DataStory } from "@data-story/ui";
import '@data-story/ui/dist/data-story.css';

// TODO: Until warnings are fixed
// This could not be resolved by downgrading to zustand: 4.3.9
let originalWarn = console.warn.bind(console);
console.warn = (message, ...optionalParams) => {
if (message.includes('zustand')) return;
originalWarn(message, ...optionalParams);
}

export default function Home() {
const app = new Application();

Expand Down Expand Up @@ -47,18 +39,16 @@ export default function Home() {
.get()

return <div className="h-screen">
<div className="h-screen">
<div style={{ height: 400 }}>
<DataStory
server={{ type: 'JS', app }}
diagram={diagram}
callback={(options: any) => setTimeout(options.run, 100)}
/>
</div>
<div className="h-screen">
<div style={{ height: 400 }}>
<DataStory
server={{ type: 'JS', app }}
diagram={diagram}
callback={(options: any) => setTimeout(options.run, 100)}
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@data-story/core": "*",
"reactflow": "^11.7.4"
"reactflow": "^11.8.1"
},
"devDependencies": {
"@types/glob": "^8.1.0",
Expand Down
Loading

0 comments on commit 1aa1c13

Please sign in to comment.