尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
A modern React-based restaurant guide with dynamic routing for restaurant listings and individual restaurant pages.
The app uses a dynamic routing system that handles two types of pages:
1. Listing Pages (/country/region/city/restaurants)
• Shows all restaurants in a specific location
• Rendered from Restaurants.jsx components
• Explicitly imported in App.jsx
2. Individual Restaurant Pages (/country/region/city/restaurant-name)
• Shows details for a specific restaurant
• Data loaded from JSON files in public/components/
• Rendered using RestaurantTemplate.jsx查看完整 README ↗A modern React-based restaurant guide with dynamic routing for restaurant listings and individual restaurant pages.
theEpicurean/
├── public/
│ ├── components/ # JSON data for individual restaurants
│ │ └── [country]/[region]/[city]/[RestaurantName].json
│ └── images/ # Restaurant images
├── src/
│ ├── [country]/[region]/[city]/
│ │ ├── Restaurants.jsx # Listing page for a location
│ │ └── [RestaurantName].jsx # Individual restaurant components (legacy)
│ ├── App.jsx # Main app with routing logic
│ ├── Home.jsx # Homepage
│ ├── Destinations.jsx # Destinations overview
│ ├── Methodology.jsx # About the methodology
│ └── RestaurantTemplate.jsx # Template for rendering restaurant JSON data
└── scripts/
└── convertToJSON.js # Converts JSX components to JSON
The app uses a dynamic routing system that handles two types of pages:
Listing Pages (/country/region/city/restaurants)
Restaurants.jsx componentsApp.jsxIndividual Restaurant Pages (/country/region/city/restaurant-name)
public/components/RestaurantTemplate.jsxWhen a user visits a URL, the DynamicPage component in App.jsx:
npm run dev
npm run build
This will:
convertToJSON.js to generate JSON files from JSX componentsCreate the JSX component in the appropriate location:
src/[country]/[region]/[city]/RestaurantName.jsx
Run the conversion script:
npm run convert
The JSON file will be created in:
public/components/[country]/[region]/[city]/RestaurantName.json
Create Restaurants.jsx in the location folder:
src/[country]/[region]/[city]/Restaurants.jsx
Import it in App.jsx and add to listingComponents map:
import NewLocationRestaurants from './country/region/city/Restaurants.jsx';
const listingComponents = {
'/country/region/city/restaurants': NewLocationRestaurants,
// ... other listings
};
Unnecessary files have been removed:
*-backup.jsx, *-old*.jsx)npm run dev - Start development servernpm run build - Build for production (includes JSON conversion)npm run build-fast - Build without JSON conversionnpm run convert - Convert JSX to JSON onlynpm run preview - Preview production build locally/restaurantspublic/images/public/components/npm run convert to regenerate JSON filesRestaurants.jsx is imported in App.jsxlistingComponents matches the URLPrivate project - All rights reserved