first commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import colors from './Color';
|
||||
import AllUrls from './AllUrls';
|
||||
import FontsFamily from './FontsFamily';
|
||||
import ImagePath from './ImagePath';
|
||||
import NavigationString from './NavigationString';
|
||||
import { showErrorAlert, showSuccessAlert, showToast } from './ShowDailog';
|
||||
import Variable from './Variable';
|
||||
|
||||
export { AllUrls, colors, ImagePath, NavigationString, showErrorAlert, showSuccessAlert, showToast, Variable ,FontsFamily};
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
import Variable from "./Variable"
|
||||
|
||||
// Customer
|
||||
const Login = `${Variable.Main_Base}/customer/login`
|
||||
const OtpVerify = `${Variable.Main_Base}/customer/verify_otp`
|
||||
const userUpdate = `${Variable.Main_Base}/customer`
|
||||
const userLogout = `${Variable.Main_Base}/customer/logout`
|
||||
const userInfo = `${Variable.Main_Base}/customer/info`
|
||||
|
||||
// Category
|
||||
const categoryApi = `${Variable.Main_Base}/category`
|
||||
|
||||
// Brand
|
||||
const brandsApi = `${Variable.Main_Base}/brand`
|
||||
|
||||
// Brand
|
||||
const bannersApi = `${Variable.Main_Base}/banner/position`
|
||||
|
||||
// Vehicle Segment
|
||||
const segmentApi = `${Variable.Main_Base}/vehicleSegmentType/without-page`
|
||||
const vehicleApi = `${Variable.Main_Base}/vehicle`
|
||||
|
||||
// Products
|
||||
const productApi = `${Variable.Main_Base}/product`
|
||||
const brandProductApi = `${Variable.Main_Base}/product/assigned`
|
||||
const ProductDetailsApi = `${Variable.Main_Base}/product`
|
||||
const ProductWishlistApi = `${Variable.Main_Base}/wish-list`
|
||||
const recentViewedProductApi = `${Variable.Main_Base}/view`
|
||||
const updateAddToCartApi = `${Variable.Main_Base}/add-to-cart`
|
||||
const brandCategoryApi = `${Variable.Main_Base}/category/brand`
|
||||
|
||||
// Rating
|
||||
const ratingApi = `${Variable.Main_Base}/rating`
|
||||
|
||||
// Coupon
|
||||
const couponApi = `${Variable.Main_Base}/coupon`
|
||||
|
||||
// Orders
|
||||
const orderApi = `${Variable.Main_Base}/order`
|
||||
|
||||
// Address
|
||||
const addressApi = `${Variable.Main_Base}/address`
|
||||
const addressStatusApi = `${Variable.Main_Base}/address/status`
|
||||
|
||||
// Recharge
|
||||
const rechrgeWalletApi = `${Variable.Main_Base}/wallets/create-order`
|
||||
const rechrgeWalletVerifyApi = `${Variable.Main_Base}/wallets/verify`
|
||||
const rechrgeWalletHistoryApi = `${Variable.Main_Base}/wallets`
|
||||
|
||||
// Order Payment
|
||||
const orderPaymentApi = `${Variable.Main_Base}/order/init`
|
||||
const orderConfirmApi = `${Variable.Main_Base}/order/callback`
|
||||
|
||||
// Charges
|
||||
const chargesApi = `${Variable.Main_Base}/charges`
|
||||
// FAQs
|
||||
const FAQsApi = `${Variable.Main_Base}/faq`
|
||||
|
||||
// offers
|
||||
const offersApi = `${Variable.Main_Base}/recharge`
|
||||
// PrivacyPolicy
|
||||
const privacyPolicyApi = `${Variable.Main_Base}/documents`
|
||||
|
||||
const AllUrls = {
|
||||
Login, OtpVerify, userUpdate, userLogout, categoryApi, brandsApi, bannersApi, segmentApi, productApi, brandProductApi, ProductDetailsApi, ratingApi,
|
||||
ProductWishlistApi, recentViewedProductApi, updateAddToCartApi, vehicleApi, brandCategoryApi, userInfo, couponApi, orderApi, addressApi, addressStatusApi,
|
||||
rechrgeWalletApi, orderPaymentApi, orderConfirmApi, rechrgeWalletVerifyApi, chargesApi, FAQsApi, rechrgeWalletHistoryApi, offersApi,privacyPolicyApi
|
||||
};
|
||||
export default AllUrls;
|
||||
@@ -0,0 +1,39 @@
|
||||
const colors = {
|
||||
// Primary (Orange-based)
|
||||
primary: '#F97316', // Main orange (buttons, highlights)
|
||||
primaryLight: '#FDBA74', // Soft orange (chips, badges)
|
||||
primaryHighlight: '#f4f1efff', // Very light orange (backgrounds)
|
||||
|
||||
// Secondary (Warm contrast)
|
||||
secondary: '#1B4B66', // Deep blue for balance
|
||||
secondaryLight: '#639599', // Muted blue
|
||||
|
||||
// Status colors
|
||||
success: '#22C55E', // Green
|
||||
error: '#EF4444', // Red
|
||||
warning: '#F59E0B', // Amber
|
||||
info: '#3B82F6', // Blue
|
||||
golden: '#FFD700',
|
||||
|
||||
// Neutral colors
|
||||
white: '#FFFFFF',
|
||||
black: '#000000',
|
||||
darkText: '#2B2B2B',
|
||||
grayText: '#6B7280',
|
||||
lightText: '#9CA3AF',
|
||||
border: '#E5E7EB',
|
||||
lightGray: '#F9FAFB',
|
||||
disabled: '#D1D5DB',
|
||||
|
||||
// Additional
|
||||
placeholder: '#9CA3AF',
|
||||
backdrop: 'rgba(0,0,0,0.5)',
|
||||
shadow: 'rgba(0,0,0,0.12)',
|
||||
|
||||
// Aliases (optional)
|
||||
Orange: '#F97316',
|
||||
OrangeLight: '#FDBA74',
|
||||
OrangeSoft: '#FFF3E8',
|
||||
};
|
||||
|
||||
export default colors;
|
||||
@@ -0,0 +1,22 @@
|
||||
const FontsFamily = {
|
||||
poppinsRegular: 'Poppins-Regular',
|
||||
poppinsThin: 'Poppins-Thin',
|
||||
poppinsThinItalic: 'Poppins-ThinItalic',
|
||||
poppinsExtraLight: 'Poppins-ExtraLight',
|
||||
poppinsExtraLightItalic: 'Poppins-ExtraLightItalic',
|
||||
poppinsLight: 'Poppins-Light',
|
||||
poppinsLightItalic: 'Poppins-LightItalic',
|
||||
poppinsItalic: 'Poppins-Italic',
|
||||
poppinsMedium: 'Poppins-Medium',
|
||||
poppinsMediumItalic: 'Poppins-MediumItalic',
|
||||
poppinsSemiBold: 'Poppins-SemiBold',
|
||||
poppinsSemiBoldItalic: 'Poppins-SemiBoldItalic',
|
||||
poppinsBold: 'Poppins-Bold',
|
||||
poppinsBoldItalic: 'Poppins-BoldItalic',
|
||||
poppinsExtraBold: 'Poppins-ExtraBold',
|
||||
poppinsExtraBoldItalic: 'Poppins-ExtraBoldItalic',
|
||||
poppinsBlack: 'Poppins-Black',
|
||||
poppinsBlackItalic: 'Poppins-BlackItalic',
|
||||
};
|
||||
|
||||
export default FontsFamily;
|
||||
@@ -0,0 +1,21 @@
|
||||
import OnBoard1 from '../Images/Onboarding/undraw_1.svg'
|
||||
import OnBoard2 from '../Images/Onboarding/undraw_2.svg'
|
||||
import OnBoard3 from '../Images/Onboarding/undraw_3.svg'
|
||||
import Diamond from '../Images/diamond.svg'
|
||||
import Hill from '../Images/Svg/Hill.svg'
|
||||
const Logo = require('../Images/logo.png')
|
||||
const Logo2 = require('../Images/logo2.png')
|
||||
const Icon = {
|
||||
Logo,
|
||||
Logo2
|
||||
}
|
||||
const ImagePath = {
|
||||
Icon,
|
||||
OnBoard1,
|
||||
OnBoard2,
|
||||
OnBoard3,
|
||||
Diamond,
|
||||
Hill
|
||||
|
||||
}
|
||||
export default ImagePath;
|
||||
@@ -0,0 +1,13 @@
|
||||
const NavigationString = {
|
||||
Login: 'Login',
|
||||
Splash: 'Splash',
|
||||
Home: 'Home',
|
||||
Onboarding: 'Onboarding',
|
||||
Auction: 'Auction',
|
||||
Tender: 'Tender',
|
||||
PurchaseList: 'PurchaseList',
|
||||
Emd: 'Emd',
|
||||
StartBidding: 'StartBidding',
|
||||
PurchaseAuctionList:'PurchaseAuctionList'
|
||||
}
|
||||
export default NavigationString
|
||||
@@ -0,0 +1,26 @@
|
||||
import { ALERT_TYPE, Dialog, Root, Toast } from 'react-native-alert-notification';
|
||||
|
||||
const showSuccessAlert = (text: string) => {
|
||||
Toast.show({
|
||||
type: ALERT_TYPE.SUCCESS,
|
||||
title: 'Success',
|
||||
textBody: text,
|
||||
});
|
||||
};
|
||||
|
||||
const showErrorAlert = (text: string) => {
|
||||
Toast.show({
|
||||
type: ALERT_TYPE.DANGER,
|
||||
title: 'Error',
|
||||
textBody: text,
|
||||
});
|
||||
};
|
||||
|
||||
const showToast = (text: string) => {
|
||||
Toast.show({
|
||||
type: ALERT_TYPE.SUCCESS,
|
||||
title: 'Success',
|
||||
textBody: text,
|
||||
});
|
||||
}
|
||||
export { showErrorAlert, showSuccessAlert, showToast }
|
||||
@@ -0,0 +1,4 @@
|
||||
const webSocketUrl = 'https://procurelinc.in/Auction/liveBid/';
|
||||
const socketUrl = `https://procurelinc.in/Auction/api/`;
|
||||
const Variables = { webSocketUrl, socketUrl }
|
||||
export default Variables
|
||||
Reference in New Issue
Block a user