Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added frontend/src/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/src/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 8 additions & 17 deletions frontend/src/constants/backend.constants.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
export const DEFAULT_AVATAR =
"https://thrifthub.s3.ap-southeast-1.amazonaws.com/media/images/default_avatar.png";
export const DEFAULT_PLACEHOLDER =
"https://thrifthub.s3.ap-southeast-1.amazonaws.com/media/images/default_avatar.png";

export const MOBILE_SPLASHSCREEN =
"https://thrifthub.s3.ap-southeast-1.amazonaws.com/static/frontend/splash.png";

export const DEFAULT_ICON =
"https://thrifthub.s3.ap-southeast-1.amazonaws.com/static/frontend/icon.png";

export const DEFAULT_ADAPTIVE_ICON =
"https://thrifthub.s3.ap-southeast-1.amazonaws.com/static/frontend/adaptive-icon.png";

export const BACKEND_URL = process.env.BACKEND_URL || "http://127.0.0.1:8000";
export const API = `${BACKEND_URL}/api`;
export const DEFAULT_AVATAR = `${BACKEND_URL}/media/images/default_avatar.png` || require("../assets/images/default_avatar.png");
export const DEFAULT_PLACEHOLDER = `${BACKEND_URL}/media/images/default_placeholder.png` || require("../assets/images/default_placeholder.png");
export const MOBILE_SPLASHSCREEN = require('../assets/splash.png');
export const DEFAULT_ICON = require('../assets/icon.png');
export const DEFAULT_ADAPTIVE_ICON = require('../assets/adaptive-icon.png');
export const PRODUCT_ENDPONT = "store";
export const CATEGORY_ENDPOINT = "category";
export const VENDOR_ENDPOINT = "vendor";
export const ORDER_ENDPOINT = "orders";
export const ORDERDETAILS_ENDPONT = "orderdetail";
export const API = "https://thrifthub-backend.herokuapp.com/api";
export const HOME_PRODUCTS_QUERY =
'store/?expand=product_images,vendor,product,category&include=vendor.name';
export const HOME_PRODUCTS_QUERY = 'store/?expand=product_images,vendor,product,category&include=vendor.name';
Loading