dumi-theme-lobehub 1.1.0 → 1.2.0
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.
|
@@ -2,7 +2,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
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 { createStyles } from 'antd-style';
|
|
4
4
|
var toCamelCase = function toCamelCase(string_) {
|
|
5
|
-
return string_.
|
|
5
|
+
return string_.replace(/( |^)[a-z]/g, function (L) {
|
|
6
6
|
return L.toUpperCase();
|
|
7
7
|
});
|
|
8
8
|
};
|
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { ActionIcon, TabsNav } from '@lobehub/ui';
|
|
8
8
|
import { openCodeSandbox, openStackBlitz, useIntl } from 'dumi';
|
|
9
|
-
import SourceCode from
|
|
9
|
+
import SourceCode from 'dumi/theme-default/builtins/SourceCode';
|
|
10
10
|
import { Code, Code2, Codesandbox, MonitorUp, Zap } from 'lucide-react';
|
|
11
11
|
import { useState } from 'react';
|
|
12
12
|
import { useStyles } from "./style";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi-theme-lobehub",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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
|
"scripts": {
|
|
28
28
|
"build": "father build",
|
|
29
29
|
"build:docs": "npm run build && npm run build --prefix=example",
|
|
30
|
-
"ci": "npm run test",
|
|
30
|
+
"ci": "npm run lint && npm run type-check && npm run test",
|
|
31
31
|
"dev": "father dev",
|
|
32
32
|
"dev:docs": "npm run start --prefix=example",
|
|
33
33
|
"lint": "eslint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
|
|
39
39
|
"release": "semantic-release",
|
|
40
40
|
"start": "concurrently \"npm run dev\" \"npm run dev:docs\"",
|
|
41
|
-
"test": "
|
|
41
|
+
"test": "vitest --passWithNoTests",
|
|
42
|
+
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
43
|
+
"test:update": "vitest -u",
|
|
42
44
|
"type-check": "tsc -p tsconfig-check.json"
|
|
43
45
|
},
|
|
44
46
|
"lint-staged": {
|
|
@@ -69,7 +71,6 @@
|
|
|
69
71
|
"antd-style": "^3",
|
|
70
72
|
"chalk": "^4",
|
|
71
73
|
"fast-deep-equal": "^3",
|
|
72
|
-
"history": "^5",
|
|
73
74
|
"lodash-es": "^4",
|
|
74
75
|
"lucide-react": "latest",
|
|
75
76
|
"polished": "^4",
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"@types/node": "^20",
|
|
87
88
|
"@types/react": "^18",
|
|
88
89
|
"@types/react-dom": "^18",
|
|
90
|
+
"@vitest/coverage-c8": "latest",
|
|
89
91
|
"antd-style": "^3",
|
|
90
92
|
"commitlint": "^17",
|
|
91
93
|
"concurrently": "^8",
|
|
@@ -94,7 +96,9 @@
|
|
|
94
96
|
"eslint": "^8",
|
|
95
97
|
"father": "^4",
|
|
96
98
|
"father-plugin-dumi-theme": "latest",
|
|
99
|
+
"history": "^5",
|
|
97
100
|
"husky": "^8",
|
|
101
|
+
"jsdom": "^22",
|
|
98
102
|
"leva": "^0",
|
|
99
103
|
"lint-staged": "^13",
|
|
100
104
|
"prettier": "^2",
|
|
@@ -104,7 +108,8 @@
|
|
|
104
108
|
"remark-cli": "^11",
|
|
105
109
|
"semantic-release": "^21",
|
|
106
110
|
"stylelint": "^15",
|
|
107
|
-
"typescript": "^5"
|
|
111
|
+
"typescript": "^5",
|
|
112
|
+
"vitest": "latest"
|
|
108
113
|
},
|
|
109
114
|
"peerDependencies": {
|
|
110
115
|
"antd": ">=5",
|