-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17300 from itisAliRH/activity-bar-notifications
New Activity bar - Notifications
- Loading branch information
Showing
16 changed files
with
618 additions
and
243 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
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,39 @@ | ||
.notification-container { | ||
container: notification-content / inline-size; | ||
|
||
width: 100%; | ||
display: grid; | ||
align-items: center; | ||
grid-template-rows: auto auto auto; | ||
|
||
.notification-title { | ||
display: flex; | ||
gap: 0.2rem; | ||
font-size: 1rem; | ||
flex-flow: wrap; | ||
align-items: center; | ||
} | ||
|
||
@container notification-content (min-width: 576px) { | ||
.notification-header { | ||
.notification-title { | ||
font-size: 1.25rem; | ||
} | ||
} | ||
|
||
.notification-actions { | ||
grid-area: 1/2; | ||
justify-self: end; | ||
} | ||
|
||
.notification-message { | ||
grid-column: 1/3; | ||
} | ||
} | ||
|
||
@container notification-content (max-width: 576px) { | ||
.notification-message { | ||
margin-bottom: 0.5rem; | ||
} | ||
} | ||
} |
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,52 @@ | ||
<script setup lang="ts"> | ||
import { library } from "@fortawesome/fontawesome-svg-core"; | ||
import { faCircle } from "@fortawesome/free-solid-svg-icons"; | ||
import { BFormCheckbox } from "bootstrap-vue"; | ||
import { type UserNotification } from "@/api/notifications"; | ||
import MessageNotification from "./Categories/MessageNotification.vue"; | ||
import SharedItemNotification from "./Categories/SharedItemNotification.vue"; | ||
library.add(faCircle); | ||
const props = defineProps<{ | ||
selected?: boolean; | ||
selectable?: boolean; | ||
unreadBorder?: boolean; | ||
notification: UserNotification; | ||
}>(); | ||
const emit = defineEmits(["select"]); | ||
</script> | ||
|
||
<template> | ||
<div | ||
class="notification-card card-container" | ||
:class="props.unreadBorder && !props.notification.seen_time ? 'border-dark unread-notification' : ''"> | ||
<BFormCheckbox | ||
v-if="props.selectable" | ||
class="notification-card-select" | ||
:checked="props.selected" | ||
size="sm" | ||
@change="emit('select', [props.notification])" /> | ||
|
||
<SharedItemNotification | ||
v-if="props.notification.category === 'new_shared_item'" | ||
:notification="props.notification" /> | ||
|
||
<MessageNotification v-else :options="{ notification: props.notification }" /> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
@import "scss/theme/blue.scss"; | ||
.notification-card { | ||
display: flex; | ||
.notification-card-select { | ||
padding-top: 0.35rem; | ||
} | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.