From 3fb96dd979d280a739175a9fa5bc0596f411cd7a Mon Sep 17 00:00:00 2001 From: benal01 Date: Mon, 17 Mar 2025 21:31:06 -0400 Subject: embed elements into dashboard --- ufund-api/src/main/resources/application.properties | 6 +++--- ufund-ui/src/app/components/dashboard/dashboard.component.html | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ufund-api/src/main/resources/application.properties b/ufund-api/src/main/resources/application.properties index 70cb171..2679f88 100644 --- a/ufund-api/src/main/resources/application.properties +++ b/ufund-api/src/main/resources/application.properties @@ -1,9 +1,9 @@ # rename to application.properties server.error.include-message=always -cupboard.file=data/cupboard.json -users.file=data/users.json -authKeys.file=data/userAuths.json +cupboard.file=ufund-api/data/cupboard.json +users.file=ufund-api/data/users.json +authKeys.file=ufund-api/data/userAuths.json spring.jackson.mapper.auto-detect-getters=false spring.jackson.mapper.auto-detect-setters=false diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.html b/ufund-ui/src/app/components/dashboard/dashboard.component.html index c73849f..09dc311 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.html +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.html @@ -1,5 +1,4 @@ -

dashboard works!

- + +

Dashboard

+ + -- cgit v1.2.3 From 13c0042f9c6e130a061cbb448cff6bcd9e8ab5e6 Mon Sep 17 00:00:00 2001 From: benal01 Date: Mon, 17 Mar 2025 21:31:16 -0400 Subject: embed element into dashboard --- ufund-ui/src/app/components/home-page/home-page.component.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ufund-ui/src/app/components/home-page/home-page.component.html b/ufund-ui/src/app/components/home-page/home-page.component.html index e13c539..d41e670 100644 --- a/ufund-ui/src/app/components/home-page/home-page.component.html +++ b/ufund-ui/src/app/components/home-page/home-page.component.html @@ -1,4 +1,3 @@ Login/Sign Up - -

home-page works!

+ \ No newline at end of file -- cgit v1.2.3 From 7dead0216c5847ed808bebaae106137be19784d4 Mon Sep 17 00:00:00 2001 From: benal01 Date: Mon, 17 Mar 2025 22:02:12 -0400 Subject: back button for needs and dashboard --- ufund-ui/src/app/components/dashboard/dashboard.component.html | 3 ++- ufund-ui/src/app/components/dashboard/dashboard.component.ts | 4 ++++ ufund-ui/src/app/components/need-page/need-page.component.html | 3 ++- ufund-ui/src/app/components/need-page/need-page.component.ts | 4 ++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.html b/ufund-ui/src/app/components/dashboard/dashboard.component.html index 09dc311..fc8baf0 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.html +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.html @@ -1,4 +1,5 @@

Dashboard

+ - + \ No newline at end of file diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.ts b/ufund-ui/src/app/components/dashboard/dashboard.component.ts index dd323c4..48c5894 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.ts +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.ts @@ -8,4 +8,8 @@ import { Component } from '@angular/core'; }) export class DashboardComponent { constructor() {} + + back() { + window.history.back(); + } } diff --git a/ufund-ui/src/app/components/need-page/need-page.component.html b/ufund-ui/src/app/components/need-page/need-page.component.html index 0bc4746..4bb001e 100644 --- a/ufund-ui/src/app/components/need-page/need-page.component.html +++ b/ufund-ui/src/app/components/need-page/need-page.component.html @@ -1,7 +1,8 @@ +

Need page

id: {{need?.id}}

name: {{need?.name}}

filterAttributes: {{need?.filterAttributes}}

type: {{need?.type}}

max goal: {{need?.maxGoal}}

-

current: {{need?.maxGoal}}

+

current: {{need?.maxGoal}}

\ No newline at end of file diff --git a/ufund-ui/src/app/components/need-page/need-page.component.ts b/ufund-ui/src/app/components/need-page/need-page.component.ts index 15c1e87..0673f86 100644 --- a/ufund-ui/src/app/components/need-page/need-page.component.ts +++ b/ufund-ui/src/app/components/need-page/need-page.component.ts @@ -21,4 +21,8 @@ export class NeedPageComponent { const id = Number(this.route.snapshot.paramMap.get('id')); this.cupboardService.getNeed(id).subscribe(n => this.need = n); } + + back() { + window.history.back(); + } } -- cgit v1.2.3