feat(core): add notification list (#10480)

This commit is contained in:
EYHN
2025-03-11 06:23:33 +00:00
parent 06889295e0
commit ea07aa8607
30 changed files with 906 additions and 59 deletions

View File

@@ -4377,6 +4377,10 @@ export function useAFFiNEI18N(): {
* `Collections`
*/
["com.affine.rootAppSidebar.collections"](): string;
/**
* `Notifications`
*/
["com.affine.rootAppSidebar.notifications"](): string;
/**
* `Only doc can be placed on here`
*/
@@ -6975,6 +6979,17 @@ export function useAFFiNEI18N(): {
* `Edgeless`
*/
["com.affine.page-starter-bar.edgeless"](): string;
/**
* `Unsupported message`
*/
["com.affine.notification.unsupported"](): string;
/**
* `{{username}} mentioned you in {{docTitle}}`
*/
["com.affine.notification.mention"](options: Readonly<{
username: string;
docTitle: string;
}>): string;
/**
* `Tips`
*/
@@ -7594,6 +7609,26 @@ export function useAFFiNEI18N(): {
clientVersion: string;
requiredVersion: string;
}>): string;
/**
* `Notification not found.`
*/
["error.NOTIFICATION_NOT_FOUND"](): string;
/**
* `Mention user do not have permission to access space {{spaceId}}.`
*/
["error.MENTION_USER_SPACE_ACCESS_DENIED"](options: {
readonly spaceId: string;
}): string;
/**
* `You cannot mention yourself.`
*/
["error.MENTION_USER_ONESELF_DENIED"](): string;
/**
* `You do not have permission to access notification {{notificationId}}.`
*/
["error.NOTIFICATION_ACCESS_DENIED"](options: {
readonly notificationId: string;
}): string;
} { const { t } = useTranslation(); return useMemo(() => createProxy((key) => t.bind(null, key)), [t]); }
function createComponent(i18nKey: string) {
return (props) => createElement(Trans, { i18nKey, shouldUnescape: true, ...props });

View File

@@ -1086,6 +1086,7 @@
"com.affine.resetSyncStatus.button": "Reset sync",
"com.affine.resetSyncStatus.description": "This operation may fix some synchronization issues.",
"com.affine.rootAppSidebar.collections": "Collections",
"com.affine.rootAppSidebar.notifications": "Notifications",
"com.affine.rootAppSidebar.doc.link-doc-only": "Only doc can be placed on here",
"com.affine.rootAppSidebar.docs.no-subdoc": "No linked docs",
"com.affine.rootAppSidebar.docs.references-loading": "Loading linked docs...",
@@ -1630,6 +1631,9 @@
"com.affine.workspaceSubPath.trash.empty-description": "Deleted docs will appear here.",
"com.affine.write_with_a_blank_page": "Write with a blank page",
"com.affine.yesterday": "Yesterday",
"com.affine.inactive": "Inactive",
"com.affine.inactive-member": "Inactive member",
"com.affine.inactive-workspace": "Inactive workspace",
"core": "core",
"dark": "Dark",
"invited you to join": "invited you to join",
@@ -1734,6 +1738,9 @@
"com.affine.page-starter-bar.template": "Template",
"com.affine.page-starter-bar.ai": "With AI",
"com.affine.page-starter-bar.edgeless": "Edgeless",
"com.affine.notification.unsupported": "Unsupported message",
"com.affine.notification.mention": "<1>{{username}}</1> mentioned you in <2>{{docTitle}}</2>",
"com.affine.notification.empty": "No new notifications",
"tips": "Tips",
"Template": "Template",
"com.affine.template-list.delete": "Delete Template",
@@ -1864,5 +1871,9 @@
"error.INVALID_LICENSE_TO_ACTIVATE": "Invalid license to activate.",
"error.INVALID_LICENSE_UPDATE_PARAMS": "Invalid license update params. {{reason}}",
"error.WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE": "You cannot downgrade the workspace from team workspace because there are more than {{limit}} members that are currently active.",
"error.UNSUPPORTED_CLIENT_VERSION": "Unsupported client with version [{{clientVersion}}], required version is [{{requiredVersion}}]."
"error.UNSUPPORTED_CLIENT_VERSION": "Unsupported client with version [{{clientVersion}}], required version is [{{requiredVersion}}].",
"error.NOTIFICATION_NOT_FOUND": "Notification not found.",
"error.MENTION_USER_SPACE_ACCESS_DENIED": "Mention user do not have permission to access space {{spaceId}}.",
"error.MENTION_USER_ONESELF_DENIED": "You cannot mention yourself.",
"error.NOTIFICATION_ACCESS_DENIED": "You do not have permission to access notification {{notificationId}}."
}