style: import from './index' instead of '.' (#5590)

Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
Lewis Liu
2024-01-15 22:39:08 -08:00
committed by GitHub
parent 75fb0a9f1a
commit 94e24d1b82
20 changed files with 20 additions and 20 deletions

View File

@@ -3,7 +3,7 @@ import { Slot } from '@blocksuite/global/utils';
import type { WorkspaceMetadata } from '../metadata'; import type { WorkspaceMetadata } from '../metadata';
import type { Workspace } from '../workspace'; import type { Workspace } from '../workspace';
import type { WorkspaceListProvider } from '.'; import type { WorkspaceListProvider } from './index';
const logger = new DebugLogger('affine:workspace:list:information'); const logger = new DebugLogger('affine:workspace:list:information');

View File

@@ -5,8 +5,8 @@ import type { Workspace as BlockSuiteWorkspace } from '@blocksuite/store';
import { fixWorkspaceVersion } from '@toeverything/infra/blocksuite'; import { fixWorkspaceVersion } from '@toeverything/infra/blocksuite';
import { applyUpdate, encodeStateAsUpdate } from 'yjs'; import { applyUpdate, encodeStateAsUpdate } from 'yjs';
import type { BlobStorage } from '.';
import type { WorkspaceFactory } from './factory'; import type { WorkspaceFactory } from './factory';
import type { BlobStorage } from './index';
import type { WorkspaceList } from './list'; import type { WorkspaceList } from './list';
import type { WorkspaceMetadata } from './metadata'; import type { WorkspaceMetadata } from './metadata';
import { WorkspacePool } from './pool'; import { WorkspacePool } from './pool';

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { AddPageButton } from '.'; import { AddPageButton } from './index';
export default { export default {
title: 'Components/AppSidebar/AddPageButton', title: 'Components/AppSidebar/AddPageButton',

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { CategoryDivider } from '.'; import { CategoryDivider } from './index';
export default { export default {
title: 'Components/AppSidebar/CategoryDivider', title: 'Components/AppSidebar/CategoryDivider',

View File

@@ -2,7 +2,7 @@ import { SettingsIcon } from '@blocksuite/icons';
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { useState } from 'react'; import { useState } from 'react';
import { MenuItem, MenuLinkItem } from '.'; import { MenuItem, MenuLinkItem } from './index';
export default { export default {
title: 'Components/AppSidebar/MenuItem', title: 'Components/AppSidebar/MenuItem',

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { QuickSearchInput } from '.'; import { QuickSearchInput } from './index';
export default { export default {
title: 'Components/AppSidebar/QuickSearchInput', title: 'Components/AppSidebar/QuickSearchInput',

View File

@@ -1,7 +1,7 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { type PropsWithChildren } from 'react'; import { type PropsWithChildren } from 'react';
import { Spotlight } from '.'; import { Spotlight } from './index';
export default { export default {
title: 'Components/AppSidebar/Spotlight', title: 'Components/AppSidebar/Spotlight',

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { Divider, type DividerProps } from '.'; import { Divider, type DividerProps } from './index';
export default { export default {
title: 'UI/Divider', title: 'UI/Divider',

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { Empty, type EmptyContentProps } from '.'; import { Empty, type EmptyContentProps } from './index';
export default { export default {
title: 'UI/Empty', title: 'UI/Empty',

View File

@@ -1,7 +1,7 @@
import { InformationIcon } from '@blocksuite/icons'; import { InformationIcon } from '@blocksuite/icons';
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { Input, type InputProps } from '.'; import { Input, type InputProps } from './index';
export default { export default {
title: 'UI/Input', title: 'UI/Input',

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { MenuTrigger, type MenuTriggerProps } from '.'; import { MenuTrigger, type MenuTriggerProps } from './index';
export default { export default {
title: 'UI/MenuTrigger', title: 'UI/MenuTrigger',

View File

@@ -13,7 +13,7 @@ import {
MenuSeparator, MenuSeparator,
MenuSub, MenuSub,
MenuTrigger, MenuTrigger,
} from '.'; } from './index';
export default { export default {
title: 'UI/Menu', title: 'UI/Menu',

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { ScrollableContainer, type ScrollableContainerProps } from '.'; import { ScrollableContainer, type ScrollableContainerProps } from './index';
export default { export default {
title: 'UI/Scrollbar', title: 'UI/Scrollbar',

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { Skeleton, type SkeletonProps } from '.'; import { Skeleton, type SkeletonProps } from './index';
export default { export default {
title: 'UI/Skeleton', title: 'UI/Skeleton',

View File

@@ -1,6 +1,6 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { Switch, type SwitchProps } from '.'; import { Switch, type SwitchProps } from './index';
export default { export default {
title: 'UI/Switch', title: 'UI/Switch',

View File

@@ -7,7 +7,7 @@ import {
TableCell, TableCell,
TableHead, TableHead,
TableHeadRow, TableHeadRow,
} from '.'; } from './index';
export default { export default {
title: 'UI/Table', title: 'UI/Table',

View File

@@ -1,7 +1,7 @@
import { useCallback, useState } from 'react'; import { useCallback, useState } from 'react';
import { Button } from '../button'; import { Button } from '../button';
import { toast } from '.'; import { toast } from './index';
export default { export default {
title: 'UI/Toast', title: 'UI/Toast',

View File

@@ -1,7 +1,7 @@
import type { Meta, StoryFn } from '@storybook/react'; import type { Meta, StoryFn } from '@storybook/react';
import { Button } from '../button'; import { Button } from '../button';
import Tooltip, { type TooltipProps } from '.'; import Tooltip, { type TooltipProps } from './index';
export default { export default {
title: 'UI/Tooltip', title: 'UI/Tooltip',

View File

@@ -4,7 +4,7 @@ import { useAFFiNEI18N } from '@affine/i18n/hooks';
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';
import { useNavigateHelper } from '../../../hooks/use-navigate-helper'; import { useNavigateHelper } from '../../../hooks/use-navigate-helper';
import type { ShareHeaderRightItemProps } from '.'; import type { ShareHeaderRightItemProps } from './index';
export const AuthenticatedItem = ({ ...props }: ShareHeaderRightItemProps) => { export const AuthenticatedItem = ({ ...props }: ShareHeaderRightItemProps) => {
const { workspaceId, pageId } = props; const { workspaceId, pageId } = props;

View File

@@ -15,8 +15,8 @@ import {
} from 'react'; } from 'react';
import type { useCollectionManager } from '../use-collection-manager'; import type { useCollectionManager } from '../use-collection-manager';
import type { AllPageListConfig } from '.';
import * as styles from './collection-operations.css'; import * as styles from './collection-operations.css';
import type { AllPageListConfig } from './index';
import { import {
useEditCollection, useEditCollection,
useEditCollectionName, useEditCollectionName,