From ef55806e37694585af1d6a46e53c12c4a435137f Mon Sep 17 00:00:00 2001 From: Adam <153423192+aradavi63@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:37:35 +0800 Subject: [PATCH] Issue 78 make friends components (#107) * Adding view to test friends * adding in slots * adding icons to friend bar * adding in more slots * button * add new file for temp friend view * fix buttons * fixing button colours and placement * run prettier * fix eslint error * change pathing to have /friends direct to FriendView * remove redundant slots * change v-col into div (and make friends visible without auth for testing) * editing div component * change friend view to require auth * changing div colour * fix styling of leaderboard and friend row * run prettier --- client/src/components/FriendComponent.vue | 125 ++++++++++++++++++++++ client/src/components/LeaderboardRow.vue | 17 ++- client/src/router/index.ts | 3 +- client/src/views/FriendView.vue | 61 +++++++++++ 4 files changed, 202 insertions(+), 4 deletions(-) create mode 100644 client/src/components/FriendComponent.vue create mode 100644 client/src/views/FriendView.vue diff --git a/client/src/components/FriendComponent.vue b/client/src/components/FriendComponent.vue new file mode 100644 index 0000000..ecff049 --- /dev/null +++ b/client/src/components/FriendComponent.vue @@ -0,0 +1,125 @@ + + + + + + {{ name }} + + + + + + + + + + + Dismiss + + + + + + Delete + + + + + Confirm Deletion + Are you sure you want to delete this friend? + + + Cancel + + Confirm + + + + + + + + + Add Friend + + + + + Accept + + + + + diff --git a/client/src/components/LeaderboardRow.vue b/client/src/components/LeaderboardRow.vue index b421c93..fc2d243 100644 --- a/client/src/components/LeaderboardRow.vue +++ b/client/src/components/LeaderboardRow.vue @@ -9,9 +9,9 @@ defineProps<{ - {{ rank }} {{ points }} pts - +
Are you sure you want to delete this friend?