Skip to content

Commit

Permalink
🐛 fix: Lock dumi to 2.2.17
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jun 17, 2024
1 parent a8000d3 commit 807ec0c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 45 deletions.
87 changes: 43 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dumi-theme-lobehub",
"version": "1.7.7",
"version": "1.5.0",
"description": "dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui",
"keywords": [
"lobehub",
Expand Down Expand Up @@ -69,52 +69,51 @@
]
},
"dependencies": {
"@floating-ui/react": "^0",
"@giscus/react": "^2",
"@lobehub/ui": "^1",
"ahooks": "^3",
"antd": "^5",
"antd-style": "^3",
"chalk": "^4",
"fast-deep-equal": "^3",
"history": "^5",
"lodash-es": "^4",
"lucide-react": "latest",
"polished": "^4",
"rc-footer": "^0",
"react-layout-kit": "^1",
"styled-components": "latest",
"use-merge-value": "^1",
"zustand": "^4"
"@floating-ui/react": "^0.26.17",
"@giscus/react": "^2.4.0",
"@lobehub/ui": "^1.142.4",
"ahooks": "^3.8.0",
"antd": "^5.18.2",
"antd-style": "^3.6.2",
"chalk": "^4.1.2",
"fast-deep-equal": "^3.1.3",
"history": "^5.3.0",
"lodash-es": "^4.17.21",
"lucide-react": "^0.395.0",
"polished": "^4.3.1",
"rc-footer": "^0.6.8",
"react-layout-kit": "^1.9.0",
"use-merge-value": "^1.2.0",
"zustand": "^4.5.2"
},
"devDependencies": {
"@commitlint/cli": "^19.0.0",
"@lobehub/lint": "latest",
"@types/lodash-es": "^4",
"@types/node": "^20",
"@types/react": "18.2.40",
"@types/react-dom": "^18",
"@vitest/coverage-v8": "latest",
"clean-pkg-json": "^1",
"commitlint": "^19.0.0",
"dumi": "^2",
"dumi-assets-types": "^1",
"eslint": "^8",
"father": "4.3.1",
"father-plugin-dumi-theme": "latest",
"husky": "^9.0.0",
"jsdom": "^24.0.0",
"leva": "^0",
"lint-staged": "^15.0.0",
"prettier": "^3",
"react": "^18",
"react-dom": "^18",
"remark": "^14",
"remark-cli": "^11",
"semantic-release": "^21",
"stylelint": "^16.0.0",
"typescript": "^5",
"vitest": "latest"
"@lobehub/lint": "^1.23.4",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitest/coverage-v8": "^1.6.0",
"clean-pkg-json": "^1.2.0",
"commitlint": "^17.8.1",
"dumi": "2.2.17",
"dumi-assets-types": "^1.0.1",
"eslint": "^8.57.0",
"father": "^4.4.4",
"father-plugin-dumi-theme": "1.0.0-rc.1",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"leva": "^0.9.35",
"lint-staged": "^13.3.0",
"prettier": "^3.3.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remark": "^14.0.3",
"remark-cli": "^11.0.0",
"semantic-release": "^21.1.2",
"stylelint": "^15.11.0",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"peerDependencies": {
"antd": ">=5",
Expand Down
9 changes: 8 additions & 1 deletion src/slots/Navbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TabsNav } from '@lobehub/ui';
import { createStyles } from 'antd-style';
import { Link } from 'dumi';
import { Link, history } from 'dumi';
import NavbarExtra from 'dumi/theme-default/slots/NavbarExtra';
import { memo } from 'react';
import { shallow } from 'zustand/shallow';
Expand Down Expand Up @@ -45,6 +45,13 @@ const Navbar = memo(() => {
</Link>
),
}))}
onChange={(path) => {
const url = nav.find((index) => index.activePath === path || index.link === path)?.link;

if (!url) return;

history.push(url);
}}
/>
<NavbarExtra />
</>
Expand Down

0 comments on commit 807ec0c

Please sign in to comment.