new structure; code polish
This commit is contained in:
3
common/.babelrc
Normal file
3
common/.babelrc
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"presets": ["es2015", "react", "stage-3"]
|
||||
}
|
||||
16
common/enums.js
Normal file
16
common/enums.js
Normal file
@@ -0,0 +1,16 @@
|
||||
export const AD_TYPE_SALE = 1;
|
||||
export const AD_TYPE_RENT = 2;
|
||||
|
||||
export const IGNORED_USERNAMES = ['rental']
|
||||
|
||||
export const CATEGORY_FLAT = 0;
|
||||
export const CATEGORY_HOUSE = 1;
|
||||
export const CATEGORY_OFFICE = 2;
|
||||
export const CATEGORY_LAND = 3;
|
||||
export const CATEGORY_APARTMENT = 4;
|
||||
export const CATEGORY_GARAGE = 5;
|
||||
|
||||
export const STATUS_NORMAL = 0;
|
||||
export const STATUS_RESERVED = 1;
|
||||
export const STATUS_SOLD = 2;
|
||||
|
||||
Reference in New Issue
Block a user