All files / app appConstants.ts

100% Statements 14/14
100% Branches 0/0
100% Functions 0/0
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24    52x   52x   52x 52x   52x   52x   52x                    
import { LngLat } from "maplibre-gl";
 
export const eventImagePlaceholderUrl = "/img/eventImagePlaceholder.svg";
 
export const supportEmail = "support@couchers.org";
 
export const userLocationMaxRadius = 2000;
export const userLocationMinRadius = 50;
 
export const pingInterval = 10000;
 
export const reactQueryRetries = 1;
 
export const grpcErrorStrings = {
  "Deadline exceeded":
    "Server took too long to respond. Please check your Internet connection or try again later.",
  "Http response at 400 or 500 level":
    "Couldn't connect to the server. Please check your Internet connection or try again later.",
  "upstream connect error or disconnect/reset before headers":
    "There was an internal server error. Please try again later.",
};
 
export type ObscureGrpcErrorMessages = keyof typeof grpcErrorStrings;