-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: separate constants in /lib into separate constants files / add…
… default storefront api version
- Loading branch information
1 parent
46efaeb
commit 8263fc9
Showing
7 changed files
with
34 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const COLOR_OPTION_NAME = 'Color' as const; | ||
|
||
export const PRICE_FILTER_ID = 'filter.v.price' as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from './collection'; | ||
export * from './navigation'; | ||
export * from './product'; | ||
export * from './store'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const PROMOBAR_HEIGHT_MOBILE = 48; /* Ensure this number (px) is equivalent to --promobar-height-mobile in app.css */ | ||
|
||
export const PROMOBAR_HEIGHT_DESKTOP = 48; /* Ensure this number (px) equivalent to --promobar-height-desktop in app.css */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import type {AspectRatio} from '../types'; | ||
|
||
/* Ensure updating this ratio as needed. Required format is 'width/height' */ | ||
export const PRODUCT_IMAGE_ASPECT_RATIO: AspectRatio = | ||
'3/4'; /* Ensure this is equivalent to product-image-aspect-ratio in app.css */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type {I18nLocale} from '../types'; | ||
|
||
export const DEFAULT_STOREFRONT_API_VERSION = '2025-01'; | ||
|
||
export const DEFAULT_LOCALE: I18nLocale = Object.freeze({ | ||
label: 'United States (USD $)', | ||
language: 'EN', | ||
country: 'US', | ||
currency: 'USD', | ||
pathPrefix: '', | ||
}); | ||
|
||
export const LOGGED_OUT_REDIRECT_TO = '/account/login' as const; | ||
|
||
export const LOGGED_IN_REDIRECT_TO = '/account/orders' as const; |