mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2026-11-09 18:35:09 -08:00
add calculator-react /build
This commit is contained in:
1 parent
36f827027c
commit
bc72768677
16 files changed
+171
-1
No files matched your search
@@ -9,7 +9,7 @@
|
|||||||
/coverage
|
/coverage
|
||||||
|
|
||||||
# production
|
# production
|
||||||
/build
|
# /build
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"files": {
|
||||||
|
"main.css": "/fcc-challenges/calculator-react/build/static/css/main.1b8ac635.chunk.css",
|
||||||
|
"main.js": "/fcc-challenges/calculator-react/build/static/js/main.bfd616ae.chunk.js",
|
||||||
|
"main.js.map": "/fcc-challenges/calculator-react/build/static/js/main.bfd616ae.chunk.js.map",
|
||||||
|
"runtime-main.js": "/fcc-challenges/calculator-react/build/static/js/runtime-main.bf967002.js",
|
||||||
|
"runtime-main.js.map": "/fcc-challenges/calculator-react/build/static/js/runtime-main.bf967002.js.map",
|
||||||
|
"static/js/2.07dbc1f4.chunk.js": "/fcc-challenges/calculator-react/build/static/js/2.07dbc1f4.chunk.js",
|
||||||
|
"static/js/2.07dbc1f4.chunk.js.map": "/fcc-challenges/calculator-react/build/static/js/2.07dbc1f4.chunk.js.map",
|
||||||
|
"index.html": "/fcc-challenges/calculator-react/build/index.html",
|
||||||
|
"precache-manifest.25ea6938318dfa689cefd0b87f019a55.js": "/fcc-challenges/calculator-react/build/precache-manifest.25ea6938318dfa689cefd0b87f019a55.js",
|
||||||
|
"service-worker.js": "/fcc-challenges/calculator-react/build/service-worker.js",
|
||||||
|
"static/css/main.1b8ac635.chunk.css.map": "/fcc-challenges/calculator-react/build/static/css/main.1b8ac635.chunk.css.map",
|
||||||
|
"static/js/2.07dbc1f4.chunk.js.LICENSE.txt": "/fcc-challenges/calculator-react/build/static/js/2.07dbc1f4.chunk.js.LICENSE.txt"
|
||||||
|
},
|
||||||
|
"entrypoints": [
|
||||||
|
"static/js/runtime-main.bf967002.js",
|
||||||
|
"static/js/2.07dbc1f4.chunk.js",
|
||||||
|
"static/css/main.1b8ac635.chunk.css",
|
||||||
|
"static/js/main.bfd616ae.chunk.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="#"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/fcc-challenges/calculator-react/build/logo192.png"/><link rel="manifest" href="/fcc-challenges/calculator-react/build/manifest.json"/><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Baloo+Bhai"/><title>Calculator React - Build a Calculator - Front End Libraries Projects</title><link href="/fcc-challenges/calculator-react/build/static/css/main.1b8ac635.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"><div><script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script></div></div><script>!function(e){function r(r){for(var n,l,a=r[0],c=r[1],f=r[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(i&&i(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,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(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,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/fcc-challenges/calculator-react/build/";var a=this["webpackJsonpcalculator-react"]=this["webpackJsonpcalculator-react"]||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var i=c;t()}([])</script><script src="/fcc-challenges/calculator-react/build/static/js/2.07dbc1f4.chunk.js"></script><script src="/fcc-challenges/calculator-react/build/static/js/main.bfd616ae.chunk.js"></script></body></html>
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"short_name": "React App",
|
||||||
|
"name": "Create React App Sample",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "favicon.ico",
|
||||||
|
"sizes": "64x64 32x32 24x24 16x16",
|
||||||
|
"type": "image/x-icon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "logo192.png",
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "192x192"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "logo512.png",
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "512x512"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"start_url": ".",
|
||||||
|
"display": "standalone",
|
||||||
|
"theme_color": "#000000",
|
||||||
|
"background_color": "#ffffff"
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||||
|
{
|
||||||
|
"revision": "60a2129b30b27571f044270be4d55f27",
|
||||||
|
"url": "/fcc-challenges/calculator-react/build/index.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"revision": "2ad96291c59025fc4b09",
|
||||||
|
"url": "/fcc-challenges/calculator-react/build/static/css/main.1b8ac635.chunk.css"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"revision": "458ff72b1474233a6ff9",
|
||||||
|
"url": "/fcc-challenges/calculator-react/build/static/js/2.07dbc1f4.chunk.js"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"revision": "c64c486544348f10a6d6c716950bc223",
|
||||||
|
"url": "/fcc-challenges/calculator-react/build/static/js/2.07dbc1f4.chunk.js.LICENSE.txt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"revision": "2ad96291c59025fc4b09",
|
||||||
|
"url": "/fcc-challenges/calculator-react/build/static/js/main.bfd616ae.chunk.js"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"revision": "11fa019406a5ca9e472e",
|
||||||
|
"url": "/fcc-challenges/calculator-react/build/static/js/runtime-main.bf967002.js"
|
||||||
|
}
|
||||||
|
]);
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# https://www.robotstxt.org/robotstxt.html
|
||||||
|
User-agent: *
|
||||||
|
Disallow:
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/**
|
||||||
|
* Welcome to your Workbox-powered service worker!
|
||||||
|
*
|
||||||
|
* You'll need to register this file in your web app and you should
|
||||||
|
* disable HTTP caching for this file too.
|
||||||
|
* See https://goo.gl/nhQhGp
|
||||||
|
*
|
||||||
|
* The rest of the code is auto-generated. Please don't update this file
|
||||||
|
* directly; instead, make changes to your Workbox build configuration
|
||||||
|
* and re-run your build process.
|
||||||
|
* See https://goo.gl/2aRDsh
|
||||||
|
*/
|
||||||
|
|
||||||
|
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||||
|
|
||||||
|
importScripts(
|
||||||
|
"/fcc-challenges/calculator-react/build/precache-manifest.25ea6938318dfa689cefd0b87f019a55.js"
|
||||||
|
);
|
||||||
|
|
||||||
|
self.addEventListener('message', (event) => {
|
||||||
|
if (event.data && event.data.type === 'SKIP_WAITING') {
|
||||||
|
self.skipWaiting();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
workbox.core.clientsClaim();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
|
||||||
|
* requests for URLs in the manifest.
|
||||||
|
* See https://goo.gl/S9QRab
|
||||||
|
*/
|
||||||
|
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
||||||
|
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
||||||
|
|
||||||
|
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/fcc-challenges/calculator-react/build/index.html"), {
|
||||||
|
|
||||||
|
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
|
||||||
|
});
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}
|
||||||
|
/*# sourceMappingURL=main.1b8ac635.chunk.css.map */
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"sources":["index.css"],"names":[],"mappings":"AAAA,KACE,QAAS,CACT,mJAEY,CACZ,kCAAmC,CACnC,iCAAkC,CAClC,eACF,CAEA,KACE,yEAEF","file":"main.1b8ac635.chunk.css","sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n overflow: hidden;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n"]}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
/*! For license information please see 2.07dbc1f4.chunk.js.LICENSE.txt */
|
||||||
|
(this["webpackJsonpcalculator-react"]=this["webpackJsonpcalculator-react"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(25)},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return W}));var r=n(0),o=n.n(r),i=(n(9),o.a.createContext(null));var a=function(e){e()},l={notify:function(){}};function u(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var c=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=l,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=l)},e}();var s=function(e){var t=e.store,n=e.context,a=e.children,l=Object(r.useMemo)((function(){var e=new c(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=l.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[l,u]);var s=n||i;return o.a.createElement(s.Provider,{value:l},a)};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var p=n(19),m=n.n(p),h=n(18),y="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,v=[],g=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){y((function(){return e.apply(void 0,t)}),n)}function k(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function x(e,t,n,r,o,i,a,l,u,c){if(e){var s=!1,f=null,d=function(){if(!s){var e,n,d=t.getState();try{e=r(d,o.current)}catch(p){n=p,f=p}n||(f=null),e===i.current?a.current||u():(i.current=e,l.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(s=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var E=function(){return[null,0]};function T(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,l=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=n.methodName,s=void 0===u?"connectAdvanced":u,p=n.renderCountProp,y=void 0===p?void 0:p,T=n.shouldHandleStateChanges,S=void 0===T||T,P=n.storeKey,_=void 0===P?"store":P,C=(n.withRef,n.forwardRef),O=void 0!==C&&C,N=n.context,M=void 0===N?i:N,z=d(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),I=M;return function(t){var n=t.displayName||t.name||"Component",i=l(n),a=f({},z,{getDisplayName:l,methodName:s,renderCountProp:y,shouldHandleStateChanges:S,storeKey:_,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=z.pure;var p=u?r.useMemo:function(e){return e()};function T(n){var i=Object(r.useMemo)((function(){var e=n.forwardedRef,t=d(n,["forwardedRef"]);return[n.context,e,t]}),[n]),l=i[0],u=i[1],s=i[2],m=Object(r.useMemo)((function(){return l&&l.Consumer&&Object(h.isContextConsumer)(o.a.createElement(l.Consumer,null))?l:I}),[l,I]),y=Object(r.useContext)(m),T=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(y)&&Boolean(y.store);var P=T?n.store:y.store,_=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(P)}),[P]),C=Object(r.useMemo)((function(){if(!S)return g;var e=new c(P,T?null:y.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[P,T,y]),O=C[0],N=C[1],M=Object(r.useMemo)((function(){return T?y:f({},y,{subscription:O})}),[T,y,O]),z=Object(r.useReducer)(b,v,E),j=z[0][0],R=z[1];if(j&&j.error)throw j.error;var A=Object(r.useRef)(),D=Object(r.useRef)(s),L=ObjectLine truncated
|
||||||
|
//# sourceMappingURL=2.07dbc1f4.chunk.js.map
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
object-assign
|
||||||
|
(c) Sindre Sorhus
|
||||||
|
@license MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @license React v0.19.1
|
||||||
|
* scheduler.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @license React v16.13.1
|
||||||
|
* react-dom.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @license React v16.13.1
|
||||||
|
* react-is.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @license React v16.13.1
|
||||||
|
* react.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"sources":["../node_modules/react/index.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../node_modules/react-redux/es/components/Context.js","../node_modules/react-redux/es/utils/batch.js","../node_modules/react-redux/es/utils/Subscription.js","../node_modules/react-redux/es/components/Provider.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js","../node_modules/react-redux/es/components/connectAdvanced.js","../node_modules/react-redux/es/utils/shallowEqual.js","../node_modules/react-redux/es/connect/wrapMapToProps.js","../node_modules/react-redux/es/connect/mapDispatchToProps.js","../node_modules/react-redux/es/connect/mapStateToProps.js","../node_modules/react-redux/es/connect/mergeProps.js","../node_modules/react-redux/es/connect/selectorFactory.js","../node_modules/react-redux/es/connect/connect.js","../node_modules/react-redux/es/hooks/useSelector.js","../node_modules/react-redux/es/index.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createSuper.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/prop-types/index.js","../node_modules/@fortawesome/react-fontawesome/index.es.js","../node_modules/@fortawesome/free-solid-svg-icons/index.es.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/redux/es/redux.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/webpack/buildin/global.js","../node_modules/react-dom/index.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/react-is/index.js","../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../node_modules/symbol-observable/es/index.js","../node_modules/@fortawesome/fontawesome-svg-core/index.es.js","../node_modules/object-assign/index.js","../node_modules/symbol-observable/es/ponyfill.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/scheduler/index.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/webpack/buildin/harmony-module.js","../node_modules/timers-browserify/main.js","../node_modules/setimmediate/setImmediate.js","../node_modules/process/browser.js"],"names":["module","exports","require","_assertThisInitialized","self","ReferenceError","ReactReduxContext","React","createContext","batch","callback","nullListeners","notify","createListenerCollection","first","last","clear","listener","next","get","listeners","push","subscribe","isSubscribed","prev","Subscription","store","parentSub","this","unsubscribe","handleChangeWrapper","bind","_proto","prototype","addNestedSub","trySubscribe","notifyNestedSubs","onStateChange","Boolean","tryUnsubscribe","Provider","_ref","context","children","contextValue","useMemo","subscription","previousSLine truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
(this["webpackJsonpcalculator-react"]=this["webpackJsonpcalculator-react"]||[]).push([[0],{24:function(t,n,e){t.exports=e(37)},33:function(t,n,e){},37:function(t,n,e){"use strict";e.r(n);var o=e(0),i=e.n(o),r=e(16),a=e.n(r),u=e(2),c=e(13),s=function(t){return{type:"SETINPUTSTRING",inputString:t}},l=function(t){return{type:"SETOPERATIONSTRING",operationString:t}},d=Object(c.b)({innerWindowWidth:function(t,n){switch(t||(t=window.innerWidth),n.type){case"SETWINDOWINNERWIDTH":return n.windowInnerWidth;default:return t}},innerWindowHeight:function(t,n){switch(t||(t=window.innerHeight),n.type){case"SETWINDOWINNERHEIGHT":return n.windowInnerHeight;default:return t}},inputString:function(t,n){switch(t||(t=""),n.type){case"SETINPUTSTRING":return n.inputString;default:return t}},operationString:function(t,n){switch(t||(t=""),n.type){case"SETOPERATIONSTRING":return n.operationString;default:return t}}}),h=Object(c.c)(d),p=(e(33),e(3)),g=e(4),b=e(1),f=e(6),v=e(5),k=e(7),C=e(8),S=e(12),m="#00293C",E="#1e656d",y="#6d261e",j="#656d1e",O="#261e6d",w="#f1f3ce",M="#f62a00",R=["*","/","-","+"],W=function(t,n,e){var o=t,i=n.includes("=")?n.split("=")[1]:n,r=i;i.length>0&&["*","/","+","-","="].includes(e)&&"."===i.slice(-1)&&(i=i.slice(0,-1));if(["1","2","3","4","5","6","7","8","9"].includes(e))0===t.length?(o=e,r=i+e):1===t.length?"0"===t[0]?(o=e,r=i.slice(0,-1)+e):"-"===t[0]?1===i.length?(o=t+e,r=t+e):(o=t+e,r=i+e):["*","/","+"].includes(t[0])?(o=e,r=i+e):(o=t+e,r=i+e):2===t.length?"-"===t[0]&&"0"===t[1]?(o="-"+e,r=i.slice(0,-1)+e):(o=t+e,r=i+e):t.length>2&&(o=t+e,r=i+e);else if("0"===e)0===t.length?(o=e,r=i+e):1===t.length?"0"!==t[0]&&(["*","/","+"].includes(t[0])?(o=e,r=i+e):(o=t+e,r=i+e)):2===t.length?("-"!==t[0]||"0"!==t[1])&&(o=t+e,r=i+e):t.length>2&&(o=t+e,r=i+e);else if("-"===e)0===i.length?(o=e,r=e):1===i.length&&R.includes(i[0])||(o=e,r=i+e);else if(["*","/","+"].includes(e))1===i.length?R.includes(i.slice(-1))||(r=i+e,o=e):i.length>1&&(o=e,r=i+e);else if("."!==e||t.includes("."))if("="===e&&i.length>0){var a=i.slice(-1);R.includes(a)||"."===a?(o=x(i.slice(0,-1)),r=i.slice(0,-1)+"="+o):r=i+"="+(o=x(i))}else"b"===e&&(1===i.length?(o=t.slice(0,-1),r=i.slice(0,-1)):i.length>1&&(R.includes(i.slice(-1))?R.includes(i.slice(-2,-1))?(o=i.slice(-2,-1),r=i.slice(0,-1)):o=(r=i.slice(0,-1)).split(/[-*/+]/).slice(-1)[0]:R.includes(i.slice(-2,-1))?(o=i.slice(-2,-1),r=i.slice(0,-1)):(o=t.slice(0,-1),r=i.slice(0,-1))));else 0===t.length?(o="0.",r=i+"0."):1===t.length?0===i.length?"-"===t[0]?(o="-0.",r=i+"-0."):(o=t+e,r=i+e):R.includes(t[0])?(o="0.",r=i+"0."):(o=t+e,r=i+e):(o=t+e,r=i+e);return[o,r]},x=function(t){var n=[];for(t.split("").forEach((function(t,e){if(0===e)n.push(t);else if(R.includes(t))n.push(t);else if("-"===n[n.length-1])if(1===e||R.includes(n[n.length-2])){var o=n[n.length-1];n[n.length-1]=o+t}else n.push(t);else if(["*","/","+"].includes(n[n.length-1]))n.push(t);else{var i=n[n.length-1];n[n.length-1]=i+t}}));R.includes(n[n.length-1]);)n.pop();var e=n.filter((function(t,e){return!R.includes(n[e+1])||!R.includes(t)}));return 1===e.length?e[0]:A(e.map((function(t){return R.includes(t)?t:t.includes(".")?parseFloat(t):parseInt(t)})))[0].toString()},A=function t(n){if(1===n.length)return n;if(n.includes("*")){var e=n.indexOf("*");return t([].concat(Object(S.a)(n.slice(0,e-1)),[n[e-1]*n[e+1]],Object(S.a)(n.slice(e+2))))}if(n.includes("/")){var o=n.indexOf("/");return t([].concat(Object(S.a)(n.slice(0,o-1)),[n[o-1]/n[o+1]],Object(S.a)(n.slice(o+2))))}if(n.includes("-")){var i=n.indexOf("-");return t([].concat(Object(S.a)(n.slice(0,i-1)),[n[i-1]-n[i+1]],Object(S.a)(n.slice(i+2))))}if(n.includes("+")){var r=n.indexOf("+");return t([].concat(Object(S.a)(n.slice(0,r-1)),[n[r-1]+n[r+1]],Object(S.a)(n.slice(r+2))))}},T=function(t){Object(f.a)(e,t);var n=Object(v.a)(e);function e(t){var o;return Object(p.a)(this,e),(o=n.call(this,t)).handleClick=o.handleClick.bind(Object(b.a)(o)),o.handleMouseEvent=o.handleMouseEvent.bind(Object(b.a)(o)),o.state={backgroundColor:E},o}return Object(g.a)(e,[{key:"handleClick",value:function(){var t=W(this.props.inputString,this.props.operationString,"7"),n=Object(C.a)(t,2),e=n[0],o=n[1];e!==this.props.inputString&&this.props.inputStringAction(e),o!==this.props.operationString&&this.props.operationStringAction(o)}},{key:"handleMouseEvent",value:function(t){"mousedown"===t.type||"touchstart"===t.type?this.setState({backgroundColor:m}):"mouseup"!==t.type&&"touchend"!==t.type||this.setState({backgroundColor:E})}},{key:"render",value:function(){var t=this.props.innerWindowWidth,n=this.props.innerWindowHeight,e={gridColumnStart:2,gridColumnEnd:3,gridRowStart:2,gridRowEnd:3,borderBottom:"3px solid black",borderRight:"3px solid black",display:"flex",flexDirection:"column",justifyContent:"center",backgroundColor:this.state.backgroundColor};return n>t&&(e.gridRowStart=3,e.gridRowEnd=4,e.gridColumnStart=1,e.gridColumnEnd=2),i.a.createElement("div",{id:"seven",style:e,className:"clickable",onClick:this.handleLine truncated
|
||||||
|
//# sourceMappingURL=main.bfd616ae.chunk.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"sources":["actions/inputStringAction.js","actions/operationStringAction.js","reducers/rootReducer.js","reducers/innerWindowWidthReducer.js","actions/innerWindowWidthAction.js","reducers/innerWindowHeightReducer.js","actions/innerWindowHeightAction.js","reducers/inputStringReducer.js","reducers/operationStringReducer.js","store.js","globals.js","Seven.js","Eight.js","Nine.js","Four.js","Five.js","Six.js","One.js","Two.js","Three.js","Zero.js","Decimal.js","Clear.js","Divide.js","Multiply.js","Subtract.js","Add.js","Equals.js","DisplayInput.js","DisplayOperations.js","Display.js","Back.js","CalculatorGrid.js","Calculator.js","App.js","serviceWorker.js","index.js"],"names":["inputStringAction","inputString","type","operationStringAction","operationString","combineReducers","innerWindowWidth","state","action","window","innerWidth","windowInnerWidth","innerWindowHeight","innerHeight","windowInnerHeight","store","createStore","rootReducer","colors","operators","makeInputAndOperationsStrings","nextChar","inputStringResult","tempOperationString","includes","split","operationStringResult","length","slice","lastOperationChar","parseAndCalculate","statementArray","forEach","item","index","push","previous","pop","duplicateOperatorsFilteredArray","filter","calculate","map","parseFloat","parseInt","toString","indexOfOperator","indexOf","Seven","props","handleClick","bind","handleMouseEvent","backgroundColor","this","e","setState","width","height","style","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","borderBottom","borderRight","display","flexDirection","justifyContent","id","className","onClick","onTouchStart","onTouchEnd","onMouseDown","onMouseUp","React","Component","connect","dispatch","Eight","Nine","Four","Five","Six","One","Two","Three","Zero","borderRadius","Decimal","Clear","Divide","alignItems","icon","faDivide","Multiply","faTimes","Subtract","faMinus","Add","faPlus","Equals","fontSize","DisplayInput","textAlign","lineHeight","DisplayOperations","color","Display","textOverflow","whiteSpace","overflow","Back","faBackspace","CalculatorGrid","gridTemplateRows","gridTemplateColumns","Calculator","handleKeyPress","handleKey","key","keyCode","preventDefault","document","addEventListener","removeEventListener","topMargin","Math","round","sideMargin","marginTop","marginBottom","marginLeft","marginRight","overFlow","border","userSelect","MozUserSelect","WebkitUserSelect","zIndex","fontFamily","App","handleResize","innerWindowWidthAction","innerWindowHeightAction","gitHubLabelStyle","position","right","attachmentStyle","href","target","rel","src","alt","data-recalc-dims","Boolean","location","hostname","match","ReactDOM","render","getElementById","navigator","serviceWorker","ready","then","registration","unregister","catch","error","console","message"],"mappings":"+OAEaA,EAAoB,SAACC,GAChC,MAAO,CACLC,KAJ0B,iBAK1BD,YAAaA,ICHJE,EAAwB,SAACC,GACpC,MAAO,CACLF,KAJ8B,qBAK9BE,gBAAiBA,ICCNC,cAAgB,CAC7BC,iBCLa,SAACC,EAAOC,GAKrB,OAJKD,IACHA,EAAQE,OAAOC,YAGTF,EAAON,MACb,ICR+B,sBDS7B,OAAOM,EAAOG,iBAChB,QACE,OAAOJ,IDHXK,kBGNa,SAACL,EAAOC,GAKrB,OAJKD,IACHA,EAAQE,OAAOI,aAGTL,EAAON,MACb,ICRgC,uBDS9B,OAAOM,EAAO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AsBF,GAEhB,IAAvBpB,EAAY0B,OACE,MAAnB1B,EAAY,IACS,MAAnBA,EAAY,IACdqB,EAAoB,IAAMD,EAC1BK,EAAwBH,EAAoBK,MAAM,GAAG,GAAKP,IAM5DC,EAAoBrB,EAAcoB,EAClCK,EAAwBH,EAAsBF,GAEvCpB,EAAY0B,OAAS,IAC9BL,EAAoBrB,EAAcoB,EAClCK,EAAwBH,EAAsBF,QAE3C,GAAiB,MAAbA,EACkB,IAAvBpB,EAAY0B,QACdL,EAAoBD,EACpBK,EAAwBH,EAAsBF,GACd,IAAvBpB,EAAY0B,OACE,MAAnB1B,EAAY,KACV,CAAC,IAAI,IAAI,KAAKuB,SAASvB,EAAY,KACrCqB,EAAoBD,EACpBK,EAAwBH,EAAsBF,IAE9CC,EAAoBrB,EAAcoB,EAClCK,EAAwBH,EAAsBF,IAGlB,IAAvBpB,EAAY0B,QACE,MAAnB1B,EAAY,IAGc,MAAnBA,EAAY,MAFrBqB,EAAoBrB,EAAcoB,EAClCK,EAAwBH,EAAsBF,GAKvCpB,EAAY0B,OAAS,IAC5BL,EAAoBrB,EAAcoB,EAClCK,EAAwBH,EAAsBF,QAE7C,GAAiB,MAAbA,EAC0B,IAA/BE,EAAoBI,QACtBL,EAAoBD,EACpBK,EAAwBL,GACgB,IAA/BE,EAAoBI,QACxBR,EAAUK,SAASD,EAAoB,MAK5CD,EAAoBD,EACpBK,EAAyBH,EAAsBF,QAE5C,GAAI,CLine truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
!function(e){function r(r){for(var n,l,a=r[0],c=r[1],f=r[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(i&&i(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,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(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,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/fcc-challenges/calculator-react/build/";var a=this["webpackJsonpcalculator-react"]=this["webpackJsonpcalculator-react"]||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var i=c;t()}([]);
|
||||||
|
//# sourceMappingURL=runtime-main.bf967002.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","this","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,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qB2D,EAAWpD,IAC3E,IAAIU,EAAsB4C,EAI1BxC,I","file":"static/js/runtime-main.bf967002.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\nLine truncated
|
||||||
Reference in new issue
Block a user