Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: polish Rslib desc and add website link #15

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
);
});
)
})