Skip to content

Commit

Permalink
Merge pull request #2350 from finos/tkp/examples
Browse files Browse the repository at this point in the history
Update webpack dev server configuration options, fixes for perspective 2.0+
  • Loading branch information
texodus authored Aug 31, 2023
2 parents 71321bc + 436214f commit bec2442
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/promo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
],
},
devServer: {
contentBase: [
static: [
path.join(__dirname, "dist"),
path.join(__dirname, "../../node_modules/superstore-arrow"),
],
Expand Down
1 change: 1 addition & 0 deletions examples/workspace-editing-python/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import perspective from "@finos/perspective";
import "@finos/perspective-workspace";
import "@finos/perspective-viewer";
import "@finos/perspective-viewer-datagrid";
import "@finos/perspective-viewer-d3fc";

Expand Down
1 change: 1 addition & 0 deletions examples/workspace-editing-python/src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

@import "~@finos/perspective-workspace/dist/theme/pro.less";
@import "~@finos/perspective-viewer/dist/css/themes.css";

body {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion examples/workspace-editing-python/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
],
},
devServer: {
contentBase: [
static: [
path.join(__dirname, "dist"),
path.join(__dirname, "../../node_modules/superstore-arrow"),
],
Expand Down
19 changes: 16 additions & 3 deletions examples/workspace/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import perspective from "@finos/perspective";
import "@finos/perspective-workspace";
import "@finos/perspective-viewer";
import "@finos/perspective-viewer-datagrid";
import "@finos/perspective-viewer-d3fc";

Expand All @@ -37,18 +38,30 @@ const DEFAULT_LAYOUT = {
},
},
viewers: {
One: { table: "superstore", editable: true },
One: {
table: "superstore",
title: "Test Widget I",
editable: true,
linked: true,
},
Two: {
table: "superstore",
title: "Test Widget II (modified)",
linked: true,
},
Three: {
table: "superstore",
name: "Test Widget III (modified)",
title: "Test Widget III (modified)",
group_by: ["State"],
columns: ["Sales", "Profit"],
linked: true,
},
Four: {
table: "superstore",
name: "Test Widget IV (modified)",
title: "Test Widget IV (modified)",
group_by: ["Category", "Sub-Category"],
columns: ["Sales", "Profit"],
linked: true,
},
},
};
Expand Down
1 change: 1 addition & 0 deletions examples/workspace/src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

@import "~@finos/perspective-workspace/dist/css/pro-dark.css";
@import "~@finos/perspective-viewer/dist/css/themes.css";

body {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion examples/workspace/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = {
],
},
devServer: {
contentBase: [
static: [
path.join(__dirname, "dist"),
path.join(__dirname, "../../node_modules/superstore-arrow"),
],
Expand Down

0 comments on commit bec2442

Please sign in to comment.