Skip to content

Commit 1b9970d

Browse files
committed
chore: lint warnings
1 parent aa8f5ae commit 1b9970d

9 files changed

Lines changed: 96 additions & 65 deletions

File tree

pages/components/BetaNotice.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function BetaNotice() {
66
return (
77
<div className="bg-orange-50 dark:bg-orange-900/20 border border-orange-200 dark:border-orange-800 rounded-lg p-4 mb-8">
88
<div className="flex items-start">
9-
<div className="flex-shrink-0">
9+
<div className="shrink-0">
1010
<span className="text-xl">🚧</span>
1111
</div>
1212
<div className="ml-3">

pages/components/CodeEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const CodeEditor: React.FC<CodeEditorProps> = ({
7272
<div className="flex">
7373
{/* 行号 */}
7474
{showLineNumbers && (
75-
<div className={`flex-shrink-0 px-4 py-4 ${lineNumbersClasses} border-r select-none`}>
75+
<div className={`shrink-0 px-4 py-4 ${lineNumbersClasses} border-r select-none`}>
7676
<div className="text-xs font-mono leading-6">
7777
{lines.map((line, lineIdx) => {
7878
const lineNum = lineIdx + 1

pages/components/DocsLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function DocsLayout({ children }: DocsLayoutProps) {
5454
<div className="max-w-7xl mx-auto px-6 py-8 overflow-x-auto">
5555
<div className="flex gap-8 min-w-[900px]">
5656
{/* Sidebar */}
57-
<aside className="w-64 flex-shrink-0" role="complementary" aria-label="文档导航">
57+
<aside className="w-64 shrink-0" role="complementary" aria-label="文档导航">
5858
<div className="sticky top-8">
5959
<nav className="space-y-8" role="navigation" aria-label="文档章节">
6060
{navigationSections.map((section) => (

pages/components/Header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function Header() {
2121
{/* Logo */}
2222
<Link
2323
href="/"
24-
className="flex items-center gap-2 sm:gap-3 group flex-shrink-0"
24+
className="flex items-center gap-2 sm:gap-3 group shrink-0"
2525
aria-label={t('header.logo_alt')}
2626
onClick={() => setMobileMenuOpen(false)}
2727
>
@@ -48,7 +48,7 @@ export default function Header() {
4848
>
4949
<Link
5050
href="/docs/introduction/overview"
51-
className="p-2 rounded-lg text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 flex-shrink-0"
51+
className="p-2 rounded-lg text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 shrink-0"
5252
aria-label={t('header.nav_docs')}
5353
>
5454
<BookIcon className="w-5 h-5" />
@@ -57,7 +57,7 @@ export default function Header() {
5757
href="https://github.com/alibaba/page-agent"
5858
target="_blank"
5959
rel="noopener noreferrer"
60-
className="p-2 rounded-lg text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 flex-shrink-0"
60+
className="p-2 rounded-lg text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200 shrink-0"
6161
aria-label={t('header.nav_source')}
6262
>
6363
<GithubIcon className="w-5 h-5" />
@@ -94,7 +94,7 @@ export default function Header() {
9494
{/* Mobile menu button */}
9595
<button
9696
type="button"
97-
className="md:hidden p-2 rounded-lg text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors duration-200 flex-shrink-0"
97+
className="md:hidden p-2 rounded-lg text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors duration-200 shrink-0"
9898
aria-label={t('header.mobile_menu')}
9999
aria-expanded={mobileMenuOpen}
100100
aria-controls="mobile-menu"

pages/docs/integration/third-party-agent/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const pageAgentTool = {
9898
</ul>
9999
</div>
100100

101-
<div className="bg-gradient-to-r from-green-50 to-blue-50 dark:from-green-900/20 dark:to-blue-900/20 p-4 rounded-lg">
101+
<div className="bg-linear-to-r from-green-50 to-blue-50 dark:from-green-900/20 dark:to-blue-900/20 p-4 rounded-lg">
102102
<h3 className="text-lg font-semibold mb-2 text-gray-900 dark:text-white">🎉 开始集成</h3>
103103
<p className="mb-3 text-gray-700 dark:text-gray-300">
104104
通过这种方式,你的 Agent 系统就能真正成为用户的智能助手。

pages/docs/introduction/overview/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,31 +174,31 @@ export default function Overview() {
174174

175175
<ul className="space-y-4 mb-8">
176176
<li className="flex items-start space-x-3">
177-
<span className="w-6 h-6 min-w-6 bg-blue-500 text-white rounded-full flex items-center justify-center font-bold text-sm mt-0.5 flex-shrink-0">
177+
<span className="w-6 h-6 min-w-6 bg-blue-500 text-white rounded-full flex items-center justify-center font-bold text-sm mt-0.5 shrink-0">
178178
1
179179
</span>
180180
<div className="text-gray-700 dark:text-gray-300">
181181
<strong>{t('overview.use_case1_title')}</strong> {t('overview.use_case1_desc')}
182182
</div>
183183
</li>
184184
<li className="flex items-start space-x-3">
185-
<span className="w-6 h-6 min-w-6 bg-green-500 text-white rounded-full flex items-center justify-center font-bold text-sm mt-0.5 flex-shrink-0">
185+
<span className="w-6 h-6 min-w-6 bg-green-500 text-white rounded-full flex items-center justify-center font-bold text-sm mt-0.5 shrink-0">
186186
2
187187
</span>
188188
<div className="text-gray-700 dark:text-gray-300">
189189
<strong>{t('overview.use_case2_title')}</strong> {t('overview.use_case2_desc')}
190190
</div>
191191
</li>
192192
<li className="flex items-start space-x-3">
193-
<span className="w-6 h-6 min-w-6 bg-purple-500 text-white rounded-full flex items-center justify-center font-bold text-sm mt-0.5 flex-shrink-0">
193+
<span className="w-6 h-6 min-w-6 bg-purple-500 text-white rounded-full flex items-center justify-center font-bold text-sm mt-0.5 shrink-0">
194194
3
195195
</span>
196196
<div className="text-gray-700 dark:text-gray-300">
197197
<strong>{t('overview.use_case3_title')}</strong> {t('overview.use_case3_desc')}
198198
</div>
199199
</li>
200200
<li className="flex items-start space-x-3">
201-
<span className="w-6 h-6 min-w-6 bg-orange-500 text-white rounded-full flex items-center justify-center font-bold text-sm mt-0.5 flex-shrink-0">
201+
<span className="w-6 h-6 min-w-6 bg-orange-500 text-white rounded-full flex items-center justify-center font-bold text-sm mt-0.5 shrink-0">
202202
4
203203
</span>
204204
<div className="text-gray-700 dark:text-gray-300">

0 commit comments

Comments
 (0)