Skip to content

Commit 933a8ea

Browse files
authored
Update deps, improve perf/A11y/SEO and resolve errors (#54)
* chore: update deps chore: remove unused @heroicons/react * perf: lazy-load images below the fold * refactor: improve SEO and a11y * fix: resolve eslint and some tailwindcss errors * fix: add rel="noopener noreferrer" to external links
1 parent 6f2ab22 commit 933a8ea

25 files changed

+302
-370
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
# misc
2424
.DS_Store
2525
*.pem
26+
.vscode/*
27+
.zed/*
2628

2729
# debug
2830
npm-debug.log*

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This document provides development guidelines and rules for AI Agents to ensure
55
## 📋 Project Overview
66

77
- **Project Name**: RustFS.com - Official Website
8-
- **Framework**: Next.js 16.1.6 (App Router, Static Export)
8+
- **Framework**: Next.js 16.2.2 (App Router, Static Export)
99
- **Language**: TypeScript (ES2022+, Strict Mode)
1010
- **Package Manager**: pnpm
1111
- **Styling**: Tailwind CSS 4 + shadcn/ui

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RustFS is a high-performance distributed object storage system developed in Rust
88

99
## 🛠️ Tech Stack
1010

11-
- **Framework**: Next.js 16.1.6 (App Router)
11+
- **Framework**: Next.js 16.2.2 (App Router)
1212
- **Language**: TypeScript (ES2022+, Strict Mode)
1313
- **Styling**: Tailwind CSS 4 + shadcn/ui
1414
- **Icons**: Lucide React

app/download/components/platforms/docker-download-section.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ export default function DockerDownloadSection({ platform, release, className }:
148148
{'Default credentials: rustfsadmin / rustfsadmin'}
149149
</Note>
150150
<Note type="info">
151-
<Link href="https://hub.docker.com/r/rustfs/rustfs/tags" target="_blank" className="hover:underline">
151+
<Link href="https://hub.docker.com/r/rustfs/rustfs/tags" target="_blank" className="hover:underline" rel="noopener noreferrer">
152152
{'View all available versions on Docker Hub'}
153153
</Link>
154154
</Note>
155155
<Note type="success">
156-
<Link href="https://docs.rustfs.com/installation/docker" target="_blank" className="hover:underline">
156+
<Link href="https://docs.rustfs.com/installation/docker" target="_blank" className="hover:underline" rel="noopener noreferrer">
157157
{'View detailed Docker installation guide'}
158158
</Link>
159159
</Note>

app/download/components/platforms/macos-download-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function MacOSDownloadSection({ platform, release, className }: M
5555
/>
5656

5757
<Note type="info">
58-
<Link href="https://brew.sh/" target="_blank" className="hover:underline">
58+
<Link href="https://brew.sh/" target="_blank" className="hover:underline" rel="noopener noreferrer">
5959
{'Homebrew is required for installation'}
6060
</Link>
6161
</Note>

components/business/app-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function AppHeader() {
6363
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
6464
<nav className="relative z-50 flex justify-between">
6565
<div className="flex items-center md:gap-x-12">
66-
<Link href="/">
66+
<Link href="/" aria-label="Go to homepage">
6767
<Logo className="h-5 w-auto" />
6868
</Link>
6969
<div className="hidden md:flex md:gap-x-6">

components/business/buttons/fixed-contact-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { MessageCircleIcon } from "lucide-react"
33
export default function FixedContactButton() {
44
return (
55
<div className="fixed bottom-10 right-10 z-50 flex items-end justify-end">
6-
<a href="https://rustfs.com/contact/" className="relative right-0 inline-flex items-center justify-center gap-2 rounded-full h-12 w-12 bg-brand text-brand-foreground hover:bg-brand/90" target="_blank">
6+
<a href="https://rustfs.com/contact/" className="relative right-0 inline-flex items-center justify-center gap-2 rounded-full h-12 w-12 bg-brand text-brand-foreground hover:bg-brand/90" target="_blank" aria-label="Contact us">
77
<MessageCircleIcon />
88
</a>
99
</div>

components/business/buttons/link-github.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export default function LinkGitHub({ className, showText = false }: { className?
7171
<Link
7272
href={`https://github.com/${REPO}`}
7373
target="_blank"
74-
rel="noreferrer"
75-
title="Stars on GitHub"
74+
rel="noopener noreferrer"
75+
aria-label={!showText ? "Stars on GitHub" : undefined}
7676
className={cn(
7777
"inline-flex h-8 items-center gap-2 rounded-md px-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground shadow-none",
7878
className

components/business/buttons/link-twitter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Link from "next/link";
33

44
export default function LinkTwitter({ className, size = 'size-4' }: { className?: string | string[], size?: string }) {
55
return (
6-
<Link className={cn('inline-block text-muted-foreground hover:text-primary', className)} href="https://x.com/rustfsofficial">
6+
<Link className={cn('inline-block text-muted-foreground hover:text-primary', className)} href="https://x.com/rustfsofficial" aria-label="RustFS Twitter" target="_blank" rel="noopener noreferrer">
77
<svg
88
role="img"
99
viewBox="0 0 24 24"

0 commit comments

Comments
 (0)