Skip to content

Commit

Permalink
Merge pull request #522 from iShafayet/sprint-0.1.4
Browse files Browse the repository at this point in the history
Sprint 0.1.4
  • Loading branch information
iShafayet authored Jan 2, 2019
2 parents 09e9286 + aa7d687 commit 9cbb8be
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
Binary file added client/images/logo.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 client/images/manifest/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 11 additions & 3 deletions client/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{
"name": "Lipi",
"short_name": "Lipi",

"start_url": "./?homescreen=1",
"display": "standalone",
"orientation": "portrait",

"theme_color": "#009688",
"background_color": "#009688",
"background_color": "#B2DFDB",
"icons": [
{
"src": "images/manifest/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
"type": "image/png",
"sizes": "192x192"
},
{
"src": "images/manifest/icon-512x512.png",
"type": "image/png",
"sizes": "512x512"
}
]
}
16 changes: 16 additions & 0 deletions client/src/page-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,28 @@
<dom-module id="page-login">
<template>
<style include="shared-styles">

.logo-learn-more-container {
/* border: 1px solid red; */
}

.lipi-learn-more-link {
font-size: 12px;
padding-top: 6px;
text-decoration: none;
}

</style>

<elem-not-ready is-ready="[[isReady]]"></elem-not-ready>

<div class$="page-small layout vertical [[$if(isReady, '', 'hidden')]]" id="wrapper">

<div class="logo-learn-more-container vertical layout center">
<img src="../images/logo.png" class="lipi-logo-image" height="100" width="100">
<a class="link primary lipi-learn-more-link" href="https://anvilglobaldynamics.com/lipi" target="_blank">Learn more about Lipi</a>
</div>

<iron-form id="loginForm" on-keypress="genericFormSubmitionKeypress">
<form>
<div class="card vertical layout">
Expand Down
2 changes: 1 addition & 1 deletion client/src/torque-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
type: Object,
value: () => {
'%__deploy-start'
return JSON.parse('{"build":140,"datetimeStamp":1545137461846}');
return JSON.parse('{"build":144,"datetimeStamp":1545995532841}');
'%__deploy-end'
}
},
Expand Down
23 changes: 23 additions & 0 deletions server/scripts/bulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ const salesCountPerOutlet = {
min: 1,
max: 10
};
const customerCount = {
min: 20,
max: 100
};

const getSolidCount = (item) => {
if (typeof item === 'number') return item;
Expand Down Expand Up @@ -188,6 +192,21 @@ const createWarehouse = async ({ apiKey, organizationId }) => {

}

const createCustomer = async ({ apiKey, organizationId }) => {
console.log('should create customer');

let { customerId } = await callApi('api/add-customer', {
apiKey,
organizationId,
fullName: pickOne(nameList),
phone: makePhoneNumber(),
email: makeEmailId(),
address: pickOne(nameList)
});

return { customerId };
}

const createOutlet = async ({ apiKey, organizationId }) => {
console.log('should create outlet');

Expand Down Expand Up @@ -384,6 +403,10 @@ const generateBulkData = async () => {
}
}

for (let i = 0; i < getSolidCount(customerCount); i++) {
let { customerId } = await createCustomer({ apiKey, organizationId });
}

}

console.log('Done. Primary User and Pass', primaryUserPhone, commonPassword);
Expand Down

0 comments on commit 9cbb8be

Please sign in to comment.