Skip to content

Commit f48aa8e

Browse files
committed
reflector: Optimize alias
1 parent 737e58c commit f48aa8e

24 files changed

Lines changed: 89 additions & 66 deletions

File tree

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Container, Sidebar } from '@/layouts';
2-
import { useAvatarOption } from '@/hooks';
1+
import { Container, Sidebar } from '@layouts';
2+
import { useAvatarOption } from '@hooks';
33
import './App.less';
44

55
export default function App() {

src/components/action-bar/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { useDispatch } from 'react-redux';
2-
import { ActionType } from '@/enums';
3-
import IconBack from '../../assets/icons/icon-back.svg';
4-
import IconFlip from '../../assets/icons/icon-flip.svg';
5-
import IconNext from '../../assets/icons/icon-next.svg';
6-
// import { AppState } from '../../types';
7-
import './style.less'
2+
import { ActionType } from '@enums';
3+
import IconBack from '@assets/icons/icon-back.svg';
4+
import IconFlip from '@assets/icons/icon-flip.svg';
5+
import IconNext from '@assets/icons/icon-next.svg';
6+
import './style.less';
87

98
interface IProps {
109
flipped: boolean

src/components/color-list-item/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { SETTINGS } from '@/constants';
2-
import { AvatarOption } from '@/types';
1+
import { SETTINGS } from '@constants';
2+
import { AvatarOption } from '@types';
33

44
interface IProps {
55
avatarOption: AvatarOption

src/components/configurator/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PerfectScrollbar from '../perfect-scrollbar';
2-
import { AvatarOption } from '@/types';
2+
import { AvatarOption } from '@types';
33
import './style.less';
44

55
interface IProps {

src/components/logo/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// import React from 'react';
2-
import logoSvg from '../../assets/logo.svg';
1+
import logoSvg from '@assets/logo.svg';
32

43
export default function Logo() {
54
return <img src={logoSvg} alt="logo" />;

src/components/perfect-scrollbar/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useEffect, useRef, useState } from 'react';
2-
import { SectionWrapper, ColorListItem, WrapperShapeItem } from '@/components';
3-
import { AvatarOption } from '@/types';
4-
import { BeardShape, WidgetShape, WidgetType } from '@/enums';
5-
import { getWidgets } from '@/utils';
6-
import { AVATAR_LAYER, SETTINGS } from '@/constants';
2+
import { ColorListItem, SectionWrapper, WrapperShapeItem } from '@components';
3+
import { AvatarOption } from '@types';
4+
import { BeardShape, WidgetShape, WidgetType } from '@enums';
5+
import { getWidgets } from '@utils';
6+
import { AVATAR_LAYER, SETTINGS } from '@constants';
77

88
interface IProps {
99
avatarOption: AvatarOption

src/components/react-color-avatar/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { CSSProperties, RefObject, useEffect, useState } from 'react';
2-
import { Background } from '@/components/widgets';
3-
import { WidgetShape, WidgetType, WrapperShape } from '@/enums';
4-
import { AvatarOption, Widget } from '@/types';
5-
import { AVATAR_LAYER, NONE } from '@/constants';
6-
import { widgetData } from '@/utils/dynamic-data';
2+
import { Background } from '@components/widgets';
3+
import { WidgetShape, WidgetType, WrapperShape } from '@enums';
4+
import { AvatarOption, Widget } from '@types';
5+
import { AVATAR_LAYER, NONE } from '@constants';
6+
import { widgetData } from '@utils/dynamic-data';
77
import './style.less';
88

99
interface IReactColorAvatarProps {

src/components/section-wrapper/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import './style.less'
2+
import './style.less';
33

44
interface IProps {
55
title?: string

src/components/widgets/background/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AvatarOption } from '@/types';
1+
import { AvatarOption } from '@types';
22
import './style.less';
33

44
interface BackgroundProps {

src/components/wrapper-shape-item/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { SETTINGS } from '@/constants';
2-
import { WrapperShape } from '@/enums';
3-
import { AvatarOption } from '@/types';
1+
import { SETTINGS } from '@constants';
2+
import { WrapperShape } from '@enums';
3+
import { AvatarOption } from '@types';
44

55
interface IProps {
66
avatarOption: AvatarOption

0 commit comments

Comments
 (0)