Skip to content

Commit

Permalink
fix(alias): fix path to dumi/theme/xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
innocces committed Jan 8, 2023
1 parent 8cc38bc commit f859c1b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"stylelint": "^14.16.1"
},
"dependencies": {
"@babel/runtime": "^7.20.7",
"@chakra-ui/icons": "^2.0.15",
"@chakra-ui/react": "^2.4.6",
"@chakra-ui/theme-tools": "^2.0.16",
Expand All @@ -104,6 +103,9 @@
"react-copy-to-clipboard": "^5.1.0",
"react-icons": "^4.7.1"
},
"engines": {
"node": ">=14"
},
"repository": {
"type": "git",
"url": "https://github.com/innocces/dumi-theme-chakra.git",
Expand Down
2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/builtins/Previewer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useMemo, type FC, type PropsWithChildren } from 'react';
import { type IPreviewerProps, useLocation, useLocale } from 'dumi';

import PreviewerActions from '../../slots/PreviewerActions';
import PreviewerActions from 'dumi/theme/slots/PreviewerActions';
import {
Stack,
HStack,
Expand Down
20 changes: 10 additions & 10 deletions src/layouts/DocLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ import {
import { HamburgerIcon } from '@chakra-ui/icons';
import animateScrollTo from 'animated-scroll-to';
import DocProvider from '../../components/DocProvider';
import SettingPanel from '../../builtins/SettingPanel';
import AnnouncementBar from '../../slots/AnnouncementBar';
import Header from '../../slots/Header';
import NavBar from '../../slots/NavBar';
import Hero from '../../slots/Hero';
import Features from '../../slots/Features';
import Content from '../../slots/Content';
import SideBar from '../../slots/SideBar';
import Toc from '../../slots/Toc';
import Footer from '../../slots/Footer';
import SettingPanel from 'dumi/theme/builtins/SettingPanel';
import AnnouncementBar from 'dumi/theme/slots/AnnouncementBar';
import Header from 'dumi/theme/slots/Header';
import NavBar from 'dumi/theme/slots/NavBar';
import Hero from 'dumi/theme/slots/Hero';
import Features from 'dumi/theme/slots/Features';
import Content from 'dumi/theme/slots/Content';
import SideBar from 'dumi/theme/slots/SideBar';
import Toc from 'dumi/theme/slots/Toc';
import Footer from 'dumi/theme/slots/Footer';

import { isUndefined } from '../../factory/tools';

Expand Down
8 changes: 4 additions & 4 deletions src/slots/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
Show,
useColorModeValue
} from '@chakra-ui/react';
import ThemeSwitch from '../ThemeSwitch';
import ThemeSwitch from 'dumi/theme/slots/ThemeSwitch';
import Social from '../../components/Social';
import LangSwitch from '../LangSwitch';
import Logo from '../Logo';
import SearchBar from '../SearchBar';
import LangSwitch from 'dumi/theme/slots/LangSwitch';
import Logo from 'dumi/theme/slots/Logo';
import SearchBar from 'dumi/theme/slots/SearchBar';

const Header: FC<PropsWithChildren> = ({ children }) => {
const bg = useColorModeValue('whiteAlpha.800', 'gray.800');
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"esModuleInterop": true,
"jsx": "react",
"skipLibCheck": true,
"baseUrl": "./"
"baseUrl": "./",
"paths": {
"dumi/theme/**": ["./src/**"]
}
}
}

0 comments on commit f859c1b

Please sign in to comment.