notice
This commit is contained in:
parent
b38ff13950
commit
84f1ea179f
1 changed files with 20 additions and 17 deletions
|
|
@ -16,23 +16,26 @@ const polygon = turf.polygon(mbnrGeoJson.features[0].geometry.coordinates);
|
||||||
export async function scaffoldEssentialConsts() {
|
export async function scaffoldEssentialConsts() {
|
||||||
const consts = await getAllConstValues();
|
const consts = await getAllConstValues();
|
||||||
|
|
||||||
return {
|
|
||||||
freeDeliveryThreshold: consts[CONST_KEYS.freeDeliveryThreshold] ?? 200,
|
return {
|
||||||
deliveryCharge: consts[CONST_KEYS.deliveryCharge] ?? 0,
|
freeDeliveryThreshold: consts[CONST_KEYS.freeDeliveryThreshold] ?? 200,
|
||||||
flashFreeDeliveryThreshold: consts[CONST_KEYS.flashFreeDeliveryThreshold] ?? 500,
|
deliveryCharge: consts[CONST_KEYS.deliveryCharge] ?? 0,
|
||||||
flashDeliveryCharge: consts[CONST_KEYS.flashDeliveryCharge] ?? 69,
|
flashFreeDeliveryThreshold: consts[CONST_KEYS.flashFreeDeliveryThreshold] ?? 500,
|
||||||
popularItems: consts[CONST_KEYS.popularItems] ?? '5,3,2,4,1',
|
flashDeliveryCharge: consts[CONST_KEYS.flashDeliveryCharge] ?? 69,
|
||||||
versionNum: consts[CONST_KEYS.versionNum] ?? '1.1.0',
|
popularItems: consts[CONST_KEYS.popularItems] ?? '5,3,2,4,1',
|
||||||
playStoreUrl: consts[CONST_KEYS.playStoreUrl] ?? 'https://play.google.com/store/apps/details?id=in.freshyo.app',
|
versionNum: consts[CONST_KEYS.versionNum] ?? '1.1.0',
|
||||||
appStoreUrl: consts[CONST_KEYS.appStoreUrl] ?? 'https://apps.apple.com/in/app/freshyo/id6756889077',
|
playStoreUrl: consts[CONST_KEYS.playStoreUrl] ?? 'https://play.google.com/store/apps/details?id=in.freshyo.app',
|
||||||
webViewHtml: null,
|
appStoreUrl: consts[CONST_KEYS.appStoreUrl] ?? 'https://apps.apple.com/in/app/freshyo/id6756889077',
|
||||||
isWebviewClosable: true,
|
webviewHtml: `<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;">
|
||||||
isFlashDeliveryEnabled: consts[CONST_KEYS.isFlashDeliveryEnabled] ?? true,
|
<h1 style="font-size: 72px">You're using an old version of app. please restart to update. Just close and open</h1>
|
||||||
supportMobile: consts[CONST_KEYS.supportMobile] ?? '',
|
<h1 style="font-size: 36px; margin-top: 48px">With love, from Freshyo</h5>
|
||||||
supportEmail: consts[CONST_KEYS.supportEmail] ?? '',
|
</div>`,
|
||||||
assetsDomain,
|
isWebviewClosable: false,
|
||||||
apiCacheKey,
|
isFlashDeliveryEnabled: consts[CONST_KEYS.isFlashDeliveryEnabled] ?? true,
|
||||||
};
|
supportMobile: consts[CONST_KEYS.supportMobile] ?? '',
|
||||||
|
supportEmail: consts[CONST_KEYS.supportEmail] ?? '',
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const commonApiRouter = router({
|
export const commonApiRouter = router({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue