feat(core): remove all imports from design/component (#5078)
feat(core): remove all imports from design/component feat(plugin): remove imports from design-components feat(storybook): remove design-components imoprts feat(core): remove fix(component): remove design/component import in local-demo-tip
This commit is contained in:
11
README.md
11
README.md
@@ -107,12 +107,11 @@ If you have questions, you are welcome to contact us. One of the best places to
|
|||||||
|
|
||||||
## Ecosystem
|
## Ecosystem
|
||||||
|
|
||||||
| Name | | |
|
| Name | | |
|
||||||
| ----------------------------------------------------------------------------------------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| -------------------------------------------------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| [@toeverything/component](https://github.com/toeverything/design/tree/main/packages/components) | Toeverything Shared Component Resources | |
|
| [@affine/component](packages/frontend/component) | AFFiNE Component Resources | [](https://affine-storybook.vercel.app/) |
|
||||||
| [@affine/component](packages/frontend/component) | AFFiNE Component Resources | [](https://affine-storybook.vercel.app/) |
|
| [@toeverything/y-indexeddb](packages/common/y-indexeddb) | IndexedDB database adapter for Yjs | [](https://www.npmjs.com/package/@toeverything/y-indexeddb) |
|
||||||
| [@toeverything/y-indexeddb](packages/common/y-indexeddb) | IndexedDB database adapter for Yjs | [](https://www.npmjs.com/package/@toeverything/y-indexeddb) |
|
| [@toeverything/theme](packages/common/theme) | AFFiNE theme | [](https://www.npmjs.com/package/@toeverything/theme) |
|
||||||
| [@toeverything/theme](packages/common/theme) | AFFiNE theme | [](https://www.npmjs.com/package/@toeverything/theme) |
|
|
||||||
|
|
||||||
## Plugins
|
## Plugins
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./theme/*": "./src/theme/*",
|
"./theme/*": "./src/theme/*",
|
||||||
|
"./ui/*": "./src/ui/*/index.ts",
|
||||||
"./*": "./src/components/*/index.tsx"
|
"./*": "./src/components/*/index.tsx"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import { Button, IconButton } from '@affine/component/ui/button';
|
||||||
import { CloseIcon } from '@blocksuite/icons';
|
import { CloseIcon } from '@blocksuite/icons';
|
||||||
import { Button, IconButton } from '@toeverything/components/button';
|
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { Unreachable } from '@affine/env/constant';
|
import { Unreachable } from '@affine/env/constant';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { CloseIcon, NewIcon, ResetIcon } from '@blocksuite/icons';
|
import { CloseIcon, NewIcon, ResetIcon } from '@blocksuite/icons';
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import {
|
import {
|
||||||
changelogCheckedAtom,
|
changelogCheckedAtom,
|
||||||
currentChangelogUnreadAtom,
|
currentChangelogUnreadAtom,
|
||||||
@@ -15,6 +14,7 @@ import clsx from 'clsx';
|
|||||||
import { useAtomValue, useSetAtom } from 'jotai';
|
import { useAtomValue, useSetAtom } from 'jotai';
|
||||||
import { startTransition, useCallback } from 'react';
|
import { startTransition, useCallback } from 'react';
|
||||||
|
|
||||||
|
import { Tooltip } from '../../../ui/tooltip';
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
|
|
||||||
export interface AddPageButtonPureProps {
|
export interface AddPageButtonPureProps {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ArrowLeftSmallIcon, ArrowRightSmallIcon } from '@blocksuite/icons';
|
import { ArrowLeftSmallIcon, ArrowRightSmallIcon } from '@blocksuite/icons';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useAtomValue } from 'jotai';
|
import { useAtomValue } from 'jotai';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
|
import { IconButton } from '../../../ui/button';
|
||||||
|
import { Tooltip } from '../../../ui/tooltip';
|
||||||
import type { History } from '..';
|
import type { History } from '..';
|
||||||
import {
|
import {
|
||||||
navHeaderButton,
|
navHeaderButton,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { SidebarIcon } from '@blocksuite/icons';
|
import { SidebarIcon } from '@blocksuite/icons';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useAtom } from 'jotai';
|
import { useAtom } from 'jotai';
|
||||||
|
|
||||||
|
import { IconButton } from '../../../ui/button';
|
||||||
|
import { Tooltip } from '../../../ui/tooltip';
|
||||||
import { appSidebarOpenAtom } from '../index.jotai';
|
import { appSidebarOpenAtom } from '../index.jotai';
|
||||||
import * as styles from './sidebar-switch.css';
|
import * as styles from './sidebar-switch.css';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ArrowLeftSmallIcon } from '@blocksuite/icons';
|
import { ArrowLeftSmallIcon } from '@blocksuite/icons';
|
||||||
import { Button, type ButtonProps } from '@toeverything/components/button';
|
|
||||||
import { type FC } from 'react';
|
import { type FC } from 'react';
|
||||||
|
|
||||||
|
import { Button, type ButtonProps } from '../../ui/button';
|
||||||
|
|
||||||
export const BackButton: FC<ButtonProps> = props => {
|
export const BackButton: FC<ButtonProps> = props => {
|
||||||
const t = useAFFiNEI18N();
|
const t = useAFFiNEI18N();
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
import { AuthInput } from './auth-input';
|
import { AuthInput } from './auth-input';
|
||||||
import { AuthPageContainer } from './auth-page-container';
|
import { AuthPageContainer } from './auth-page-container';
|
||||||
import { emailRegex } from './utils';
|
import { emailRegex } from './utils';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import type { FC } from 'react';
|
import type { FC } from 'react';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
import { pushNotificationAtom } from '../notification-center';
|
import { pushNotificationAtom } from '../notification-center';
|
||||||
import { AuthPageContainer } from './auth-page-container';
|
import { AuthPageContainer } from './auth-page-container';
|
||||||
import { SetPassword } from './set-password';
|
import { SetPassword } from './set-password';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import type { FC } from 'react';
|
import type { FC } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
import { AuthPageContainer } from './auth-page-container';
|
import { AuthPageContainer } from './auth-page-container';
|
||||||
|
|
||||||
export const ConfirmChangeEmail: FC<{
|
export const ConfirmChangeEmail: FC<{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Modal } from '@toeverything/components/modal';
|
|
||||||
import type { FC, PropsWithChildren } from 'react';
|
import type { FC, PropsWithChildren } from 'react';
|
||||||
|
|
||||||
|
import { Modal } from '../../ui/modal';
|
||||||
|
|
||||||
export type AuthModalProps = {
|
export type AuthModalProps = {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
setOpen: (value: boolean) => void;
|
setOpen: (value: boolean) => void;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import type { FC } from 'react';
|
import type { FC } from 'react';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
import { pushNotificationAtom } from '../notification-center';
|
import { pushNotificationAtom } from '../notification-center';
|
||||||
import { AuthPageContainer } from './auth-page-container';
|
import { AuthPageContainer } from './auth-page-container';
|
||||||
import { SetPassword } from './set-password';
|
import { SetPassword } from './set-password';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { type FC, useCallback, useRef, useState } from 'react';
|
import { type FC, useCallback, useRef, useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
import { Wrapper } from '../../ui/layout';
|
import { Wrapper } from '../../ui/layout';
|
||||||
import { PasswordInput } from './password-input';
|
import { PasswordInput } from './password-input';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import type { FC } from 'react';
|
import type { FC } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
import { AuthPageContainer } from './auth-page-container';
|
import { AuthPageContainer } from './auth-page-container';
|
||||||
|
|
||||||
export const SignInSuccessPage: FC<{
|
export const SignInSuccessPage: FC<{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import type { FC } from 'react';
|
import type { FC } from 'react';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
import { pushNotificationAtom } from '../notification-center';
|
import { pushNotificationAtom } from '../notification-center';
|
||||||
import { AuthPageContainer } from './auth-page-container';
|
import { AuthPageContainer } from './auth-page-container';
|
||||||
import { SetPassword } from './set-password';
|
import { SetPassword } from './set-password';
|
||||||
|
|||||||
@@ -2,16 +2,16 @@ import { WorkspaceFlavour } from '@affine/env/workspace';
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import type { RootWorkspaceMetadata } from '@affine/workspace/atom';
|
import type { RootWorkspaceMetadata } from '@affine/workspace/atom';
|
||||||
import { CollaborationIcon, SettingsIcon } from '@blocksuite/icons';
|
import { CollaborationIcon, SettingsIcon } from '@blocksuite/icons';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { Divider } from '@toeverything/components/divider';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useBlockSuiteWorkspaceAvatarUrl } from '@toeverything/hooks/use-block-suite-workspace-avatar-url';
|
import { useBlockSuiteWorkspaceAvatarUrl } from '@toeverything/hooks/use-block-suite-workspace-avatar-url';
|
||||||
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
||||||
import { getBlockSuiteWorkspaceAtom } from '@toeverything/infra/__internal__/workspace';
|
import { getBlockSuiteWorkspaceAtom } from '@toeverything/infra/__internal__/workspace';
|
||||||
import { useAtomValue } from 'jotai/react';
|
import { useAtomValue } from 'jotai/react';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
|
import { Avatar } from '../../../ui/avatar';
|
||||||
|
import { Divider } from '../../../ui/divider';
|
||||||
import { Skeleton } from '../../../ui/skeleton';
|
import { Skeleton } from '../../../ui/skeleton';
|
||||||
|
import { Tooltip } from '../../../ui/tooltip';
|
||||||
import {
|
import {
|
||||||
StyledCard,
|
StyledCard,
|
||||||
StyledIconContainer,
|
StyledIconContainer,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
|
|
||||||
import { displayFlex, styled, textEllipsis } from '../../../styles';
|
import { displayFlex, styled, textEllipsis } from '../../../styles';
|
||||||
|
import { IconButton } from '../../../ui/button';
|
||||||
|
|
||||||
export const StyledWorkspaceInfo = styled('div')(() => {
|
export const StyledWorkspaceInfo = styled('div')(() => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import {
|
|
||||||
ConfirmModal,
|
import { ConfirmModal, type ConfirmModalProps } from '../../ui/modal';
|
||||||
type ConfirmModalProps,
|
|
||||||
} from '@toeverything/components/modal';
|
|
||||||
|
|
||||||
export const PublicLinkDisableModal = (props: ConfirmModalProps) => {
|
export const PublicLinkDisableModal = (props: ConfirmModalProps) => {
|
||||||
const t = useAFFiNEI18N();
|
const t = useAFFiNEI18N();
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import {
|
|||||||
NewIcon,
|
NewIcon,
|
||||||
NotionIcon,
|
NotionIcon,
|
||||||
} from '@blocksuite/icons';
|
} from '@blocksuite/icons';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
|
|
||||||
|
import { IconButton } from '../../ui/button';
|
||||||
|
import { Tooltip } from '../../ui/tooltip';
|
||||||
import { BlockCard } from '../card/block-card';
|
import { BlockCard } from '../card/block-card';
|
||||||
import {
|
import {
|
||||||
importPageBodyStyle,
|
importPageBodyStyle,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { AuthPageContainer } from '@affine/component/auth-components';
|
import { AuthPageContainer } from '@affine/component/auth-components';
|
||||||
import { type GetInviteInfoQuery } from '@affine/graphql';
|
import { type GetInviteInfoQuery } from '@affine/graphql';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
|
|
||||||
|
import { Avatar } from '../../ui/avatar';
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
import { FlexWrapper } from '../../ui/layout';
|
import { FlexWrapper } from '../../ui/layout';
|
||||||
import * as styles from './styles.css';
|
import * as styles from './styles.css';
|
||||||
export const AcceptInvitePage = ({
|
export const AcceptInvitePage = ({
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { Permission } from '@affine/graphql';
|
import { Permission } from '@affine/graphql';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ConfirmModal } from '@toeverything/components/modal';
|
|
||||||
import { useCallback, useEffect, useState } from 'react';
|
import { useCallback, useEffect, useState } from 'react';
|
||||||
|
|
||||||
|
import { ConfirmModal } from '../../ui/modal';
|
||||||
import { AuthInput } from '..//auth-components';
|
import { AuthInput } from '..//auth-components';
|
||||||
import { emailRegex } from '..//auth-components/utils';
|
import { emailRegex } from '..//auth-components/utils';
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { SignOutIcon } from '@blocksuite/icons';
|
import { SignOutIcon } from '@blocksuite/icons';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { Button, IconButton } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
|
|
||||||
|
import { Avatar } from '../../ui/avatar';
|
||||||
|
import { Button, IconButton } from '../../ui/button';
|
||||||
|
import { Tooltip } from '../../ui/tooltip';
|
||||||
import { NotFoundPattern } from './not-found-pattern';
|
import { NotFoundPattern } from './not-found-pattern';
|
||||||
import {
|
import {
|
||||||
largeButtonEffect,
|
largeButtonEffect,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
import { CloseIcon, InformationFillDuotoneIcon } from '@blocksuite/icons';
|
import { CloseIcon, InformationFillDuotoneIcon } from '@blocksuite/icons';
|
||||||
import * as Toast from '@radix-ui/react-toast';
|
import * as Toast from '@radix-ui/react-toast';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useAtom, useAtomValue, useSetAtom } from 'jotai';
|
import { useAtom, useAtomValue, useSetAtom } from 'jotai';
|
||||||
import type { ReactNode } from 'react';
|
import type { ReactNode } from 'react';
|
||||||
@@ -17,6 +16,7 @@ import {
|
|||||||
useState,
|
useState,
|
||||||
} from 'react';
|
} from 'react';
|
||||||
|
|
||||||
|
import { IconButton } from '../../ui/button';
|
||||||
import { SuccessIcon } from './icons';
|
import { SuccessIcon } from './icons';
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
import type { Notification } from './index.jotai';
|
import type { Notification } from './index.jotai';
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { FavoritedIcon, FavoriteIcon } from '@blocksuite/icons';
|
import { FavoritedIcon, FavoriteIcon } from '@blocksuite/icons';
|
||||||
import {
|
|
||||||
IconButton,
|
|
||||||
type IconButtonProps,
|
|
||||||
} from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import Lottie from 'lottie-react';
|
import Lottie from 'lottie-react';
|
||||||
import { forwardRef, useCallback, useState } from 'react';
|
import { forwardRef, useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
import { IconButton, type IconButtonProps } from '../../../ui/button';
|
||||||
|
import { Tooltip } from '../../../ui/tooltip';
|
||||||
import favoritedAnimation from './favorited-animation/data.json';
|
import favoritedAnimation from './favorited-animation/data.json';
|
||||||
|
|
||||||
export const FavoriteTag = forwardRef<
|
export const FavoriteTag = forwardRef<
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { EdgelessIcon, ImportIcon, PageIcon } from '@blocksuite/icons';
|
import { EdgelessIcon, ImportIcon, PageIcon } from '@blocksuite/icons';
|
||||||
import { Menu } from '@toeverything/components/menu';
|
|
||||||
import { type PropsWithChildren, useCallback, useState } from 'react';
|
import { type PropsWithChildren, useCallback, useState } from 'react';
|
||||||
|
|
||||||
import { DropdownButton } from '../../../ui/button';
|
import { DropdownButton } from '../../../ui/button';
|
||||||
|
import { Menu } from '../../../ui/menu';
|
||||||
import { BlockCard } from '../../card/block-card';
|
import { BlockCard } from '../../card/block-card';
|
||||||
import { menuContent } from './new-page-button.css';
|
import { menuContent } from './new-page-button.css';
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type { Filter, Literal } from '@affine/env/filter';
|
import type { Filter, Literal } from '@affine/env/filter';
|
||||||
import type { PropertiesMeta } from '@affine/env/filter';
|
import type { PropertiesMeta } from '@affine/env/filter';
|
||||||
import { Menu, MenuItem } from '@toeverything/components/menu';
|
|
||||||
import type { ReactNode } from 'react';
|
import type { ReactNode } from 'react';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
|
import { Menu, MenuItem } from '../../../ui/menu';
|
||||||
import { FilterTag } from './filter-tag-translation';
|
import { FilterTag } from './filter-tag-translation';
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
import { literalMatcher } from './literal-matcher';
|
import { literalMatcher } from './literal-matcher';
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ import type { Filter } from '@affine/env/filter';
|
|||||||
import type { PropertiesMeta } from '@affine/env/filter';
|
import type { PropertiesMeta } from '@affine/env/filter';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { CloseIcon, PlusIcon } from '@blocksuite/icons';
|
import { CloseIcon, PlusIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { Menu } from '@toeverything/components/menu';
|
|
||||||
|
|
||||||
|
import { Button } from '../../../ui/button';
|
||||||
|
import { IconButton } from '../../../ui/button';
|
||||||
|
import { Menu } from '../../../ui/menu';
|
||||||
import { Condition } from './condition';
|
import { Condition } from './condition';
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
import { CreateFilterMenu } from './vars';
|
import { CreateFilterMenu } from './vars';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Menu, MenuItem } from '@toeverything/components/menu';
|
|
||||||
import type { MouseEvent } from 'react';
|
import type { MouseEvent } from 'react';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
|
import { Menu, MenuItem } from '../../../ui/menu';
|
||||||
import * as styles from './multi-select.css';
|
import * as styles from './multi-select.css';
|
||||||
|
|
||||||
export const MultiSelect = ({
|
export const MultiSelect = ({
|
||||||
|
|||||||
@@ -5,14 +5,10 @@ import type {
|
|||||||
VariableMap,
|
VariableMap,
|
||||||
} from '@affine/env/filter';
|
} from '@affine/env/filter';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import {
|
|
||||||
MenuIcon,
|
|
||||||
MenuItem,
|
|
||||||
MenuSeparator,
|
|
||||||
} from '@toeverything/components/menu';
|
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import type { ReactNode } from 'react';
|
import type { ReactNode } from 'react';
|
||||||
|
|
||||||
|
import { MenuIcon, MenuItem, MenuSeparator } from '../../../ui/menu';
|
||||||
import { FilterTag } from './filter-tag-translation';
|
import { FilterTag } from './filter-tag-translation';
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
import { tBoolean, tDate, tTag } from './logical/custom-type';
|
import { tBoolean, tDate, tTag } from './logical/custom-type';
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ import {
|
|||||||
OpenInNewIcon,
|
OpenInNewIcon,
|
||||||
ResetIcon,
|
ResetIcon,
|
||||||
} from '@blocksuite/icons';
|
} from '@blocksuite/icons';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { Menu, MenuIcon, MenuItem } from '@toeverything/components/menu';
|
|
||||||
import { ConfirmModal } from '@toeverything/components/modal';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
|
import { IconButton } from '../../ui/button';
|
||||||
|
import { Menu, MenuIcon, MenuItem } from '../../ui/menu';
|
||||||
|
import { ConfirmModal } from '../../ui/modal';
|
||||||
|
import { Tooltip } from '../../ui/tooltip';
|
||||||
import { FavoriteTag } from './components/favorite-tag';
|
import { FavoriteTag } from './components/favorite-tag';
|
||||||
import { DisablePublicSharing, MoveToTrash } from './operation-menu-items';
|
import { DisablePublicSharing, MoveToTrash } from './operation-menu-items';
|
||||||
import * as styles from './page-list.css';
|
import * as styles from './page-list.css';
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ShareIcon } from '@blocksuite/icons';
|
import { ShareIcon } from '@blocksuite/icons';
|
||||||
import {
|
|
||||||
MenuIcon,
|
|
||||||
MenuItem,
|
|
||||||
type MenuItemProps,
|
|
||||||
} from '@toeverything/components/menu';
|
|
||||||
|
|
||||||
|
import { MenuIcon, MenuItem, type MenuItemProps } from '../../../ui/menu';
|
||||||
import { PublicLinkDisableModal } from '../../disable-public-link';
|
import { PublicLinkDisableModal } from '../../disable-public-link';
|
||||||
|
|
||||||
export const DisablePublicSharing = (props: MenuItemProps) => {
|
export const DisablePublicSharing = (props: MenuItemProps) => {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import {
|
|||||||
ExportToPdfIcon,
|
ExportToPdfIcon,
|
||||||
ExportToPngIcon,
|
ExportToPngIcon,
|
||||||
} from '@blocksuite/icons';
|
} from '@blocksuite/icons';
|
||||||
import { MenuIcon, MenuItem, MenuSub } from '@toeverything/components/menu';
|
|
||||||
import { type ReactNode, useMemo } from 'react';
|
import { type ReactNode, useMemo } from 'react';
|
||||||
|
|
||||||
|
import { MenuIcon, MenuItem, MenuSub } from '../../../ui/menu';
|
||||||
import { transitionStyle } from './index.css';
|
import { transitionStyle } from './index.css';
|
||||||
|
|
||||||
interface ExportMenuItemProps<T> {
|
interface ExportMenuItemProps<T> {
|
||||||
|
|||||||
@@ -1,14 +1,8 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { DeleteIcon } from '@blocksuite/icons';
|
import { DeleteIcon } from '@blocksuite/icons';
|
||||||
import {
|
|
||||||
MenuIcon,
|
import { MenuIcon, MenuItem, type MenuItemProps } from '../../../ui/menu';
|
||||||
MenuItem,
|
import { ConfirmModal, type ConfirmModalProps } from '../../../ui/modal';
|
||||||
type MenuItemProps,
|
|
||||||
} from '@toeverything/components/menu';
|
|
||||||
import {
|
|
||||||
ConfirmModal,
|
|
||||||
type ConfirmModalProps,
|
|
||||||
} from '@toeverything/components/modal';
|
|
||||||
|
|
||||||
export const MoveToTrash = (props: MenuItemProps) => {
|
export const MoveToTrash = (props: MenuItemProps) => {
|
||||||
const t = useAFFiNEI18N();
|
const t = useAFFiNEI18N();
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import type { Tag } from '@affine/env/filter';
|
import type { Tag } from '@affine/env/filter';
|
||||||
import { MoreHorizontalIcon } from '@blocksuite/icons';
|
import { MoreHorizontalIcon } from '@blocksuite/icons';
|
||||||
import { Menu } from '@toeverything/components/menu';
|
|
||||||
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
|
import { Menu } from '../../ui/menu';
|
||||||
import * as styles from './page-tags.css';
|
import * as styles from './page-tags.css';
|
||||||
import { stopPropagation } from './utils';
|
import { stopPropagation } from './utils';
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ import type { DeleteCollectionInfo, PropertiesMeta } from '@affine/env/filter';
|
|||||||
import type { GetPageInfoById } from '@affine/env/page-info';
|
import type { GetPageInfoById } from '@affine/env/page-info';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ViewLayersIcon } from '@blocksuite/icons';
|
import { ViewLayersIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../../ui/button';
|
||||||
|
import { Tooltip } from '../../../ui/tooltip';
|
||||||
import {
|
import {
|
||||||
type CollectionsCRUDAtom,
|
type CollectionsCRUDAtom,
|
||||||
useCollectionManager,
|
useCollectionManager,
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ import type {
|
|||||||
import type { PropertiesMeta } from '@affine/env/filter';
|
import type { PropertiesMeta } from '@affine/env/filter';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { FilterIcon } from '@blocksuite/icons';
|
import { FilterIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Menu } from '@toeverything/components/menu';
|
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../../ui/button';
|
||||||
import { FlexWrapper } from '../../../ui/layout';
|
import { FlexWrapper } from '../../../ui/layout';
|
||||||
|
import { Menu } from '../../../ui/menu';
|
||||||
import { CreateFilterMenu } from '../filter/vars';
|
import { CreateFilterMenu } from '../filter/vars';
|
||||||
import type { useCollectionManager } from '../use-collection-manager';
|
import type { useCollectionManager } from '../use-collection-manager';
|
||||||
import * as styles from './collection-list.css';
|
import * as styles from './collection-list.css';
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
import type { Collection, DeleteCollectionInfo } from '@affine/env/filter';
|
import type { Collection, DeleteCollectionInfo } from '@affine/env/filter';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { DeleteIcon, EditIcon, FilterIcon } from '@blocksuite/icons';
|
import { DeleteIcon, EditIcon, FilterIcon } from '@blocksuite/icons';
|
||||||
import {
|
|
||||||
Menu,
|
|
||||||
MenuIcon,
|
|
||||||
MenuItem,
|
|
||||||
type MenuItemProps,
|
|
||||||
} from '@toeverything/components/menu';
|
|
||||||
import {
|
import {
|
||||||
type PropsWithChildren,
|
type PropsWithChildren,
|
||||||
type ReactElement,
|
type ReactElement,
|
||||||
@@ -14,6 +8,7 @@ import {
|
|||||||
useMemo,
|
useMemo,
|
||||||
} from 'react';
|
} from 'react';
|
||||||
|
|
||||||
|
import { Menu, MenuIcon, MenuItem, type MenuItemProps } from '../../../ui/menu';
|
||||||
import type { useCollectionManager } from '../use-collection-manager';
|
import type { useCollectionManager } from '../use-collection-manager';
|
||||||
import type { AllPageListConfig } from '.';
|
import type { AllPageListConfig } from '.';
|
||||||
import * as styles from './collection-operations.css';
|
import * as styles from './collection-operations.css';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Modal } from '@toeverything/components/modal';
|
|
||||||
import { useCallback, useMemo, useState } from 'react';
|
import { useCallback, useMemo, useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../../ui/button';
|
||||||
import Input from '../../../ui/input';
|
import Input from '../../../ui/input';
|
||||||
|
import { Modal } from '../../../ui/modal';
|
||||||
import * as styles from './create-collection.css';
|
import * as styles from './create-collection.css';
|
||||||
|
|
||||||
export interface CreateCollectionModalProps {
|
export interface CreateCollectionModalProps {
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ import type { Collection } from '@affine/env/filter';
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import type { PageMeta, Workspace } from '@blocksuite/store';
|
import type { PageMeta, Workspace } from '@blocksuite/store';
|
||||||
import type { DialogContentProps } from '@radix-ui/react-dialog';
|
import type { DialogContentProps } from '@radix-ui/react-dialog';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Modal } from '@toeverything/components/modal';
|
|
||||||
import { type ReactNode, useCallback, useMemo, useState } from 'react';
|
import { type ReactNode, useCallback, useMemo, useState } from 'react';
|
||||||
|
|
||||||
import { RadioButton, RadioButtonGroup } from '../../../../ui/button';
|
import { RadioButton, RadioButtonGroup } from '../../../../index';
|
||||||
|
import { Button } from '../../../../ui/button';
|
||||||
|
import { Modal } from '../../../../ui/modal';
|
||||||
import * as styles from './edit-collection.css';
|
import * as styles from './edit-collection.css';
|
||||||
import { PagesMode } from './pages-mode';
|
import { PagesMode } from './pages-mode';
|
||||||
import { RulesMode } from './rules-mode';
|
import { RulesMode } from './rules-mode';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Modal } from '@toeverything/components/modal';
|
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
import { Modal } from '../../../../ui/modal';
|
||||||
import type { AllPageListConfig } from './edit-collection';
|
import type { AllPageListConfig } from './edit-collection';
|
||||||
import { SelectPage } from './select-page';
|
import { SelectPage } from './select-page';
|
||||||
export const useSelectPage = ({
|
export const useSelectPage = ({
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ import type { Collection } from '@affine/env/filter';
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { FilterIcon } from '@blocksuite/icons';
|
import { FilterIcon } from '@blocksuite/icons';
|
||||||
import type { PageMeta } from '@blocksuite/store';
|
import type { PageMeta } from '@blocksuite/store';
|
||||||
import { Menu } from '@toeverything/components/menu';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { type ReactNode, useCallback } from 'react';
|
import { type ReactNode, useCallback } from 'react';
|
||||||
|
|
||||||
|
import { Menu } from '../../../../ui/menu';
|
||||||
import { FilterList } from '../../filter/filter-list';
|
import { FilterList } from '../../filter/filter-list';
|
||||||
import { VariableSelect } from '../../filter/vars';
|
import { VariableSelect } from '../../filter/vars';
|
||||||
import { VirtualizedPageList } from '../../virtualized-page-list';
|
import { VirtualizedPageList } from '../../virtualized-page-list';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { Trans } from '@affine/i18n';
|
import { Trans } from '@affine/i18n';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { FilterIcon } from '@blocksuite/icons';
|
import { FilterIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Menu } from '@toeverything/components/menu';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../../../ui/button';
|
||||||
|
import { Menu } from '../../../../ui/menu';
|
||||||
import { FilterList } from '../../filter';
|
import { FilterList } from '../../filter';
|
||||||
import { VariableSelect } from '../../filter/vars';
|
import { VariableSelect } from '../../filter/vars';
|
||||||
import { VirtualizedPageList } from '../../virtualized-page-list';
|
import { VirtualizedPageList } from '../../virtualized-page-list';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import type { Collection } from '@affine/env/filter';
|
import type { Collection } from '@affine/env/filter';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { SaveIcon } from '@blocksuite/icons';
|
import { SaveIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../../ui/button';
|
||||||
import { createEmptyCollection } from '../use-collection-manager';
|
import { createEmptyCollection } from '../use-collection-manager';
|
||||||
import { useEditCollectionName } from './use-edit-collection';
|
import { useEditCollectionName } from './use-edit-collection';
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { SubscriptionPlan } from '@affine/graphql';
|
import { SubscriptionPlan } from '@affine/graphql';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import bytes from 'bytes';
|
import bytes from 'bytes';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
|
import { Button } from '../../ui/button';
|
||||||
|
import { Tooltip } from '../../ui/tooltip';
|
||||||
import * as styles from './share.css';
|
import * as styles from './share.css';
|
||||||
|
|
||||||
export interface StorageProgressProgress {
|
export interface StorageProgressProgress {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/// <reference types="../../type.d.ts" />
|
/// <reference types="../../type.d.ts" />
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ArrowLeftSmallIcon, ArrowRightSmallIcon } from '@blocksuite/icons';
|
import { ArrowLeftSmallIcon, ArrowRightSmallIcon } from '@blocksuite/icons';
|
||||||
import { Modal, type ModalProps } from '@toeverything/components/modal';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
|
||||||
|
import { Modal, type ModalProps } from '../../ui/modal';
|
||||||
import editingVideo from './editingVideo.mp4';
|
import editingVideo from './editingVideo.mp4';
|
||||||
import {
|
import {
|
||||||
arrowStyle,
|
arrowStyle,
|
||||||
|
|||||||
@@ -47,7 +47,6 @@
|
|||||||
"@react-hookz/web": "^23.1.0",
|
"@react-hookz/web": "^23.1.0",
|
||||||
"@sentry/integrations": "^7.83.0",
|
"@sentry/integrations": "^7.83.0",
|
||||||
"@sentry/react": "^7.83.0",
|
"@sentry/react": "^7.83.0",
|
||||||
"@toeverything/components": "^0.0.46",
|
|
||||||
"@toeverything/theme": "^0.7.20",
|
"@toeverything/theme": "^0.7.20",
|
||||||
"@vanilla-extract/css": "^1.13.0",
|
"@vanilla-extract/css": "^1.13.0",
|
||||||
"@vanilla-extract/dynamic": "^2.0.3",
|
"@vanilla-extract/dynamic": "^2.0.3",
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import '@affine/component/theme/global.css';
|
import '@affine/component/theme/global.css';
|
||||||
import '@affine/component/theme/theme.css';
|
import '@affine/component/theme/theme.css';
|
||||||
import '@toeverything/components/style.css';
|
|
||||||
|
|
||||||
import { AffineContext } from '@affine/component/context';
|
import { AffineContext } from '@affine/component/context';
|
||||||
import { GlobalLoading } from '@affine/component/global-loading';
|
import { GlobalLoading } from '@affine/component/global-loading';
|
||||||
|
|||||||
@@ -156,12 +156,8 @@ function createSetupImpl(rootStore: ReturnType<typeof createStore>) {
|
|||||||
},
|
},
|
||||||
'@blocksuite/global/utils': import('@blocksuite/global/utils'),
|
'@blocksuite/global/utils': import('@blocksuite/global/utils'),
|
||||||
'@toeverything/infra/atom': import('@toeverything/infra/atom'),
|
'@toeverything/infra/atom': import('@toeverything/infra/atom'),
|
||||||
'@toeverything/components/button': import(
|
'@affine/component/ui/button': import('@affine/component/ui/button'),
|
||||||
'@toeverything/components/button'
|
'@affine/component/ui/tooltip': import('@affine/component/ui/tooltip'),
|
||||||
),
|
|
||||||
'@toeverything/components/tooltip': import(
|
|
||||||
'@toeverything/components/tooltip'
|
|
||||||
),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// pluginName -> module -> importName -> updater[]
|
// pluginName -> module -> importName -> updater[]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { Trans } from '@affine/i18n';
|
import { Trans } from '@affine/i18n';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import {
|
import {
|
||||||
type FC,
|
type FC,
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import {
|
|||||||
CountDownRender,
|
CountDownRender,
|
||||||
ModalHeader,
|
ModalHeader,
|
||||||
} from '@affine/component/auth-components';
|
} from '@affine/component/auth-components';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { Trans } from '@affine/i18n';
|
import { Trans } from '@affine/i18n';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import {
|
|||||||
CountDownRender,
|
CountDownRender,
|
||||||
ModalHeader,
|
ModalHeader,
|
||||||
} from '@affine/component/auth-components';
|
} from '@affine/component/auth-components';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { type FC, useCallback } from 'react';
|
import { type FC, useCallback } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
ModalHeader,
|
ModalHeader,
|
||||||
} from '@affine/component/auth-components';
|
} from '@affine/component/auth-components';
|
||||||
import { pushNotificationAtom } from '@affine/component/notification-center';
|
import { pushNotificationAtom } from '@affine/component/notification-center';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import {
|
import {
|
||||||
sendChangeEmailMutation,
|
sendChangeEmailMutation,
|
||||||
sendChangePasswordEmailMutation,
|
sendChangePasswordEmailMutation,
|
||||||
@@ -13,7 +14,6 @@ import {
|
|||||||
} from '@affine/graphql';
|
} from '@affine/graphql';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { useMutation } from '@affine/workspace/affine/gql';
|
import { useMutation } from '@affine/workspace/affine/gql';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { useSetAtom } from 'jotai/react';
|
import { useSetAtom } from 'jotai/react';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import {
|
|||||||
BackButton,
|
BackButton,
|
||||||
ModalHeader,
|
ModalHeader,
|
||||||
} from '@affine/component/auth-components';
|
} from '@affine/component/auth-components';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
||||||
import { useSession } from 'next-auth/react';
|
import { useSession } from 'next-auth/react';
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import {
|
|||||||
CountDownRender,
|
CountDownRender,
|
||||||
ModalHeader,
|
ModalHeader,
|
||||||
} from '@affine/component/auth-components';
|
} from '@affine/component/auth-components';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { type GetUserQuery, getUserQuery } from '@affine/graphql';
|
import { type GetUserQuery, getUserQuery } from '@affine/graphql';
|
||||||
import { Trans } from '@affine/i18n';
|
import { Trans } from '@affine/i18n';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { useMutation } from '@affine/workspace/affine/gql';
|
import { useMutation } from '@affine/workspace/affine/gql';
|
||||||
import { ArrowDownBigIcon, GoogleDuotoneIcon } from '@blocksuite/icons';
|
import { ArrowDownBigIcon, GoogleDuotoneIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { GraphQLError } from 'graphql';
|
import { GraphQLError } from 'graphql';
|
||||||
import { type FC, useState } from 'react';
|
import { type FC, useState } from 'react';
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { SignUpPage } from '@affine/component/auth-components';
|
import { SignUpPage } from '@affine/component/auth-components';
|
||||||
import { AffineShapeIcon } from '@affine/component/page-list';
|
import { AffineShapeIcon } from '@affine/component/page-list';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { Loading } from '@affine/component/ui/loading';
|
||||||
import type { SubscriptionRecurring } from '@affine/graphql';
|
import type { SubscriptionRecurring } from '@affine/graphql';
|
||||||
import {
|
import {
|
||||||
changePasswordMutation,
|
changePasswordMutation,
|
||||||
@@ -8,8 +10,6 @@ import {
|
|||||||
} from '@affine/graphql';
|
} from '@affine/graphql';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { useMutation, useQuery } from '@affine/workspace/affine/gql';
|
import { useMutation, useQuery } from '@affine/workspace/affine/gql';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Loading } from '@toeverything/components/loading';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { Suspense, useCallback, useEffect, useMemo } from 'react';
|
import { Suspense, useCallback, useEffect, useMemo } from 'react';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import { SubscriptionPlan } from '@affine/graphql';
|
import { SubscriptionPlan } from '@affine/graphql';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import Tooltip from '@toeverything/components/tooltip';
|
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
import { withErrorBoundary } from 'react-error-boundary';
|
import { withErrorBoundary } from 'react-error-boundary';
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import { Input, toast } from '@affine/component';
|
import { Input, toast } from '@affine/component';
|
||||||
import { DebugLogger } from '@affine/debug';
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
|
||||||
import { HelpIcon } from '@blocksuite/icons';
|
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import {
|
import {
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
type ConfirmModalProps,
|
type ConfirmModalProps,
|
||||||
Modal,
|
Modal,
|
||||||
} from '@toeverything/components/modal';
|
} from '@affine/component/ui/modal';
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
|
import { DebugLogger } from '@affine/debug';
|
||||||
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
|
import { HelpIcon } from '@blocksuite/icons';
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import type {
|
import type {
|
||||||
LoadDBFileResult,
|
LoadDBFileResult,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
|
||||||
import {
|
import {
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
type ConfirmModalProps,
|
type ConfirmModalProps,
|
||||||
} from '@toeverything/components/modal';
|
} from '@affine/component/ui/modal';
|
||||||
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Menu, MenuItem, MenuTrigger } from '@toeverything/components/menu';
|
import { Menu, MenuItem, MenuTrigger } from '@affine/component/ui/menu';
|
||||||
import { memo, type ReactElement } from 'react';
|
import { memo, type ReactElement } from 'react';
|
||||||
|
|
||||||
import { useLanguageHelper } from '../../../hooks/affine/use-language-helper';
|
import { useLanguageHelper } from '../../../hooks/affine/use-language-helper';
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { Input } from '@affine/component';
|
import { Input } from '@affine/component';
|
||||||
|
import {
|
||||||
|
ConfirmModal,
|
||||||
|
type ConfirmModalProps,
|
||||||
|
} from '@affine/component/ui/modal';
|
||||||
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { Trans } from '@affine/i18n';
|
import { Trans } from '@affine/i18n';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import {
|
|
||||||
ConfirmModal,
|
|
||||||
type ConfirmModalProps,
|
|
||||||
} from '@toeverything/components/modal';
|
|
||||||
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { SettingRow } from '@affine/component/setting-components';
|
import { SettingRow } from '@affine/component/setting-components';
|
||||||
|
import { ConfirmModal } from '@affine/component/ui/modal';
|
||||||
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ArrowRightSmallIcon } from '@blocksuite/icons';
|
import { ArrowRightSmallIcon } from '@blocksuite/icons';
|
||||||
import { ConfirmModal } from '@toeverything/components/modal';
|
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
import type { WorkspaceSettingDetailProps } from '../types';
|
import type { WorkspaceSettingDetailProps } from '../types';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { pushNotificationAtom } from '@affine/component/notification-center';
|
import { pushNotificationAtom } from '@affine/component/notification-center';
|
||||||
import { SettingRow } from '@affine/component/setting-components';
|
import { SettingRow } from '@affine/component/setting-components';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import type { SaveDBFileResult } from '@toeverything/infra/type';
|
import type { SaveDBFileResult } from '@toeverything/infra/type';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
|
|||||||
@@ -8,16 +8,16 @@ import {
|
|||||||
} from '@affine/component/member-components';
|
} from '@affine/component/member-components';
|
||||||
import { pushNotificationAtom } from '@affine/component/notification-center';
|
import { pushNotificationAtom } from '@affine/component/notification-center';
|
||||||
import { SettingRow } from '@affine/component/setting-components';
|
import { SettingRow } from '@affine/component/setting-components';
|
||||||
|
import { Avatar } from '@affine/component/ui/avatar';
|
||||||
|
import { Button, IconButton } from '@affine/component/ui/button';
|
||||||
|
import { Loading } from '@affine/component/ui/loading';
|
||||||
|
import { Menu, MenuItem } from '@affine/component/ui/menu';
|
||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { Permission, SubscriptionPlan } from '@affine/graphql';
|
import { Permission, SubscriptionPlan } from '@affine/graphql';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ArrowRightBigIcon, MoreVerticalIcon } from '@blocksuite/icons';
|
import { ArrowRightBigIcon, MoreVerticalIcon } from '@blocksuite/icons';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { Button, IconButton } from '@toeverything/components/button';
|
|
||||||
import { Loading } from '@toeverything/components/loading';
|
|
||||||
import { Menu, MenuItem } from '@toeverything/components/menu';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import type { ReactElement } from 'react';
|
import type { ReactElement } from 'react';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { FlexWrapper, Input, Wrapper } from '@affine/component';
|
import { FlexWrapper, Input, Wrapper } from '@affine/component';
|
||||||
import { pushNotificationAtom } from '@affine/component/notification-center';
|
import { pushNotificationAtom } from '@affine/component/notification-center';
|
||||||
|
import { Avatar } from '@affine/component/ui/avatar';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { CameraIcon } from '@blocksuite/icons';
|
import { CameraIcon } from '@blocksuite/icons';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useBlockSuiteWorkspaceAvatarUrl } from '@toeverything/hooks/use-block-suite-workspace-avatar-url';
|
import { useBlockSuiteWorkspaceAvatarUrl } from '@toeverything/hooks/use-block-suite-workspace-avatar-url';
|
||||||
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { FlexWrapper, Input, Switch } from '@affine/component';
|
import { FlexWrapper, Input, Switch } from '@affine/component';
|
||||||
import { SettingRow } from '@affine/component/setting-components';
|
import { SettingRow } from '@affine/component/setting-components';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import { Unreachable } from '@affine/env/constant';
|
import { Unreachable } from '@affine/env/constant';
|
||||||
import type {
|
import type {
|
||||||
AffineCloudWorkspace,
|
AffineCloudWorkspace,
|
||||||
@@ -9,8 +11,6 @@ import type {
|
|||||||
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
||||||
import { noop } from 'foxact/noop';
|
import { noop } from 'foxact/noop';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { FlexWrapper, toast } from '@affine/component';
|
import { FlexWrapper, toast } from '@affine/component';
|
||||||
import { SettingRow } from '@affine/component/setting-components';
|
import { SettingRow } from '@affine/component/setting-components';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
import type { AffineOfficialWorkspace } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import type { MoveDBFileResult } from '@toeverything/infra/type';
|
import type { MoveDBFileResult } from '@toeverything/infra/type';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { useCallback, useEffect, useState } from 'react';
|
import { useCallback, useEffect, useState } from 'react';
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import {
|
|||||||
BlockSuiteEditor,
|
BlockSuiteEditor,
|
||||||
EditorLoading,
|
EditorLoading,
|
||||||
} from '@affine/component/block-suite-editor';
|
} from '@affine/component/block-suite-editor';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { ConfirmModal, Modal } from '@affine/component/ui/modal';
|
||||||
import type { PageMode } from '@affine/core/atoms';
|
import type { PageMode } from '@affine/core/atoms';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import type { Workspace } from '@blocksuite/store';
|
import type { Workspace } from '@blocksuite/store';
|
||||||
import type { DialogContentProps } from '@radix-ui/react-dialog';
|
import type { DialogContentProps } from '@radix-ui/react-dialog';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { ConfirmModal, Modal } from '@toeverything/components/modal';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { useAtom, useAtomValue } from 'jotai';
|
import { useAtom, useAtomValue } from 'jotai';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import { ConfirmModal } from '@affine/component/ui/modal';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ConfirmModal } from '@toeverything/components/modal';
|
|
||||||
import { useAtom } from 'jotai';
|
import { useAtom } from 'jotai';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import {
|
|||||||
SettingRow,
|
SettingRow,
|
||||||
StorageProgress,
|
StorageProgress,
|
||||||
} from '@affine/component/setting-components';
|
} from '@affine/component/setting-components';
|
||||||
|
import { Avatar } from '@affine/component/ui/avatar';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import {
|
import {
|
||||||
allBlobSizesQuery,
|
allBlobSizesQuery,
|
||||||
removeAvatarMutation,
|
removeAvatarMutation,
|
||||||
@@ -14,8 +16,6 @@ import {
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { useMutation, useQuery } from '@affine/workspace/affine/gql';
|
import { useMutation, useQuery } from '@affine/workspace/affine/gql';
|
||||||
import { ArrowRightSmallIcon, CameraIcon } from '@blocksuite/icons';
|
import { ArrowRightSmallIcon, CameraIcon } from '@blocksuite/icons';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { validateAndReduceImage } from '@toeverything/hooks/use-block-suite-workspace-avatar-url';
|
import { validateAndReduceImage } from '@toeverything/hooks/use-block-suite-workspace-avatar-url';
|
||||||
import bytes from 'bytes';
|
import bytes from 'bytes';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SettingRow } from '@affine/component/setting-components';
|
import { SettingRow } from '@affine/component/setting-components';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import {
|
import {
|
||||||
downloadProgressAtom,
|
downloadProgressAtom,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Menu, MenuItem, MenuTrigger } from '@toeverything/components/menu';
|
import { Menu, MenuItem, MenuTrigger } from '@affine/component/ui/menu';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import {
|
|||||||
SettingRow,
|
SettingRow,
|
||||||
SettingWrapper,
|
SettingWrapper,
|
||||||
} from '@affine/component/setting-components';
|
} from '@affine/component/setting-components';
|
||||||
|
import { Button, IconButton } from '@affine/component/ui/button';
|
||||||
|
import { Loading } from '@affine/component/ui/loading';
|
||||||
import {
|
import {
|
||||||
createCustomerPortalMutation,
|
createCustomerPortalMutation,
|
||||||
getInvoicesCountQuery,
|
getInvoicesCountQuery,
|
||||||
@@ -20,8 +22,6 @@ import { Trans } from '@affine/i18n';
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { useMutation, useQuery } from '@affine/workspace/affine/gql';
|
import { useMutation, useQuery } from '@affine/workspace/affine/gql';
|
||||||
import { ArrowRightSmallIcon } from '@blocksuite/icons';
|
import { ArrowRightSmallIcon } from '@blocksuite/icons';
|
||||||
import { Button, IconButton } from '@toeverything/components/button';
|
|
||||||
import { Loading } from '@toeverything/components/loading';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import { Suspense, useCallback, useMemo, useState } from 'react';
|
import { Suspense, useCallback, useMemo, useState } from 'react';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { DialogTrigger } from '@radix-ui/react-dialog';
|
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import {
|
import {
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
type ConfirmModalProps,
|
type ConfirmModalProps,
|
||||||
Modal,
|
Modal,
|
||||||
} from '@toeverything/components/modal';
|
} from '@affine/component/ui/modal';
|
||||||
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
|
import { DialogTrigger } from '@radix-ui/react-dialog';
|
||||||
import { type ReactNode, useEffect, useRef } from 'react';
|
import { type ReactNode, useEffect, useRef } from 'react';
|
||||||
|
|
||||||
import * as styles from './style.css';
|
import * as styles from './style.css';
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import type {
|
import type {
|
||||||
Subscription,
|
Subscription,
|
||||||
SubscriptionMutator,
|
SubscriptionMutator,
|
||||||
@@ -13,8 +15,6 @@ import { Trans } from '@affine/i18n';
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { useMutation } from '@affine/workspace/affine/gql';
|
import { useMutation } from '@affine/workspace/affine/gql';
|
||||||
import { DoneIcon } from '@blocksuite/icons';
|
import { DoneIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import { useAtom } from 'jotai';
|
import { useAtom } from 'jotai';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { WorkspaceDetailSkeleton } from '@affine/component/setting-components';
|
import { WorkspaceDetailSkeleton } from '@affine/component/setting-components';
|
||||||
|
import { Modal, type ModalProps } from '@affine/component/ui/modal';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ContactWithUsIcon } from '@blocksuite/icons';
|
import { ContactWithUsIcon } from '@blocksuite/icons';
|
||||||
import { Modal, type ModalProps } from '@toeverything/components/modal';
|
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es';
|
||||||
import { Suspense, useCallback, useLayoutEffect, useRef } from 'react';
|
import { Suspense, useCallback, useLayoutEffect, useRef } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,13 @@ import {
|
|||||||
WorkspaceListItemSkeleton,
|
WorkspaceListItemSkeleton,
|
||||||
WorkspaceListSkeleton,
|
WorkspaceListSkeleton,
|
||||||
} from '@affine/component/setting-components';
|
} from '@affine/component/setting-components';
|
||||||
|
import { Avatar } from '@affine/component/ui/avatar';
|
||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import type { RootWorkspaceMetadata } from '@affine/workspace/atom';
|
import type { RootWorkspaceMetadata } from '@affine/workspace/atom';
|
||||||
import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';
|
import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';
|
||||||
import { Logo1Icon } from '@blocksuite/icons';
|
import { Logo1Icon } from '@blocksuite/icons';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useBlockSuiteWorkspaceAvatarUrl } from '@toeverything/hooks/use-block-suite-workspace-avatar-url';
|
import { useBlockSuiteWorkspaceAvatarUrl } from '@toeverything/hooks/use-block-suite-workspace-avatar-url';
|
||||||
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
||||||
import { getBlockSuiteWorkspaceAtom } from '@toeverything/infra/__internal__/workspace';
|
import { getBlockSuiteWorkspaceAtom } from '@toeverything/infra/__internal__/workspace';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { ExportMenuItems } from '@affine/component/page-list';
|
import { ExportMenuItems } from '@affine/component/page-list';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { Divider } from '@affine/component/ui/divider';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { LinkIcon } from '@blocksuite/icons';
|
import { LinkIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Divider } from '@toeverything/components/divider';
|
|
||||||
|
|
||||||
import { useExportPage } from '../../../../hooks/affine/use-export-page';
|
import { useExportPage } from '../../../../hooks/affine/use-export-page';
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { Divider } from '@affine/component/ui/divider';
|
||||||
|
import { Menu } from '@affine/component/ui/menu';
|
||||||
import {
|
import {
|
||||||
type AffineCloudWorkspace,
|
type AffineCloudWorkspace,
|
||||||
type AffineOfficialWorkspace,
|
type AffineOfficialWorkspace,
|
||||||
@@ -8,9 +11,6 @@ import {
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { WebIcon } from '@blocksuite/icons';
|
import { WebIcon } from '@blocksuite/icons';
|
||||||
import type { Page } from '@blocksuite/store';
|
import type { Page } from '@blocksuite/store';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Divider } from '@toeverything/components/divider';
|
|
||||||
import { Menu } from '@toeverything/components/menu';
|
|
||||||
|
|
||||||
import { useIsSharedPage } from '../../../../hooks/affine/use-is-shared-page';
|
import { useIsSharedPage } from '../../../../hooks/affine/use-is-shared-page';
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ import {
|
|||||||
toast,
|
toast,
|
||||||
} from '@affine/component';
|
} from '@affine/component';
|
||||||
import { PublicLinkDisableModal } from '@affine/component/disable-public-link';
|
import { PublicLinkDisableModal } from '@affine/component/disable-public-link';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { Menu, MenuItem, MenuTrigger } from '@affine/component/ui/menu';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ArrowRightSmallIcon } from '@blocksuite/icons';
|
import { ArrowRightSmallIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { Menu, MenuItem, MenuTrigger } from '@toeverything/components/menu';
|
|
||||||
import { useAtomValue } from 'jotai';
|
import { useAtomValue } from 'jotai';
|
||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
|
||||||
import {
|
import {
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
type ConfirmModalProps,
|
type ConfirmModalProps,
|
||||||
} from '@toeverything/components/modal';
|
} from '@affine/component/ui/modal';
|
||||||
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
type SignOutConfirmModalI18NKeys =
|
type SignOutConfirmModalI18NKeys =
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Empty } from '@affine/component';
|
import { Empty } from '@affine/component';
|
||||||
|
import { Modal, type ModalProps } from '@affine/component/ui/modal';
|
||||||
import { Trans } from '@affine/i18n';
|
import { Trans } from '@affine/i18n';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Modal, type ModalProps } from '@toeverything/components/modal';
|
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { displayFlex, styled } from '@affine/component';
|
import { displayFlex, styled } from '@affine/component';
|
||||||
import { Button } from '@toeverything/components/button';
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
|
||||||
export const Header = styled('div')({
|
export const Header = styled('div')({
|
||||||
height: '44px',
|
height: '44px',
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
import { FlexWrapper } from '@affine/component';
|
import { FlexWrapper } from '@affine/component';
|
||||||
import { Export, MoveToTrash } from '@affine/component/page-list';
|
import { Export, MoveToTrash } from '@affine/component/page-list';
|
||||||
|
import {
|
||||||
|
Menu,
|
||||||
|
MenuIcon,
|
||||||
|
MenuItem,
|
||||||
|
MenuSeparator,
|
||||||
|
} from '@affine/component/ui/menu';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { assertExists } from '@blocksuite/global/utils';
|
import { assertExists } from '@blocksuite/global/utils';
|
||||||
@@ -14,12 +20,6 @@ import {
|
|||||||
PageIcon,
|
PageIcon,
|
||||||
} from '@blocksuite/icons';
|
} from '@blocksuite/icons';
|
||||||
import type { PageMeta } from '@blocksuite/store';
|
import type { PageMeta } from '@blocksuite/store';
|
||||||
import {
|
|
||||||
Menu,
|
|
||||||
MenuIcon,
|
|
||||||
MenuItem,
|
|
||||||
MenuSeparator,
|
|
||||||
} from '@toeverything/components/menu';
|
|
||||||
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
|
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
|
||||||
import { useAtomValue } from 'jotai';
|
import { useAtomValue } from 'jotai';
|
||||||
import { useCallback, useRef, useState } from 'react';
|
import { useCallback, useRef, useState } from 'react';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { assertExists } from '@blocksuite/global/utils';
|
import { assertExists } from '@blocksuite/global/utils';
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
|
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
|
||||||
import { useAtomValue } from 'jotai';
|
import { useAtomValue } from 'jotai';
|
||||||
import type { CSSProperties } from 'react';
|
import type { CSSProperties } from 'react';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
import { Menu, MenuItem } from '@affine/component/ui/menu';
|
||||||
import type { SerializedBlock } from '@blocksuite/blocks';
|
import type { SerializedBlock } from '@blocksuite/blocks';
|
||||||
import type { BaseBlockModel } from '@blocksuite/store';
|
import type { BaseBlockModel } from '@blocksuite/store';
|
||||||
import type { Page } from '@blocksuite/store';
|
import type { Page } from '@blocksuite/store';
|
||||||
import type { VEditor } from '@blocksuite/virgo';
|
import type { VEditor } from '@blocksuite/virgo';
|
||||||
import { Menu, MenuItem } from '@toeverything/components/menu';
|
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { createPortal } from 'react-dom';
|
import { createPortal } from 'react-dom';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Avatar } from '@affine/component/ui/avatar';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { CloudWorkspaceIcon } from '@blocksuite/icons';
|
import { CloudWorkspaceIcon } from '@blocksuite/icons';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
|
|
||||||
import { useCurrentLoginStatus } from '../../hooks/affine/use-current-login-status';
|
import { useCurrentLoginStatus } from '../../hooks/affine/use-current-login-status';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import { Avatar } from '@affine/component/ui/avatar';
|
||||||
|
import { Menu, MenuIcon, MenuItem } from '@affine/component/ui/menu';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { SignOutIcon } from '@blocksuite/icons';
|
import { SignOutIcon } from '@blocksuite/icons';
|
||||||
import { Avatar } from '@toeverything/components/avatar';
|
|
||||||
import { Menu, MenuIcon, MenuItem } from '@toeverything/components/menu';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
|
|
||||||
import { useCurrentUser } from '../../../hooks/affine/use-current-user';
|
import { useCurrentUser } from '../../../hooks/affine/use-current-user';
|
||||||
import { useMembers } from '../../../hooks/affine/use-members';
|
import { useMembers } from '../../../hooks/affine/use-members';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { styled } from '@affine/component';
|
import { styled } from '@affine/component';
|
||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import type { ChangeEvent, PropsWithChildren } from 'react';
|
import type { ChangeEvent, PropsWithChildren } from 'react';
|
||||||
import { useRef } from 'react';
|
import { useRef } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
|
import { IconButton, type IconButtonProps } from '@affine/component/ui/button';
|
||||||
import { ArrowDownSmallIcon } from '@blocksuite/icons';
|
import { ArrowDownSmallIcon } from '@blocksuite/icons';
|
||||||
import {
|
|
||||||
IconButton,
|
|
||||||
type IconButtonProps,
|
|
||||||
} from '@toeverything/components/button';
|
|
||||||
import { forwardRef } from 'react';
|
import { forwardRef } from 'react';
|
||||||
|
|
||||||
import { headerMenuTrigger } from './styles.css';
|
import { headerMenuTrigger } from './styles.css';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { CloseIcon, NewIcon, UserGuideIcon } from '@blocksuite/icons';
|
import { CloseIcon, NewIcon, UserGuideIcon } from '@blocksuite/icons';
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useSetAtom } from 'jotai/react';
|
import { useSetAtom } from 'jotai/react';
|
||||||
import { useAtomValue } from 'jotai/react';
|
import { useAtomValue } from 'jotai/react';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
|
import { Button } from '@affine/component/ui/button';
|
||||||
|
import { ConfirmModal } from '@affine/component/ui/modal';
|
||||||
|
import { Tooltip } from '@affine/component/ui/tooltip';
|
||||||
import { WorkspaceSubPath } from '@affine/env/workspace';
|
import { WorkspaceSubPath } from '@affine/env/workspace';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { assertExists } from '@blocksuite/global/utils';
|
import { assertExists } from '@blocksuite/global/utils';
|
||||||
import { DeleteIcon, ResetIcon } from '@blocksuite/icons';
|
import { DeleteIcon, ResetIcon } from '@blocksuite/icons';
|
||||||
import { Button } from '@toeverything/components/button';
|
|
||||||
import { ConfirmModal } from '@toeverything/components/modal';
|
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
|
||||||
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
|
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
|
||||||
import { currentPageIdAtom } from '@toeverything/infra/atom';
|
import { currentPageIdAtom } from '@toeverything/infra/atom';
|
||||||
import { useAtomValue } from 'jotai';
|
import { useAtomValue } from 'jotai';
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import {
|
|||||||
useCollectionManager,
|
useCollectionManager,
|
||||||
useEditCollectionName,
|
useEditCollectionName,
|
||||||
} from '@affine/component/page-list';
|
} from '@affine/component/page-list';
|
||||||
|
import { IconButton } from '@affine/component/ui/button';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { PlusIcon } from '@blocksuite/icons';
|
import { PlusIcon } from '@blocksuite/icons';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import {
|
|||||||
useCollectionManager,
|
useCollectionManager,
|
||||||
useSavedCollections,
|
useSavedCollections,
|
||||||
} from '@affine/component/page-list';
|
} from '@affine/component/page-list';
|
||||||
|
import { IconButton } from '@affine/component/ui/button';
|
||||||
import type { Collection, DeleteCollectionInfo } from '@affine/env/filter';
|
import type { Collection, DeleteCollectionInfo } from '@affine/env/filter';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { InformationIcon, MoreHorizontalIcon } from '@blocksuite/icons';
|
import { InformationIcon, MoreHorizontalIcon } from '@blocksuite/icons';
|
||||||
@@ -17,7 +18,6 @@ import type { PageMeta, Workspace } from '@blocksuite/store';
|
|||||||
import type { DragEndEvent } from '@dnd-kit/core';
|
import type { DragEndEvent } from '@dnd-kit/core';
|
||||||
import { useDroppable } from '@dnd-kit/core';
|
import { useDroppable } from '@dnd-kit/core';
|
||||||
import * as Collapsible from '@radix-ui/react-collapsible';
|
import * as Collapsible from '@radix-ui/react-collapsible';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
|
import { useBlockSuitePageMeta } from '@toeverything/hooks/use-block-suite-page-meta';
|
||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
import { MenuItem as CollectionItem } from '@affine/component/app-sidebar';
|
import { MenuItem as CollectionItem } from '@affine/component/app-sidebar';
|
||||||
|
import { IconButton } from '@affine/component/ui/button';
|
||||||
|
import {
|
||||||
|
Menu,
|
||||||
|
MenuIcon,
|
||||||
|
MenuItem,
|
||||||
|
type MenuItemProps,
|
||||||
|
} from '@affine/component/ui/menu';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import {
|
import {
|
||||||
DeleteIcon,
|
DeleteIcon,
|
||||||
@@ -9,13 +16,6 @@ import {
|
|||||||
} from '@blocksuite/icons';
|
} from '@blocksuite/icons';
|
||||||
import type { PageMeta, Workspace } from '@blocksuite/store';
|
import type { PageMeta, Workspace } from '@blocksuite/store';
|
||||||
import * as Collapsible from '@radix-ui/react-collapsible';
|
import * as Collapsible from '@radix-ui/react-collapsible';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import {
|
|
||||||
Menu,
|
|
||||||
MenuIcon,
|
|
||||||
MenuItem,
|
|
||||||
type MenuItemProps,
|
|
||||||
} from '@toeverything/components/menu';
|
|
||||||
import { useBlockSuitePageReferences } from '@toeverything/hooks/use-block-suite-page-references';
|
import { useBlockSuitePageReferences } from '@toeverything/hooks/use-block-suite-page-references';
|
||||||
import { useAtomValue } from 'jotai/index';
|
import { useAtomValue } from 'jotai/index';
|
||||||
import type { ReactElement } from 'react';
|
import type { ReactElement } from 'react';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { IconButton } from '@affine/component/ui/button';
|
||||||
import { PlusIcon } from '@blocksuite/icons';
|
import { PlusIcon } from '@blocksuite/icons';
|
||||||
import type { Workspace } from '@blocksuite/store';
|
import type { Workspace } from '@blocksuite/store';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
|
||||||
import { usePageMetaHelper } from '@toeverything/hooks/use-block-suite-page-meta';
|
import { usePageMetaHelper } from '@toeverything/hooks/use-block-suite-page-meta';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { MenuItem } from '@affine/component/ui/menu';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { ImportIcon, PlusIcon } from '@blocksuite/icons';
|
import { ImportIcon, PlusIcon } from '@blocksuite/icons';
|
||||||
import { MenuItem } from '@toeverything/components/menu';
|
|
||||||
|
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
import { Divider } from '@affine/component/ui/divider';
|
||||||
|
import { MenuItem } from '@affine/component/ui/menu';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';
|
import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';
|
||||||
import { Logo1Icon } from '@blocksuite/icons';
|
import { Logo1Icon } from '@blocksuite/icons';
|
||||||
import { Divider } from '@toeverything/components/divider';
|
|
||||||
import { MenuItem } from '@toeverything/components/menu';
|
|
||||||
import { useAtomValue, useSetAtom } from 'jotai';
|
import { useAtomValue, useSetAtom } from 'jotai';
|
||||||
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
||||||
import { useSession } from 'next-auth/react';
|
import { useSession } from 'next-auth/react';
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
|
import { IconButton } from '@affine/component/ui/button';
|
||||||
|
import { Divider } from '@affine/component/ui/divider';
|
||||||
|
import { Menu, MenuIcon, MenuItem } from '@affine/component/ui/menu';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import {
|
import {
|
||||||
AccountIcon,
|
AccountIcon,
|
||||||
MoreHorizontalIcon,
|
MoreHorizontalIcon,
|
||||||
SignOutIcon,
|
SignOutIcon,
|
||||||
} from '@blocksuite/icons';
|
} from '@blocksuite/icons';
|
||||||
import { IconButton } from '@toeverything/components/button';
|
|
||||||
import { Divider } from '@toeverything/components/divider';
|
|
||||||
import { Menu, MenuIcon, MenuItem } from '@toeverything/components/menu';
|
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { ScrollableContainer } from '@affine/component';
|
import { ScrollableContainer } from '@affine/component';
|
||||||
|
import { Divider } from '@affine/component/ui/divider';
|
||||||
import { WorkspaceList } from '@affine/component/workspace-list';
|
import { WorkspaceList } from '@affine/component/workspace-list';
|
||||||
import type {
|
import type {
|
||||||
AffineCloudWorkspace,
|
AffineCloudWorkspace,
|
||||||
@@ -10,7 +11,6 @@ import type { RootWorkspaceMetadata } from '@affine/workspace/atom';
|
|||||||
import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';
|
import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';
|
||||||
import type { DragEndEvent } from '@dnd-kit/core';
|
import type { DragEndEvent } from '@dnd-kit/core';
|
||||||
import { arrayMove } from '@dnd-kit/sortable';
|
import { arrayMove } from '@dnd-kit/sortable';
|
||||||
import { Divider } from '@toeverything/components/divider';
|
|
||||||
import {
|
import {
|
||||||
currentPageIdAtom,
|
currentPageIdAtom,
|
||||||
currentWorkspaceIdAtom,
|
currentWorkspaceIdAtom,
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user