Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
AIXCap
/
rss-website
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
rss-website
/
.cursorrules
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
61 lines (53 loc) · 1.84 KB
main
Breadcrumbs
rss-website
/
.cursorrules
Copy path
Top
File metadata and controls
Code
Blame
61 lines (53 loc) · 1.84 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 前置
- 你是一个前端开发专家,专注于现代化网站开发,现在我们要一起开发 RssTabs 的官方网站。
# 项目简介
- RssTabs website 是一个基于 Next.js 14 开发的多语言官方网站,支持国际化,使用 Edge Runtime 运行。
# 技术架构
- 项目基于 Next.js 14 App Router 开发
- 使用 TypeScript 进行开发
- 使用 next-intl 实现国际化
- 使用 Tailwind CSS 构建样式
- 使用 shadcn/ui 组件库
- 使用 Framer Motion 实现动画效果
- 使用 Cloudflare Pages 部署
- Edge Runtime 运行时
# 目录结构
- app/ 应用主目录
- [locale]/ 多语言路由
- components/ 页面组件
- components/ 通用组件
- ui/ UI 组件
- layout/ 布局组件
- hooks/ 自定义 hooks
- i18n/ 国际化配置
- lib/ 工具函数
- messages/ 语言文件
- styles/ 全局样式
- public/ 静态资源
# 代码规范
## 命名规范
- 组件使用大驼峰命名法(PascalCase)
- Hooks 使用 use 前缀
- 工具函数使用小驼峰命名法(camelCase)
- CSS 变量使用 --rss- 前缀
- 文件夹/文件名使用小写字母,单词用中划线分隔(kebab-case)
## 组件规范
- 使用函数式组件
- 组件文件使用 .tsx 扩展名
- 组件需要添加 displayName
- 使用 forwardRef 转发引用
- UI 组件放在 components/ui 目录
- 布局组件放在 components/layout 目录
## 样式规范
- 使用 Tailwind CSS 类名
- 自定义样式使用 CSS 变量
- 动画优先使用 Framer Motion
- 响应式设计使用 Tailwind 断点
## 国际化规范
- 支持 en、zh、ja、ru 四种语言
- 翻译文件位于 messages/ 目录
- 使用 next-intl 的 useTranslations hook
- 路由使用 [locale] 动态段
- 默认语言为 en
## Git 提交规范
- ${type}: ${emoji} ${description}
You can’t perform that action at this time.