-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed rounded border design. Dealing with rounding all corners was …
…a pain in the ass and it's better with sharp edges in my opinion.
- Loading branch information
1 parent
ba8436c
commit bc66607
Showing
20 changed files
with
151 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<ul class="friends_friends-list"> | ||
<li v-for="friend in props.friends" class="friends_friends-list_item"> | ||
<span class="friends-list_player-name">{{ | ||
friend.receivingUser.email !== props.user.email ? friend.receivingUser.name : friend.sendingUser.name | ||
}}</span> | ||
</li> | ||
</ul> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { type Friendship } from '../../friendStore'; | ||
import { type User } from '../../store'; | ||
const props = defineProps<{ | ||
friends: Friendship[]; | ||
user: User; | ||
}>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<ul v-if="getFriendRequestsGetter" class="requests_friends-list"> | ||
<li v-for="request in getFriendRequestsGetter.requestsForMe" class="requests_friends-list_item"> | ||
<span class="requests-list_player-name">{{ request.receivingUser.name }}</span> | ||
<span class="requests-list_action-group"> | ||
<button class="requests-list_action-button bad" @click="denyRequest(request.id)"> | ||
<font-awesome-icon :icon="['fas', 'ban']" /> | ||
<!-- Deny --> | ||
</button> | ||
</span> | ||
</li> | ||
</ul> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { storeToRefs } from 'pinia'; | ||
import { friendStore } from '../../friendStore'; | ||
const props = defineProps<{ | ||
denyRequest: Function; | ||
}>(); | ||
const store = friendStore(); | ||
const { getFriendRequestsGetter } = storeToRefs(store); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<ul v-if="getFriendRequestsGetter" class="requests_friends-list"> | ||
<li v-for="request in getFriendRequestsGetter.requestsFromFriends" class="requests_friends-list_item"> | ||
<span class="requests-list_player-name">{{ request.sendingUser.name }}</span> | ||
<span class="requests-list_action-group"> | ||
<button class="requests-list_action-button good" @click="acceptRequest(request.id)"> | ||
<font-awesome-icon :icon="['fas', 'check']" /> | ||
<!-- Approve --> | ||
</button> | ||
<button class="requests-list_action-button bad" @click="denyRequest(request.id)"> | ||
<font-awesome-icon :icon="['fas', 'ban']" /> | ||
<!-- Deny --> | ||
</button> | ||
</span> | ||
</li> | ||
</ul> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { storeToRefs } from 'pinia'; | ||
import { friendStore } from '../../friendStore'; | ||
const props = defineProps<{ | ||
denyRequest: Function; | ||
acceptRequest: Function; | ||
}>(); | ||
const store = friendStore(); | ||
const { getFriendRequestsGetter } = storeToRefs(store); | ||
</script> | ||
|
||
<style lang="scss" scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.