feat: Add actions dropdown on user view

This commit is contained in:
Jesse Wierzbinski 2024-07-21 21:17:01 +02:00
parent 8ee6aa83b3
commit 54221ce42f
No known key found for this signature in database
13 changed files with 228 additions and 38 deletions

View file

@ -23,7 +23,6 @@ const {
updateItem,
} = useAccountTimeline(client.value, props.id);
// Example of how to handle global events
useListen("note:delete", ({ id }) => {
removeItem(id);
});
@ -31,4 +30,8 @@ useListen("note:delete", ({ id }) => {
useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
loadPrev();
});
</script>

View file

@ -20,7 +20,6 @@ const {
updateItem,
} = useHomeTimeline(client.value);
// Example of how to handle global events
useListen("note:delete", ({ id }) => {
removeItem(id);
});
@ -28,4 +27,8 @@ useListen("note:delete", ({ id }) => {
useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
loadPrev();
});
</script>

View file

@ -20,7 +20,6 @@ const {
updateItem,
} = useLocalTimeline(client.value);
// Example of how to handle global events
useListen("note:delete", ({ id }) => {
removeItem(id);
});
@ -28,4 +27,8 @@ useListen("note:delete", ({ id }) => {
useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
loadPrev();
});
</script>

View file

@ -20,7 +20,6 @@ const {
updateItem,
} = usePublicTimeline(client.value);
// Example of how to handle global events
useListen("note:delete", ({ id }) => {
removeItem(id);
});
@ -28,4 +27,8 @@ useListen("note:delete", ({ id }) => {
useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
loadPrev();
});
</script>

View file

@ -87,6 +87,6 @@ onMounted(() => {
.timeline-item-enter-from,
.timeline-item-leave-to {
opacity: 0;
transform: translateX(30px);
scale: 0.99;
}
</style>