Notifications interface (#5354)

Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com>
This commit is contained in:
Tom Moor
2023-05-20 10:47:32 -04:00
committed by GitHub
parent b1e2ff0713
commit ea885133ac
49 changed files with 1918 additions and 163 deletions

View File

@@ -209,6 +209,7 @@ export default class Link extends Mark {
const target = (event.target as HTMLElement)?.closest("a");
if (
target instanceof HTMLAnchorElement &&
this.editor.elementRef.current?.contains(target) &&
!target.className.includes("ProseMirror-widget") &&
(!view.editable || (view.editable && !view.hasFocus()))
) {

View File

@@ -62,6 +62,7 @@
"Trash": "Trash",
"Settings": "Settings",
"Profile": "Profile",
"Notifications": "Notifications",
"Preferences": "Preferences",
"API documentation": "API documentation",
"Send us feedback": "Send us feedback",
@@ -70,6 +71,7 @@
"Keyboard shortcuts": "Keyboard shortcuts",
"Download {{ platform }} app": "Download {{ platform }} app",
"Log out": "Log out",
"Mark notifications as read": "Mark notifications as read",
"Restore revision": "Restore revision",
"Copy link": "Copy link",
"Link copied": "Link copied",
@@ -90,6 +92,7 @@
"Document": "Document",
"Revision": "Revision",
"Navigation": "Navigation",
"Notification": "Notification",
"People": "People",
"Workspace": "Workspace",
"Recent searches": "Recent searches",
@@ -202,6 +205,8 @@
"Sorry, an error occurred.": "Sorry, an error occurred.",
"Click to retry": "Click to retry",
"Back": "Back",
"Mark all as read": "Mark all as read",
"No notifications yet": "No notifications yet",
"Documents": "Documents",
"Results": "Results",
"No results for {{query}}": "No results for {{query}}",
@@ -312,7 +317,6 @@
"Outdent": "Outdent",
"Could not import file": "Could not import file",
"Account": "Account",
"Notifications": "Notifications",
"API Tokens": "API Tokens",
"Details": "Details",
"Security": "Security",
@@ -370,6 +374,11 @@
"Resend invite": "Resend invite",
"Revoke invite": "Revoke invite",
"Activate account": "Activate account",
"published": "published",
"edited": "edited",
"created the collection": "created the collection",
"mentioned you in": "mentioned you in",
"left a comment on": "left a comment on",
"API token created": "API token created",
"Name your token something that will help you to remember it's use in the future, for example \"local development\", \"production\", or \"continuous integration\".": "Name your token something that will help you to remember it's use in the future, for example \"local development\", \"production\", or \"continuous integration\".",
"The document archive is empty at the moment.": "The document archive is empty at the moment.",
@@ -454,7 +463,6 @@
"Cancel": "Cancel",
"No comments yet": "No comments yet",
"Error updating comment": "Error updating comment",
"edited": "edited",
"Images are still uploading.\nAre you sure you want to discard them?": "Images are still uploading.\nAre you sure you want to discard them?",
"{{ count }} comment": "{{ count }} comment",
"{{ count }} comment_plural": "{{ count }} comments",

View File

@@ -171,6 +171,7 @@ export type CollectionSort = {
export enum NotificationEventType {
PublishDocument = "documents.publish",
UpdateDocument = "documents.update",
CreateRevision = "revisions.create",
CreateCollection = "collections.create",
CreateComment = "comments.create",
MentionedInDocument = "documents.mentioned",