├── README.md └── todo-fullstack ├── .DS_Store ├── README.md ├── todo-backend ├── index.js ├── package-lock.json └── package.json └── todo-frontend ├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.css ├── App.js ├── App.test.js ├── index.css ├── index.js ├── logo.svg ├── serviceWorker.js └── setupTests.js /README.md: -------------------------------------------------------------------------------- 1 | # coding-challenges -------------------------------------------------------------------------------- /todo-fullstack/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hey-Programmers/coding-challenges/44bb0ab5f606d0d31e8984954708b3626cb97183/todo-fullstack/.DS_Store -------------------------------------------------------------------------------- /todo-fullstack/README.md: -------------------------------------------------------------------------------- 1 | # Video 2 | 3 | [Video](https://www.youtube.com/watch?v=lvBH9Hj5gxk) -------------------------------------------------------------------------------- /todo-fullstack/todo-backend/index.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const cors = require('cors'); 3 | const bodyParser = require('body-parser'); 4 | const app = express(); 5 | 6 | app.use(cors()); 7 | app.use(bodyParser.json()); 8 | 9 | 10 | const { MongoClient, ObjectID } = require('mongodb'); 11 | 12 | let db; 13 | 14 | MongoClient.connect('mongodb://localhost:27017/todos', { useUnifiedTopology: true }, async function (err, client) { 15 | if (err) throw err 16 | 17 | db = client.db('todos'); 18 | await db.collection('todos').deleteMany(); 19 | 20 | await db.collection('todos').insertMany([ 21 | { done: true, desc: 'write code' }, 22 | { done: true, desc: 'fix bugs' }, 23 | { done: false, desc: 'profit' } 24 | ]); 25 | });// 26 | 27 | 28 | app.get('/', (req, res) => { 29 | res.json('did this work!'); 30 | }); 31 | 32 | app.get('/todos', async (req, res) => { 33 | const todos = await db.collection('todos').find().toArray(); 34 | res.json(todos); 35 | }); 36 | 37 | app.post('/todos', async (req, res) => { 38 | await db.collection('todos').insertOne(req.body); 39 | res.json('posted'); 40 | }); 41 | 42 | app.delete('/todos/:id', async (req, res) => { 43 | await db.collection('todos').deleteOne({ _id: ObjectID(req.params.id) }); 44 | res.json('deleted'); 45 | }); 46 | 47 | app.put('/todos/:id', async (req, res) => { 48 | await db.collection('todos').replaceOne({ _id: ObjectID(req.params.id)}, req.body); 49 | res.json('putted'); 50 | }); 51 | 52 | app.listen(3001, () => { 53 | console.log('work pls'); 54 | }); 55 | // -------------------------------------------------------------------------------- /todo-fullstack/todo-backend/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "todo-backend", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@sindresorhus/is": { 8 | "version": "0.14.0", 9 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", 10 | "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" 11 | }, 12 | "@szmarczak/http-timer": { 13 | "version": "1.1.2", 14 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", 15 | "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", 16 | "requires": { 17 | "defer-to-connect": "^1.0.1" 18 | } 19 | }, 20 | "@types/color-name": { 21 | "version": "1.1.1", 22 | "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", 23 | "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" 24 | }, 25 | "abbrev": { 26 | "version": "1.1.1", 27 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 28 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" 29 | }, 30 | "accepts": { 31 | "version": "1.3.7", 32 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 33 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 34 | "requires": { 35 | "mime-types": "~2.1.24", 36 | "negotiator": "0.6.2" 37 | } 38 | }, 39 | "ansi-align": { 40 | "version": "3.0.0", 41 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", 42 | "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", 43 | "requires": { 44 | "string-width": "^3.0.0" 45 | }, 46 | "dependencies": { 47 | "string-width": { 48 | "version": "3.1.0", 49 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 50 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 51 | "requires": { 52 | "emoji-regex": "^7.0.1", 53 | "is-fullwidth-code-point": "^2.0.0", 54 | "strip-ansi": "^5.1.0" 55 | } 56 | } 57 | } 58 | }, 59 | "ansi-regex": { 60 | "version": "4.1.0", 61 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 62 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" 63 | }, 64 | "ansi-styles": { 65 | "version": "4.2.1", 66 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", 67 | "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", 68 | "requires": { 69 | "@types/color-name": "^1.1.1", 70 | "color-convert": "^2.0.1" 71 | } 72 | }, 73 | "anymatch": { 74 | "version": "3.1.1", 75 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", 76 | "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", 77 | "requires": { 78 | "normalize-path": "^3.0.0", 79 | "picomatch": "^2.0.4" 80 | } 81 | }, 82 | "array-flatten": { 83 | "version": "1.1.1", 84 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 85 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 86 | }, 87 | "balanced-match": { 88 | "version": "1.0.0", 89 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 90 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 91 | }, 92 | "binary-extensions": { 93 | "version": "2.0.0", 94 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", 95 | "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==" 96 | }, 97 | "bl": { 98 | "version": "2.2.0", 99 | "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.0.tgz", 100 | "integrity": "sha512-wbgvOpqopSr7uq6fJrLH8EsvYMJf9gzfo2jCsL2eTy75qXPukA4pCgHamOQkZtY5vmfVtjB+P3LNlMHW5CEZXA==", 101 | "requires": { 102 | "readable-stream": "^2.3.5", 103 | "safe-buffer": "^5.1.1" 104 | } 105 | }, 106 | "body-parser": { 107 | "version": "1.19.0", 108 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 109 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 110 | "requires": { 111 | "bytes": "3.1.0", 112 | "content-type": "~1.0.4", 113 | "debug": "2.6.9", 114 | "depd": "~1.1.2", 115 | "http-errors": "1.7.2", 116 | "iconv-lite": "0.4.24", 117 | "on-finished": "~2.3.0", 118 | "qs": "6.7.0", 119 | "raw-body": "2.4.0", 120 | "type-is": "~1.6.17" 121 | } 122 | }, 123 | "boxen": { 124 | "version": "4.2.0", 125 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", 126 | "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", 127 | "requires": { 128 | "ansi-align": "^3.0.0", 129 | "camelcase": "^5.3.1", 130 | "chalk": "^3.0.0", 131 | "cli-boxes": "^2.2.0", 132 | "string-width": "^4.1.0", 133 | "term-size": "^2.1.0", 134 | "type-fest": "^0.8.1", 135 | "widest-line": "^3.1.0" 136 | } 137 | }, 138 | "brace-expansion": { 139 | "version": "1.1.11", 140 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 141 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 142 | "requires": { 143 | "balanced-match": "^1.0.0", 144 | "concat-map": "0.0.1" 145 | } 146 | }, 147 | "braces": { 148 | "version": "3.0.2", 149 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 150 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 151 | "requires": { 152 | "fill-range": "^7.0.1" 153 | } 154 | }, 155 | "bson": { 156 | "version": "1.1.4", 157 | "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.4.tgz", 158 | "integrity": "sha512-S/yKGU1syOMzO86+dGpg2qGoDL0zvzcb262G+gqEy6TgP6rt6z6qxSFX/8X6vLC91P7G7C3nLs0+bvDzmvBA3Q==" 159 | }, 160 | "bytes": { 161 | "version": "3.1.0", 162 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 163 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 164 | }, 165 | "cacheable-request": { 166 | "version": "6.1.0", 167 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", 168 | "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", 169 | "requires": { 170 | "clone-response": "^1.0.2", 171 | "get-stream": "^5.1.0", 172 | "http-cache-semantics": "^4.0.0", 173 | "keyv": "^3.0.0", 174 | "lowercase-keys": "^2.0.0", 175 | "normalize-url": "^4.1.0", 176 | "responselike": "^1.0.2" 177 | }, 178 | "dependencies": { 179 | "get-stream": { 180 | "version": "5.1.0", 181 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", 182 | "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", 183 | "requires": { 184 | "pump": "^3.0.0" 185 | } 186 | }, 187 | "lowercase-keys": { 188 | "version": "2.0.0", 189 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 190 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" 191 | } 192 | } 193 | }, 194 | "camelcase": { 195 | "version": "5.3.1", 196 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 197 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" 198 | }, 199 | "chalk": { 200 | "version": "3.0.0", 201 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 202 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 203 | "requires": { 204 | "ansi-styles": "^4.1.0", 205 | "supports-color": "^7.1.0" 206 | }, 207 | "dependencies": { 208 | "has-flag": { 209 | "version": "4.0.0", 210 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 211 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" 212 | }, 213 | "supports-color": { 214 | "version": "7.1.0", 215 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", 216 | "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", 217 | "requires": { 218 | "has-flag": "^4.0.0" 219 | } 220 | } 221 | } 222 | }, 223 | "chokidar": { 224 | "version": "3.4.0", 225 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz", 226 | "integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ==", 227 | "requires": { 228 | "anymatch": "~3.1.1", 229 | "braces": "~3.0.2", 230 | "fsevents": "~2.1.2", 231 | "glob-parent": "~5.1.0", 232 | "is-binary-path": "~2.1.0", 233 | "is-glob": "~4.0.1", 234 | "normalize-path": "~3.0.0", 235 | "readdirp": "~3.4.0" 236 | } 237 | }, 238 | "ci-info": { 239 | "version": "2.0.0", 240 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", 241 | "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" 242 | }, 243 | "cli-boxes": { 244 | "version": "2.2.0", 245 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.0.tgz", 246 | "integrity": "sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w==" 247 | }, 248 | "clone-response": { 249 | "version": "1.0.2", 250 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 251 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 252 | "requires": { 253 | "mimic-response": "^1.0.0" 254 | } 255 | }, 256 | "color-convert": { 257 | "version": "2.0.1", 258 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 259 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 260 | "requires": { 261 | "color-name": "~1.1.4" 262 | } 263 | }, 264 | "color-name": { 265 | "version": "1.1.4", 266 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 267 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 268 | }, 269 | "concat-map": { 270 | "version": "0.0.1", 271 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 272 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 273 | }, 274 | "configstore": { 275 | "version": "5.0.1", 276 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", 277 | "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", 278 | "requires": { 279 | "dot-prop": "^5.2.0", 280 | "graceful-fs": "^4.1.2", 281 | "make-dir": "^3.0.0", 282 | "unique-string": "^2.0.0", 283 | "write-file-atomic": "^3.0.0", 284 | "xdg-basedir": "^4.0.0" 285 | } 286 | }, 287 | "content-disposition": { 288 | "version": "0.5.3", 289 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 290 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 291 | "requires": { 292 | "safe-buffer": "5.1.2" 293 | } 294 | }, 295 | "content-type": { 296 | "version": "1.0.4", 297 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 298 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 299 | }, 300 | "cookie": { 301 | "version": "0.4.0", 302 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 303 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 304 | }, 305 | "cookie-signature": { 306 | "version": "1.0.6", 307 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 308 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 309 | }, 310 | "core-util-is": { 311 | "version": "1.0.2", 312 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 313 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 314 | }, 315 | "cors": { 316 | "version": "2.8.5", 317 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 318 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 319 | "requires": { 320 | "object-assign": "^4", 321 | "vary": "^1" 322 | } 323 | }, 324 | "crypto-random-string": { 325 | "version": "2.0.0", 326 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", 327 | "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" 328 | }, 329 | "debug": { 330 | "version": "2.6.9", 331 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 332 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 333 | "requires": { 334 | "ms": "2.0.0" 335 | } 336 | }, 337 | "decompress-response": { 338 | "version": "3.3.0", 339 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 340 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 341 | "requires": { 342 | "mimic-response": "^1.0.0" 343 | } 344 | }, 345 | "deep-extend": { 346 | "version": "0.6.0", 347 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 348 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" 349 | }, 350 | "defer-to-connect": { 351 | "version": "1.1.3", 352 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", 353 | "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" 354 | }, 355 | "denque": { 356 | "version": "1.4.1", 357 | "resolved": "https://registry.npmjs.org/denque/-/denque-1.4.1.tgz", 358 | "integrity": "sha512-OfzPuSZKGcgr96rf1oODnfjqBFmr1DVoc/TrItj3Ohe0Ah1C5WX5Baquw/9U9KovnQ88EqmJbD66rKYUQYN1tQ==" 359 | }, 360 | "depd": { 361 | "version": "1.1.2", 362 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 363 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 364 | }, 365 | "destroy": { 366 | "version": "1.0.4", 367 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 368 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 369 | }, 370 | "dot-prop": { 371 | "version": "5.2.0", 372 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz", 373 | "integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==", 374 | "requires": { 375 | "is-obj": "^2.0.0" 376 | } 377 | }, 378 | "duplexer3": { 379 | "version": "0.1.4", 380 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 381 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" 382 | }, 383 | "ee-first": { 384 | "version": "1.1.1", 385 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 386 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 387 | }, 388 | "emoji-regex": { 389 | "version": "7.0.3", 390 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 391 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" 392 | }, 393 | "encodeurl": { 394 | "version": "1.0.2", 395 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 396 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 397 | }, 398 | "end-of-stream": { 399 | "version": "1.4.4", 400 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 401 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 402 | "requires": { 403 | "once": "^1.4.0" 404 | } 405 | }, 406 | "escape-goat": { 407 | "version": "2.1.1", 408 | "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", 409 | "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==" 410 | }, 411 | "escape-html": { 412 | "version": "1.0.3", 413 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 414 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 415 | }, 416 | "etag": { 417 | "version": "1.8.1", 418 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 419 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 420 | }, 421 | "express": { 422 | "version": "4.17.1", 423 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 424 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 425 | "requires": { 426 | "accepts": "~1.3.7", 427 | "array-flatten": "1.1.1", 428 | "body-parser": "1.19.0", 429 | "content-disposition": "0.5.3", 430 | "content-type": "~1.0.4", 431 | "cookie": "0.4.0", 432 | "cookie-signature": "1.0.6", 433 | "debug": "2.6.9", 434 | "depd": "~1.1.2", 435 | "encodeurl": "~1.0.2", 436 | "escape-html": "~1.0.3", 437 | "etag": "~1.8.1", 438 | "finalhandler": "~1.1.2", 439 | "fresh": "0.5.2", 440 | "merge-descriptors": "1.0.1", 441 | "methods": "~1.1.2", 442 | "on-finished": "~2.3.0", 443 | "parseurl": "~1.3.3", 444 | "path-to-regexp": "0.1.7", 445 | "proxy-addr": "~2.0.5", 446 | "qs": "6.7.0", 447 | "range-parser": "~1.2.1", 448 | "safe-buffer": "5.1.2", 449 | "send": "0.17.1", 450 | "serve-static": "1.14.1", 451 | "setprototypeof": "1.1.1", 452 | "statuses": "~1.5.0", 453 | "type-is": "~1.6.18", 454 | "utils-merge": "1.0.1", 455 | "vary": "~1.1.2" 456 | } 457 | }, 458 | "fill-range": { 459 | "version": "7.0.1", 460 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 461 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 462 | "requires": { 463 | "to-regex-range": "^5.0.1" 464 | } 465 | }, 466 | "finalhandler": { 467 | "version": "1.1.2", 468 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 469 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 470 | "requires": { 471 | "debug": "2.6.9", 472 | "encodeurl": "~1.0.2", 473 | "escape-html": "~1.0.3", 474 | "on-finished": "~2.3.0", 475 | "parseurl": "~1.3.3", 476 | "statuses": "~1.5.0", 477 | "unpipe": "~1.0.0" 478 | } 479 | }, 480 | "forwarded": { 481 | "version": "0.1.2", 482 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 483 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 484 | }, 485 | "fresh": { 486 | "version": "0.5.2", 487 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 488 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 489 | }, 490 | "fsevents": { 491 | "version": "2.1.3", 492 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", 493 | "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", 494 | "optional": true 495 | }, 496 | "get-stream": { 497 | "version": "4.1.0", 498 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 499 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 500 | "requires": { 501 | "pump": "^3.0.0" 502 | } 503 | }, 504 | "glob-parent": { 505 | "version": "5.1.1", 506 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", 507 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", 508 | "requires": { 509 | "is-glob": "^4.0.1" 510 | } 511 | }, 512 | "global-dirs": { 513 | "version": "2.0.1", 514 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz", 515 | "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==", 516 | "requires": { 517 | "ini": "^1.3.5" 518 | } 519 | }, 520 | "got": { 521 | "version": "9.6.0", 522 | "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", 523 | "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", 524 | "requires": { 525 | "@sindresorhus/is": "^0.14.0", 526 | "@szmarczak/http-timer": "^1.1.2", 527 | "cacheable-request": "^6.0.0", 528 | "decompress-response": "^3.3.0", 529 | "duplexer3": "^0.1.4", 530 | "get-stream": "^4.1.0", 531 | "lowercase-keys": "^1.0.1", 532 | "mimic-response": "^1.0.1", 533 | "p-cancelable": "^1.0.0", 534 | "to-readable-stream": "^1.0.0", 535 | "url-parse-lax": "^3.0.0" 536 | } 537 | }, 538 | "graceful-fs": { 539 | "version": "4.2.4", 540 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", 541 | "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" 542 | }, 543 | "has-flag": { 544 | "version": "3.0.0", 545 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 546 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 547 | }, 548 | "has-yarn": { 549 | "version": "2.1.0", 550 | "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", 551 | "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==" 552 | }, 553 | "http-cache-semantics": { 554 | "version": "4.1.0", 555 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", 556 | "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" 557 | }, 558 | "http-errors": { 559 | "version": "1.7.2", 560 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 561 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 562 | "requires": { 563 | "depd": "~1.1.2", 564 | "inherits": "2.0.3", 565 | "setprototypeof": "1.1.1", 566 | "statuses": ">= 1.5.0 < 2", 567 | "toidentifier": "1.0.0" 568 | } 569 | }, 570 | "iconv-lite": { 571 | "version": "0.4.24", 572 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 573 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 574 | "requires": { 575 | "safer-buffer": ">= 2.1.2 < 3" 576 | } 577 | }, 578 | "ignore-by-default": { 579 | "version": "1.0.1", 580 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 581 | "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=" 582 | }, 583 | "import-lazy": { 584 | "version": "2.1.0", 585 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 586 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=" 587 | }, 588 | "imurmurhash": { 589 | "version": "0.1.4", 590 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 591 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" 592 | }, 593 | "inherits": { 594 | "version": "2.0.3", 595 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 596 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 597 | }, 598 | "ini": { 599 | "version": "1.3.5", 600 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 601 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" 602 | }, 603 | "ipaddr.js": { 604 | "version": "1.9.1", 605 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 606 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 607 | }, 608 | "is-binary-path": { 609 | "version": "2.1.0", 610 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 611 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 612 | "requires": { 613 | "binary-extensions": "^2.0.0" 614 | } 615 | }, 616 | "is-ci": { 617 | "version": "2.0.0", 618 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", 619 | "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", 620 | "requires": { 621 | "ci-info": "^2.0.0" 622 | } 623 | }, 624 | "is-extglob": { 625 | "version": "2.1.1", 626 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 627 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" 628 | }, 629 | "is-fullwidth-code-point": { 630 | "version": "2.0.0", 631 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 632 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 633 | }, 634 | "is-glob": { 635 | "version": "4.0.1", 636 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 637 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 638 | "requires": { 639 | "is-extglob": "^2.1.1" 640 | } 641 | }, 642 | "is-installed-globally": { 643 | "version": "0.3.2", 644 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", 645 | "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", 646 | "requires": { 647 | "global-dirs": "^2.0.1", 648 | "is-path-inside": "^3.0.1" 649 | } 650 | }, 651 | "is-npm": { 652 | "version": "4.0.0", 653 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", 654 | "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==" 655 | }, 656 | "is-number": { 657 | "version": "7.0.0", 658 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 659 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" 660 | }, 661 | "is-obj": { 662 | "version": "2.0.0", 663 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", 664 | "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" 665 | }, 666 | "is-path-inside": { 667 | "version": "3.0.2", 668 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz", 669 | "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==" 670 | }, 671 | "is-typedarray": { 672 | "version": "1.0.0", 673 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 674 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 675 | }, 676 | "is-yarn-global": { 677 | "version": "0.3.0", 678 | "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", 679 | "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" 680 | }, 681 | "isarray": { 682 | "version": "1.0.0", 683 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 684 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 685 | }, 686 | "json-buffer": { 687 | "version": "3.0.0", 688 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 689 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" 690 | }, 691 | "keyv": { 692 | "version": "3.1.0", 693 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", 694 | "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", 695 | "requires": { 696 | "json-buffer": "3.0.0" 697 | } 698 | }, 699 | "latest-version": { 700 | "version": "5.1.0", 701 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", 702 | "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", 703 | "requires": { 704 | "package-json": "^6.3.0" 705 | } 706 | }, 707 | "lowercase-keys": { 708 | "version": "1.0.1", 709 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 710 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" 711 | }, 712 | "make-dir": { 713 | "version": "3.1.0", 714 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 715 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 716 | "requires": { 717 | "semver": "^6.0.0" 718 | }, 719 | "dependencies": { 720 | "semver": { 721 | "version": "6.3.0", 722 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 723 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 724 | } 725 | } 726 | }, 727 | "media-typer": { 728 | "version": "0.3.0", 729 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 730 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 731 | }, 732 | "memory-pager": { 733 | "version": "1.5.0", 734 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 735 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", 736 | "optional": true 737 | }, 738 | "merge-descriptors": { 739 | "version": "1.0.1", 740 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 741 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 742 | }, 743 | "methods": { 744 | "version": "1.1.2", 745 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 746 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 747 | }, 748 | "mime": { 749 | "version": "1.6.0", 750 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 751 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 752 | }, 753 | "mime-db": { 754 | "version": "1.44.0", 755 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 756 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 757 | }, 758 | "mime-types": { 759 | "version": "2.1.27", 760 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 761 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 762 | "requires": { 763 | "mime-db": "1.44.0" 764 | } 765 | }, 766 | "mimic-response": { 767 | "version": "1.0.1", 768 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 769 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" 770 | }, 771 | "minimatch": { 772 | "version": "3.0.4", 773 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 774 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 775 | "requires": { 776 | "brace-expansion": "^1.1.7" 777 | } 778 | }, 779 | "minimist": { 780 | "version": "1.2.5", 781 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 782 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 783 | }, 784 | "mongodb": { 785 | "version": "3.5.9", 786 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.5.9.tgz", 787 | "integrity": "sha512-vXHBY1CsGYcEPoVWhwgxIBeWqP3dSu9RuRDsoLRPTITrcrgm1f0Ubu1xqF9ozMwv53agmEiZm0YGo+7WL3Nbug==", 788 | "requires": { 789 | "bl": "^2.2.0", 790 | "bson": "^1.1.4", 791 | "denque": "^1.4.1", 792 | "require_optional": "^1.0.1", 793 | "safe-buffer": "^5.1.2", 794 | "saslprep": "^1.0.0" 795 | } 796 | }, 797 | "ms": { 798 | "version": "2.0.0", 799 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 800 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 801 | }, 802 | "negotiator": { 803 | "version": "0.6.2", 804 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 805 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 806 | }, 807 | "nodemon": { 808 | "version": "2.0.4", 809 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.4.tgz", 810 | "integrity": "sha512-Ltced+hIfTmaS28Zjv1BM552oQ3dbwPqI4+zI0SLgq+wpJhSyqgYude/aZa/3i31VCQWMfXJVxvu86abcam3uQ==", 811 | "requires": { 812 | "chokidar": "^3.2.2", 813 | "debug": "^3.2.6", 814 | "ignore-by-default": "^1.0.1", 815 | "minimatch": "^3.0.4", 816 | "pstree.remy": "^1.1.7", 817 | "semver": "^5.7.1", 818 | "supports-color": "^5.5.0", 819 | "touch": "^3.1.0", 820 | "undefsafe": "^2.0.2", 821 | "update-notifier": "^4.0.0" 822 | }, 823 | "dependencies": { 824 | "debug": { 825 | "version": "3.2.6", 826 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 827 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 828 | "requires": { 829 | "ms": "^2.1.1" 830 | } 831 | }, 832 | "ms": { 833 | "version": "2.1.2", 834 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 835 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 836 | } 837 | } 838 | }, 839 | "nopt": { 840 | "version": "1.0.10", 841 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 842 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 843 | "requires": { 844 | "abbrev": "1" 845 | } 846 | }, 847 | "normalize-path": { 848 | "version": "3.0.0", 849 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 850 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" 851 | }, 852 | "normalize-url": { 853 | "version": "4.5.0", 854 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", 855 | "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==" 856 | }, 857 | "object-assign": { 858 | "version": "4.1.1", 859 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 860 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 861 | }, 862 | "on-finished": { 863 | "version": "2.3.0", 864 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 865 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 866 | "requires": { 867 | "ee-first": "1.1.1" 868 | } 869 | }, 870 | "once": { 871 | "version": "1.4.0", 872 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 873 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 874 | "requires": { 875 | "wrappy": "1" 876 | } 877 | }, 878 | "p-cancelable": { 879 | "version": "1.1.0", 880 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", 881 | "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" 882 | }, 883 | "package-json": { 884 | "version": "6.5.0", 885 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", 886 | "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", 887 | "requires": { 888 | "got": "^9.6.0", 889 | "registry-auth-token": "^4.0.0", 890 | "registry-url": "^5.0.0", 891 | "semver": "^6.2.0" 892 | }, 893 | "dependencies": { 894 | "semver": { 895 | "version": "6.3.0", 896 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 897 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 898 | } 899 | } 900 | }, 901 | "parseurl": { 902 | "version": "1.3.3", 903 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 904 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 905 | }, 906 | "path-to-regexp": { 907 | "version": "0.1.7", 908 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 909 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 910 | }, 911 | "picomatch": { 912 | "version": "2.2.2", 913 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", 914 | "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" 915 | }, 916 | "prepend-http": { 917 | "version": "2.0.0", 918 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 919 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" 920 | }, 921 | "process-nextick-args": { 922 | "version": "2.0.1", 923 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 924 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 925 | }, 926 | "proxy-addr": { 927 | "version": "2.0.6", 928 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 929 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 930 | "requires": { 931 | "forwarded": "~0.1.2", 932 | "ipaddr.js": "1.9.1" 933 | } 934 | }, 935 | "pstree.remy": { 936 | "version": "1.1.8", 937 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 938 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" 939 | }, 940 | "pump": { 941 | "version": "3.0.0", 942 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 943 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 944 | "requires": { 945 | "end-of-stream": "^1.1.0", 946 | "once": "^1.3.1" 947 | } 948 | }, 949 | "pupa": { 950 | "version": "2.0.1", 951 | "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz", 952 | "integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==", 953 | "requires": { 954 | "escape-goat": "^2.0.0" 955 | } 956 | }, 957 | "qs": { 958 | "version": "6.7.0", 959 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 960 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 961 | }, 962 | "range-parser": { 963 | "version": "1.2.1", 964 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 965 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 966 | }, 967 | "raw-body": { 968 | "version": "2.4.0", 969 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 970 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 971 | "requires": { 972 | "bytes": "3.1.0", 973 | "http-errors": "1.7.2", 974 | "iconv-lite": "0.4.24", 975 | "unpipe": "1.0.0" 976 | } 977 | }, 978 | "rc": { 979 | "version": "1.2.8", 980 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 981 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 982 | "requires": { 983 | "deep-extend": "^0.6.0", 984 | "ini": "~1.3.0", 985 | "minimist": "^1.2.0", 986 | "strip-json-comments": "~2.0.1" 987 | } 988 | }, 989 | "readable-stream": { 990 | "version": "2.3.7", 991 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 992 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 993 | "requires": { 994 | "core-util-is": "~1.0.0", 995 | "inherits": "~2.0.3", 996 | "isarray": "~1.0.0", 997 | "process-nextick-args": "~2.0.0", 998 | "safe-buffer": "~5.1.1", 999 | "string_decoder": "~1.1.1", 1000 | "util-deprecate": "~1.0.1" 1001 | } 1002 | }, 1003 | "readdirp": { 1004 | "version": "3.4.0", 1005 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz", 1006 | "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==", 1007 | "requires": { 1008 | "picomatch": "^2.2.1" 1009 | } 1010 | }, 1011 | "registry-auth-token": { 1012 | "version": "4.1.1", 1013 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz", 1014 | "integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==", 1015 | "requires": { 1016 | "rc": "^1.2.8" 1017 | } 1018 | }, 1019 | "registry-url": { 1020 | "version": "5.1.0", 1021 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", 1022 | "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", 1023 | "requires": { 1024 | "rc": "^1.2.8" 1025 | } 1026 | }, 1027 | "require_optional": { 1028 | "version": "1.0.1", 1029 | "resolved": "https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz", 1030 | "integrity": "sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g==", 1031 | "requires": { 1032 | "resolve-from": "^2.0.0", 1033 | "semver": "^5.1.0" 1034 | } 1035 | }, 1036 | "resolve-from": { 1037 | "version": "2.0.0", 1038 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz", 1039 | "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=" 1040 | }, 1041 | "responselike": { 1042 | "version": "1.0.2", 1043 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 1044 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 1045 | "requires": { 1046 | "lowercase-keys": "^1.0.0" 1047 | } 1048 | }, 1049 | "safe-buffer": { 1050 | "version": "5.1.2", 1051 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1052 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1053 | }, 1054 | "safer-buffer": { 1055 | "version": "2.1.2", 1056 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1057 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1058 | }, 1059 | "saslprep": { 1060 | "version": "1.0.3", 1061 | "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", 1062 | "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", 1063 | "optional": true, 1064 | "requires": { 1065 | "sparse-bitfield": "^3.0.3" 1066 | } 1067 | }, 1068 | "semver": { 1069 | "version": "5.7.1", 1070 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1071 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 1072 | }, 1073 | "semver-diff": { 1074 | "version": "3.1.1", 1075 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", 1076 | "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", 1077 | "requires": { 1078 | "semver": "^6.3.0" 1079 | }, 1080 | "dependencies": { 1081 | "semver": { 1082 | "version": "6.3.0", 1083 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1084 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 1085 | } 1086 | } 1087 | }, 1088 | "send": { 1089 | "version": "0.17.1", 1090 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1091 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1092 | "requires": { 1093 | "debug": "2.6.9", 1094 | "depd": "~1.1.2", 1095 | "destroy": "~1.0.4", 1096 | "encodeurl": "~1.0.2", 1097 | "escape-html": "~1.0.3", 1098 | "etag": "~1.8.1", 1099 | "fresh": "0.5.2", 1100 | "http-errors": "~1.7.2", 1101 | "mime": "1.6.0", 1102 | "ms": "2.1.1", 1103 | "on-finished": "~2.3.0", 1104 | "range-parser": "~1.2.1", 1105 | "statuses": "~1.5.0" 1106 | }, 1107 | "dependencies": { 1108 | "ms": { 1109 | "version": "2.1.1", 1110 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1111 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1112 | } 1113 | } 1114 | }, 1115 | "serve-static": { 1116 | "version": "1.14.1", 1117 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1118 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1119 | "requires": { 1120 | "encodeurl": "~1.0.2", 1121 | "escape-html": "~1.0.3", 1122 | "parseurl": "~1.3.3", 1123 | "send": "0.17.1" 1124 | } 1125 | }, 1126 | "setprototypeof": { 1127 | "version": "1.1.1", 1128 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1129 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1130 | }, 1131 | "signal-exit": { 1132 | "version": "3.0.3", 1133 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 1134 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" 1135 | }, 1136 | "sparse-bitfield": { 1137 | "version": "3.0.3", 1138 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 1139 | "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", 1140 | "optional": true, 1141 | "requires": { 1142 | "memory-pager": "^1.0.2" 1143 | } 1144 | }, 1145 | "statuses": { 1146 | "version": "1.5.0", 1147 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1148 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 1149 | }, 1150 | "string-width": { 1151 | "version": "4.2.0", 1152 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", 1153 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", 1154 | "requires": { 1155 | "emoji-regex": "^8.0.0", 1156 | "is-fullwidth-code-point": "^3.0.0", 1157 | "strip-ansi": "^6.0.0" 1158 | }, 1159 | "dependencies": { 1160 | "ansi-regex": { 1161 | "version": "5.0.0", 1162 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 1163 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" 1164 | }, 1165 | "emoji-regex": { 1166 | "version": "8.0.0", 1167 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1168 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 1169 | }, 1170 | "is-fullwidth-code-point": { 1171 | "version": "3.0.0", 1172 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1173 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" 1174 | }, 1175 | "strip-ansi": { 1176 | "version": "6.0.0", 1177 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 1178 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 1179 | "requires": { 1180 | "ansi-regex": "^5.0.0" 1181 | } 1182 | } 1183 | } 1184 | }, 1185 | "string_decoder": { 1186 | "version": "1.1.1", 1187 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1188 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1189 | "requires": { 1190 | "safe-buffer": "~5.1.0" 1191 | } 1192 | }, 1193 | "strip-ansi": { 1194 | "version": "5.2.0", 1195 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1196 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1197 | "requires": { 1198 | "ansi-regex": "^4.1.0" 1199 | } 1200 | }, 1201 | "strip-json-comments": { 1202 | "version": "2.0.1", 1203 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1204 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" 1205 | }, 1206 | "supports-color": { 1207 | "version": "5.5.0", 1208 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1209 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1210 | "requires": { 1211 | "has-flag": "^3.0.0" 1212 | } 1213 | }, 1214 | "term-size": { 1215 | "version": "2.2.0", 1216 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.0.tgz", 1217 | "integrity": "sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==" 1218 | }, 1219 | "to-readable-stream": { 1220 | "version": "1.0.0", 1221 | "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", 1222 | "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" 1223 | }, 1224 | "to-regex-range": { 1225 | "version": "5.0.1", 1226 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1227 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1228 | "requires": { 1229 | "is-number": "^7.0.0" 1230 | } 1231 | }, 1232 | "toidentifier": { 1233 | "version": "1.0.0", 1234 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 1235 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 1236 | }, 1237 | "touch": { 1238 | "version": "3.1.0", 1239 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 1240 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 1241 | "requires": { 1242 | "nopt": "~1.0.10" 1243 | } 1244 | }, 1245 | "type-fest": { 1246 | "version": "0.8.1", 1247 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 1248 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" 1249 | }, 1250 | "type-is": { 1251 | "version": "1.6.18", 1252 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1253 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1254 | "requires": { 1255 | "media-typer": "0.3.0", 1256 | "mime-types": "~2.1.24" 1257 | } 1258 | }, 1259 | "typedarray-to-buffer": { 1260 | "version": "3.1.5", 1261 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", 1262 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", 1263 | "requires": { 1264 | "is-typedarray": "^1.0.0" 1265 | } 1266 | }, 1267 | "undefsafe": { 1268 | "version": "2.0.3", 1269 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", 1270 | "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", 1271 | "requires": { 1272 | "debug": "^2.2.0" 1273 | } 1274 | }, 1275 | "unique-string": { 1276 | "version": "2.0.0", 1277 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", 1278 | "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", 1279 | "requires": { 1280 | "crypto-random-string": "^2.0.0" 1281 | } 1282 | }, 1283 | "unpipe": { 1284 | "version": "1.0.0", 1285 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1286 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 1287 | }, 1288 | "update-notifier": { 1289 | "version": "4.1.0", 1290 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.0.tgz", 1291 | "integrity": "sha512-w3doE1qtI0/ZmgeoDoARmI5fjDoT93IfKgEGqm26dGUOh8oNpaSTsGNdYRN/SjOuo10jcJGwkEL3mroKzktkew==", 1292 | "requires": { 1293 | "boxen": "^4.2.0", 1294 | "chalk": "^3.0.0", 1295 | "configstore": "^5.0.1", 1296 | "has-yarn": "^2.1.0", 1297 | "import-lazy": "^2.1.0", 1298 | "is-ci": "^2.0.0", 1299 | "is-installed-globally": "^0.3.1", 1300 | "is-npm": "^4.0.0", 1301 | "is-yarn-global": "^0.3.0", 1302 | "latest-version": "^5.0.0", 1303 | "pupa": "^2.0.1", 1304 | "semver-diff": "^3.1.1", 1305 | "xdg-basedir": "^4.0.0" 1306 | } 1307 | }, 1308 | "url-parse-lax": { 1309 | "version": "3.0.0", 1310 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 1311 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 1312 | "requires": { 1313 | "prepend-http": "^2.0.0" 1314 | } 1315 | }, 1316 | "util-deprecate": { 1317 | "version": "1.0.2", 1318 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1319 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1320 | }, 1321 | "utils-merge": { 1322 | "version": "1.0.1", 1323 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1324 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 1325 | }, 1326 | "vary": { 1327 | "version": "1.1.2", 1328 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1329 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 1330 | }, 1331 | "widest-line": { 1332 | "version": "3.1.0", 1333 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", 1334 | "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", 1335 | "requires": { 1336 | "string-width": "^4.0.0" 1337 | } 1338 | }, 1339 | "wrappy": { 1340 | "version": "1.0.2", 1341 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1342 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1343 | }, 1344 | "write-file-atomic": { 1345 | "version": "3.0.3", 1346 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", 1347 | "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", 1348 | "requires": { 1349 | "imurmurhash": "^0.1.4", 1350 | "is-typedarray": "^1.0.0", 1351 | "signal-exit": "^3.0.2", 1352 | "typedarray-to-buffer": "^3.1.5" 1353 | } 1354 | }, 1355 | "xdg-basedir": { 1356 | "version": "4.0.0", 1357 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", 1358 | "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==" 1359 | } 1360 | } 1361 | } 1362 | -------------------------------------------------------------------------------- /todo-fullstack/todo-backend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "todo-backend", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "body-parser": "^1.19.0", 14 | "cors": "^2.8.5", 15 | "express": "^4.17.1", 16 | "mongodb": "^3.5.9", 17 | "nodemon": "^2.0.4" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "todo-frontend", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^4.2.4", 7 | "@testing-library/react": "^9.5.0", 8 | "@testing-library/user-event": "^7.2.1", 9 | "react": "^16.13.1", 10 | "react-dom": "^16.13.1", 11 | "react-scripts": "3.4.1" 12 | }, 13 | "scripts": { 14 | "start": "react-scripts start", 15 | "build": "react-scripts build", 16 | "test": "react-scripts test", 17 | "eject": "react-scripts eject" 18 | }, 19 | "eslintConfig": { 20 | "extends": "react-app" 21 | }, 22 | "browserslist": { 23 | "production": [ 24 | ">0.2%", 25 | "not dead", 26 | "not op_mini all" 27 | ], 28 | "development": [ 29 | "last 1 chrome version", 30 | "last 1 firefox version", 31 | "last 1 safari version" 32 | ] 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hey-Programmers/coding-challenges/44bb0ab5f606d0d31e8984954708b3626cb97183/todo-fullstack/todo-frontend/public/favicon.ico -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | 28 | React App 29 | 30 | 31 | 32 |
33 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hey-Programmers/coding-challenges/44bb0ab5f606d0d31e8984954708b3626cb97183/todo-fullstack/todo-frontend/public/logo192.png -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hey-Programmers/coding-challenges/44bb0ab5f606d0d31e8984954708b3626cb97183/todo-fullstack/todo-frontend/public/logo512.png -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/src/App.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react'; 2 | 3 | function App() { 4 | return ( 5 |
6 | 7 |
8 | ); 9 | } 10 | 11 | const List = () => { 12 | const [ todos, setTodos ] = useState([]); 13 | const [ text, setText ] = useState([]); 14 | 15 | 16 | const fetchTodos = async () => { 17 | const res = await fetch('http://localhost:3001/todos'); 18 | setTodos(await res.json()); 19 | }; 20 | 21 | const addTodo = async () => { 22 | const res = await fetch('http://localhost:3001/todos', { 23 | method: 'POST', 24 | headers: { 25 | 'Content-Type': 'application/json' 26 | }, 27 | body: JSON.stringify({ desc: text, done: false }) 28 | }); 29 | 30 | fetchTodos(); 31 | setText(''); 32 | }; 33 | 34 | 35 | useEffect(() => { 36 | fetchTodos(); 37 | }, []); 38 | 39 | const items = todos.map(todo => ); 40 | 41 | return
42 |
43 |
todo list fast
44 |
45 |
46 |
47 | {items} 48 |
49 |
50 |
51 |
52 | setText(e.target.value)} /> 53 | 57 |
58 |
59 |
60 | 61 | 62 | }; 63 | 64 | const Item = (props) => { 65 | const { done, desc, _id } = props.todo; 66 | 67 | const deleteTodo = async () => { 68 | await fetch(`http://localhost:3001/todos/${_id}`, { 69 | method: 'DELETE' 70 | }); 71 | 72 | props.fetchTodos(); 73 | }; 74 | 75 | const toggleDone = async () => { 76 | await fetch(`http://localhost:3001/todos/${_id}`, { 77 | method: 'PUT', 78 | headers: { 79 | 'Content-Type': 'application/json' 80 | }, 81 | body: JSON.stringify({ done: !done, desc }) 82 | }); 83 | 84 | props.fetchTodos(); 85 | }; 86 | 87 | return
88 | { 89 | done ? 90 | : 91 | 92 | } 93 | {desc} 94 | 95 |
96 | }; 97 | 98 | 99 | 100 | export default App; 101 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render } from '@testing-library/react'; 3 | import App from './App'; 4 | 5 | test('renders learn react link', () => { 6 | const { getByText } = render(); 7 | const linkElement = getByText(/learn react/i); 8 | expect(linkElement).toBeInTheDocument(); 9 | }); 10 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | import * as serviceWorker from './serviceWorker'; 5 | 6 | ReactDOM.render( 7 | 8 | 9 | , 10 | document.getElementById('root') 11 | ); 12 | 13 | // If you want your app to work offline and load faster, you can change 14 | // unregister() to register() below. Note this comes with some pitfalls. 15 | // Learn more about service workers: https://bit.ly/CRA-PWA 16 | serviceWorker.unregister(); 17 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/src/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/src/serviceWorker.js: -------------------------------------------------------------------------------- 1 | // This optional code is used to register a service worker. 2 | // register() is not called by default. 3 | 4 | // This lets the app load faster on subsequent visits in production, and gives 5 | // it offline capabilities. However, it also means that developers (and users) 6 | // will only see deployed updates on subsequent visits to a page, after all the 7 | // existing tabs open on the page have been closed, since previously cached 8 | // resources are updated in the background. 9 | 10 | // To learn more about the benefits of this model and instructions on how to 11 | // opt-in, read https://bit.ly/CRA-PWA 12 | 13 | const isLocalhost = Boolean( 14 | window.location.hostname === 'localhost' || 15 | // [::1] is the IPv6 localhost address. 16 | window.location.hostname === '[::1]' || 17 | // 127.0.0.0/8 are considered localhost for IPv4. 18 | window.location.hostname.match( 19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ 20 | ) 21 | ); 22 | 23 | export function register(config) { 24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { 25 | // The URL constructor is available in all browsers that support SW. 26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href); 27 | if (publicUrl.origin !== window.location.origin) { 28 | // Our service worker won't work if PUBLIC_URL is on a different origin 29 | // from what our page is served on. This might happen if a CDN is used to 30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374 31 | return; 32 | } 33 | 34 | window.addEventListener('load', () => { 35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 36 | 37 | if (isLocalhost) { 38 | // This is running on localhost. Let's check if a service worker still exists or not. 39 | checkValidServiceWorker(swUrl, config); 40 | 41 | // Add some additional logging to localhost, pointing developers to the 42 | // service worker/PWA documentation. 43 | navigator.serviceWorker.ready.then(() => { 44 | console.log( 45 | 'This web app is being served cache-first by a service ' + 46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA' 47 | ); 48 | }); 49 | } else { 50 | // Is not localhost. Just register service worker 51 | registerValidSW(swUrl, config); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | function registerValidSW(swUrl, config) { 58 | navigator.serviceWorker 59 | .register(swUrl) 60 | .then(registration => { 61 | registration.onupdatefound = () => { 62 | const installingWorker = registration.installing; 63 | if (installingWorker == null) { 64 | return; 65 | } 66 | installingWorker.onstatechange = () => { 67 | if (installingWorker.state === 'installed') { 68 | if (navigator.serviceWorker.controller) { 69 | // At this point, the updated precached content has been fetched, 70 | // but the previous service worker will still serve the older 71 | // content until all client tabs are closed. 72 | console.log( 73 | 'New content is available and will be used when all ' + 74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' 75 | ); 76 | 77 | // Execute callback 78 | if (config && config.onUpdate) { 79 | config.onUpdate(registration); 80 | } 81 | } else { 82 | // At this point, everything has been precached. 83 | // It's the perfect time to display a 84 | // "Content is cached for offline use." message. 85 | console.log('Content is cached for offline use.'); 86 | 87 | // Execute callback 88 | if (config && config.onSuccess) { 89 | config.onSuccess(registration); 90 | } 91 | } 92 | } 93 | }; 94 | }; 95 | }) 96 | .catch(error => { 97 | console.error('Error during service worker registration:', error); 98 | }); 99 | } 100 | 101 | function checkValidServiceWorker(swUrl, config) { 102 | // Check if the service worker can be found. If it can't reload the page. 103 | fetch(swUrl, { 104 | headers: { 'Service-Worker': 'script' }, 105 | }) 106 | .then(response => { 107 | // Ensure service worker exists, and that we really are getting a JS file. 108 | const contentType = response.headers.get('content-type'); 109 | if ( 110 | response.status === 404 || 111 | (contentType != null && contentType.indexOf('javascript') === -1) 112 | ) { 113 | // No service worker found. Probably a different app. Reload the page. 114 | navigator.serviceWorker.ready.then(registration => { 115 | registration.unregister().then(() => { 116 | window.location.reload(); 117 | }); 118 | }); 119 | } else { 120 | // Service worker found. Proceed as normal. 121 | registerValidSW(swUrl, config); 122 | } 123 | }) 124 | .catch(() => { 125 | console.log( 126 | 'No internet connection found. App is running in offline mode.' 127 | ); 128 | }); 129 | } 130 | 131 | export function unregister() { 132 | if ('serviceWorker' in navigator) { 133 | navigator.serviceWorker.ready 134 | .then(registration => { 135 | registration.unregister(); 136 | }) 137 | .catch(error => { 138 | console.error(error.message); 139 | }); 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /todo-fullstack/todo-frontend/src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom/extend-expect'; 6 | --------------------------------------------------------------------------------