Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
innovatixhub authored Nov 26, 2024
1 parent 0c55077 commit 8429ae5
Show file tree
Hide file tree
Showing 7 changed files with 2,239 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data/constants.jsx
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"
68 changes: 68 additions & 0 deletions src/data/globalVariables.jsx
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,
};
Loading

0 comments on commit 8429ae5

Please sign in to comment.