@eotl/ui-ordering
v0.1.1
Published
## Configuation
Readme
UI Ordering
Configuation
<div id="app"></div>
<script>
const ordering = {
dispatchUrl: 'https://dispatch.eotl.supply',
inventoryUrl: 'https://inventory.eotl.supply',
coordinator: 'ecologistik',
api: '/api/',
lang: 'en',
currency: '€',
style: 'theme-white',
iconPath: '/icons/',
imagePath: '/items/theme/',
layout: 'list',
checkoutHeader: true,
checkoutType: 'priced'
}
</script>
<script type="text/javascript" src="js/libs.js"></script>
<script type="text/javascript" src="js/ui-ordering.js"></script>
<script type="text/javascript" src="js/app.js"></script>coordinator
coordinator-id- an Open-DispatchusernameoridentityKey
api
http://open-inventory.server.com- a URL or path to the JSON of inventory
layout
list- shows list of items grouped by category (small # of items)pages- shows category page then pages of items (large # of items)
Development
Install depedencies from NPM
yarn installBuild the CSS
yarn scssCompile and hot-reload for development
yarn serveCompile and minify for production
yarn buildLint and fix files
yarn lintSee Configuration Reference for customization
