尚未偵測到更新。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