dumi-theme-lobehub 1.7.6 → 1.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
5
+ <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/latest/files/assets/logo-3d.webp">
6
6
  <img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
7
7
  <img height="120" src="https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png">
8
8
 
@@ -36,6 +36,8 @@ dumi-theme-lobehub is a documentation site theme package designed for `Dumi 2`.
36
36
  - [🤯 Usage](#-usage)
37
37
  - [⌨️ Local Development](#️-local-development)
38
38
  - [🤝 Contributing](#-contributing)
39
+ - [🔗 Links](#-links)
40
+ - [More Products](#more-products)
39
41
 
40
42
  ####
41
43
 
@@ -105,7 +107,7 @@ interface SiteThemeConfig {
105
107
  }
106
108
  ```
107
109
 
108
- > **Note**\
110
+ > \[!NOTE]\
109
111
  > For detailed configuration, please refer to the [📘 Type file](https://github.com/lobehub/dumi-theme-lobehub/blob/master/src/types/config.ts) / [📘 Example](https://github.com/lobehub/dumi-theme-lobehub/blob/master/example/.dumirc.ts).
110
112
 
111
113
  <div align="right">
@@ -5,25 +5,25 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
5
5
  var Favicons = /*#__PURE__*/memo(function () {
6
6
  return /*#__PURE__*/_jsxs(Helmet, {
7
7
  children: [/*#__PURE__*/_jsx("link", {
8
- href: "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/apple-touch-icon.png",
8
+ href: "https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/apple-touch-icon.png",
9
9
  rel: "apple-touch-icon",
10
10
  sizes: "180x180"
11
11
  }), /*#__PURE__*/_jsx("link", {
12
- href: "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-32x32.png",
12
+ href: "https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/favicon-32x32.png",
13
13
  rel: "icon",
14
14
  sizes: "32x32",
15
15
  type: "image/png"
16
16
  }), /*#__PURE__*/_jsx("link", {
17
- href: "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-16x16.png",
17
+ href: "https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/favicon-16x16.png",
18
18
  rel: "icon",
19
19
  sizes: "16x16",
20
20
  type: "image/png"
21
21
  }), /*#__PURE__*/_jsx("link", {
22
- href: "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/site.webmanifest",
22
+ href: "https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/site.webmanifest",
23
23
  rel: "manifest"
24
24
  }), /*#__PURE__*/_jsx("link", {
25
25
  color: "#000000",
26
- href: "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/safari-pinned-tab.svg",
26
+ href: "https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/safari-pinned-tab.svg",
27
27
  rel: "mask-icon"
28
28
  }), /*#__PURE__*/_jsx("meta", {
29
29
  content: "LobeHub",
@@ -2,7 +2,7 @@ var _templateObject, _templateObject2;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import { TabsNav } from '@lobehub/ui';
4
4
  import { createStyles } from 'antd-style';
5
- import { Link, history } from 'dumi';
5
+ import { Link } from 'dumi';
6
6
  import NavbarExtra from 'dumi/theme-default/slots/NavbarExtra';
7
7
  import { memo } from 'react';
8
8
  import { shallow } from 'zustand/shallow';
@@ -35,21 +35,19 @@ var Navbar = /*#__PURE__*/memo(function () {
35
35
  items: nav.map(function (item) {
36
36
  return {
37
37
  key: String(item.activePath || item.link),
38
- label: /*#__PURE__*/_jsx(Link, {
38
+ label: /^(\w+:)\/\/|^(mailto|tel):/.test(item.link || '') ? /*#__PURE__*/_jsx("a", {
39
+ className: styles.link,
40
+ href: String(item.link),
41
+ rel: "noreferrer",
42
+ target: "_blank",
43
+ children: item.title
44
+ }) : /*#__PURE__*/_jsx(Link, {
39
45
  className: styles.link,
40
46
  to: String(item.link),
41
47
  children: item.title
42
48
  })
43
49
  };
44
- }),
45
- onChange: function onChange(path) {
46
- var _nav$find;
47
- var url = (_nav$find = nav.find(function (index) {
48
- return index.activePath === path || index.link === path;
49
- })) === null || _nav$find === void 0 ? void 0 : _nav$find.link;
50
- if (!url) return;
51
- history.push(url);
52
- }
50
+ })
53
51
  }), /*#__PURE__*/_jsx(NavbarExtra, {})]
54
52
  });
55
53
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi-theme-lobehub",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "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",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@floating-ui/react": "^0",
29
29
  "@giscus/react": "^2",
30
- "@lobehub/ui": "latest",
30
+ "@lobehub/ui": "^1",
31
31
  "ahooks": "^3",
32
32
  "antd": "^5",
33
33
  "antd-style": "^3",