Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40f1e03

Browse files
πŸ’„ style: Update og
1 parent afb9792 commit 40f1e03

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

β€Ž.dumirc.tsβ€Ž

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { defineConfig } from 'dumi';
2+
import { SiteThemeConfig } from 'dumi-theme-lobehub';
23
import path from 'node:path';
34

45
import { description, homepage, name } from './package.json';
56

67
const isProduction = process.env.NODE_ENV === 'production';
8+
const isWin = process.platform === 'win32';
79

8-
const themeConfig = {
10+
const themeConfig: SiteThemeConfig = {
911
actions: [
1012
{
1113
link: homepage,
@@ -18,21 +20,36 @@ const themeConfig = {
1820
type: 'primary',
1921
},
2022
],
23+
analytics: {
24+
plausible: {
25+
domain: 'tts.lobehub.com',
26+
scriptBaseUrl: 'https://plausible.lobehub-inc.cn',
27+
},
28+
},
2129
apiHeader: {
2230
docUrl: `{github}/tree/master/src/{atomId}/index.md`,
2331
match: ['/components'],
2432
pkg: name,
2533
sourceUrl: `{github}/tree/master/src/{atomId}/index.tsx`,
2634
},
27-
description: description,
28-
footer: 'Made with 🀯 by LobeHub',
35+
description,
2936
giscus: {
3037
category: 'Q&A',
3138
categoryId: 'DIC_kwDOKoaTlM4Cin-0',
3239
repo: 'lobehub/lobe-tts',
3340
repoId: 'R_kgDOKoaTlA',
3441
},
42+
metadata: {
43+
openGraph: {
44+
image:
45+
'https://repository-images.githubusercontent.com/713462676/32967e56-249e-4593-bb18-b3ed34e69669',
46+
},
47+
},
3548
name: 'TTS',
49+
prefersColor: {
50+
default: 'dark',
51+
switch: false,
52+
},
3653
socialLinks: {
3754
discord: 'https://discord.gg/AYFPHvv2jT',
3855
github: homepage,
@@ -41,20 +58,17 @@ const themeConfig = {
4158
};
4259

4360
export default defineConfig({
44-
/* eslint-disable sort-keys-fix/sort-keys-fix */
4561
alias: {
4662
'@lobehub/tts/react': path.join(__dirname, './src/react'),
4763
},
48-
/* eslint-enable */
4964
apiParser: isProduction ? {} : false,
5065
base: '/',
5166
define: {
5267
'process.env': process.env,
5368
},
5469
favicons: ['https://lobehub.com/favicon.ico'],
5570
locales: [{ id: 'en-US', name: 'English' }],
56-
// mfsu: isWin ? undefined : {},
57-
mfsu: false,
71+
mfsu: isWin ? undefined : {},
5872
npmClient: 'pnpm',
5973
publicPath: '/',
6074
resolve: {

β€Žpackage.jsonβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,17 @@
105105
"@commitlint/cli": "^19.6.0",
106106
"@lobehub/i18n-cli": "^1.20.0",
107107
"@lobehub/lint": "^1.24.4",
108-
"@lobehub/ui": "^1.153.0",
108+
"@lobehub/ui": "^1.153.1",
109109
"@types/lodash-es": "^4.17.12",
110-
"@types/node": "^20.17.6",
110+
"@types/node": "^20.17.7",
111111
"@types/react": "^18.3.12",
112112
"@types/react-dom": "^18.3.1",
113113
"@types/uuid": "^9.0.8",
114114
"@vercel/node": "^3.2.26",
115115
"commitlint": "^19.6.0",
116-
"concurrently": "^9.0.1",
116+
"concurrently": "^9.1.0",
117117
"dumi": "^2.4.14",
118-
"dumi-theme-lobehub": "^1.8.3",
118+
"dumi-theme-lobehub": "^1.9.2",
119119
"eslint": "^8.57.1",
120120
"father": "^4.5.1",
121121
"husky": "^9.1.7",
@@ -126,7 +126,7 @@
126126
"semantic-release": "^21.1.2",
127127
"stylelint": "^15.11.0",
128128
"tsx": "^4.19.2",
129-
"typescript": "^5.6.3",
129+
"typescript": "^5.7.2",
130130
"vercel": "^28.20.0"
131131
},
132132
"peerDependencies": {

0 commit comments

Comments
Β (0)