Variables
Const DATA_URL_PREFIX
DATA_URL_PREFIX: "data:image/" = "data:image/"
Const DEFAULT_INDEX_ALIAS
DEFAULT_INDEX_ALIAS: "index" = "index"
Const DEFAULT_INDEX_ALIAS
DEFAULT_INDEX_ALIAS: "i" = "i"
Const DEFAULT_INDEX_ALIAS
DEFAULT_INDEX_ALIAS: "i" = "i"
Const DEFAULT_ITEM_ALIAS
DEFAULT_ITEM_ALIAS: "slide" = "slide"
Const DEFAULT_ITEM_ALIAS
DEFAULT_ITEM_ALIAS: "item" = "item"
Const DEFAULT_OPTION_ALIAS
DEFAULT_OPTION_ALIAS: "option" = "option"
Const IMAGE_PATTERN
IMAGE_PATTERN: RegExp = /.*\..*/
Const MIN_SWIPE_DISTANCE
MIN_SWIPE_DISTANCE: 20 = 20
Const MOVE_NEXT_DOWNWARD_MAX_ANGLE
MOVE_NEXT_DOWNWARD_MAX_ANGLE: 315 = 315
Const MOVE_NEXT_UPWARD_MAX_ANGLE
MOVE_NEXT_UPWARD_MAX_ANGLE: 45 = 45
Const MOVE_PREVIOUS_DOWNWARD_MAX_ANGLE
MOVE_PREVIOUS_DOWNWARD_MAX_ANGLE: 225 = 225
Const MOVE_PREVIOUS_UPWARD_MIN_ANGLE
MOVE_PREVIOUS_UPWARD_MIN_ANGLE: 135 = 135
Const ZINDEX_HIGH
ZINDEX_HIGH: 10 = 10
Const ZINDEX_LOW
ZINDEX_LOW: 1 = 1
StoreFront structure
StoreFront structural components, building blocks for high-level components
Getting Started
This module requires
@storefront/corefor the components to render.Prerequisites
This module is meant to be used in a
nodeenvironment which is bundled for use in the browser.Installing
Use
npmoryarnto install in anodeproject that useswebpack,browserifyor similar.npm install --save @storefront/structure # or yarn add @storefront/structureUsage
This module provides a number of structural components for use with StoreFront.
Building the package
To build an individual package, run the following command:
yarn buildTo build an individual package in response to changes within the
srcdirectory, run the following command:yarn devRunning tests
To test an individual packages, run the following command:
yarn testTo test an individual package in response to changes within the
srcandtestdirectories, run the following command:yarn tddLinting
To lint a package, run the following command:
yarn lintTo programmatically fix lint errors within a package, run the following command:
yarn lint:fixComponents
<gb-badge><gb-button><gb-container><gb-custom-select><gb-icon><gb-link><gb-list><gb-list-item><gb-native-select><gb-raw><gb-select><gb-select-option><gb-toggle>Contributing
Read the contributing file to learn about how to contribute to the StoreFront project.
License
StoreFront and its related packages are MIT licensed.