Replace entire repo content with correct code from /root/shahikitchen-website/
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Convenience re-export — all website images & media in one place.
|
||||
*
|
||||
* Usage:
|
||||
* import { SITE_ASSETS, logoUrl, getMenuPosterSrc } from '@/lib/assets';
|
||||
*/
|
||||
export {
|
||||
SITE_ASSETS,
|
||||
MEDIA_FOLDERS,
|
||||
RESTAURANT_GALLERY,
|
||||
mediaUrl,
|
||||
restaurantPhoto,
|
||||
tableQrCode,
|
||||
} from '@/infrastructure/assets/site-assets';
|
||||
|
||||
export {
|
||||
logoUrl,
|
||||
heroBannerSources,
|
||||
chefExpressionUrl,
|
||||
dishImageUrl,
|
||||
dishPosterFromVideo,
|
||||
getMenuPosterSrc,
|
||||
getMenuPosterCandidates,
|
||||
getMenuVideoSrc,
|
||||
getMenuVideoSources,
|
||||
applyNextImageFallback,
|
||||
videoBaseName,
|
||||
} from '@/application/media/asset-resolver';
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Catering data — re-export from domain layer.
|
||||
*/
|
||||
export {
|
||||
CATERING_DISH_CATALOG,
|
||||
CATERING_CATEGORY_ORDER,
|
||||
getCateringDishById,
|
||||
groupDishesByCategory,
|
||||
} from '@/domain/catering/dish-catalog';
|
||||
|
||||
export { cateringPackages } from '@/domain/catering/catering-packages';
|
||||
|
||||
export type {
|
||||
CateringDish,
|
||||
CateringDishCategory,
|
||||
CateringPackage,
|
||||
} from '@/domain/catering/entities';
|
||||
@@ -0,0 +1,10 @@
|
||||
/** Shared header layout constants — safe for Server Components (no 'use client'). */
|
||||
|
||||
export const LANGUAGE_BANNER_HEIGHT = 48;
|
||||
export const NAVBAR_HEIGHT = 68;
|
||||
export const HEADER_HEIGHT = LANGUAGE_BANNER_HEIGHT + NAVBAR_HEIGHT; // 116px
|
||||
export const HEADER_HEIGHT_MOBILE = HEADER_HEIGHT;
|
||||
export const HEADER_OFFSET_VAR = '--header-height';
|
||||
|
||||
/** @deprecated Use HEADER_HEIGHT */
|
||||
export const headerHeight = HEADER_HEIGHT;
|
||||
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* @deprecated Import from `@/presentation/providers/language-provider`.
|
||||
* Kept for backward compatibility during Clean Architecture migration.
|
||||
*/
|
||||
export { LanguageProvider, useLanguage } from '@/presentation/providers/language-provider';
|
||||
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @deprecated Import from `@/infrastructure/menu/static-menu-data` or use `container.menuRepository`.
|
||||
* Kept for backward compatibility during Clean Architecture migration.
|
||||
*/
|
||||
export {
|
||||
menuCategories,
|
||||
allMenuItems,
|
||||
getMenuItemById,
|
||||
type MenuItem,
|
||||
type MenuCategory,
|
||||
} from '@/infrastructure/menu/static-menu-data';
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @deprecated Import from `@/infrastructure/audio/web-audio-sound-adapter`.
|
||||
* Kept for backward compatibility during Clean Architecture migration.
|
||||
*/
|
||||
export {
|
||||
playHoverSound,
|
||||
playAddSound,
|
||||
playSuccessSound,
|
||||
} from '@/infrastructure/audio/web-audio-sound-adapter';
|
||||
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @deprecated Import from `@/presentation/i18n/translations`.
|
||||
* Kept for backward compatibility during Clean Architecture migration.
|
||||
*/
|
||||
export {
|
||||
languages,
|
||||
translations,
|
||||
getTranslation,
|
||||
type Language,
|
||||
} from '@/presentation/i18n/translations';
|
||||
Reference in New Issue
Block a user