From 7163ea6c4b4029ed6daeb15fd7429ceb54482b67 Mon Sep 17 00:00:00 2001
From: Qi <474021214@qq.com>
Date: Wed, 22 Feb 2023 11:12:34 +0800
Subject: [PATCH] fix: detail reduction of UI (#1131)
---
apps/desktop/package.json | 2 +-
apps/web/package.json | 2 +-
.../components/header/QuickSearchButton.tsx | 4 +-
.../header-right-items/EditorOptionMenu.tsx | 14 ++---
.../web/src/components/page-list/DateCell.tsx | 8 +--
.../components/page-list/OperationCell.tsx | 27 ++++++----
apps/web/src/components/page-list/index.tsx | 52 +++++++++----------
.../web/src/components/quick-search/config.ts | 12 ++---
apps/web/src/components/quick-search/style.ts | 2 +-
.../workspace-modal/SelectLanguageMenu.tsx | 4 +-
.../src/components/workspace-modal/styles.ts | 2 +-
.../workspace-setting/ExportPage.tsx | 2 +
.../general/delete/Delete.tsx | 1 +
.../member/InviteMemberModal.tsx | 6 +--
.../workspace-setting/member/MembersPage.tsx | 9 +++-
.../components/workspace-slider-bar/index.tsx | 16 +++---
.../src/pages/workspace/[workspaceId]/all.tsx | 4 +-
.../workspace/[workspaceId]/favorite.tsx | 6 +--
.../pages/workspace/[workspaceId]/trash.tsx | 6 ++-
packages/component/src/styles/theme.ts | 2 +-
packages/component/src/ui/popper/Popper.tsx | 2 +-
packages/component/src/ui/table/TableCell.tsx | 9 +---
packages/component/src/ui/table/index.ts | 1 +
packages/component/src/ui/table/interface.ts | 5 +-
packages/i18n/src/resources/de.json | 2 +-
packages/i18n/src/resources/en.json | 2 +-
packages/i18n/src/resources/fr.json | 2 +-
packages/i18n/src/resources/ru.json | 2 +-
packages/i18n/src/resources/zh-Hans.json | 2 +-
pnpm-lock.yaml | 18 +++++--
30 files changed, 122 insertions(+), 104 deletions(-)
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index e2528bd7dd..e5fcb2a0c6 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -16,7 +16,7 @@
"dependencies": {
"@blocksuite/blocks": "0.4.1",
"@blocksuite/editor": "0.4.1",
- "@blocksuite/icons": "2.0.12",
+ "@blocksuite/icons": "2.0.17",
"@blocksuite/store": "0.4.1",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
diff --git a/apps/web/package.json b/apps/web/package.json
index 769410c8b8..9dc55990c9 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -16,7 +16,7 @@
"@blocksuite/blocks": "0.4.1",
"@blocksuite/editor": "0.4.1",
"@blocksuite/global": "0.4.1",
- "@blocksuite/icons": "2.0.12",
+ "@blocksuite/icons": "2.0.17",
"@blocksuite/store": "0.4.1",
"@emotion/css": "^11.10.6",
"@emotion/react": "^11.10.6",
diff --git a/apps/web/src/components/header/QuickSearchButton.tsx b/apps/web/src/components/header/QuickSearchButton.tsx
index 122ff6666e..80aa353122 100644
--- a/apps/web/src/components/header/QuickSearchButton.tsx
+++ b/apps/web/src/components/header/QuickSearchButton.tsx
@@ -1,6 +1,6 @@
import { IconButton, IconButtonProps } from '@affine/component';
import { styled } from '@affine/component';
-import { ArrowDownIcon } from '@blocksuite/icons';
+import { ArrowDownSmallIcon } from '@blocksuite/icons';
import React from 'react';
import { useModal } from '@/store/globalModal';
@@ -34,7 +34,7 @@ export const QuickSearchButton = ({
triggerQuickSearchModal();
}}
>
-
+
);
};
diff --git a/apps/web/src/components/header/header-right-items/EditorOptionMenu.tsx b/apps/web/src/components/header/header-right-items/EditorOptionMenu.tsx
index 87d23eecfa..07534f6c96 100644
--- a/apps/web/src/components/header/header-right-items/EditorOptionMenu.tsx
+++ b/apps/web/src/components/header/header-right-items/EditorOptionMenu.tsx
@@ -3,15 +3,15 @@ import { IconButton } from '@affine/component';
import { toast } from '@affine/component';
import { useTranslation } from '@affine/i18n';
import {
+ DeleteTemporarilyIcon,
EdgelessIcon,
ExportIcon,
ExportToHtmlIcon,
ExportToMarkdownIcon,
- FavouritedIcon,
- FavouritesIcon,
+ FavoritedIcon,
+ FavoriteIcon,
MoreVerticalIcon,
PaperIcon,
- TrashIcon,
} from '@blocksuite/icons';
import useCurrentPageMeta from '@/hooks/use-current-page-meta';
@@ -41,9 +41,9 @@ const PopoverContent = () => {
favorite ? t('Removed from Favorites') : t('Added to Favorites')
);
}}
- icon={favorite ? : }
+ icon={favorite ? : }
>
- {favorite ? t('Remove from favorites') : t('Add to favorites')}
+ {favorite ? t('Remove from favorites') : t('Add to Favorites')}
: }
@@ -97,7 +97,7 @@ const PopoverContent = () => {
confirm && toast(t('Moved to Trash'));
});
}}
- icon={}
+ icon={}
>
{t('Delete')}
@@ -107,7 +107,7 @@ const PopoverContent = () => {
export const EditorOptionMenu = () => {
return (
-
} placement="bottom-end">
+ } placement="bottom-end" trigger="click">
diff --git a/apps/web/src/components/page-list/DateCell.tsx b/apps/web/src/components/page-list/DateCell.tsx
index acd184286d..13c80c2c5b 100644
--- a/apps/web/src/components/page-list/DateCell.tsx
+++ b/apps/web/src/components/page-list/DateCell.tsx
@@ -1,4 +1,4 @@
-import { TableCell } from '@affine/component';
+import { TableCell, TableCellProps } from '@affine/component';
import dayjs from 'dayjs';
import localizedFormat from 'dayjs/plugin/localizedFormat';
import React from 'react';
@@ -11,15 +11,15 @@ export const DateCell = ({
pageMeta,
dateKey,
backupKey = '',
+ ...props
}: {
pageMeta: PageMeta;
dateKey: keyof PageMeta;
backupKey?: keyof PageMeta;
-}) => {
- // dayjs().format('L LT');
+} & Omit) => {
const value = pageMeta[dateKey] ?? pageMeta[backupKey];
return (
-
+
{value ? dayjs(value as string).format('YYYY-MM-DD HH:mm') : '--'}
);
diff --git a/apps/web/src/components/page-list/OperationCell.tsx b/apps/web/src/components/page-list/OperationCell.tsx
index b70fec319e..82f476bcef 100644
--- a/apps/web/src/components/page-list/OperationCell.tsx
+++ b/apps/web/src/components/page-list/OperationCell.tsx
@@ -8,13 +8,13 @@ import {
import { toast } from '@affine/component';
import { useTranslation } from '@affine/i18n';
import {
- DeleteForeverIcon,
- FavouritedIcon,
- FavouritesIcon,
+ DeletePermanentlyIcon,
+ DeleteTemporarilyIcon,
+ FavoritedIcon,
+ FavoriteIcon,
MoreVerticalIcon,
OpenInNewIcon,
- RestoreIcon,
- TrashIcon,
+ ResetIcon,
} from '@blocksuite/icons';
import { usePageHelper } from '@/hooks/use-page-helper';
@@ -36,9 +36,9 @@ export const OperationCell = ({ pageMeta }: { pageMeta: PageMeta }) => {
favorite ? t('Removed from Favorites') : t('Added to Favorites')
);
}}
- icon={favorite ? : }
+ icon={favorite ? : }
>
- {favorite ? t('Remove from favorites') : t('Add to favorites')}
+ {favorite ? t('Remove from favorites') : t('Add to Favorites')}
@@ -70,7 +70,12 @@ export const OperationCell = ({ pageMeta }: { pageMeta: PageMeta }) => {
);
return (
-
diff --git a/apps/web/src/components/page-list/index.tsx b/apps/web/src/components/page-list/index.tsx
index bcaeecaa05..eeb30c505e 100644
--- a/apps/web/src/components/page-list/index.tsx
+++ b/apps/web/src/components/page-list/index.tsx
@@ -5,15 +5,12 @@ import {
TableHead,
TableRow,
} from '@affine/component';
-import { Content } from '@affine/component';
-import { IconButton } from '@affine/component';
-import { Tooltip } from '@affine/component';
-import { toast } from '@affine/component';
+import { Content, IconButton, toast, Tooltip } from '@affine/component';
import { useTranslation } from '@affine/i18n';
import {
EdgelessIcon,
- FavouritedIcon,
- FavouritesIcon,
+ FavoritedIcon,
+ FavoriteIcon,
PaperIcon,
} from '@blocksuite/icons';
import { useRouter } from 'next/router';
@@ -62,9 +59,9 @@ const FavoriteTag = ({
className={favorite ? '' : 'favorite-button'}
>
{favorite ? (
-
+
) : (
-
+
)}
@@ -108,23 +105,24 @@ export const PageList = ({
{pageList.map((pageMeta, index) => {
+ // On click event must be set on the table cell, since the last operation cell is not clickable, and if set on the row, the menu will have bug on close.
+ const onClick = () => {
+ if (isPublic) {
+ router.push(
+ `/public-workspace/${router.query.workspaceId}/${pageMeta.id}`
+ );
+ } else {
+ router.push(
+ `/workspace/${currentWorkspace?.id}/${pageMeta.id}`
+ );
+ }
+ };
return (
{
- if (isPublic) {
- router.push(
- `/public-workspace/${router.query.workspaceId}/${pageMeta.id}`
- );
- } else {
- router.push(
- `/workspace/${currentWorkspace?.id}/${pageMeta.id}`
- );
- }
- }}
>
-
+
{pageMeta.mode === 'edgeless' ? (
@@ -139,19 +137,21 @@ export const PageList = ({
{showFavoriteTag && }
-
+
- {!isPublic ? (
+ {!isPublic && (
{
- e.stopPropagation();
- }}
>
{isTrash ? (
@@ -159,7 +159,7 @@ export const PageList = ({
)}
- ) : null}
+ )}
);
})}
diff --git a/apps/web/src/components/quick-search/config.ts b/apps/web/src/components/quick-search/config.ts
index 71068f7c16..a8281aa228 100644
--- a/apps/web/src/components/quick-search/config.ts
+++ b/apps/web/src/components/quick-search/config.ts
@@ -1,9 +1,9 @@
import { useTranslation } from '@affine/i18n';
import {
- AllPagesIcon,
- FavouritesIcon,
+ DeleteTemporarilyIcon,
+ FavoriteIcon,
+ FolderIcon,
SettingsIcon,
- TrashIcon,
} from '@blocksuite/icons';
import { FC, SVGProps } from 'react';
@@ -19,14 +19,14 @@ export const useSwitchToConfig = (
{
title: t('All pages'),
href: currentWorkspaceId ? `/workspace/${currentWorkspaceId}/all` : '',
- icon: AllPagesIcon,
+ icon: FolderIcon,
},
{
title: t('Favorites'),
href: currentWorkspaceId
? `/workspace/${currentWorkspaceId}/favorite`
: '',
- icon: FavouritesIcon,
+ icon: FavoriteIcon,
},
{
title: t('Workspace Settings'),
@@ -38,7 +38,7 @@ export const useSwitchToConfig = (
{
title: t('Trash'),
href: currentWorkspaceId ? `/workspace/${currentWorkspaceId}/trash` : '',
- icon: TrashIcon,
+ icon: DeleteTemporarilyIcon,
},
];
};
diff --git a/apps/web/src/components/quick-search/style.ts b/apps/web/src/components/quick-search/style.ts
index 6e39cd0fad..e2dfa13a1a 100644
--- a/apps/web/src/components/quick-search/style.ts
+++ b/apps/web/src/components/quick-search/style.ts
@@ -102,7 +102,7 @@ export const StyledModalDivider = styled('div')(({ theme }) => {
height: '0',
margin: '6px 16px 6.5px 16px',
position: 'relative',
- borderTop: `0.5px solid ${theme.colors.placeHolderColor}`,
+ borderTop: `0.5px solid ${theme.colors.borderColor}`,
transition: 'all 0.15s',
};
});
diff --git a/apps/web/src/components/workspace-modal/SelectLanguageMenu.tsx b/apps/web/src/components/workspace-modal/SelectLanguageMenu.tsx
index 888bf9ea0b..2b6a5e7bb9 100644
--- a/apps/web/src/components/workspace-modal/SelectLanguageMenu.tsx
+++ b/apps/web/src/components/workspace-modal/SelectLanguageMenu.tsx
@@ -3,7 +3,7 @@ import { Button } from '@affine/component';
import { Menu, MenuItem } from '@affine/component';
import { LOCALES } from '@affine/i18n';
import { useTranslation } from '@affine/i18n';
-import { ArrowDownIcon } from '@blocksuite/icons';
+import { ArrowDownSmallIcon } from '@blocksuite/icons';
const LanguageMenuContent = () => {
const { i18n } = useTranslation();
@@ -41,7 +41,7 @@ export const LanguageMenu = () => {
disablePortal={true}
>
}
+ icon={}
iconPosition="end"
noBorder={true}
style={{ textTransform: 'capitalize' }}
diff --git a/apps/web/src/components/workspace-modal/styles.ts b/apps/web/src/components/workspace-modal/styles.ts
index acdfe9fdfb..c28bff041f 100644
--- a/apps/web/src/components/workspace-modal/styles.ts
+++ b/apps/web/src/components/workspace-modal/styles.ts
@@ -10,7 +10,7 @@ export const StyledSplitLine = styled.div(({ theme }) => {
return {
width: '1px',
height: '20px',
- background: theme.colors.iconColor,
+ background: theme.colors.borderColor,
marginRight: '24px',
};
});
diff --git a/apps/web/src/components/workspace-setting/ExportPage.tsx b/apps/web/src/components/workspace-setting/ExportPage.tsx
index 61f1d9d94c..6ee7b52958 100644
--- a/apps/web/src/components/workspace-setting/ExportPage.tsx
+++ b/apps/web/src/components/workspace-setting/ExportPage.tsx
@@ -3,6 +3,8 @@ import { Button } from '@affine/component';
import { WorkspaceUnit } from '@affine/datacenter';
import { useTranslation } from '@affine/i18n';
export const ExportPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
+ console.log('workspace', workspace);
+
const { t } = useTranslation();
return (
<>
diff --git a/apps/web/src/components/workspace-setting/general/delete/Delete.tsx b/apps/web/src/components/workspace-setting/general/delete/Delete.tsx
index 02a1efe611..d86a623406 100644
--- a/apps/web/src/components/workspace-setting/general/delete/Delete.tsx
+++ b/apps/web/src/components/workspace-setting/general/delete/Delete.tsx
@@ -42,6 +42,7 @@ export const WorkspaceDelete = ({
onClose();
router.push(`/workspace`);
};
+ console.log('workspace', workspace);
return (
diff --git a/apps/web/src/components/workspace-setting/member/InviteMemberModal.tsx b/apps/web/src/components/workspace-setting/member/InviteMemberModal.tsx
index 97cd73d1bd..b6eae5210a 100644
--- a/apps/web/src/components/workspace-setting/member/InviteMemberModal.tsx
+++ b/apps/web/src/components/workspace-setting/member/InviteMemberModal.tsx
@@ -50,7 +50,7 @@ export const InviteMemberModal = ({
onInviteSuccess,
}: LoginModalProps) => {
const [email, setEmail] = useState('');
- const [showMember, setShowMember] = useState(false);
+ const [showMember, setShowMember] = useState(true);
const [showTip, setShowTip] = useState(false);
const [userData, setUserData] = useState(null);
const { inviteMember, getUserByEmail } = useMembers();
@@ -90,7 +90,7 @@ export const InviteMemberModal = ({
value={email}
onChange={inputChange}
onBlur={() => {
- setShowMember(false);
+ // setShowMember(false);
}}
placeholder={t('Invite placeholder')}
>
@@ -211,7 +211,6 @@ const MemberIcon = styled('div')(({ theme }) => {
borderRadius: '50%',
color: theme.colors.primaryColor,
background: '#F5F5F5',
- marginRight: '8px',
textAlign: 'center',
lineHeight: '45px',
// icon size
@@ -231,5 +230,6 @@ const Email = styled('div')(({ theme }) => {
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
+ marginLeft: '8px',
};
});
diff --git a/apps/web/src/components/workspace-setting/member/MembersPage.tsx b/apps/web/src/components/workspace-setting/member/MembersPage.tsx
index bbd0777263..01e7229a0e 100644
--- a/apps/web/src/components/workspace-setting/member/MembersPage.tsx
+++ b/apps/web/src/components/workspace-setting/member/MembersPage.tsx
@@ -5,7 +5,11 @@ import { toast } from '@affine/component';
import { FlexWrapper } from '@affine/component';
import { WorkspaceUnit } from '@affine/datacenter';
import { useTranslation } from '@affine/i18n';
-import { EmailIcon, MoreVerticalIcon, TrashIcon } from '@blocksuite/icons';
+import {
+ DeleteTemporarilyIcon,
+ EmailIcon,
+ MoreVerticalIcon,
+} from '@blocksuite/icons';
import { useState } from 'react';
import Loading from '@/components/loading';
@@ -111,7 +115,7 @@ export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
})
);
}}
- icon={}
+ icon={}
>
{t('Remove from workspace')}
@@ -119,6 +123,7 @@ export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
}
placement="bottom-end"
disablePortal={true}
+ trigger="click"
>
diff --git a/apps/web/src/components/workspace-slider-bar/index.tsx b/apps/web/src/components/workspace-slider-bar/index.tsx
index d56f5423d2..3121e64fe3 100644
--- a/apps/web/src/components/workspace-slider-bar/index.tsx
+++ b/apps/web/src/components/workspace-slider-bar/index.tsx
@@ -3,13 +3,13 @@ import { Tooltip } from '@affine/component';
import { IconButton } from '@affine/component';
import { useTranslation } from '@affine/i18n';
import {
- AllPagesIcon,
- ArrowDownIcon,
- FavouritesIcon,
+ ArrowDownSmallIcon,
+ DeleteTemporarilyIcon,
+ FavoriteIcon,
+ FolderIcon,
PlusIcon,
SearchIcon,
SettingsIcon,
- TrashIcon,
} from '@blocksuite/icons';
import Link from 'next/link';
import { useRouter } from 'next/router';
@@ -127,13 +127,13 @@ export const WorkSpaceSliderBar = () => {
-
+
{t('All pages')}
-
+
{t('Favorites')}
{
setShowSubFavorite(!showSubFavorite);
}}
>
- {
- {t('Trash')}
+ {t('Trash')}
{
{t('All pages')} - AFFiNE
- }>{t('All pages')}
+ }>{t('All pages')}
!p.trash)}
showFavoriteTag={true}
diff --git a/apps/web/src/pages/workspace/[workspaceId]/favorite.tsx b/apps/web/src/pages/workspace/[workspaceId]/favorite.tsx
index 1af3075408..3804e7b7c4 100644
--- a/apps/web/src/pages/workspace/[workspaceId]/favorite.tsx
+++ b/apps/web/src/pages/workspace/[workspaceId]/favorite.tsx
@@ -1,5 +1,5 @@
import { useTranslation } from '@affine/i18n';
-import { FavouritesIcon } from '@blocksuite/icons';
+import { FavoriteIcon } from '@blocksuite/icons';
import Head from 'next/head';
import { ReactElement } from 'react';
@@ -16,9 +16,7 @@ export const Favorite = () => {
{t('Favorites')} - AFFiNE
- }>
- {t('Favorites')}
-
+ }>{t('Favorites')}
p.favorite && !p.trash)}
showFavoriteTag={true}
diff --git a/apps/web/src/pages/workspace/[workspaceId]/trash.tsx b/apps/web/src/pages/workspace/[workspaceId]/trash.tsx
index 9f3cbacbcf..299b8ae55d 100644
--- a/apps/web/src/pages/workspace/[workspaceId]/trash.tsx
+++ b/apps/web/src/pages/workspace/[workspaceId]/trash.tsx
@@ -1,5 +1,5 @@
import { useTranslation } from '@affine/i18n';
-import { TrashIcon } from '@blocksuite/icons';
+import { DeleteTemporarilyIcon } from '@blocksuite/icons';
import Head from 'next/head';
import { ReactElement, useCallback } from 'react';
@@ -18,7 +18,9 @@ export const Trash = () => {
{t('Trash')} - AFFiNE
- }>{t('Trash')}
+ }>
+ {t('Trash')}
+
p.trash)}
isTrash={true}
diff --git a/packages/component/src/styles/theme.ts b/packages/component/src/styles/theme.ts
index b68532b565..c04a23d6c6 100644
--- a/packages/component/src/styles/theme.ts
+++ b/packages/component/src/styles/theme.ts
@@ -17,7 +17,7 @@ export const getLightTheme = (
primaryColor: '#6880FF',
pageBackground: '#fff',
hoverBackground: '#F1F3FF',
- innerHoverBackground: '#E9E9EC',
+ innerHoverBackground: '#E0E6FF',
popoverBackground: '#fff',
tooltipBackground: '#6880FF',
codeBackground: '#f2f5f9',
diff --git a/packages/component/src/ui/popper/Popper.tsx b/packages/component/src/ui/popper/Popper.tsx
index 01791dfe8a..eaeaf1e2af 100644
--- a/packages/component/src/ui/popper/Popper.tsx
+++ b/packages/component/src/ui/popper/Popper.tsx
@@ -151,7 +151,7 @@ export const Popper = ({
onPointerLeave={onPointerLeaveHandler}
style={popoverStyle}
className={popoverClassName}
- onClick={() => {
+ onClick={e => {
if (hasClickTrigger && !visibleControlledByParent) {
setVisible(false);
}
diff --git a/packages/component/src/ui/table/TableCell.tsx b/packages/component/src/ui/table/TableCell.tsx
index 390ac4afd1..1a06f93b6d 100644
--- a/packages/component/src/ui/table/TableCell.tsx
+++ b/packages/component/src/ui/table/TableCell.tsx
@@ -1,13 +1,6 @@
-import { HTMLAttributes, PropsWithChildren } from 'react';
-
import { TableCellProps } from './interface';
import { StyledTableCell } from './styles';
-export const TableCell = ({
- children,
- ...props
-}: PropsWithChildren<
- TableCellProps & HTMLAttributes
->) => {
+export const TableCell = ({ children, ...props }: TableCellProps) => {
return {children};
};
diff --git a/packages/component/src/ui/table/index.ts b/packages/component/src/ui/table/index.ts
index 67b0695b58..e2803cc55a 100644
--- a/packages/component/src/ui/table/index.ts
+++ b/packages/component/src/ui/table/index.ts
@@ -5,6 +5,7 @@
// import TableRow from '@mui/material/TableRow';
//
+export * from './interface';
export * from './Table';
export * from './TableBody';
export * from './TableCell';
diff --git a/packages/component/src/ui/table/interface.ts b/packages/component/src/ui/table/interface.ts
index 30e8795e50..f9fa382255 100644
--- a/packages/component/src/ui/table/interface.ts
+++ b/packages/component/src/ui/table/interface.ts
@@ -1,8 +1,9 @@
-import { CSSProperties } from 'react';
+import { CSSProperties, HTMLAttributes, PropsWithChildren } from 'react';
export type TableCellProps = {
align?: 'left' | 'right' | 'center';
ellipsis?: boolean;
proportion?: number;
style?: CSSProperties;
-};
+} & PropsWithChildren &
+ HTMLAttributes;
diff --git a/packages/i18n/src/resources/de.json b/packages/i18n/src/resources/de.json
index 0504833c67..ba04c697f2 100644
--- a/packages/i18n/src/resources/de.json
+++ b/packages/i18n/src/resources/de.json
@@ -29,7 +29,7 @@
"Sign out description": "Nach dem Abmelden gehen alle nicht synchronisierten Inhalte verloren.",
"Joined Workspace": "Workspace beigetreten",
"404 - Page Not Found": "404 - Seite nicht gefunden",
- "Add to favorites": "Zu Favoriten hinzufügen",
+ "Add to Favorites": "Zu Favoriten hinzufügen",
"Added to Favorites": "Zu Favoriten hinzugefügt",
"All pages": "Alle Seiten",
"Bold": "Fett",
diff --git a/packages/i18n/src/resources/en.json b/packages/i18n/src/resources/en.json
index 4b10b64cec..a8c03841c5 100644
--- a/packages/i18n/src/resources/en.json
+++ b/packages/i18n/src/resources/en.json
@@ -23,7 +23,7 @@
"Find results": "Find {{number}} results",
"Collapse sidebar": "Collapse sidebar",
"Expand sidebar": "Expand sidebar",
- "Add to favorites": "Add to favorites",
+ "Add to Favorites": "Add to Favorites",
"Paper": "Paper",
"Edgeless": "Edgeless",
"Added to Favorites": "Added to Favorites",
diff --git a/packages/i18n/src/resources/fr.json b/packages/i18n/src/resources/fr.json
index be2309fa48..da94abb3c9 100644
--- a/packages/i18n/src/resources/fr.json
+++ b/packages/i18n/src/resources/fr.json
@@ -22,7 +22,7 @@
"Sign out description": "Se déconnecter provoquera la perte du contenu non synchronisé.",
"404 - Page Not Found": "Erreur 404 - Page non trouvée",
"AFFiNE Community": "Communauté AFFiNE",
- "Add to favorites": "Ajouter aux favoris",
+ "Add to Favorites": "Ajouter aux favoris",
"Added to Favorites": "Ajouté aux favoris ",
"All pages": "Toutes les pages",
"Bold": "Gras",
diff --git a/packages/i18n/src/resources/ru.json b/packages/i18n/src/resources/ru.json
index adc17a05aa..394a114798 100644
--- a/packages/i18n/src/resources/ru.json
+++ b/packages/i18n/src/resources/ru.json
@@ -39,7 +39,7 @@
"Copied link to clipboard": "Ссылка скопирована в буфер обмена",
"Delete Member?": "Удалить участника?",
"404 - Page Not Found": "404 - Страница не найдена",
- "Add to favorites": "Добавить в избранное",
+ "Add to Favorites": "Добавить в избранное",
"Added to Favorites": "Добавлено в Избранное",
"All changes are saved locally": "Все изменения сохраняются локально",
"All pages": "Все страницы",
diff --git a/packages/i18n/src/resources/zh-Hans.json b/packages/i18n/src/resources/zh-Hans.json
index 580e7efdd8..845869e216 100644
--- a/packages/i18n/src/resources/zh-Hans.json
+++ b/packages/i18n/src/resources/zh-Hans.json
@@ -25,7 +25,7 @@
"Download all data": "下载所有数据",
"Download core data": "下载核心数据",
"Edit": "编辑",
- "Add to favorites": "加入收藏",
+ "Add to Favorites": "加入收藏",
"All pages": "全部页面",
"Cancel": "取消",
"Code block": "代码块",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fcf8a09277..f5c6810a4d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -78,7 +78,7 @@ importers:
specifiers:
'@blocksuite/blocks': 0.4.1
'@blocksuite/editor': 0.4.1
- '@blocksuite/icons': 2.0.12
+ '@blocksuite/icons': 2.0.17
'@blocksuite/store': 0.4.1
'@emotion/react': ^11.10.6
'@emotion/styled': ^11.10.6
@@ -110,7 +110,7 @@ importers:
dependencies:
'@blocksuite/blocks': 0.4.1_atn5tmcwtxn4phcfq72w467xbe
'@blocksuite/editor': 0.4.1_e5cdg6aldwc4hxgrfphufwkeea
- '@blocksuite/icons': 2.0.12_pmekkgnqduwlme35zpnqhenc34
+ '@blocksuite/icons': 2.0.17_pmekkgnqduwlme35zpnqhenc34
'@blocksuite/store': 0.4.1_lit@2.6.1+yjs@13.5.47
'@emotion/react': 11.10.6_pmekkgnqduwlme35zpnqhenc34
'@emotion/styled': 11.10.6_oouaibmszuch5k64ms7uxp2aia
@@ -150,7 +150,7 @@ importers:
'@blocksuite/blocks': 0.4.1
'@blocksuite/editor': 0.4.1
'@blocksuite/global': 0.4.1
- '@blocksuite/icons': 2.0.12
+ '@blocksuite/icons': 2.0.17
'@blocksuite/store': 0.4.1
'@emotion/css': ^11.10.6
'@emotion/react': ^11.10.6
@@ -193,7 +193,7 @@ importers:
'@blocksuite/blocks': 0.4.1_atn5tmcwtxn4phcfq72w467xbe
'@blocksuite/editor': 0.4.1_e5cdg6aldwc4hxgrfphufwkeea
'@blocksuite/global': 0.4.1_lit@2.6.1
- '@blocksuite/icons': 2.0.12_pmekkgnqduwlme35zpnqhenc34
+ '@blocksuite/icons': 2.0.17_pmekkgnqduwlme35zpnqhenc34
'@blocksuite/store': 0.4.1_lit@2.6.1+yjs@13.5.47
'@emotion/css': 11.10.6
'@emotion/react': 11.10.6_pmekkgnqduwlme35zpnqhenc34
@@ -1753,6 +1753,16 @@ packages:
react: 18.2.0
dev: false
+ /@blocksuite/icons/2.0.17_pmekkgnqduwlme35zpnqhenc34:
+ resolution: {integrity: sha512-nFhgnmfYvy/Pk+KBON5M+veZaz/IoQ+rAugzx2nPy+YPkgXvOxa5ml4rhzZYE2qgx7/FdsKQ5qkBWPjJoYRlbw==}
+ peerDependencies:
+ '@types/react': ^18.0.25
+ react: ^18.2.0
+ dependencies:
+ '@types/react': 18.0.28
+ react: 18.2.0
+ dev: false
+
/@blocksuite/phasor/0.4.1_lit@2.6.1+yjs@13.5.47:
resolution: {integrity: sha512-RzAmB9wbsVo8K4sUjjhatM/D/mbe2crHyJ5LE/HkUTIxp7D4DQapRP7RREJojzw2KhcRvapEVRRwlLV2f5wGUQ==}
peerDependencies: