-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c55077
commit 8429ae5
Showing
7 changed files
with
2,239 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const REMOVE_ORDER_PRODUCT = "REMOVE_ORDER_PRODUCT"; | ||
export const CLEAR_ORDER_PRODUCTS = "CLEAR_ORDER_PRODUCTS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
export const MY_REPOS_URL = "https://api.github.com/users/Moamal-2000/repos"; | ||
export const WEBSITE_REPO_ID = 681199946; | ||
export const MINIMUM_QUANTITY = 1; | ||
export const MAXIMUM_QUANTITY = 1000; | ||
export const DEFAULT_SWIPER_SPEED = 1000; | ||
export const TOAST_ALERT_DURATION_MS = 6000; | ||
export const SCROLL_REQUIRED = 1000; | ||
export const DELAYS = [500, 1000, 1500, 2000, 2500, 3000, 3500]; | ||
export const SIMPLE_DELAYS = [1200, 1400, 1600, 1800]; | ||
export const SCREEN_SIZES = { | ||
desktop: 1200, | ||
laptop: 992, | ||
tablet: 768, | ||
mobile: 428, | ||
}; | ||
export const TIME_UNITS = ["days", "hours", "minutes", "seconds"]; | ||
export const UN_BUILT_PAGES = [ | ||
"cancellations", | ||
"reviews", | ||
"faq", | ||
"terms", | ||
"privacy", | ||
"notification", | ||
]; | ||
export const pagesRequireSignIn = [ | ||
"/favorites", | ||
"/checkout", | ||
"/profile", | ||
"/wishlist", | ||
"/cart", | ||
"/order", | ||
]; | ||
export const PRODUCT_SIZES = [ | ||
{ | ||
size: "XS", | ||
title: "X Small", | ||
}, | ||
{ | ||
size: "S", | ||
title: "Small", | ||
}, | ||
{ | ||
size: "M", | ||
title: "Medium", | ||
}, | ||
{ | ||
size: "L", | ||
title: "Large", | ||
}, | ||
{ | ||
size: "XL", | ||
title: "X Large", | ||
}, | ||
]; | ||
|
||
export const regexPatterns = { | ||
email: /^[0-9a-zA-Z._]+@[a-z]+\.[a-z]+$/, | ||
price: /\B(?=(\d{3})+(?!\d))/g, | ||
words: /([-]|\s?&\s|'s[-&]?)/g, | ||
iraqiPhone: /^\d{11}$/ | ||
}; | ||
|
||
export const DEFAULT_LOGIN_DATA = { | ||
username: "Lily Watson", | ||
emailOrPhone: "lily.wastons@gmail.com", | ||
password: "random-password1234", | ||
isSignIn: true, | ||
}; |
Oops, something went wrong.