From 315fef6c596fb718b5d4b7c61ba19bd9b979f5f6 Mon Sep 17 00:00:00 2001 From: ldscavo Date: Sun, 15 Dec 2024 16:11:16 -0500 Subject: [PATCH] more work on item redo --- client/src/components/budget.vue | 9 +- client/src/components/itemV2.vue | 153 +++++++++++++++++++++++++ client/src/components/recipientV2.vue | 51 +++------ client/src/components/recipientsV2.vue | 10 +- package-lock.json | 16 ++- package.json | 3 +- 6 files changed, 200 insertions(+), 42 deletions(-) create mode 100644 client/src/components/itemV2.vue diff --git a/client/src/components/budget.vue b/client/src/components/budget.vue index 5038a15..eef134f 100644 --- a/client/src/components/budget.vue +++ b/client/src/components/budget.vue @@ -5,17 +5,20 @@
- + v-bind:deleteRecipient="deleteRecipient" /> + --> + - + diff --git a/client/src/components/itemV2.vue b/client/src/components/itemV2.vue new file mode 100644 index 0000000..6f9d336 --- /dev/null +++ b/client/src/components/itemV2.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/client/src/components/recipientV2.vue b/client/src/components/recipientV2.vue index 147d85c..4135b82 100644 --- a/client/src/components/recipientV2.vue +++ b/client/src/components/recipientV2.vue @@ -4,8 +4,8 @@ - - + + {{ recipient.name }} @@ -19,38 +19,18 @@ - - - + + @@ -65,6 +45,7 @@ import _ from 'lodash' import recipientDetails from './recipientDetails.vue' import recipientMinimized from './recipientMinimized.vue' import item from './item.vue' +import itemV2 from './itemV2.vue' import addItem from './addItem.vue' import editRecipient from './editRecipient.vue' @@ -81,6 +62,7 @@ export default { recipientDetails, recipientMinimized, item, + itemV2, addItem, editRecipient }, @@ -132,10 +114,11 @@ td.dollars { } .item-list { margin-top: 0px; + border: 1px solid #000; } .toolbar-item { text-align: center; cursor: pointer; padding: 5px; } - \ No newline at end of file + diff --git a/client/src/components/recipientsV2.vue b/client/src/components/recipientsV2.vue index c4f2b4e..5d6c77b 100644 --- a/client/src/components/recipientsV2.vue +++ b/client/src/components/recipientsV2.vue @@ -5,8 +5,12 @@ - +
+ + - - - - - - - - - - - - - - + +
- - A Whole Pizza$5.99 - - -
- - A Whole Pizza$5.99 - - -
Total:$500.00{{ totalSpent() }}
Budgeted Remaining
@@ -33,4 +37,4 @@ export default { .dollars { text-align: right !important; } - \ No newline at end of file + diff --git a/package-lock.json b/package-lock.json index 6c0bfea..231b39d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,8 @@ }, "devDependencies": { "nodemon": "^2.0.6", - "npm-run-all": "^4.1.5" + "npm-run-all": "^4.1.5", + "typescript": "^5.6.3" } }, "node_modules/@babel/code-frame": { @@ -4594,6 +4595,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/typescript": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", diff --git a/package.json b/package.json index 05ecb29..376faad 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ }, "devDependencies": { "nodemon": "^2.0.6", - "npm-run-all": "^4.1.5" + "npm-run-all": "^4.1.5", + "typescript": "^5.6.3" } }