From f0d602e31e4460f9bc74e5f2bbc84be054ac4d24 Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Sat, 6 Jan 2024 21:52:12 -0600 Subject: [PATCH] Remove non-functional Actions column from demo --- package-lock.json | 4 ++-- package.json | 2 +- src/routes/+page.svelte | 10 ++-------- src/routes/PaymentActions.svelte | 12 ------------ tsconfig.json | 1 + 5 files changed, 6 insertions(+), 23 deletions(-) delete mode 100644 src/routes/PaymentActions.svelte diff --git a/package-lock.json b/package-lock.json index a544510..89535d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "trestable", - "version": "0.2.1", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "trestable", - "version": "0.2.1", + "version": "0.3.0", "license": "MIT", "devDependencies": { "@sveltejs/adapter-static": "^3.0.1", diff --git a/package.json b/package.json index ee319fe..d36f36b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "trestable", - "version": "0.2.1", + "version": "0.3.0", "description": "A responsive data table component built with Svelte and Bootstrap.", "license": "MIT", "scripts": { diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 65930a3..263fa7c 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -6,7 +6,6 @@ import Pagination from "$lib/Pagination.svelte"; import Trestable from "$lib/Trestable.svelte"; import PaymentStatus from "./PaymentStatus.svelte"; - import PaymentActions from "./PaymentActions.svelte"; export let data: PageData; @@ -14,7 +13,7 @@ { name: "ID", property: "id", - breakpoint: "sm", + breakpoint: "md", }, { name: "Item", @@ -29,7 +28,7 @@ name: "Amount", property: "amount", getValue: (d) => formatUSD(d.amount), - breakpoint: "md", + breakpoint: "sm", }, { name: "Status", @@ -58,11 +57,6 @@ property: "invoiceNum", breakpoint: "xxl", }, - { - name: "Actions", - tdClass: "text-nowrap small", - component: PaymentActions, - }, ]; let paginationIcons = false; diff --git a/src/routes/PaymentActions.svelte b/src/routes/PaymentActions.svelte deleted file mode 100644 index cd1acbe..0000000 --- a/src/routes/PaymentActions.svelte +++ /dev/null @@ -1,12 +0,0 @@ - - -View History - -{#if record.lastEvent.id < 3} -
Cancel -
Resend Email -{/if} diff --git a/tsconfig.json b/tsconfig.json index 7652793..0f202c9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "sourceMap": true, "noUnusedLocals": true, "strict": true, + "module": "NodeNext", "moduleResolution": "NodeNext" } }