diff --git a/README.md b/README.md index ead58e4..411d457 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,43 @@ -![CF](http://i.imgur.com/7v5ASc8.png) LAB -================================================= +# ![CF](http://i.imgur.com/7v5ASc8.png) LAB -## Project Name +## Todo List using React Context API -### Author: Student/Group Name +### Author: Jagdeep Singh ### Links and Resources -* [submission PR](http://xyz.com) -* [travis](http://xyz.com) -* [back-end](http://xyz.com) (when applicable) -* [front-end](http://xyz.com) (when applicable) + +- [submission PR](https://github.com/401-advanced-javascript-js/lab-33-todo-contextAPI/pull/1) +- [travis](https://travis-ci.com/401-advanced-javascript-js/lab-33-todo-contextAPI) +- [front-end](https://sad-northcutt-385f97.netlify.com/) #### Documentation -* [api docs](http://xyz.com) (API servers) -* [jsdoc](http://xyz.com) (Server assignments) -* [styleguide](http://xyz.com) (React assignments) -### Modules +- [styleguide](styleguide/index.html) + + ### Setup -#### `.env` requirements -* `PORT` - Port Number -* `MONGODB_URI` - URL to the running mongo instance/db #### Running the app -* `npm start` -* Endpoint: `/foo/bar/` - * Returns a JSON object with abc in it. -* Endpoint: `/bing/zing/` - * Returns a JSON object with xyz in it. - + +- `npm start` + #### Tests -* How do you run tests? -* What assertions were made? -* What assertions need to be / should be made? + +- How do you run tests? `npm test` #### UML -Link to an image of the UML for your application and response to events + +![UML](assets/uml.jpeg) diff --git a/assets/uml.jpeg b/assets/uml.jpeg new file mode 100644 index 0000000..337be92 Binary files /dev/null and b/assets/uml.jpeg differ diff --git a/docs/asset-manifest.json b/docs/asset-manifest.json new file mode 100644 index 0000000..e24b24e --- /dev/null +++ b/docs/asset-manifest.json @@ -0,0 +1,17 @@ +{ + "files": { + "main.js": "/static/js/main.55b6ec14.chunk.js", + "main.js.map": "/static/js/main.55b6ec14.chunk.js.map", + "runtime~main.js": "/static/js/runtime~main.768ea324.js", + "runtime~main.js.map": "/static/js/runtime~main.768ea324.js.map", + "static/js/2.357f0d27.chunk.js": "/static/js/2.357f0d27.chunk.js", + "static/js/2.357f0d27.chunk.js.map": "/static/js/2.357f0d27.chunk.js.map", + "static/css/3.0351ede5.chunk.css": "/static/css/3.0351ede5.chunk.css", + "static/js/3.53157a55.chunk.js": "/static/js/3.53157a55.chunk.js", + "static/js/3.53157a55.chunk.js.map": "/static/js/3.53157a55.chunk.js.map", + "index.html": "/index.html", + "precache-manifest.01b81f55a5d6aa6d08f8224fef754607.js": "/precache-manifest.01b81f55a5d6aa6d08f8224fef754607.js", + "service-worker.js": "/service-worker.js", + "static/css/3.0351ede5.chunk.css.map": "/static/css/3.0351ede5.chunk.css.map" + } +} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..a7fbec4 --- /dev/null +++ b/docs/index.html @@ -0,0 +1 @@ +React App
\ No newline at end of file diff --git a/docs/precache-manifest.01b81f55a5d6aa6d08f8224fef754607.js b/docs/precache-manifest.01b81f55a5d6aa6d08f8224fef754607.js new file mode 100644 index 0000000..3f51891 --- /dev/null +++ b/docs/precache-manifest.01b81f55a5d6aa6d08f8224fef754607.js @@ -0,0 +1,26 @@ +self.__precacheManifest = (self.__precacheManifest || []).concat([ + { + revision: '41cfda2183a20915e65a38d88ce1ddd8', + url: '/index.html', + }, + { + revision: '13f0d3c434e9b7c80904', + url: '/static/css/3.0351ede5.chunk.css', + }, + { + revision: '9b27a503fd3131ff05c5', + url: '/static/js/2.357f0d27.chunk.js', + }, + { + revision: '13f0d3c434e9b7c80904', + url: '/static/js/3.53157a55.chunk.js', + }, + { + revision: 'c27fb43b396f2724a167', + url: '/static/js/main.55b6ec14.chunk.js', + }, + { + revision: '629f77748bd769a134d2', + url: '/static/js/runtime~main.768ea324.js', + }, +]); diff --git a/docs/service-worker.js b/docs/service-worker.js new file mode 100644 index 0000000..f90d8fc --- /dev/null +++ b/docs/service-worker.js @@ -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( + "/precache-manifest.01b81f55a5d6aa6d08f8224fef754607.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("/index.html"), { + + blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/], +}); diff --git a/docs/static/css/3.0351ede5.chunk.css b/docs/static/css/3.0351ede5.chunk.css new file mode 100644 index 0000000..21f5884 --- /dev/null +++ b/docs/static/css/3.0351ede5.chunk.css @@ -0,0 +1,2 @@ +.todo ul{list-style-type:none;margin:0;padding:0}.todo ul li{align-items:center;display:flex;flex-direction:row;margin:.75em .5em}.todo ul li.complete-true span{background:pink;text-decoration:line-through}.todo ul li.complete-true span:hover{background:#2e8b57}.todo ul li span{background:#eee;border-radius:4px;border:1px solid #555;cursor:pointer;padding:.5em}.todo ul li span:hover{background:pink}.todo ul li button{background:transparent;border:none;color:#00f;cursor:pointer;padding:0;margin:0 .75em} +/*# sourceMappingURL=3.0351ede5.chunk.css.map */ \ No newline at end of file diff --git a/docs/static/css/3.0351ede5.chunk.css.map b/docs/static/css/3.0351ede5.chunk.css.map new file mode 100644 index 0000000..ae6576c --- /dev/null +++ b/docs/static/css/3.0351ede5.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["/Users/jag/school/cf/401/labs/lab-33-todo-contextAPI/src/components/todo/todo.scss"],"names":[],"mappings":"AAAA,SAGQ,oBAAoB,CACpB,QAAQ,CACR,SAAS,CALjB,YASY,kBAAmB,CACnB,YAAY,CACZ,kBAAkB,CAClB,iBAAkB,CAZ9B,+BAgBc,eAAgB,CAChB,4BAA4B,CAjB1C,qCAmBoB,kBAAoB,CAnBxC,iBAyBiB,eAAgB,CAChB,iBAAkB,CAClB,qBAAsB,CACtB,cAAc,CACd,YAAa,CA7B9B,uBAgCqB,eAAgB,CAhCrC,mBAqCgB,sBAAuB,CACvB,WAAW,CACX,UAAU,CACV,cAAc,CACd,SAAS,CACT,cAAe","file":"3.0351ede5.chunk.css","sourcesContent":[".todo {\n\n ul { \n list-style-type:none;\n margin:0;\n padding:0;\n\n li {\n\n align-items: center;\n display:flex;\n flex-direction:row;\n margin: .75em .5em;\n\n &.complete-true {\n span {\n background: pink;\n text-decoration:line-through;\n &:hover {\n background: seagreen;\n }\n }\n }\n\n span {\n background: #eee;\n border-radius: 4px;\n border: 1px solid #555;\n cursor:pointer;\n padding: .5em;\n\n &:hover {\n background: pink;\n }\n }\n\n button {\n background: transparent;\n border:none;\n color:blue;\n cursor:pointer;\n padding:0;\n margin: 0 .75em;\n }\n\n }\n }\n\n}"]} \ No newline at end of file diff --git a/docs/static/js/2.357f0d27.chunk.js b/docs/static/js/2.357f0d27.chunk.js new file mode 100644 index 0000000..4e989b1 --- /dev/null +++ b/docs/static/js/2.357f0d27.chunk.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(11)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){for(var n=0;nz.length&&z.push(e)}function U(e,t,n){return null==e?0:function e(t,n,r,l){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var u=!1;if(null===t)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case o:u=!0}}if(u)return r(l,t,""===n?"."+D(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ce,e.release=se}l(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=oe)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=oe)},persist:function(){this.isPersistent=oe},isPersistent:ae,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ae,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return l(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=l({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var de=ue.extend({data:null}),pe=ue.extend({data:null}),me=[9,13,27,32],he=$&&"CompositionEvent"in window,ye=null;$&&"documentMode"in document&&(ye=document.documentMode);var ve=$&&"TextEvent"in window&&!ye,ge=$&&(!he||ye&&8=ye),be=String.fromCharCode(32),ke={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function xe(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Te(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Se=!1;var _e={eventTypes:ke,extractEvents:function(e,t,n,r){var l=void 0,i=void 0;if(he)e:{switch(e){case"compositionstart":l=ke.compositionStart;break e;case"compositionend":l=ke.compositionEnd;break e;case"compositionupdate":l=ke.compositionUpdate;break e}l=void 0}else Se?xe(e,n)&&(l=ke.compositionEnd):"keydown"===e&&229===n.keyCode&&(l=ke.compositionStart);return l?(ge&&"ko"!==n.locale&&(Se||l!==ke.compositionStart?l===ke.compositionEnd&&Se&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Se=!0)),l=de.getPooled(l,t,n,r),i?l.data=i:null!==(i=Te(n))&&(l.data=i),H(l),i=l):i=null,(e=ve?function(e,t){switch(e){case"compositionend":return Te(t);case"keypress":return 32!==t.which?null:(we=!0,be);case"textInput":return(e=t.data)===be&&we?null:e;default:return null}}(e,n):function(e,t){if(Se)return"compositionend"===e||!he&&xe(e,t)?(e=ie(),le=re=ne=null,Se=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1