Skip to content

Commit

Permalink
♻️ refactor: Update dumi
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 22, 2024
1 parent 4548d41 commit 9bfe0a5
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const themeConfig = {
nav: [
{ link: '/components/ai21', title: 'Icons' },
{ link: '/features/model-icon', title: 'Components' },
{ link: '/editor', title: 'Editor' },
{ link: '/editor', title: 'SVG Editor' },
{ link: 'https://ui.lobehub.com', mode: 'override', title: 'UI' },
{ link: 'https://charts.lobehub.com', mode: 'override', title: 'Charts' },
{ link: '/changelog', title: 'Changelog' },
],
socialLinks: {
Expand Down
5 changes: 0 additions & 5 deletions docs/Dashboard.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ hero:
description: Popular AI / LLM Model Brand SVG Logo and Icon Collection
---

<code src="./Dashboard.tsx" inline></code>

<code src="./index.tsx" inline></code>
16 changes: 14 additions & 2 deletions docs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Features, FeaturesProps } from '@lobehub/ui';
import { Features, FeaturesProps, Snippet } from '@lobehub/ui';
import { Expand, GitPullRequest, Trees } from 'lucide-react';
import { Center, Flexbox } from 'react-layout-kit';

import Dashboard from '@/components/Dashboard';

const items: FeaturesProps['items'] = [
{
Expand All @@ -23,5 +26,14 @@ const items: FeaturesProps['items'] = [
];

export default () => {
return <Features items={items} />;
return (
<Flexbox gap={48}>
<Center>
<h2 style={{ fontSize: 20 }}>To install Lobe Icons, run the following command:</h2>
<Snippet language={'bash'}>{'$ bun add @lobehub/icons'}</Snippet>
</Center>
<Dashboard />
<Features items={items} />
</Flexbox>
);
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"concurrently": "^8.2.2",
"consola": "^3.2.3",
"cross-env": "^7.0.3",
"dumi": "2.2.17",
"dumi-theme-lobehub": "^1.8.1",
"dumi": "^2.4.14",
"dumi-theme-lobehub": "^1.8.2",
"eslint": "^8.57.1",
"father": "^4.5.1",
"glob": "^11.0.0",
Expand All @@ -100,7 +100,7 @@
"lint-staged": "^15.2.10",
"lodash-es": "^4.17.21",
"markdown-table": "^3.0.4",
"multi-semantic-release": "^3",
"multi-semantic-release": "^3.0.2",
"p-map": "^7.0.2",
"polished": "^4.3.1",
"prettier": "^3.3.3",
Expand Down
3 changes: 3 additions & 0 deletions src/components/Dashboard/IconItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ const useStyles = createStyles(({ cx, css, token }) => {
return {
card: css`
position: relative;
overflow: hidden;
background: ${token.colorBgContainer};
border: 1px solid ${token.colorBorderSecondary};
border-radius: ${token.borderRadiusLG}px;
`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Dashboard = memo(() => {
onSearch={(v) => setKeyword(v)}
placeholder={'Search by brand or model keywords...'}
style={{ width: '100%' }}
variant={'filled'}
type={'block'}
/>
<Segmented
defaultValue={type}
Expand Down

0 comments on commit 9bfe0a5

Please sign in to comment.