From 40a305fd2c30898e8b348956df9f176364172d5f Mon Sep 17 00:00:00 2001 From: Joe Still Date: Fri, 26 Apr 2024 05:33:35 -0500 Subject: [PATCH] Add create timestamp to cards --- package.json | 4 ++++ src/components/Board.jsx | 28 +++++++++++++++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 84a29e7..ea23ea0 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,11 @@ "version": "0.0.0", "type": "module", "scripts": { + "init": "npm install", "dev": "vite", + "supabase": "npx supabase start", + "supabasereset": "npx supabase db reset", + "supabasefn": "npx supabase functions serve --env-file ./supabase/.env.local", "build": "vite build", "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" diff --git a/src/components/Board.jsx b/src/components/Board.jsx index cf732c0..d0ccc33 100644 --- a/src/components/Board.jsx +++ b/src/components/Board.jsx @@ -650,9 +650,9 @@ export default function Board(props) { ) : ( // https://tailwindcss.com/docs/hover-focus-and-other-states#styling-based-on-parent-state -
-
-
+
+
+
-
+
+ Votes: {voteTotals.calculated[card.id] && (voteTotals.calculated[card.id]).toFixed(2) || 0} +
+
-
- Votes: {voteTotals.calculated[card.id] && (voteTotals.calculated[card.id]).toFixed(2) || 0} +
+ +
+ +
+
-
- + +
+ {new Date(card.created).toLocaleDateString()} {new Date(card.created).toLocaleTimeString()}
- - {/*
{new Date(card.created).toISOString()}
*/}
)}
@@ -709,4 +715,4 @@ export default function Board(props) {
) -} \ No newline at end of file +}