Commit fe23d2f5 authored by Freeman's avatar Freeman

Updated UI, added ledger updating functionality

parent 42ecf849
No preview for this file type
{
"main.css": "static/css/main.681d9f5a.css",
"main.css.map": "static/css/main.681d9f5a.css.map",
"main.js": "static/js/main.44b8d89c.js",
"main.js.map": "static/js/main.44b8d89c.js.map"
"main.css": "static/css/main.825307e4.css",
"main.css.map": "static/css/main.825307e4.css.map",
"main.js": "static/js/main.4fb410e2.js",
"main.js.map": "static/js/main.4fb410e2.js.map"
}
\ No newline at end of file
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><title>React PoS</title><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css"><link href="./static/css/main.681d9f5a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script><div id="root"></div><script type="text/javascript" src="./static/js/main.44b8d89c.js"></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><title>React PoS</title><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css"><link href="./static/css/main.825307e4.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script><div id="root"></div><script type="text/javascript" src="./static/js/main.4fb410e2.js"></script></body></html>
\ No newline at end of file
"use strict";var precacheConfig=[["./index.html","bc6fd9bc0bded899e6bdd5fa49646bc1"],["./static/css/main.681d9f5a.css","bc53f0ba7cff58616c46f47540da8aac"],["./static/js/main.44b8d89c.js","f1f1ca78f136cdb140fe7ba4ce2cea26"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(e){return e.redirected?("body"in e?Promise.resolve(e.body):e.blob()).then(function(t){return new Response(t,{headers:e.headers,status:e.status,statusText:e.statusText})}):Promise.resolve(e)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,t){var n=new URL(e);return n.hash="",n.search=n.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(e){return t.every(function(t){return!t.test(e[0])})}).map(function(e){return e.join("=")}).join("&"),n.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(e){return setOfCachedUrls(e).then(function(t){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(n){if(!t.has(n)){var r=new Request(n,{credentials:"same-origin"});return fetch(r).then(function(t){if(!t.ok)throw new Error("Request for "+n+" returned a response with status "+t.status);return cleanResponse(t).then(function(t){return e.put(n,t)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var t=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(e){return e.keys().then(function(n){return Promise.all(n.map(function(n){if(!t.has(n.url))return e.delete(n)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(e){if("GET"===e.request.method){var t,n=stripIgnoredUrlParameters(e.request.url,ignoreUrlParametersMatching),r="index.html";(t=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),t=urlsToCacheKeys.has(n));var a="./index.html";!t&&"navigate"===e.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],e.request.url)&&(n=new URL(a,self.location).toString(),t=urlsToCacheKeys.has(n)),t&&e.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(t){return console.warn('Couldn\'t serve response for "%s" from cache: %O',e.request.url,t),fetch(e.request)}))}});
\ No newline at end of file
"use strict";var precacheConfig=[["./index.html","d9b04026c81466ec853271a9e7761377"],["./static/css/main.825307e4.css","4d5a121fe073bd602006d0882a51d856"],["./static/js/main.4fb410e2.js","949b53f32b9cdba3f873abcfef23177c"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(e){return e.redirected?("body"in e?Promise.resolve(e.body):e.blob()).then(function(t){return new Response(t,{headers:e.headers,status:e.status,statusText:e.statusText})}):Promise.resolve(e)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,t){var n=new URL(e);return n.hash="",n.search=n.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(e){return t.every(function(t){return!t.test(e[0])})}).map(function(e){return e.join("=")}).join("&"),n.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(e){return setOfCachedUrls(e).then(function(t){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(n){if(!t.has(n)){var r=new Request(n,{credentials:"same-origin"});return fetch(r).then(function(t){if(!t.ok)throw new Error("Request for "+n+" returned a response with status "+t.status);return cleanResponse(t).then(function(t){return e.put(n,t)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var t=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(e){return e.keys().then(function(n){return Promise.all(n.map(function(n){if(!t.has(n.url))return e.delete(n)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(e){if("GET"===e.request.method){var t,n=stripIgnoredUrlParameters(e.request.url,ignoreUrlParametersMatching),r="index.html";(t=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),t=urlsToCacheKeys.has(n));var a="./index.html";!t&&"navigate"===e.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],e.request.url)&&(n=new URL(a,self.location).toString(),t=urlsToCacheKeys.has(n)),t&&e.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(t){return console.warn('Couldn\'t serve response for "%s" from cache: %O',e.request.url,t),fetch(e.request)}))}});
\ No newline at end of file
{"version":3,"sources":["index.css","App.css","NumPad.css"],"names":[],"mappings":"wHAAA,KACE,SACA,UACA,sBAAwB,CCD1B,KACE,6BAAkC,CAGpC,KACE,iBAAmB,CAGrB,WACE,eAAiB,CAGnB,SACE,kBACA,MACA,SACA,UAAY,CAGd,QACE,eACA,iBAAmB,CAGrB,YACE,YACA,gBACA,eAAiB,CAKnB,WACE,wBACA,cAAiB,CAQnB,gBAHE,eAAkB,CAOnB,UADC,eAAiB,CAGnB,OACE,uBAA2B,CAG7B,QACE,kBACA,QAAY,CAId,YACE,eAAiB,CASnB,QACE,eAAiB,CAInB,iBACE,YACA,WAAa,CAGf,eAEE,gBAEA,MAAU,CAKZ,+BARE,cAEA,kBAEA,KAAS,CAWV,gBALC,iBAEA,OAAW,CAKb,SACE,gBAAkB,CAGpB,mBACE,SACA,SAAW,CAGb,mBACE,gBACA,eAAiB,CAKnB,OACE,kBACA,WACA,KAAS,CAGX,WACE,WACA,YACA,kBACA,eAAiB,CAGnB,kBACE,YACA,YACA,iBACA,iBAAmB,CAGrB,cACE,gBAAkB,CAGpB,cACE,gBAAkB,CAQpB,aAEE,oBAA8B,CAIhC,yBALE,mBAEA,oBAAsB,CASvB,YALC,SACA,qBAEA,sBAA8B,CAUhC,aACE,YACA,qBAGA,wBAAsB,CAGxB,YACE,mBAAqB,CAGvB,eACE,iBAAmB,CAGrB,WACE,iBACA,kBAAoB,CAKtB,eACE,eACA,cACA,UAAY,CAId,WACE,iBACA,eAAmB,CAKrB,YACE,eAAiB,CAGnB,qBACC,WACA,YACA,cAAgB,CAGjB,0BACE,qBACE,WACA,YACA,cAAgB,CACjB,CAGH,yBACE,qBACE,WACA,YACA,cAAgB,CACjB,CAGH,yBACE,qBACE,WACA,YACA,cAAgB,CACjB,CCzOF,8BACC,wBACA,cACA,gBAAkB,CAGpB,gCACE,wBACA,gBACA,gBACA,gBAAkB,CAGpB,mBAEE,cAAiB,CAGnB,QAGE,eAGA,iBAEA,iBACA,kBACA,eACA,cAAgB,CAGlB,aACE,YAAc,CAQhB,eAJE,iBACA,iBAAmB,CAepB,MAXG,kBACA,WACA,gBACA,WAGA,WACA,WAGA,cAAgB,CAIpB,0BACI,KACI,YAAgB,CAEpB,QAEE,eACA,cAAgB,CAElB,MACI,gBACA,WACA,WACA,iBACA,kBACA,cAAgB,CACnB,CAGL,0BACI,KACI,YAAgB,CAEpB,QAEE,eACA,cAAgB,CAElB,MACI,gBACA,WACA,aACA,iBACA,kBACA,cAAgB,CACnB,CAGL,yBACI,KACI,YAAgB,CAEpB,QACE,eACA,cAAgB,CAElB,MACI,WACA,WACA,iBACA,kBACA,cAAgB,CAEnB,CAGL,yBACI,KACI,YAAgB,CAEpB,QACE,eACA,cAAgB,CAElB,MACI,gBACA,WACA,YACA,iBACA,kBACA,cAAgB,CACnB","file":"static/css/main.681d9f5a.css","sourcesContent":["body {\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.css","@import url('https://fonts.googleapis.com/css?family=Ubuntu');\n\nbody {\n font-family: 'Ubuntu', sans-serif;\n}\n\n.App {\n text-align: center;\n}\n\n.presetsh5 {\n text-align: left;\n}\n\n.presets {\n position: relative;\n top: 0px;\n left: 5px;\n float: left;\n}\n\n.action {\n margin-top: 3vw;\n margin-bottom: 3vw;\n}\n\n.btn-action {\n width: 220px;\n font-weight: 900;\n font-size: 1.4em;\n}\n\n\n\n.mono-tiny {\n font-family: 'Ubuntu Mono';\n font-size: 0.8em;\n}\n\n.bold {\n/* font-family: 'Ubuntu'; */\n font-weight: bold;\n}\n\n.bold-big {\n/* font-family: 'Ubuntu'; */\n font-weight: bold;\n font-size: 1.2em;\n}\n\n.price {\n font-family: 'Ubuntu Mono';\n}\n\n.bottom {\n position: relative;\n bottom: 0px;\n}\n\n\n.home-brand {\n font-weight: 900;\n}\n\n\n/*.list-items span {\n margin-right: 10px;\n \n}*/\n\n.avatar {\n text-align: left;\n \n}\n\n.btn-item-remove {\n width: 100px;\n height: 55px;\n}\n\n.subtotal-left {\n font-size: 1em;\n text-align: left;\n position: relative;\n left: 0px;\n top: 0px;\n\n}\n\n.subtotal-right {\n font-size: 1em;\n text-align: right;\n position: relative;\n right: 0px;\n top: 0px;\n\n}\n\n.row-top {\n padding-top: 15px;\n}\n\n.subtotal-right h4 {\n margin: 0;\n padding: 0;\n}\n\n.subtotal-right h5 {\n font-weight: 600;\n font-size: 1.4em;\n}\n\n\n\n.close {\n position: relative;\n right: 15px;\n top: 0px;\n}\n\n.btn-close {\n width: 40px;\n height: 40px;\n padding-left: 12px;\n padding-top: 1px;\n}\n\n.btn-backandforth {\n width: 150px;\n height: 40px;\n margin-left: 20px;\n margin-right: 20px;\n}\n\n.backandforth {\n padding-top: 15px;\n}\n\n.order-totals {\n margin-top: 3.5vw;\n}\n\n/*.order-items span {\n margin-right: 120px;\n height: auto;\n}*/\n\n.order-items {\n border-style: solid;\n border-width: 2px 0px 0px 0px;\n border-color: #c9daeb;\n}\n\n.order-item {\n margin: 0;\n padding: 10px 5px 5px 5px;\n border-style: solid;\n border-width: 0px 1px 1px 1px;\n border-color: #c9daeb;\n}\n\n.detail-items {\n/* border-style: solid;\n border-width: 1px 0px 0px 0px;\n border-color: #c9daeb;*/\n}\n\n.detail-item {\n margin: -1px;\n padding: 10px 5px 5px 5px;\n border-style: solid;\n border-width: 1px 1px 1px 1px;\n border-color: #c9daeb;\n}\n\n.item-total {\n margin-right: -3.5vw;\n}\n\n.order-buttons {\n margin-right: -5px;\n}\n\n.order-btn {\n margin-left: 20px;\n margin-bottom: 20px;\n \n}\n\n\n.input-buttons {\n margin-top: 8px;\n margin-left: 0px;\n float: left;\n\n}\n\n.input-btn {\n margin-right: 5px;\n margin-bottom: 0px;\n \n}\n\n\n.pingpong i {\n margin-top: 25px;\n}\n\n.target-ratio-resize {\n\twidth: 100%; \n\theight: auto; \n\tmax-width: 25vw; \n}\n\[email protected] (max-width: 1200px){\n .target-ratio-resize {\n width: 100%; \n height: auto; \n max-width: 40vw; \n }\n}\n\[email protected] (max-width: 900px){\n .target-ratio-resize {\n width: 100%; \n height: auto; \n max-width: 50vw; \n }\n}\n\[email protected] (max-width: 600px){\n .target-ratio-resize {\n width: 100%; \n height: auto; \n max-width: 65vw; \n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/App.css"," @import url('https://fonts.googleapis.com/css?family=Ubuntu');\n \n .input-field input[id='amount'] {\n font-family: 'Ubuntu Mono';\n font-size: 3em;\n text-align: right;\n}\n\n.input-field label[id='currency'] {\n font-family: 'Ubuntu Bold';\n font-size: 2.3em;\n font-weight: 900;\n margin-top: -16px;\n}\n\n.calculator-footer {\n/* font-family: 'Ubuntu Mono'; */\n font-size: 0.8em;\n}\n\n.numpad {\n/* border: 0px solid; */\n/* background-color: #dfe1f3; */\n margin-top: 6vh;\n padding-top: 5px;\n padding-bottom: 5px;\n padding-left: 10px;\n padding-right: 10px;\n margin-left: auto;\n margin-right: auto;\n max-width: 22vw;\n min-width: 15vw;\n}\n\n.input-panel {\n height: 100px;\n}\n\n.buttons {\n margin-left: auto;\n margin-right: auto;\n}\n\n.ibtn{\n position: relative;\n float: left;\n font-size: 1.5em;\n color: white;\n/* border: 1px solid; */\n/* border-color: white; */\n width: 100%;\n height: 3vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n}\n\n\[email protected] (max-width: 1500px){\n body {\n margin-top: 0vh;\n }\n .numpad {\n/* max-width: 90%; */\n min-width: 10vw;\n max-width: 27vw;\n } \n .ibtn {\n padding: 0 0.5rem;\n width:100%;\n height:4vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n }\n}\n\[email protected] (max-width: 1200px){\n body {\n margin-top: 0vh;\n }\n .numpad {\n/* max-width: 90%; */\n min-width: 10vw;\n max-width: 45vw;\n } \n .ibtn {\n padding: 0 0.5rem;\n width:100%;\n height:5.5vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n }\n}\n\[email protected] (max-width: 900px){\n body {\n margin-top: 0vh;\n }\n .numpad {\n min-width: 30vw;\n max-width: 50vw;\n } \n .ibtn {\n width:100%;\n height:8vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n \n }\n}\n\[email protected] (max-width: 600px){\n body {\n margin-top: 0vh;\n }\n .numpad {\n min-width: 70vw;\n max-width: 90vw;\n } \n .ibtn {\n padding: 0 0.5rem;\n width:100%;\n height: 12vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/NumPad.css"],"sourceRoot":""}
\ No newline at end of file
@import url(https://fonts.googleapis.com/css?family=Ubuntu);@import url(https://fonts.googleapis.com/css?family=Ubuntu);body{margin:0;padding:0;font-family:sans-serif}body{font-family:Ubuntu,sans-serif}.App{text-align:center}.presetsh5{text-align:left}.presets{position:relative;top:0;left:5px;float:left}.action{margin-top:3vw;margin-bottom:3vw}.btn-action{width:220px;font-weight:900;font-size:1.4em}.mono-tiny{font-family:Ubuntu Mono;font-size:.8em}.bold,.bold-big{font-weight:700}.bold-big{font-size:1.2em}.price{font-family:Ubuntu Mono}.bottom{position:relative;bottom:0}.home-brand{font-weight:900}.avatar{text-align:left}.btn-item-remove{width:100px;height:55px}.subtotal-left{text-align:left;left:0}.subtotal-left,.subtotal-right{font-size:1em;position:relative;top:0}.subtotal-right{text-align:right;right:0}.row-top{padding-top:15px}.subtotal-right h4{margin:0;padding:0}.subtotal-right h5{font-weight:600;font-size:1.4em}.close{position:relative;right:15px;top:0}.btn-close{width:40px;height:40px;padding-left:12px;padding-top:1px}.btn-backandforth{width:150px;height:40px;margin-left:20px;margin-right:20px}.backandforth{padding-top:15px}.order-totals{margin-top:3.5vw}.order-items{border-width:2px 0 0}.order-item,.order-items{border-style:solid;border-color:#c9daeb}.order-item{margin:0;padding:10px 5px 5px;border-width:0 1px 1px}.detail-item{margin:-1px;padding:10px 5px 5px;border:1px solid #c9daeb}.item-total{margin-right:-3.5vw}.order-buttons{margin-right:-5px}.order-btn{margin-left:20px;margin-bottom:20px}.input-buttons{margin-top:8px;margin-left:0;float:left}.input-btn{margin-right:5px;margin-bottom:0}.pingpong i{margin-top:25px}.target-ratio-resize{width:100%;height:auto;max-width:25vw}@media (max-width:1200px){.target-ratio-resize{width:100%;height:auto;max-width:40vw}}@media (max-width:900px){.target-ratio-resize{width:100%;height:auto;max-width:50vw}}@media (max-width:600px){.target-ratio-resize{width:100%;height:auto;max-width:65vw}}.input-field input[id=amount]{font-family:Ubuntu Mono;font-size:3em;text-align:right}.input-field label[id=currency]{font-family:Ubuntu Bold;font-size:2.3em;font-weight:900;margin-top:-16px}.calculator-footer{font-size:.8em}.numpad{margin-top:6vh;padding:5px 10px;margin-left:auto;margin-right:auto;max-width:22vw;min-width:15vw}.input-panel{height:100px}.buttons,.ibtn{margin-left:auto;margin-right:auto}.ibtn{position:relative;float:left;font-size:1.5em;color:#fff;width:100%;height:3vw;margin-top:1vh}@media (max-width:1500px){body{margin-top:0}.numpad{min-width:10vw;max-width:27vw}.ibtn{padding:0 .5rem;width:100%;height:4vw;margin-left:auto;margin-right:auto;margin-top:1vh}}@media (max-width:1200px){body{margin-top:0}.numpad{min-width:10vw;max-width:45vw}.ibtn{padding:0 .5rem;width:100%;height:5.5vw;margin-left:auto;margin-right:auto;margin-top:1vh}}@media (max-width:900px){body{margin-top:0}.numpad{min-width:30vw;max-width:50vw}.ibtn{width:100%;height:8vw;margin-left:auto;margin-right:auto;margin-top:1vh}}@media (max-width:600px){body{margin-top:0}.numpad{min-width:70vw;max-width:90vw}.ibtn{padding:0 .5rem;width:100%;height:12vw;margin-left:auto;margin-right:auto;margin-top:1vh}}
/*# sourceMappingURL=main.681d9f5a.css.map*/
\ No newline at end of file
@import url(https://fonts.googleapis.com/css?family=Ubuntu);@import url(https://fonts.googleapis.com/css?family=Ubuntu);body{margin:0;padding:0;font-family:sans-serif}body{font-family:Ubuntu,sans-serif}.App{text-align:center}.presetsh5{text-align:left}.presets{position:relative;top:0;left:5px;float:left}.action{margin-top:3vw;margin-bottom:3vw}.btn-action{width:220px;font-weight:900;font-size:1.4em}.mono-tiny{font-family:Ubuntu Mono;font-size:.8em}.bold,.bold-big{font-weight:700}.bold-big{font-size:1.2em}.price{font-family:Ubuntu Mono}.bottom{position:relative;bottom:0}.home-brand{font-weight:900}.avatar{text-align:left}.btn-item-remove{width:100px;height:55px}.subtotal-left{text-align:left;left:0}.subtotal-left,.subtotal-right{font-size:1em;position:relative;top:0}.subtotal-right{text-align:right;right:0}.row-top{padding-top:15px}.subtotal-right h4{margin:0;padding:0}.subtotal-right h5{font-weight:600;font-size:1.4em}.close{position:relative;right:15px;top:0}.btn-close{width:40px;height:40px;padding-left:12px;padding-top:1px}.btn-backandforth{width:150px;height:40px;margin-left:20px;margin-right:20px}.backandforth{padding-top:15px}.order-totals{margin-top:3.5vw}.order-items{border-width:2px 0 0}.order-item,.order-items{border-style:solid;border-color:#c9daeb}.order-item{margin:0;padding:10px 5px 5px;border-width:0 1px 1px}.detail-item{margin:-1px;padding:10px 5px 5px;border:1px solid #c9daeb}.item-total{margin-right:-3.5vw}.order-buttons{margin-right:-5px}.stakOrange{background-color:#f2932e}.stakBlue{background-color:#243a4e}.order-btn{margin-left:20px;margin-bottom:20px}.input-buttons{margin-top:8px;margin-left:0;float:left}.input-btn{margin-right:5px;margin-bottom:0}.pingpong i{margin-top:25px}.target-ratio-resize{width:100%;height:auto;max-width:25vw}@media (max-width:1200px){.target-ratio-resize{width:100%;height:auto;max-width:40vw}}@media (max-width:900px){.target-ratio-resize{width:100%;height:auto;max-width:50vw}}@media (max-width:600px){.target-ratio-resize{width:100%;height:auto;max-width:65vw}}.input-field input[id=amount]{font-family:Ubuntu Mono;font-size:3em;text-align:right}.input-field label[id=currency]{font-family:Ubuntu Bold;font-size:2.3em;font-weight:900;margin-top:-16px}.calculator-footer{font-size:.8em}.numpad{margin-top:6vh;padding:5px 10px;margin-left:auto;margin-right:auto;max-width:22vw;min-width:15vw}.input-panel{height:100px}.buttons,.ibtn{margin-left:auto;margin-right:auto}.ibtn{position:relative;float:left;font-size:1.5em;color:#fff;width:100%;height:3vw;margin-top:1vh}@media (max-width:1500px){body{margin-top:0}.numpad{min-width:10vw;max-width:27vw}.ibtn{padding:0 .5rem;width:100%;height:4vw;margin-left:auto;margin-right:auto;margin-top:1vh}}@media (max-width:1200px){body{margin-top:0}.numpad{min-width:10vw;max-width:45vw}.ibtn{padding:0 .5rem;width:100%;height:5.5vw;margin-left:auto;margin-right:auto;margin-top:1vh}}@media (max-width:900px){body{margin-top:0}.numpad{min-width:30vw;max-width:50vw}.ibtn{width:100%;height:8vw;margin-left:auto;margin-right:auto;margin-top:1vh}}@media (max-width:600px){body{margin-top:0}.numpad{min-width:70vw;max-width:90vw}.ibtn{padding:0 .5rem;width:100%;height:12vw;margin-left:auto;margin-right:auto;margin-top:1vh}}
/*# sourceMappingURL=main.825307e4.css.map*/
\ No newline at end of file
{"version":3,"sources":["index.css","App.css","NumPad.css"],"names":[],"mappings":"wHAAA,KACE,SACA,UACA,sBAAwB,CCD1B,KACE,6BAAkC,CAGpC,KACE,iBAAmB,CAGrB,WACE,eAAiB,CAGnB,SACE,kBACA,MACA,SACA,UAAY,CAGd,QACE,eACA,iBAAmB,CAGrB,YACE,YACA,gBACA,eAAiB,CAKnB,WACE,wBACA,cAAiB,CAQnB,gBAHE,eAAkB,CAOnB,UADC,eAAiB,CAGnB,OACE,uBAA2B,CAG7B,QACE,kBACA,QAAY,CAId,YACE,eAAiB,CASnB,QACE,eAAiB,CAInB,iBACE,YACA,WAAa,CAGf,eAEE,gBAEA,MAAU,CAKZ,+BARE,cAEA,kBAEA,KAAS,CAWV,gBALC,iBAEA,OAAW,CAKb,SACE,gBAAkB,CAGpB,mBACE,SACA,SAAW,CAGb,mBACE,gBACA,eAAiB,CAInB,OACE,kBACA,WACA,KAAS,CAGX,WACE,WACA,YACA,kBACA,eAAiB,CAGnB,kBACE,YACA,YACA,iBACA,iBAAmB,CAGrB,cACE,gBAAkB,CAGpB,cACE,gBAAkB,CAQpB,aAEE,oBAA8B,CAIhC,yBALE,mBAEA,oBAAsB,CASvB,YALC,SACA,qBAEA,sBAA8B,CAUhC,aACE,YACA,qBAGA,wBAAsB,CAGxB,YACE,mBAAqB,CAGvB,eACE,iBAAmB,CAGrB,YACE,wBAA0B,CAG5B,UACE,wBAA0B,CAG5B,WACE,iBACA,kBAAoB,CAKtB,eACE,eACA,cACA,UAAY,CAId,WACE,iBACA,eAAmB,CAKrB,YACE,eAAiB,CAGnB,qBACC,WACA,YACA,cAAgB,CAGjB,0BACE,qBACE,WACA,YACA,cAAgB,CACjB,CAGH,yBACE,qBACE,WACA,YACA,cAAgB,CACjB,CAGH,yBACE,qBACE,WACA,YACA,cAAgB,CACjB,CChPF,8BACC,wBACA,cACA,gBAAkB,CAGpB,gCACE,wBACA,gBACA,gBACA,gBAAkB,CAGpB,mBAEE,cAAiB,CAGnB,QAGE,eAGA,iBAEA,iBACA,kBACA,eACA,cAAgB,CAGlB,aACE,YAAc,CAQhB,eAJE,iBACA,iBAAmB,CAepB,MAXG,kBACA,WACA,gBACA,WAGA,WACA,WAGA,cAAgB,CAIpB,0BACI,KACI,YAAgB,CAEpB,QAEE,eACA,cAAgB,CAElB,MACI,gBACA,WACA,WACA,iBACA,kBACA,cAAgB,CACnB,CAGL,0BACI,KACI,YAAgB,CAEpB,QAEE,eACA,cAAgB,CAElB,MACI,gBACA,WACA,aACA,iBACA,kBACA,cAAgB,CACnB,CAGL,yBACI,KACI,YAAgB,CAEpB,QACE,eACA,cAAgB,CAElB,MACI,WACA,WACA,iBACA,kBACA,cAAgB,CAEnB,CAGL,yBACI,KACI,YAAgB,CAEpB,QACE,eACA,cAAgB,CAElB,MACI,gBACA,WACA,YACA,iBACA,kBACA,cAAgB,CACnB","file":"static/css/main.825307e4.css","sourcesContent":["body {\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.css","@import url('https://fonts.googleapis.com/css?family=Ubuntu');\n\nbody {\n font-family: 'Ubuntu', sans-serif;\n}\n\n.App {\n text-align: center;\n}\n\n.presetsh5 {\n text-align: left;\n}\n\n.presets {\n position: relative;\n top: 0px;\n left: 5px;\n float: left;\n}\n\n.action {\n margin-top: 3vw;\n margin-bottom: 3vw;\n}\n\n.btn-action {\n width: 220px;\n font-weight: 900;\n font-size: 1.4em;\n}\n\n\n\n.mono-tiny {\n font-family: 'Ubuntu Mono';\n font-size: 0.8em;\n}\n\n.bold {\n/* font-family: 'Ubuntu'; */\n font-weight: bold;\n}\n\n.bold-big {\n/* font-family: 'Ubuntu'; */\n font-weight: bold;\n font-size: 1.2em;\n}\n\n.price {\n font-family: 'Ubuntu Mono';\n}\n\n.bottom {\n position: relative;\n bottom: 0px;\n}\n\n\n.home-brand {\n font-weight: 900;\n}\n\n\n/*.list-items span {\n margin-right: 10px;\n \n}*/\n\n.avatar {\n text-align: left;\n \n}\n\n.btn-item-remove {\n width: 100px;\n height: 55px;\n}\n\n.subtotal-left {\n font-size: 1em;\n text-align: left;\n position: relative;\n left: 0px;\n top: 0px;\n\n}\n\n.subtotal-right {\n font-size: 1em;\n text-align: right;\n position: relative;\n right: 0px;\n top: 0px;\n\n}\n\n.row-top {\n padding-top: 15px;\n}\n\n.subtotal-right h4 {\n margin: 0;\n padding: 0;\n}\n\n.subtotal-right h5 {\n font-weight: 600;\n font-size: 1.4em;\n}\n\n\n.close {\n position: relative;\n right: 15px;\n top: 0px;\n}\n\n.btn-close {\n width: 40px;\n height: 40px;\n padding-left: 12px;\n padding-top: 1px;\n}\n\n.btn-backandforth {\n width: 150px;\n height: 40px;\n margin-left: 20px;\n margin-right: 20px;\n}\n\n.backandforth {\n padding-top: 15px;\n}\n\n.order-totals {\n margin-top: 3.5vw;\n}\n\n/*.order-items span {\n margin-right: 120px;\n height: auto;\n}*/\n\n.order-items {\n border-style: solid;\n border-width: 2px 0px 0px 0px;\n border-color: #c9daeb;\n}\n\n.order-item {\n margin: 0;\n padding: 10px 5px 5px 5px;\n border-style: solid;\n border-width: 0px 1px 1px 1px;\n border-color: #c9daeb;\n}\n\n.detail-items {\n/* border-style: solid;\n border-width: 1px 0px 0px 0px;\n border-color: #c9daeb;*/\n}\n\n.detail-item {\n margin: -1px;\n padding: 10px 5px 5px 5px;\n border-style: solid;\n border-width: 1px 1px 1px 1px;\n border-color: #c9daeb;\n}\n\n.item-total {\n margin-right: -3.5vw;\n}\n\n.order-buttons {\n margin-right: -5px;\n}\n\n.stakOrange {\n background-color: #f2932e;\n}\n\n.stakBlue {\n background-color: #243a4e;\n}\n\n.order-btn {\n margin-left: 20px;\n margin-bottom: 20px;\n \n}\n\n\n.input-buttons {\n margin-top: 8px;\n margin-left: 0px;\n float: left;\n\n}\n\n.input-btn {\n margin-right: 5px;\n margin-bottom: 0px;\n \n}\n\n\n.pingpong i {\n margin-top: 25px;\n}\n\n.target-ratio-resize {\n\twidth: 100%; \n\theight: auto; \n\tmax-width: 25vw; \n}\n\[email protected] (max-width: 1200px){\n .target-ratio-resize {\n width: 100%; \n height: auto; \n max-width: 40vw; \n }\n}\n\[email protected] (max-width: 900px){\n .target-ratio-resize {\n width: 100%; \n height: auto; \n max-width: 50vw; \n }\n}\n\[email protected] (max-width: 600px){\n .target-ratio-resize {\n width: 100%; \n height: auto; \n max-width: 65vw; \n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/App.css"," @import url('https://fonts.googleapis.com/css?family=Ubuntu');\n \n .input-field input[id='amount'] {\n font-family: 'Ubuntu Mono';\n font-size: 3em;\n text-align: right;\n}\n\n.input-field label[id='currency'] {\n font-family: 'Ubuntu Bold';\n font-size: 2.3em;\n font-weight: 900;\n margin-top: -16px;\n}\n\n.calculator-footer {\n/* font-family: 'Ubuntu Mono'; */\n font-size: 0.8em;\n}\n\n.numpad {\n/* border: 0px solid; */\n/* background-color: #dfe1f3; */\n margin-top: 6vh;\n padding-top: 5px;\n padding-bottom: 5px;\n padding-left: 10px;\n padding-right: 10px;\n margin-left: auto;\n margin-right: auto;\n max-width: 22vw;\n min-width: 15vw;\n}\n\n.input-panel {\n height: 100px;\n}\n\n.buttons {\n margin-left: auto;\n margin-right: auto;\n}\n\n.ibtn{\n position: relative;\n float: left;\n font-size: 1.5em;\n color: white;\n/* border: 1px solid; */\n/* border-color: white; */\n width: 100%;\n height: 3vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n}\n\n\[email protected] (max-width: 1500px){\n body {\n margin-top: 0vh;\n }\n .numpad {\n/* max-width: 90%; */\n min-width: 10vw;\n max-width: 27vw;\n } \n .ibtn {\n padding: 0 0.5rem;\n width:100%;\n height:4vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n }\n}\n\[email protected] (max-width: 1200px){\n body {\n margin-top: 0vh;\n }\n .numpad {\n/* max-width: 90%; */\n min-width: 10vw;\n max-width: 45vw;\n } \n .ibtn {\n padding: 0 0.5rem;\n width:100%;\n height:5.5vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n }\n}\n\[email protected] (max-width: 900px){\n body {\n margin-top: 0vh;\n }\n .numpad {\n min-width: 30vw;\n max-width: 50vw;\n } \n .ibtn {\n width:100%;\n height:8vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n \n }\n}\n\[email protected] (max-width: 600px){\n body {\n margin-top: 0vh;\n }\n .numpad {\n min-width: 70vw;\n max-width: 90vw;\n } \n .ibtn {\n padding: 0 0.5rem;\n width:100%;\n height: 12vw;\n margin-left: auto;\n margin-right: auto;\n margin-top: 1vh;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/NumPad.css"],"sourceRoot":""}
\ No newline at end of file
......@@ -51,7 +51,6 @@ def get_api_tx(tx):
return _json_tx
def verify_tx(addr):
print('Verifying transaction')
_json_addr = get_api_addr(addr)
_amount = _json_addr['totalReceived'] #_json_addr['unconfirmedBalance'] if _json_addr['unconfirmedBalance'] != 0 else _json_addr['totalReceived']
......@@ -112,13 +111,9 @@ def verify_tx_with_amount(addr, amount):
def verify(addr, amount):
print('verifying tx with amount %s'%amount)
_json_addr = get_api_addr(addr)
print('json_addr:', _json_addr)
print('\n\n')
if _json_addr['balance'] >= float(amount):
print('passed')
for _txid in _json_addr['transactions']:
print('txid: ' + _txid)
_json_tx = get_api_tx(_txid)
......
......@@ -283,10 +283,16 @@ def generate_embed(addr, parameters):
return html
def generate_ledger(parameters, ip_addr):
print('Generating ledger')
_db = init_db()
_ledger = {}
print('Got payment request')
for _payment in _db['payment_requests']:
print('verifying')
_verify = generate_verify(_payment, ip_addr)
print('results: %s'%_verify)
for _payment in _db['payment_requests']:
print('payment', _payment)
_data = {
'id': _payment.id,
'timestamp': _payment.timestamp,
......@@ -588,7 +594,7 @@ def main():
print('Starting wallet at index: ' + str(index))
# MTServer wsgi server
app.run(server=MTServer, host='0.0.0.0', port=9090, thread_count=3)
app.run(server=MTServer, host='0.0.0.0', port=8080, thread_count=3)
# Paste wsgi server
#httpserver.serve(app, host='0.0.0.0', port=8080)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment