Merge branch 'main' of http://45.93.137.91:3000/Rahaf/SweetHome
All checks were successful
Build frontend / build (push) Successful in 1m17s
All checks were successful
Build frontend / build (push) Successful in 1m17s
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@ -16,7 +16,6 @@ const BuildingType = Object.freeze({
|
||||
WAREHOUSE: 9,
|
||||
});
|
||||
|
||||
// Map numeric value → Arabic label
|
||||
const BuildingTypeLabels = Object.freeze({
|
||||
[BuildingType.APARTMENT]: 'شقة',
|
||||
[BuildingType.VILLA]: 'فيلا',
|
||||
@ -26,11 +25,10 @@ const BuildingTypeLabels = Object.freeze({
|
||||
[BuildingType.STUDIO]: 'استوديو',
|
||||
[BuildingType.OFFICE]: 'مكتب',
|
||||
[BuildingType.FARMS]: 'مزرعة',
|
||||
[BuildingType.SHOP]: 'محل',
|
||||
[BuildingType.SHOP]: 'متجر',
|
||||
[BuildingType.WAREHOUSE]: 'مستودع',
|
||||
});
|
||||
|
||||
// Map numeric value → English key (for UI filters)
|
||||
const BuildingTypeKeys = Object.freeze({
|
||||
[BuildingType.APARTMENT]: 'apartment',
|
||||
[BuildingType.VILLA]: 'villa',
|
||||
@ -44,7 +42,6 @@ const BuildingTypeKeys = Object.freeze({
|
||||
[BuildingType.WAREHOUSE]: 'warehouse',
|
||||
});
|
||||
|
||||
// Reverse map: English key → numeric value
|
||||
const BuildingTypeByKey = Object.freeze({
|
||||
apartment: BuildingType.APARTMENT,
|
||||
villa: BuildingType.VILLA,
|
||||
|
||||
13
app/enums/CancellationReason.js
Normal file
13
app/enums/CancellationReason.js
Normal file
@ -0,0 +1,13 @@
|
||||
const CancellationReason = Object.freeze({
|
||||
NONE: 0,
|
||||
DEPOSIT_NOT_PAID: 1,
|
||||
OWNER_CANCELED: 2,
|
||||
});
|
||||
|
||||
const CancellationReasonLabels = Object.freeze({
|
||||
[CancellationReason.NONE]: 'بدون سبب',
|
||||
[CancellationReason.DEPOSIT_NOT_PAID]: 'عدم دفع العربون',
|
||||
[CancellationReason.OWNER_CANCELED]: 'إلغاء من المالك',
|
||||
});
|
||||
|
||||
export { CancellationReason, CancellationReasonLabels };
|
||||
@ -5,16 +5,22 @@
|
||||
const Currency = Object.freeze({
|
||||
SYP: 1,
|
||||
USD: 2,
|
||||
EUR: 3,
|
||||
TRY: 4,
|
||||
});
|
||||
|
||||
const CurrencyLabels = Object.freeze({
|
||||
[Currency.SYP]: 'ليرة سورية',
|
||||
[Currency.USD]: 'دولار أمريكي',
|
||||
[Currency.EUR]: 'يورو',
|
||||
[Currency.TRY]: 'ليرة تركية',
|
||||
});
|
||||
|
||||
const CurrencySymbols = Object.freeze({
|
||||
[Currency.SYP]: 'SYP',
|
||||
[Currency.USD]: 'USD',
|
||||
[Currency.EUR]: 'EUR',
|
||||
[Currency.TRY]: 'TRY',
|
||||
});
|
||||
|
||||
export { Currency, CurrencyLabels, CurrencySymbols };
|
||||
|
||||
7
app/enums/DeviceType.js
Normal file
7
app/enums/DeviceType.js
Normal file
@ -0,0 +1,7 @@
|
||||
const DeviceType = Object.freeze({
|
||||
ANDROID: 'Android',
|
||||
IOS: 'Ios',
|
||||
WEB: 'Web',
|
||||
});
|
||||
|
||||
export { DeviceType };
|
||||
11
app/enums/Language.js
Normal file
11
app/enums/Language.js
Normal file
@ -0,0 +1,11 @@
|
||||
const Language = Object.freeze({
|
||||
ARABIC: 'Arabic',
|
||||
ENGLISH: 'English',
|
||||
});
|
||||
|
||||
const LanguageLabels = Object.freeze({
|
||||
[Language.ARABIC]: 'العربية',
|
||||
[Language.ENGLISH]: 'English',
|
||||
});
|
||||
|
||||
export { Language, LanguageLabels };
|
||||
@ -5,29 +5,26 @@
|
||||
*/
|
||||
const PropertyStatus = Object.freeze({
|
||||
AVAILABLE: 0,
|
||||
BOOKED: 1,
|
||||
MAINTENANCE: 2,
|
||||
NOT_AVAILABLE: 1,
|
||||
BOOKED: 2,
|
||||
});
|
||||
|
||||
// Map numeric value → Arabic label
|
||||
const PropertyStatusLabels = Object.freeze({
|
||||
[PropertyStatus.AVAILABLE]: 'متاح',
|
||||
[PropertyStatus.NOT_AVAILABLE]: 'غير متاح',
|
||||
[PropertyStatus.BOOKED]: 'محجوز',
|
||||
[PropertyStatus.MAINTENANCE]: 'صيانة',
|
||||
});
|
||||
|
||||
// Map numeric value → English key (for UI filters)
|
||||
const PropertyStatusKeys = Object.freeze({
|
||||
[PropertyStatus.AVAILABLE]: 'available',
|
||||
[PropertyStatus.NOT_AVAILABLE]: 'notAvailable',
|
||||
[PropertyStatus.BOOKED]: 'booked',
|
||||
[PropertyStatus.MAINTENANCE]: 'maintenance',
|
||||
});
|
||||
|
||||
// Reverse map: English key → numeric value
|
||||
const PropertyStatusByKey = Object.freeze({
|
||||
available: PropertyStatus.AVAILABLE,
|
||||
notAvailable: PropertyStatus.NOT_AVAILABLE,
|
||||
booked: PropertyStatus.BOOKED,
|
||||
maintenance: PropertyStatus.MAINTENANCE,
|
||||
});
|
||||
|
||||
export { PropertyStatus, PropertyStatusLabels, PropertyStatusKeys, PropertyStatusByKey };
|
||||
|
||||
11
app/enums/SalePropertiesStatus.js
Normal file
11
app/enums/SalePropertiesStatus.js
Normal file
@ -0,0 +1,11 @@
|
||||
const SalePropertiesStatus = Object.freeze({
|
||||
PENDING: 0,
|
||||
CONFIRMED: 1,
|
||||
});
|
||||
|
||||
const SalePropertiesStatusLabels = Object.freeze({
|
||||
[SalePropertiesStatus.PENDING]: 'قيد الانتظار',
|
||||
[SalePropertiesStatus.CONFIRMED]: 'مؤكد',
|
||||
});
|
||||
|
||||
export { SalePropertiesStatus, SalePropertiesStatusLabels };
|
||||
11
app/enums/TransactionType.js
Normal file
11
app/enums/TransactionType.js
Normal file
@ -0,0 +1,11 @@
|
||||
const TransactionType = Object.freeze({
|
||||
ONLINE: 0,
|
||||
MANUAL: 1,
|
||||
});
|
||||
|
||||
const TransactionTypeLabels = Object.freeze({
|
||||
[TransactionType.ONLINE]: 'أونلاين',
|
||||
[TransactionType.MANUAL]: 'يدوي',
|
||||
});
|
||||
|
||||
export { TransactionType, TransactionTypeLabels };
|
||||
@ -19,3 +19,8 @@ export { RentType, RentTypeLabels } from './RentType';
|
||||
export { PropertyService, PropertyServiceLabels, PropertyServicesList } from './PropertyService';
|
||||
export { PropertyTerm, PropertyTermLabels, PropertyTermsList } from './PropertyTerm';
|
||||
export { Currency, CurrencyLabels, CurrencySymbols } from './Currency';
|
||||
export { DeviceType } from './DeviceType';
|
||||
export { SalePropertiesStatus, SalePropertiesStatusLabels } from './SalePropertiesStatus';
|
||||
export { TransactionType, TransactionTypeLabels } from './TransactionType';
|
||||
export { CancellationReason, CancellationReasonLabels } from './CancellationReason';
|
||||
export { Language, LanguageLabels } from './Language';
|
||||
|
||||
Reference in New Issue
Block a user