Skip to content

Commit

Permalink
Merge pull request #2 from ProspectiveCo/psp-2-1-2
Browse files Browse the repository at this point in the history
Update for perspective 2.1.2
  • Loading branch information
texodus committed May 17, 2023
2 parents 97a912d + 2fdad96 commit 7883f73
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 38 deletions.
9 changes: 5 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ const nextConfig = {
reactStrictMode: true,
webpack: (config, _) => {
config.plugins.push(new PerspectivePlugin({ inlineWorker: true }));
config.module.rules.push( {
config.module.rules.push({
test: /\.arrow$/,
use: [{ loader: "arraybuffer-loader" }],
});
return config

return config;
},
}
};

module.exports = nextConfig
module.exports = nextConfig;
54 changes: 27 additions & 27 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"lint": "next lint"
},
"dependencies": {
"@finos/perspective": "2.1.0",
"@finos/perspective-viewer": "2.1.0",
"@finos/perspective-viewer-d3fc": "2.1.0",
"@finos/perspective-viewer-datagrid": "2.1.0",
"@finos/perspective-webpack-plugin": "2.1.0",
"@finos/perspective": "2.1.2",
"@finos/perspective-viewer": "2.1.2",
"@finos/perspective-viewer-d3fc": "2.1.2",
"@finos/perspective-viewer-datagrid": "2.1.2",
"@finos/perspective-webpack-plugin": "2.1.2",
"superstore-arrow": "^1.0.0",
"@types/node": "18.16.0",
"@types/react": "18.2.0",
Expand Down
6 changes: 6 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import '@/styles/globals.css'
import type { AppProps } from 'next/app'

export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}
13 changes: 13 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Html, Head, Main, NextScript } from 'next/document'

export default function Document() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function Home() {
// @ts-ignore
import("superstore-arrow/superstore.arrow"),
]).then(([_, __, ___, perspective, arr]) => {
const worker = perspective.default.worker();
const table = worker.table(arr.default);
const worker = perspective.default.shared_worker();
const table = worker.table(arr.default.slice());
ref.current!.load(table);
})
}, [ref]);
Expand Down

0 comments on commit 7883f73

Please sign in to comment.