- {title}
-
-
- {JSON.stringify(cell, null, 2)}
-
-
-
-
-
-
-{/if}
diff --git a/src/components/table-salary-plugin.js b/src/components/table-salary-plugin.js
deleted file mode 100644
index c1056e7..0000000
--- a/src/components/table-salary-plugin.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import { PluginPosition, BaseComponent, h } from "gridjs";
-
-// https://gridjs.io/docs/plugins/writing-plugin
-class TotalSalaryPlugin extends BaseComponent {
- constructor(...props) {
- super(...props);
-
- this.state = {
- total: 0,
- };
- }
-
- setTotal() {
- this.config.pipeline.process().then(data => {
- this.setState({
- total: data.toArray().reduce((prev, row) => prev + row[1], 0),
- });
- });
- }
-
- componentDidMount() {
- this.setTotal();
- this.config.pipeline.on("updated", this.setTotal.bind(this));
- }
-
- render() {
- // https://preactjs.com/guide/v10/api-reference/#h--createelement
- return h(
- // html tag
- "div",
- // props / attribute
- {
- style: {
- marginTop: "1rem",
- textAlign: "right",
- fontWeight: "bold",
- },
- },
- // children
- `Total: $${this.state.total.toLocaleString()}`,
- );
- }
-}
-
-export default {
- id: "salaryPlugin",
- component: TotalSalaryPlugin,
- // https://gridjs.io/docs/plugins/basics#plugin-position
- position: PluginPosition.Footer,
-};
diff --git a/src/global.d.ts b/src/global.d.ts
deleted file mode 100644
index 63908c6..0000000
--- a/src/global.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-///