feat: forced file naming format (#2270)

This commit is contained in:
Himself65
2023-05-09 06:37:07 +08:00
committed by GitHub
parent 95bc5cac49
commit 4f99ad2db4
132 changed files with 208 additions and 100 deletions

View File

@@ -13,7 +13,7 @@ import type { PropsWithChildren, ReactElement } from 'react';
import type { ReactNode } from 'react';
import { forwardRef, useCallback, useEffect } from 'react';
import { IconButton } from '../../ui/button/IconButton';
import { IconButton } from '../../ui/button/icon-button';
import {
floatingMaxWidth,
haloStyle,

View File

@@ -15,7 +15,7 @@ import {
RedditIcon,
TelegramIcon,
TwitterIcon,
} from './Icons';
} from './icons';
import {
StyledBigLink,
StyledLogo,

View File

@@ -1,5 +1,5 @@
export * from './CopyLink';
export * from './DisablePublicSharing';
export * from './Export';
export * from './copy-link';
export * from './disable-public-sharing';
export * from './export';
// export * from './MoveTo';
export * from './MoveToTrash';
export * from './move-to-trash';

View File

@@ -12,7 +12,7 @@ import {
menuItemStyle,
svgStyle,
} from './index.css';
import type { ShareMenuProps } from './ShareMenu';
import type { ShareMenuProps } from './share-menu';
export const Export: FC<ShareMenuProps> = props => {
const contentParserRef = useRef<ContentParser>();

View File

@@ -1,2 +1,2 @@
export * from './disable-public-link';
export * from './ShareMenu';
export * from './share-menu';

View File

@@ -7,10 +7,10 @@ import { useRef } from 'react';
import { useCallback, useState } from 'react';
import { Menu } from '../..';
import { Export } from './Export';
import { Export } from './export';
import { containerStyle, indicatorContainerStyle, tabStyle } from './index.css';
import { SharePage } from './SharePage';
import { ShareWorkspace } from './ShareWorkspace';
import { SharePage } from './share-page';
import { ShareWorkspace } from './share-workspace';
import { StyledIndicator, StyledShareButton, TabItem } from './styles';
type SharePanel = 'SharePage' | 'Export' | 'ShareWorkspace';
const MenuItems: Record<SharePanel, FC<ShareMenuProps>> = {

View File

@@ -15,7 +15,7 @@ import {
inputButtonRowStyle,
menuItemStyle,
} from './index.css';
import type { ShareMenuProps } from './ShareMenu';
import type { ShareMenuProps } from './share-menu';
import {
StyledButton,
StyledDisableButton,

View File

@@ -4,7 +4,7 @@ import { WorkspaceFlavour } from '@affine/workspace/type';
import type { FC } from 'react';
import { descriptionStyle, menuItemStyle } from './index.css';
import type { ShareMenuProps } from './ShareMenu';
import type { ShareMenuProps } from './share-menu';
import { StyledButton } from './styles';
const ShareLocalWorkspace: FC<ShareMenuProps<LocalWorkspace>> = props => {

View File

@@ -1 +1 @@
export * from './TourModal';
export * from './tour-modal';

View File

@@ -10,7 +10,7 @@ import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-
import clsx from 'clsx';
import type React from 'react';
import { DefaultAvatar } from './DefaultAvatar';
import { DefaultAvatar } from './default-avatar';
import { avatarImageStyle, avatarStyle } from './index.css';
export type WorkspaceAvatarProps = {