Skip to content

Commit e643f28

Browse files
authored
feat: add tbox agent & docs (#1063)
* feat: add tbox agent * chore: update version * chore: update ci * chore: update ci * chore: update abort * chore: update abort * chore: update hide petercat * chore: update ci * chore: i18n * chore: loading * chore: loading * chore: i18n
1 parent 9084ec7 commit e643f28

33 files changed

+866
-24
lines changed

.dumi/theme/layouts/GlobalLayout.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
import {
2-
NaNLinter,
3-
StyleProvider,
42
createCache,
53
extractStyle,
64
legacyNotSelectorLinter,
5+
NaNLinter,
76
parentSelectorLinter,
7+
StyleProvider,
88
} from '@ant-design/cssinjs';
99
import { getSandpackCssText } from '@codesandbox/sandpack-react';
10-
import { App, theme as antdTheme } from 'antd';
11-
import { createSearchParams, useOutlet, useSearchParams, useServerInsertedHTML } from 'dumi';
12-
import React, { useCallback, useEffect, Suspense } from 'react';
13-
1410
import type { MappingAlgorithm } from 'antd';
11+
import { App, theme as antdTheme } from 'antd';
1512
import type { DirectionType, ThemeConfig } from 'antd/es/config-provider';
13+
import { createSearchParams, useOutlet, useSearchParams, useServerInsertedHTML } from 'dumi';
14+
import React, { Suspense, useCallback, useEffect } from 'react';
1615

1716
import { DarkContext } from '../../hooks/useDark';
1817
import useLayoutState from '../../hooks/useLayoutState';
1918
import useLocation from '../../hooks/useLocation';
20-
import SiteThemeProvider from '../SiteThemeProvider';
2119
import PeterCat from '../common/PeterCat';
2220
import type { ThemeName } from '../common/ThemeSwitch';
21+
import SiteThemeProvider from '../SiteThemeProvider';
2322
import type { SiteContextProps } from '../slots/SiteContext';
2423
import SiteContext from '../slots/SiteContext';
2524

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
group:
3+
title: Agent Sample
4+
order: 1
5+
title: Tbox
6+
description: Tbox X Agent
7+
order: 0
8+
---
9+
10+
<code src="./agent-tbox.tsx" title="Tbox X Agent" compact iframe="600"></code>

0 commit comments

Comments
 (0)