mirror of
https://github.com/voltbonn/profile-picture-generator.git
synced 2024-12-22 15:55:08 +00:00
thomasrosen published a site update
This commit is contained in:
parent
a364a83f34
commit
3d7721c247
34 changed files with 71 additions and 71 deletions
|
@ -1,35 +1,35 @@
|
||||||
{
|
{
|
||||||
"files": {
|
"files": {
|
||||||
"main.css": "/static/css/main.96fdf8ca.chunk.css",
|
"main.css": "/static/css/main.96fdf8ca.chunk.css",
|
||||||
"main.js": "/static/js/main.57d6861a.chunk.js",
|
"main.js": "/static/js/main.5a66d5eb.chunk.js",
|
||||||
"main.js.map": "/static/js/main.57d6861a.chunk.js.map",
|
"main.js.map": "/static/js/main.5a66d5eb.chunk.js.map",
|
||||||
"runtime-main.js": "/static/js/runtime-main.8fa34b6d.js",
|
"runtime-main.js": "/static/js/runtime-main.ff7112fd.js",
|
||||||
"runtime-main.js.map": "/static/js/runtime-main.8fa34b6d.js.map",
|
"runtime-main.js.map": "/static/js/runtime-main.ff7112fd.js.map",
|
||||||
"static/js/2.8dc9db53.chunk.js": "/static/js/2.8dc9db53.chunk.js",
|
"static/js/2.ef6f135a.chunk.js": "/static/js/2.ef6f135a.chunk.js",
|
||||||
"static/js/2.8dc9db53.chunk.js.map": "/static/js/2.8dc9db53.chunk.js.map",
|
"static/js/2.ef6f135a.chunk.js.map": "/static/js/2.ef6f135a.chunk.js.map",
|
||||||
"static/js/3.6bacf941.chunk.js": "/static/js/3.6bacf941.chunk.js",
|
"static/js/3.a1b5b932.chunk.js": "/static/js/3.a1b5b932.chunk.js",
|
||||||
"static/js/3.6bacf941.chunk.js.map": "/static/js/3.6bacf941.chunk.js.map",
|
"static/js/3.a1b5b932.chunk.js.map": "/static/js/3.a1b5b932.chunk.js.map",
|
||||||
"static/js/4.6aabce4c.chunk.js": "/static/js/4.6aabce4c.chunk.js",
|
"static/js/4.9b48ff45.chunk.js": "/static/js/4.9b48ff45.chunk.js",
|
||||||
"static/js/4.6aabce4c.chunk.js.map": "/static/js/4.6aabce4c.chunk.js.map",
|
"static/js/4.9b48ff45.chunk.js.map": "/static/js/4.9b48ff45.chunk.js.map",
|
||||||
"static/js/5.222a40ef.chunk.js": "/static/js/5.222a40ef.chunk.js",
|
"static/js/5.2aa21624.chunk.js": "/static/js/5.2aa21624.chunk.js",
|
||||||
"static/js/5.222a40ef.chunk.js.map": "/static/js/5.222a40ef.chunk.js.map",
|
"static/js/5.2aa21624.chunk.js.map": "/static/js/5.2aa21624.chunk.js.map",
|
||||||
"static/js/6.a92cdf06.chunk.js": "/static/js/6.a92cdf06.chunk.js",
|
"static/js/6.bb3b5b21.chunk.js": "/static/js/6.bb3b5b21.chunk.js",
|
||||||
"static/js/6.a92cdf06.chunk.js.map": "/static/js/6.a92cdf06.chunk.js.map",
|
"static/js/6.bb3b5b21.chunk.js.map": "/static/js/6.bb3b5b21.chunk.js.map",
|
||||||
"static/js/7.cf71b883.chunk.js": "/static/js/7.cf71b883.chunk.js",
|
"static/js/7.497aacd9.chunk.js": "/static/js/7.497aacd9.chunk.js",
|
||||||
"static/js/7.cf71b883.chunk.js.map": "/static/js/7.cf71b883.chunk.js.map",
|
"static/js/7.497aacd9.chunk.js.map": "/static/js/7.497aacd9.chunk.js.map",
|
||||||
"static/js/8.0a79a4ca.chunk.js": "/static/js/8.0a79a4ca.chunk.js",
|
"static/js/8.024be94a.chunk.js": "/static/js/8.024be94a.chunk.js",
|
||||||
"static/js/8.0a79a4ca.chunk.js.map": "/static/js/8.0a79a4ca.chunk.js.map",
|
"static/js/8.024be94a.chunk.js.map": "/static/js/8.024be94a.chunk.js.map",
|
||||||
"static/js/9.a2b9c52a.chunk.js": "/static/js/9.a2b9c52a.chunk.js",
|
"static/js/9.535ffc77.chunk.js": "/static/js/9.535ffc77.chunk.js",
|
||||||
"static/js/9.a2b9c52a.chunk.js.map": "/static/js/9.a2b9c52a.chunk.js.map",
|
"static/js/9.535ffc77.chunk.js.map": "/static/js/9.535ffc77.chunk.js.map",
|
||||||
"static/js/10.e2c61991.chunk.js": "/static/js/10.e2c61991.chunk.js",
|
"static/js/10.e2e36cbd.chunk.js": "/static/js/10.e2e36cbd.chunk.js",
|
||||||
"static/js/10.e2c61991.chunk.js.map": "/static/js/10.e2c61991.chunk.js.map",
|
"static/js/10.e2e36cbd.chunk.js.map": "/static/js/10.e2e36cbd.chunk.js.map",
|
||||||
"static/js/11.e27a46aa.chunk.js": "/static/js/11.e27a46aa.chunk.js",
|
"static/js/11.c27d3fb4.chunk.js": "/static/js/11.c27d3fb4.chunk.js",
|
||||||
"static/js/11.e27a46aa.chunk.js.map": "/static/js/11.e27a46aa.chunk.js.map",
|
"static/js/11.c27d3fb4.chunk.js.map": "/static/js/11.c27d3fb4.chunk.js.map",
|
||||||
"static/js/12.b7e8f522.chunk.js": "/static/js/12.b7e8f522.chunk.js",
|
"static/js/12.2383ce8c.chunk.js": "/static/js/12.2383ce8c.chunk.js",
|
||||||
"static/js/12.b7e8f522.chunk.js.map": "/static/js/12.b7e8f522.chunk.js.map",
|
"static/js/12.2383ce8c.chunk.js.map": "/static/js/12.2383ce8c.chunk.js.map",
|
||||||
"index.html": "/index.html",
|
"index.html": "/index.html",
|
||||||
"static/css/main.96fdf8ca.chunk.css.map": "/static/css/main.96fdf8ca.chunk.css.map",
|
"static/css/main.96fdf8ca.chunk.css.map": "/static/css/main.96fdf8ca.chunk.css.map",
|
||||||
"static/js/2.8dc9db53.chunk.js.LICENSE.txt": "/static/js/2.8dc9db53.chunk.js.LICENSE.txt",
|
"static/js/2.ef6f135a.chunk.js.LICENSE.txt": "/static/js/2.ef6f135a.chunk.js.LICENSE.txt",
|
||||||
"static/media/HeaderImage.f98423dd.svg": "/static/media/HeaderImage.f98423dd.svg",
|
"static/media/HeaderImage.f98423dd.svg": "/static/media/HeaderImage.f98423dd.svg",
|
||||||
"static/media/ProfileFrame B&G Bars.png": "/static/media/ProfileFrame B&G Bars.b84e992d.png",
|
"static/media/ProfileFrame B&G Bars.png": "/static/media/ProfileFrame B&G Bars.b84e992d.png",
|
||||||
"static/media/ProfileFrame Blue Bars.png": "/static/media/ProfileFrame Blue Bars.014e4dc2.png",
|
"static/media/ProfileFrame Blue Bars.png": "/static/media/ProfileFrame Blue Bars.014e4dc2.png",
|
||||||
|
@ -42,9 +42,9 @@
|
||||||
"static/media/ProfileFrame Yellow Bars.png": "/static/media/ProfileFrame Yellow Bars.a7793831.png"
|
"static/media/ProfileFrame Yellow Bars.png": "/static/media/ProfileFrame Yellow Bars.a7793831.png"
|
||||||
},
|
},
|
||||||
"entrypoints": [
|
"entrypoints": [
|
||||||
"static/js/runtime-main.8fa34b6d.js",
|
"static/js/runtime-main.ff7112fd.js",
|
||||||
"static/js/2.8dc9db53.chunk.js",
|
"static/js/2.ef6f135a.chunk.js",
|
||||||
"static/css/main.96fdf8ca.chunk.css",
|
"static/css/main.96fdf8ca.chunk.css",
|
||||||
"static/js/main.57d6861a.chunk.js"
|
"static/js/main.5a66d5eb.chunk.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/volt-logo-64.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Combine your photo with a Volt Frame for Social Media 💜"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Volt Social Media Frame Generator</title><link href="/static/css/main.96fdf8ca.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,u,i=r[0],c=r[1],f=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);s.length;)s.shift()();return a.push.apply(a,f||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{3:"6bacf941",4:"6aabce4c",5:"222a40ef",6:"a92cdf06",7:"cf71b883",8:"0a79a4ca",9:"a2b9c52a",10:"e2c61991",11:"e27a46aa",12:"b7e8f522"}[e]+".chunk.js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/",u.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([])</script><script src="/static/js/2.8dc9db53.chunk.js"></script><script src="/static/js/main.57d6861a.chunk.js"></script></body></html>
|
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/volt-logo-64.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Combine your photo with a Volt Frame for Social Media 💜"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Volt Social Media Frame Generator</title><link href="/static/css/main.96fdf8ca.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,a,i=r[0],c=r[1],f=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"a1b5b932",4:"9b48ff45",5:"2aa21624",6:"bb3b5b21",7:"497aacd9",8:"024be94a",9:"535ffc77",10:"e2e36cbd",11:"c27d3fb4",12:"2383ce8c"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/",a.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([])</script><script src="/static/js/2.ef6f135a.chunk.js"></script><script src="/static/js/main.5a66d5eb.chunk.js"></script></body></html>
|
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[10],{33:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame Red Bars.665010b1.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[10],{32:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame Red Bars.665010b1.png"}}]);
|
||||||
//# sourceMappingURL=10.e2c61991.chunk.js.map
|
//# sourceMappingURL=10.e2e36cbd.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame Red Bars.png"],"names":[],"mappings":"8IAAA,OAAe,cAA0B","file":"static/js/10.e2c61991.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Red Bars.665010b1.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame Red Bars.png"],"names":[],"mappings":"8IAAA,OAAe,cAA0B","file":"static/js/10.e2e36cbd.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Red Bars.665010b1.png\";"],"sourceRoot":""}
|
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[11],{34:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame White Bars.b2de0d4d.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[11],{33:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame White Bars.b2de0d4d.png"}}]);
|
||||||
//# sourceMappingURL=11.e27a46aa.chunk.js.map
|
//# sourceMappingURL=11.c27d3fb4.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame White Bars.png"],"names":[],"mappings":"8IAAA,OAAe,cAA0B","file":"static/js/11.e27a46aa.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame White Bars.b2de0d4d.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame White Bars.png"],"names":[],"mappings":"8IAAA,OAAe,cAA0B","file":"static/js/11.c27d3fb4.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame White Bars.b2de0d4d.png\";"],"sourceRoot":""}
|
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[12],{35:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame Yellow Bars.a7793831.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[12],{34:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame Yellow Bars.a7793831.png"}}]);
|
||||||
//# sourceMappingURL=12.b7e8f522.chunk.js.map
|
//# sourceMappingURL=12.2383ce8c.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame Yellow Bars.png"],"names":[],"mappings":"8IAAA,OAAe,cAA0B","file":"static/js/12.b7e8f522.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Yellow Bars.a7793831.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame Yellow Bars.png"],"names":[],"mappings":"8IAAA,OAAe,cAA0B","file":"static/js/12.2383ce8c.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Yellow Bars.a7793831.png\";"],"sourceRoot":""}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
static/js/2.ef6f135a.chunk.js
Normal file
3
static/js/2.ef6f135a.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
static/js/2.ef6f135a.chunk.js.map
Normal file
1
static/js/2.ef6f135a.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[3],{36:function(t,n,e){"use strict";e.r(n),e.d(n,"getCLS",(function(){return v})),e.d(n,"getFCP",(function(){return g})),e.d(n,"getFID",(function(){return h})),e.d(n,"getLCP",(function(){return y})),e.d(n,"getTTFB",(function(){return F}));var i,a,r=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:t,value:n,delta:0,entries:[],id:r(),isFinal:!1}},u=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var e=new PerformanceObserver((function(t){return t.getEntries().map(n)}));return e.observe({type:t,buffered:!0}),e}}catch(t){}},c=!1,s=!1,p=function(t){c=!t.persisted},f=function(){addEventListener("pagehide",p),addEventListener("beforeunload",(function(){}))},d=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s||(f(),s=!0),addEventListener("visibilitychange",(function(n){var e=n.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:e,isUnloading:c})}),{capture:!0,once:n})},l=function(t,n,e,i){var a;return function(){e&&n.isFinal&&e.disconnect(),n.value>=0&&(i||n.isFinal||"hidden"===document.visibilityState)&&(n.delta=n.value-(a||0),(n.delta||n.isFinal||void 0===a)&&(t(n),a=n.value))}},v=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=o("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),n())},r=u("layout-shift",a);r&&(n=l(t,i,r,e),d((function(t){var e=t.isUnloading;r.takeRecords().map(a),e&&(i.isFinal=!0),n()})))},m=function(){return void 0===i&&(i="hidden"===document.visibilityState?0:1/0,d((function(t){var n=t.timeStamp;return i=n}),!0)),{get timeStamp(){return i}}},g=function(t){var n,e=o("FCP"),i=m(),a=u("paint",(function(t){"first-contentful-paint"===t.name&&t.startTime<i.timeStamp&&(e.value=t.startTime,e.isFinal=!0,e.entries.push(t),n())}));a&&(n=l(t,e,a))},h=function(t){var n=o("FID"),e=m(),i=function(t){t.startTime<e.timeStamp&&(n.value=t.processingStart-t.startTime,n.entries.push(t),n.isFinal=!0,r())},a=u("first-input",i),r=l(t,n,a);a?d((function(){a.takeRecords().map(i),a.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(t,i){i.timeStamp<e.timeStamp&&(n.value=t,n.isFinal=!0,n.entries=[{entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+t}],r())}))},S=function(){return a||(a=new Promise((function(t){return["scroll","keydown","pointerdown"].map((function(n){addEventListener(n,t,{once:!0,passive:!0,capture:!0})}))}))),a},y=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=o("LCP"),a=m(),r=function(t){var e=t.startTime;e<a.timeStamp?(i.value=e,i.entries.push(t)):i.isFinal=!0,n()},c=u("largest-contentful-paint",r);if(c){n=l(t,i,c,e);var s=function(){i.isFinal||(c.takeRecords().map(r),i.isFinal=!0,n())};S().then(s),d(s,!0)}},F=function(t){var n,e=o("TTFB");n=function(){try{var n=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,n={entryType:"navigation",startTime:0};for(var e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n}();e.value=e.delta=n.responseStart,e.entries=[n],e.isFinal=!0,t(e)}catch(t){}},"complete"===document.readyState?setTimeout(n,0):addEventListener("pageshow",n)}}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[3],{35:function(t,n,e){"use strict";e.r(n),e.d(n,"getCLS",(function(){return v})),e.d(n,"getFCP",(function(){return g})),e.d(n,"getFID",(function(){return h})),e.d(n,"getLCP",(function(){return y})),e.d(n,"getTTFB",(function(){return F}));var i,a,r=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:t,value:n,delta:0,entries:[],id:r(),isFinal:!1}},u=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var e=new PerformanceObserver((function(t){return t.getEntries().map(n)}));return e.observe({type:t,buffered:!0}),e}}catch(t){}},c=!1,s=!1,p=function(t){c=!t.persisted},f=function(){addEventListener("pagehide",p),addEventListener("beforeunload",(function(){}))},d=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s||(f(),s=!0),addEventListener("visibilitychange",(function(n){var e=n.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:e,isUnloading:c})}),{capture:!0,once:n})},l=function(t,n,e,i){var a;return function(){e&&n.isFinal&&e.disconnect(),n.value>=0&&(i||n.isFinal||"hidden"===document.visibilityState)&&(n.delta=n.value-(a||0),(n.delta||n.isFinal||void 0===a)&&(t(n),a=n.value))}},v=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=o("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),n())},r=u("layout-shift",a);r&&(n=l(t,i,r,e),d((function(t){var e=t.isUnloading;r.takeRecords().map(a),e&&(i.isFinal=!0),n()})))},m=function(){return void 0===i&&(i="hidden"===document.visibilityState?0:1/0,d((function(t){var n=t.timeStamp;return i=n}),!0)),{get timeStamp(){return i}}},g=function(t){var n,e=o("FCP"),i=m(),a=u("paint",(function(t){"first-contentful-paint"===t.name&&t.startTime<i.timeStamp&&(e.value=t.startTime,e.isFinal=!0,e.entries.push(t),n())}));a&&(n=l(t,e,a))},h=function(t){var n=o("FID"),e=m(),i=function(t){t.startTime<e.timeStamp&&(n.value=t.processingStart-t.startTime,n.entries.push(t),n.isFinal=!0,r())},a=u("first-input",i),r=l(t,n,a);a?d((function(){a.takeRecords().map(i),a.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(t,i){i.timeStamp<e.timeStamp&&(n.value=t,n.isFinal=!0,n.entries=[{entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+t}],r())}))},S=function(){return a||(a=new Promise((function(t){return["scroll","keydown","pointerdown"].map((function(n){addEventListener(n,t,{once:!0,passive:!0,capture:!0})}))}))),a},y=function(t){var n,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=o("LCP"),a=m(),r=function(t){var e=t.startTime;e<a.timeStamp?(i.value=e,i.entries.push(t)):i.isFinal=!0,n()},c=u("largest-contentful-paint",r);if(c){n=l(t,i,c,e);var s=function(){i.isFinal||(c.takeRecords().map(r),i.isFinal=!0,n())};S().then(s),d(s,!0)}},F=function(t){var n,e=o("TTFB");n=function(){try{var n=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,n={entryType:"navigation",startTime:0};for(var e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n}();e.value=e.delta=n.responseStart,e.entries=[n],e.isFinal=!0,t(e)}catch(t){}},"complete"===document.readyState?setTimeout(n,0):addEventListener("pageshow",n)}}}]);
|
||||||
//# sourceMappingURL=3.6bacf941.chunk.js.map
|
//# sourceMappingURL=3.a1b5b932.chunk.js.map
|
File diff suppressed because one or more lines are too long
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[4],{27:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame B&G Bars.b84e992d.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[4],{26:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame B&G Bars.b84e992d.png"}}]);
|
||||||
//# sourceMappingURL=4.6aabce4c.chunk.js.map
|
//# sourceMappingURL=4.9b48ff45.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame B&G Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/4.6aabce4c.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame B&G Bars.b84e992d.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame B&G Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/4.9b48ff45.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame B&G Bars.b84e992d.png\";"],"sourceRoot":""}
|
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[5],{28:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame Blue Bars.014e4dc2.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[5],{27:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame Blue Bars.014e4dc2.png"}}]);
|
||||||
//# sourceMappingURL=5.222a40ef.chunk.js.map
|
//# sourceMappingURL=5.2aa21624.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame Blue Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/5.222a40ef.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Blue Bars.014e4dc2.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame Blue Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/5.2aa21624.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Blue Bars.014e4dc2.png\";"],"sourceRoot":""}
|
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[6],{29:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame Green Bars.363b5131.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[6],{28:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame Green Bars.363b5131.png"}}]);
|
||||||
//# sourceMappingURL=6.a92cdf06.chunk.js.map
|
//# sourceMappingURL=6.bb3b5b21.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame Green Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/6.a92cdf06.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Green Bars.363b5131.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame Green Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/6.bb3b5b21.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Green Bars.363b5131.png\";"],"sourceRoot":""}
|
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[7],{30:function(e,r,i){"use strict";i.r(r),r.default=i.p+"static/media/ProfileFrame Mixed Bars.2624625f.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[7],{29:function(e,r,i){"use strict";i.r(r),r.default=i.p+"static/media/ProfileFrame Mixed Bars.2624625f.png"}}]);
|
||||||
//# sourceMappingURL=7.cf71b883.chunk.js.map
|
//# sourceMappingURL=7.497aacd9.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame Mixed Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/7.cf71b883.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Mixed Bars.2624625f.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame Mixed Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/7.497aacd9.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Mixed Bars.2624625f.png\";"],"sourceRoot":""}
|
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[8],{31:function(e,r,p){"use strict";p.r(r),r.default=p.p+"static/media/ProfileFrame Purple.f15807cf.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[8],{30:function(e,r,p){"use strict";p.r(r),r.default=p.p+"static/media/ProfileFrame Purple.f15807cf.png"}}]);
|
||||||
//# sourceMappingURL=8.0a79a4ca.chunk.js.map
|
//# sourceMappingURL=8.024be94a.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame Purple.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/8.0a79a4ca.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Purple.f15807cf.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame Purple.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/8.024be94a.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame Purple.f15807cf.png\";"],"sourceRoot":""}
|
|
@ -1,2 +1,2 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[9],{32:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame R&Y Bars.1185c319.png"}}]);
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[9],{31:function(e,r,t){"use strict";t.r(r),r.default=t.p+"static/media/ProfileFrame R&Y Bars.1185c319.png"}}]);
|
||||||
//# sourceMappingURL=9.a2b9c52a.chunk.js.map
|
//# sourceMappingURL=9.535ffc77.chunk.js.map
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["frames/ProfileFrame R&Y Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/9.a2b9c52a.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame R&Y Bars.1185c319.png\";"],"sourceRoot":""}
|
{"version":3,"sources":["frames/ProfileFrame R&Y Bars.png"],"names":[],"mappings":"6IAAA,OAAe,cAA0B","file":"static/js/9.535ffc77.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/ProfileFrame R&Y Bars.1185c319.png\";"],"sourceRoot":""}
|
|
@ -1,2 +0,0 @@
|
||||||
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[0],{21:function(e,t,r){},25:function(e,t,r){var a={"./ProfileFrame B&G Bars.png":[27,4],"./ProfileFrame Blue Bars.png":[28,5],"./ProfileFrame Green Bars.png":[29,6],"./ProfileFrame Mixed Bars.png":[30,7],"./ProfileFrame Purple.png":[31,8],"./ProfileFrame R&Y Bars.png":[32,9],"./ProfileFrame Red Bars.png":[33,10],"./ProfileFrame White Bars.png":[34,11],"./ProfileFrame Yellow Bars.png":[35,12]};function n(e){if(!r.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],n=t[0];return r.e(t[1]).then((function(){return r(n)}))}n.keys=function(){return Object.keys(a)},n.id=25,e.exports=n},26:function(e,t,r){"use strict";r.r(t);var a=r(2),n=r(0),c=r.n(n),o=r(11),i=r.n(o),s=r(10),l=r(9),u=r(3),f=(r(21),r(12)),j=r.n(f),d=r(15),h=r(5),b=r.n(h),m=r(8);var p=function(e){var t=e.onFrameChange,c=Object(n.useState)([]),o=Object(u.a)(c,2),i=o[0],s=o[1],l=Object(n.useState)(null),f=Object(u.a)(l,2),j=f[0],d=f[1];Object(n.useEffect)((function(){function e(){return(e=Object(m.a)(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Promise.all(["ProfileFrame Purple","ProfileFrame Yellow Bars","ProfileFrame Red Bars","ProfileFrame Blue Bars","ProfileFrame Green Bars","ProfileFrame White Bars","ProfileFrame Mixed Bars","ProfileFrame R&Y Bars","ProfileFrame B&G Bars"].map(function(){var e=Object(m.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,r(25)("./".concat(t,".png"));case 3:return e.t1=e.sent,e.abrupt("return",{name:e.t0,src:e.t1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(e){s(e),d(e[0].src.default)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var h=Object(n.useCallback)((function(e){d(e.target.dataset.src)}),[d]);return Object(n.useEffect)((function(){t(j)}),[t,j]),Object(a.jsxs)("div",{className:"FrameChooser",children:[Object(a.jsx)("h2",{children:"Choose a frame:"}),i.map((function(e){var t=e.src.default,r=j===t;return Object(a.jsx)("img",{alt:e.name,"data-src":t,src:t,className:r?"frame choosen":"frame",onClick:h},t)}))]})},O=r.p+"static/media/HeaderImage.f98423dd.svg",g=r(14),v=1080;var F=function(){var e=Object(n.useState)(null),t=Object(u.a)(e,2),r=t[0],c=t[1],o=Object(n.useState)(null),i=Object(u.a)(o,2),f=i[0],h=i[1],b=Object(n.useState)(null),m=Object(u.a)(b,2),F=m[0],P=m[1],x=Object(n.useState)(null),B=Object(u.a)(x,2),w=B[0],C=B[1],y=Object(n.useCallback)((function(e){c(e)}),[c]),k=Object(n.useCallback)((function(e){var t=new FileReader;t.onload=function(e){var t=new Image;t.onload=function(){var e=document.createElement("canvas");e.width=v,e.height=v;var r,a,n=e.getContext("2d",{alpha:!0});t.width<t.height?(a=t.height/t.width*v,r=v):(a=v,r=t.width/t.height*v),n.drawImage(t,(v-r)/2,(v-a)/2,r,a);var c=e.toDataURL();P(c)},t.src=e.target.result,h(e.target.result)},t.readAsDataURL(e)}),[]),D=Object(n.useCallback)((function(e){k(e.target.files[0])}),[k]),N=Object(n.useCallback)((function(e){k(e[0])}),[k]),I=Object(d.a)({onDrop:N,accept:"image/*",maxFiles:1,noKeyboard:!0}),R=I.isDragActive,S=I.getRootProps;return Object(n.useEffect)((function(){Object(g.a)([].concat(Object(l.a)(F?[F]:[]),Object(l.a)(r?[r]:[]))).then((function(e){return C(e)}))}),[F,r]),Object(a.jsxs)("div",Object(s.a)(Object(s.a)({className:"App"},S()),{},{children:[Object(a.jsx)("img",{src:O,className:"HeaderImage",alt:"Volt Logo"}),Object(a.jsx)("div",{className:R?"droparea active":"droparea",children:"Drop your photo here ..."}),Object(a.jsx)("h2",{children:"Choose your Photo:"}),Object(a.jsx)("p",{children:"It should best be a square image or your face in the middle. The photo is not saved and never leaves your computer."}),Object(a.jsxs)("label",{className:"labelButton",tabIndex:"0",style:{outline:"none"},children:[F?Object(a.jsx)("img",{src:f,alt:"Preview"}):null,Object(a.jsx)("span",{children:F?"Change Photo":"Load Photo"}),Object(a.jsx)("input",{onChange:D,type:"file",accept:"image/*",style:{display:"none"}})]}),Object(a.jsx)(p,{onFrameChange:y}),Object(a.jsx)("h2",{children:"Download your Photo:"}),Object(a.jsx)("img",{src:w,className:"FinishedFrame",alt:"Finished Frame"}),Object(a.jsx)("button",{onClick:function(){return j()(w,"volt-profile-picture.png","image/png")},children:"Download Profile Picture"})]}))},P=function(e){e&&e instanceof Function&&r.e(3).then(r.bind(null,36)).then((function(t){var r=t.getCLS,a=t.getFID,n=t.getFCP,c=t.getLCP,o=t.getTTFB;r(e),a(e),n(e),c(e),o(e)}))};i.a.render(Object(a.jsx)(c.a.StrictMode,{children:Object(a.jsx)(F,{})}),document.getElementById("root")),P()}},[[26,1,2]]]);
|
|
||||||
//# sourceMappingURL=main.57d6861a.chunk.js.map
|
|
File diff suppressed because one or more lines are too long
2
static/js/main.5a66d5eb.chunk.js
Normal file
2
static/js/main.5a66d5eb.chunk.js
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[0],{20:function(e,t,r){},24:function(e,t,r){var a={"./ProfileFrame B&G Bars.png":[26,4],"./ProfileFrame Blue Bars.png":[27,5],"./ProfileFrame Green Bars.png":[28,6],"./ProfileFrame Mixed Bars.png":[29,7],"./ProfileFrame Purple.png":[30,8],"./ProfileFrame R&Y Bars.png":[31,9],"./ProfileFrame Red Bars.png":[32,10],"./ProfileFrame White Bars.png":[33,11],"./ProfileFrame Yellow Bars.png":[34,12]};function n(e){if(!r.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],n=t[0];return r.e(t[1]).then((function(){return r(n)}))}n.keys=function(){return Object.keys(a)},n.id=24,e.exports=n},25:function(e,t,r){"use strict";r.r(t);var a=r(1),n=r(0),c=r.n(n),o=r(11),s=r.n(o),i=r(10),l=r(9),u=r(3),f=(r(20),r(14)),d=r(5),j=r.n(d),h=r(8);var b=function(e){var t=e.onFrameChange,c=Object(n.useState)([]),o=Object(u.a)(c,2),s=o[0],i=o[1],l=Object(n.useState)(null),f=Object(u.a)(l,2),d=f[0],b=f[1];Object(n.useEffect)((function(){function e(){return(e=Object(h.a)(j.a.mark((function e(){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Promise.all(["ProfileFrame Purple","ProfileFrame Yellow Bars","ProfileFrame Red Bars","ProfileFrame Blue Bars","ProfileFrame Green Bars","ProfileFrame White Bars","ProfileFrame Mixed Bars","ProfileFrame R&Y Bars","ProfileFrame B&G Bars"].map(function(){var e=Object(h.a)(j.a.mark((function e(t){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,r(24)("./".concat(t,".png"));case 3:return e.t1=e.sent,e.abrupt("return",{name:e.t0,src:e.t1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(e){i(e),b(e[0].src.default)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var m=Object(n.useCallback)((function(e){b(e.target.dataset.src)}),[b]);return Object(n.useEffect)((function(){t(d)}),[t,d]),Object(a.jsxs)("div",{className:"FrameChooser",children:[Object(a.jsx)("h2",{children:"Choose a frame:"}),s.map((function(e){var t=e.src.default,r=d===t;return Object(a.jsx)("img",{alt:e.name,"data-src":t,src:t,className:r?"frame choosen":"frame",onClick:m},t)}))]})},m=r.p+"static/media/HeaderImage.f98423dd.svg",p=r(13),O=1080;var g=function(){var e=Object(n.useState)(null),t=Object(u.a)(e,2),r=t[0],c=t[1],o=Object(n.useState)(null),s=Object(u.a)(o,2),d=s[0],j=s[1],h=Object(n.useState)(null),g=Object(u.a)(h,2),v=g[0],F=g[1],P=Object(n.useState)(null),x=Object(u.a)(P,2),B=x[0],w=x[1],C=Object(n.useCallback)((function(e){c(e)}),[c]),y=Object(n.useCallback)((function(e){if(e){var t=new FileReader;t.onload=function(e){var t=new Image;t.onload=function(){var e=document.createElement("canvas");e.width=O,e.height=O;var r,a,n=e.getContext("2d",{alpha:!0});t.width<t.height?(a=t.height/t.width*O,r=O):(a=O,r=t.width/t.height*O),n.drawImage(t,(O-r)/2,(O-a)/2,r,a);var c=e.toDataURL();F(c)},t.src=e.target.result,j(e.target.result)},t.readAsDataURL(e)}}),[]),k=Object(n.useCallback)((function(e){y(e.target.files[0])}),[y]),D=Object(n.useCallback)((function(e){y(e[0])}),[y]),N=Object(f.a)({onDrop:D,accept:"image/*",maxFiles:1,noKeyboard:!0}),I=N.isDragActive,R=N.getRootProps;return Object(n.useEffect)((function(){Object(p.a)([].concat(Object(l.a)(v?[v]:[]),Object(l.a)(r?[r]:[]))).then((function(e){return w(e)}))}),[v,r]),Object(a.jsxs)("div",Object(i.a)(Object(i.a)({className:"App"},R()),{},{children:[Object(a.jsx)("img",{src:m,className:"HeaderImage",alt:"Volt Logo"}),Object(a.jsx)("div",{className:I?"droparea active":"droparea",children:"Drop your photo here ..."}),Object(a.jsx)("h2",{children:"Choose your Photo:"}),Object(a.jsx)("p",{children:"It should best be a square image or your face in the middle. The photo is not saved and never leaves your computer."}),Object(a.jsxs)("label",{className:"labelButton",tabIndex:"0",style:{outline:"none"},children:[v?Object(a.jsx)("img",{src:d,alt:"Preview"}):null,Object(a.jsx)("span",{children:v?"Change Photo":"Load Photo"}),Object(a.jsx)("input",{onChange:k,type:"file",accept:"image/*",style:{display:"none"}})]}),Object(a.jsx)(b,{onFrameChange:C}),Object(a.jsx)("h2",{children:"Download your Photo:"}),Object(a.jsx)("img",{src:B,className:"FinishedFrame",alt:"Finished Frame"}),Object(a.jsx)("a",{download:"volt-profile-picture.png",href:B,target:"_blank",rel:"noreferrer",children:Object(a.jsx)("button",{children:"Download Profile Picture"})})]}))},v=function(e){e&&e instanceof Function&&r.e(3).then(r.bind(null,35)).then((function(t){var r=t.getCLS,a=t.getFID,n=t.getFCP,c=t.getLCP,o=t.getTTFB;r(e),a(e),n(e),c(e),o(e)}))};s.a.render(Object(a.jsx)(c.a.StrictMode,{children:Object(a.jsx)(g,{})}),document.getElementById("root")),v()}},[[25,1,2]]]);
|
||||||
|
//# sourceMappingURL=main.5a66d5eb.chunk.js.map
|
1
static/js/main.5a66d5eb.chunk.js.map
Normal file
1
static/js/main.5a66d5eb.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,2 +0,0 @@
|
||||||
!function(e){function r(r){for(var n,u,i=r[0],c=r[1],f=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);s.length;)s.shift()();return a.push.apply(a,f||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{3:"6bacf941",4:"6aabce4c",5:"222a40ef",6:"a92cdf06",7:"cf71b883",8:"0a79a4ca",9:"a2b9c52a",10:"e2c61991",11:"e27a46aa",12:"b7e8f522"}[e]+".chunk.js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/",u.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([]);
|
|
||||||
//# sourceMappingURL=runtime-main.8fa34b6d.js.map
|
|
2
static/js/runtime-main.ff7112fd.js
Normal file
2
static/js/runtime-main.ff7112fd.js
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
!function(e){function r(r){for(var n,a,i=r[0],c=r[1],f=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"a1b5b932",4:"9b48ff45",5:"2aa21624",6:"bb3b5b21",7:"497aacd9",8:"024be94a",9:"535ffc77",10:"e2e36cbd",11:"c27d3fb4",12:"2383ce8c"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/",a.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([]);
|
||||||
|
//# sourceMappingURL=runtime-main.ff7112fd.js.map
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue