Skip to content

Commit

Permalink
fix: polish Rslib desc and add website link (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework authored Nov 15, 2024
1 parent 29fa942 commit 9592a1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/nav-icon/nav-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"desc": "Library 开发工具",
"descEn": "Library development tool",
"logo": "https://assets.rspack.dev/rslib/rslib-logo.svg",
"url": "https://github.com/web-infra-dev/rslib"
"url": "https://lib.rsbuild.dev"
},
{
"name": "Rsdoctor",
Expand Down
22 changes: 11 additions & 11 deletions src/tool-stack/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type React from 'react';
import { memo } from 'react';
import styles from './index.module.scss';
import type React from 'react'
import { memo } from 'react'
import styles from './index.module.scss'

export const ToolStack: React.FC<{ lang: string }> = memo(({ lang }) => {
const isEn = lang === 'en';
const isEn = lang === 'en'
const tools = [
{
name: 'Rspack',
Expand Down Expand Up @@ -41,12 +41,12 @@ export const ToolStack: React.FC<{ lang: string }> = memo(({ lang }) => {
{
name: 'Rslib',
desc: isEn
? 'A library development tool powered by Rsbuild for developing libraries or UI components.'
: '基于 Rsbuild 的 library 开发工具,用于开发工具库或 UI 组件库。',
? 'A Rsbuild-based library development tool for creating JavaScript libraries in a simple and intuitive way.'
: '基于 Rsbuild 的 library 开发工具,以简单直观的方式创建 JavaScript 库',
logo: 'https://assets.rspack.dev/rslib/rslib-logo.svg',
url: 'https://github.com/web-infra-dev/rslib',
url: 'https://lib.rsbuild.dev',
},
];
]

return (
<div className={styles.tools}>
Expand All @@ -63,8 +63,8 @@ export const ToolStack: React.FC<{ lang: string }> = memo(({ lang }) => {
<div className={styles.toolTitle}>{name}</div>
<p className={styles.toolDescription}>{desc}</p>
</a>
);
)
})}
</div>
);
});
)
})

0 comments on commit 9592a1c

Please sign in to comment.