├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── css │ └── master.css ├── images │ ├── motos │ │ ├── cb190r-negra.jpg │ │ ├── cb190r-repsol.jpg │ │ ├── cb190r-roja.jpg │ │ ├── cgtitan-color-blanco.jpg │ │ ├── cgtitan-color-negro.jpg │ │ ├── cgtitan-color-rojo.jpg │ │ ├── color-blanco-wave.jpg │ │ ├── color-rojo-wave.jpg │ │ ├── honda-c-125new-detalle.png │ │ ├── moto-1613961713579.jpg │ │ ├── roja-xr150-color.jpg │ │ ├── twister-color-blanco-detalle.jpg │ │ └── xr-150l-detalle.png │ └── usuarios │ │ ├── foto-1614650624760.jpg │ │ └── foto-1614819222033.png ├── img │ ├── EnMantenimiento.jpg │ ├── acceso_denegado.jpg │ ├── banner.jpg │ ├── banner1.jpg │ ├── banner3.jpg │ ├── cb190r-negra.jpg │ ├── cb190r-repsol.jpg │ ├── cb190r-roja.jpg │ ├── cgtitan-color-blanco.jpg │ ├── cgtitan-color-negro.jpg │ ├── cgtitan-color-rojo.jpg │ ├── color-blanco-wave.jpg │ ├── color-rojo-wave.jpg │ ├── honda-c-125new-detalle.png │ ├── logo-daniel.png │ ├── nosotros.jpg │ ├── promo15.png │ ├── promo30.png │ ├── roja-xr150-color.jpg │ ├── twister-color-blanco-detalle.jpg │ └── xr-150l-detalle.png └── js │ ├── bootstrap.bundle.js │ ├── bootstrap.bundle.js.map │ ├── bootstrap.bundle.min.js │ ├── bootstrap.bundle.min.js.map │ ├── bootstrap.js │ ├── bootstrap.js.map │ ├── bootstrap.min.js │ └── bootstrap.min.js.map └── src ├── controllers ├── controllersAdmin.js ├── controllersProducto.js ├── controllersUser.js └── controllersWeb.js ├── database ├── motos.json └── usuarios.json ├── index.js ├── middlewares ├── acceso.js └── mantenimiento.js ├── routes ├── admin.js ├── producto.js ├── user.js └── web.js └── views ├── admin ├── administrar.ejs ├── create.ejs ├── detail.ejs └── edit.ejs ├── partials ├── footer.ejs ├── head.ejs └── navBar.ejs ├── productos └── productos.ejs ├── usuarios ├── login.ejs └── registro.ejs └── web ├── accesoDenegado.ejs ├── index.ejs └── mantenimiento.ejs /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Proyecto desarrollado con caracter Académico, bajo NodeJs - Express 2 | 3 | CRUD ó ABM de Productos, Registro, Ingreso, Validaciones, Middleware, Session, Cookies y Hash, todo basado en archvos en formato JSON. 4 | 5 | Al descargar o clonar el Poyecto y descomprimirlo, deben ingresar en la carpeta del mismo y ejecutar desde la consola, el comando: 6 | npm install 7 | 8 | Luego para poder activar el Proyecto, deben ejecutar el comando: npm test 9 | 10 | Finalmente deben ingresar a su navegador y ejecutar: localhost:3001 11 | 12 |
Espero les resulte de utilidad
13 | 14 |

Si quieres ir desde 0 a 100 en el Desarrollo Web FullStack - (Front-End y Back-End): Aquí te dejo una ruta que te prepare:

15 | 16 | 17 | 20 | 23 | 26 | 29 | 30 |
18 | 19 | 21 | 22 | 24 | 25 | 27 | 28 |
31 | 32 | 33 | 34 | 37 | 38 |
35 | 36 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ejsproyecto", 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 | "dev": true 12 | }, 13 | "@szmarczak/http-timer": { 14 | "version": "1.1.2", 15 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", 16 | "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", 17 | "dev": true, 18 | "requires": { 19 | "defer-to-connect": "^1.0.1" 20 | } 21 | }, 22 | "abbrev": { 23 | "version": "1.1.1", 24 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 25 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 26 | "dev": true 27 | }, 28 | "accepts": { 29 | "version": "1.3.7", 30 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 31 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 32 | "requires": { 33 | "mime-types": "~2.1.24", 34 | "negotiator": "0.6.2" 35 | } 36 | }, 37 | "ansi-align": { 38 | "version": "3.0.0", 39 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", 40 | "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", 41 | "dev": true, 42 | "requires": { 43 | "string-width": "^3.0.0" 44 | }, 45 | "dependencies": { 46 | "string-width": { 47 | "version": "3.1.0", 48 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 49 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 50 | "dev": true, 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 | "dev": true 64 | }, 65 | "ansi-styles": { 66 | "version": "3.2.1", 67 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 68 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 69 | "requires": { 70 | "color-convert": "^1.9.0" 71 | } 72 | }, 73 | "anymatch": { 74 | "version": "3.1.2", 75 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 76 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 77 | "dev": true, 78 | "requires": { 79 | "normalize-path": "^3.0.0", 80 | "picomatch": "^2.0.4" 81 | } 82 | }, 83 | "append-field": { 84 | "version": "1.0.0", 85 | "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", 86 | "integrity": "sha1-HjRA6RXwsSA9I3SOeO3XubW0PlY=" 87 | }, 88 | "array-flatten": { 89 | "version": "1.1.1", 90 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 91 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 92 | }, 93 | "async": { 94 | "version": "0.9.2", 95 | "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", 96 | "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" 97 | }, 98 | "balanced-match": { 99 | "version": "1.0.2", 100 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 101 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 102 | }, 103 | "bcryptjs": { 104 | "version": "2.4.3", 105 | "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", 106 | "integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms=" 107 | }, 108 | "binary-extensions": { 109 | "version": "2.2.0", 110 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 111 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 112 | "dev": true 113 | }, 114 | "body-parser": { 115 | "version": "1.19.0", 116 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 117 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 118 | "requires": { 119 | "bytes": "3.1.0", 120 | "content-type": "~1.0.4", 121 | "debug": "2.6.9", 122 | "depd": "~1.1.2", 123 | "http-errors": "1.7.2", 124 | "iconv-lite": "0.4.24", 125 | "on-finished": "~2.3.0", 126 | "qs": "6.7.0", 127 | "raw-body": "2.4.0", 128 | "type-is": "~1.6.17" 129 | } 130 | }, 131 | "boxen": { 132 | "version": "4.2.0", 133 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", 134 | "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", 135 | "dev": true, 136 | "requires": { 137 | "ansi-align": "^3.0.0", 138 | "camelcase": "^5.3.1", 139 | "chalk": "^3.0.0", 140 | "cli-boxes": "^2.2.0", 141 | "string-width": "^4.1.0", 142 | "term-size": "^2.1.0", 143 | "type-fest": "^0.8.1", 144 | "widest-line": "^3.1.0" 145 | }, 146 | "dependencies": { 147 | "ansi-styles": { 148 | "version": "4.3.0", 149 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 150 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 151 | "dev": true, 152 | "requires": { 153 | "color-convert": "^2.0.1" 154 | } 155 | }, 156 | "chalk": { 157 | "version": "3.0.0", 158 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 159 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 160 | "dev": true, 161 | "requires": { 162 | "ansi-styles": "^4.1.0", 163 | "supports-color": "^7.1.0" 164 | } 165 | }, 166 | "color-convert": { 167 | "version": "2.0.1", 168 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 169 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 170 | "dev": true, 171 | "requires": { 172 | "color-name": "~1.1.4" 173 | } 174 | }, 175 | "color-name": { 176 | "version": "1.1.4", 177 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 178 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 179 | "dev": true 180 | }, 181 | "has-flag": { 182 | "version": "4.0.0", 183 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 184 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 185 | "dev": true 186 | }, 187 | "supports-color": { 188 | "version": "7.2.0", 189 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 190 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 191 | "dev": true, 192 | "requires": { 193 | "has-flag": "^4.0.0" 194 | } 195 | } 196 | } 197 | }, 198 | "brace-expansion": { 199 | "version": "1.1.11", 200 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 201 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 202 | "requires": { 203 | "balanced-match": "^1.0.0", 204 | "concat-map": "0.0.1" 205 | } 206 | }, 207 | "braces": { 208 | "version": "3.0.2", 209 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 210 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 211 | "dev": true, 212 | "requires": { 213 | "fill-range": "^7.0.1" 214 | } 215 | }, 216 | "buffer-from": { 217 | "version": "1.1.2", 218 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 219 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" 220 | }, 221 | "busboy": { 222 | "version": "0.2.14", 223 | "resolved": "https://registry.npmjs.org/busboy/-/busboy-0.2.14.tgz", 224 | "integrity": "sha1-bCpiLvz0fFe7vh4qnDetNseSVFM=", 225 | "requires": { 226 | "dicer": "0.2.5", 227 | "readable-stream": "1.1.x" 228 | } 229 | }, 230 | "bytes": { 231 | "version": "3.1.0", 232 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 233 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 234 | }, 235 | "cacheable-request": { 236 | "version": "6.1.0", 237 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", 238 | "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", 239 | "dev": true, 240 | "requires": { 241 | "clone-response": "^1.0.2", 242 | "get-stream": "^5.1.0", 243 | "http-cache-semantics": "^4.0.0", 244 | "keyv": "^3.0.0", 245 | "lowercase-keys": "^2.0.0", 246 | "normalize-url": "^4.1.0", 247 | "responselike": "^1.0.2" 248 | }, 249 | "dependencies": { 250 | "get-stream": { 251 | "version": "5.2.0", 252 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", 253 | "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", 254 | "dev": true, 255 | "requires": { 256 | "pump": "^3.0.0" 257 | } 258 | }, 259 | "lowercase-keys": { 260 | "version": "2.0.0", 261 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 262 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", 263 | "dev": true 264 | } 265 | } 266 | }, 267 | "camelcase": { 268 | "version": "5.3.1", 269 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 270 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 271 | "dev": true 272 | }, 273 | "chalk": { 274 | "version": "2.4.2", 275 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 276 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 277 | "requires": { 278 | "ansi-styles": "^3.2.1", 279 | "escape-string-regexp": "^1.0.5", 280 | "supports-color": "^5.3.0" 281 | } 282 | }, 283 | "chokidar": { 284 | "version": "3.5.2", 285 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", 286 | "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", 287 | "dev": true, 288 | "requires": { 289 | "anymatch": "~3.1.2", 290 | "braces": "~3.0.2", 291 | "fsevents": "~2.3.2", 292 | "glob-parent": "~5.1.2", 293 | "is-binary-path": "~2.1.0", 294 | "is-glob": "~4.0.1", 295 | "normalize-path": "~3.0.0", 296 | "readdirp": "~3.6.0" 297 | } 298 | }, 299 | "ci-info": { 300 | "version": "2.0.0", 301 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", 302 | "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", 303 | "dev": true 304 | }, 305 | "cli-boxes": { 306 | "version": "2.2.1", 307 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", 308 | "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", 309 | "dev": true 310 | }, 311 | "clone-response": { 312 | "version": "1.0.2", 313 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 314 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 315 | "dev": true, 316 | "requires": { 317 | "mimic-response": "^1.0.0" 318 | } 319 | }, 320 | "color-convert": { 321 | "version": "1.9.3", 322 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 323 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 324 | "requires": { 325 | "color-name": "1.1.3" 326 | } 327 | }, 328 | "color-name": { 329 | "version": "1.1.3", 330 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 331 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 332 | }, 333 | "concat-map": { 334 | "version": "0.0.1", 335 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 336 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 337 | }, 338 | "concat-stream": { 339 | "version": "1.6.2", 340 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", 341 | "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", 342 | "requires": { 343 | "buffer-from": "^1.0.0", 344 | "inherits": "^2.0.3", 345 | "readable-stream": "^2.2.2", 346 | "typedarray": "^0.0.6" 347 | }, 348 | "dependencies": { 349 | "isarray": { 350 | "version": "1.0.0", 351 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 352 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 353 | }, 354 | "readable-stream": { 355 | "version": "2.3.7", 356 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 357 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 358 | "requires": { 359 | "core-util-is": "~1.0.0", 360 | "inherits": "~2.0.3", 361 | "isarray": "~1.0.0", 362 | "process-nextick-args": "~2.0.0", 363 | "safe-buffer": "~5.1.1", 364 | "string_decoder": "~1.1.1", 365 | "util-deprecate": "~1.0.1" 366 | } 367 | }, 368 | "string_decoder": { 369 | "version": "1.1.1", 370 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 371 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 372 | "requires": { 373 | "safe-buffer": "~5.1.0" 374 | } 375 | } 376 | } 377 | }, 378 | "configstore": { 379 | "version": "5.0.1", 380 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", 381 | "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", 382 | "dev": true, 383 | "requires": { 384 | "dot-prop": "^5.2.0", 385 | "graceful-fs": "^4.1.2", 386 | "make-dir": "^3.0.0", 387 | "unique-string": "^2.0.0", 388 | "write-file-atomic": "^3.0.0", 389 | "xdg-basedir": "^4.0.0" 390 | } 391 | }, 392 | "content-disposition": { 393 | "version": "0.5.3", 394 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 395 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 396 | "requires": { 397 | "safe-buffer": "5.1.2" 398 | } 399 | }, 400 | "content-type": { 401 | "version": "1.0.4", 402 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 403 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 404 | }, 405 | "cookie": { 406 | "version": "0.4.0", 407 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 408 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 409 | }, 410 | "cookie-parser": { 411 | "version": "1.4.5", 412 | "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.5.tgz", 413 | "integrity": "sha512-f13bPUj/gG/5mDr+xLmSxxDsB9DQiTIfhJS/sqjrmfAWiAN+x2O4i/XguTL9yDZ+/IFDanJ+5x7hC4CXT9Tdzw==", 414 | "requires": { 415 | "cookie": "0.4.0", 416 | "cookie-signature": "1.0.6" 417 | } 418 | }, 419 | "cookie-signature": { 420 | "version": "1.0.6", 421 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 422 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 423 | }, 424 | "core-util-is": { 425 | "version": "1.0.2", 426 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 427 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 428 | }, 429 | "crypto-random-string": { 430 | "version": "2.0.0", 431 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", 432 | "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", 433 | "dev": true 434 | }, 435 | "debug": { 436 | "version": "2.6.9", 437 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 438 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 439 | "requires": { 440 | "ms": "2.0.0" 441 | } 442 | }, 443 | "decompress-response": { 444 | "version": "3.3.0", 445 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 446 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 447 | "dev": true, 448 | "requires": { 449 | "mimic-response": "^1.0.0" 450 | } 451 | }, 452 | "deep-extend": { 453 | "version": "0.6.0", 454 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 455 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", 456 | "dev": true 457 | }, 458 | "defer-to-connect": { 459 | "version": "1.1.3", 460 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", 461 | "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", 462 | "dev": true 463 | }, 464 | "depd": { 465 | "version": "1.1.2", 466 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 467 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 468 | }, 469 | "destroy": { 470 | "version": "1.0.4", 471 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 472 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 473 | }, 474 | "dicer": { 475 | "version": "0.2.5", 476 | "resolved": "https://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz", 477 | "integrity": "sha1-WZbAhrszIYyBLAkL3cCc0S+stw8=", 478 | "requires": { 479 | "readable-stream": "1.1.x", 480 | "streamsearch": "0.1.2" 481 | } 482 | }, 483 | "dot-prop": { 484 | "version": "5.3.0", 485 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", 486 | "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", 487 | "dev": true, 488 | "requires": { 489 | "is-obj": "^2.0.0" 490 | } 491 | }, 492 | "duplexer3": { 493 | "version": "0.1.4", 494 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 495 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", 496 | "dev": true 497 | }, 498 | "ee-first": { 499 | "version": "1.1.1", 500 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 501 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 502 | }, 503 | "ejs": { 504 | "version": "3.1.6", 505 | "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.6.tgz", 506 | "integrity": "sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw==", 507 | "requires": { 508 | "jake": "^10.6.1" 509 | } 510 | }, 511 | "emoji-regex": { 512 | "version": "7.0.3", 513 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 514 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 515 | "dev": true 516 | }, 517 | "encodeurl": { 518 | "version": "1.0.2", 519 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 520 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 521 | }, 522 | "end-of-stream": { 523 | "version": "1.4.4", 524 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 525 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 526 | "dev": true, 527 | "requires": { 528 | "once": "^1.4.0" 529 | } 530 | }, 531 | "escape-goat": { 532 | "version": "2.1.1", 533 | "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", 534 | "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", 535 | "dev": true 536 | }, 537 | "escape-html": { 538 | "version": "1.0.3", 539 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 540 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 541 | }, 542 | "escape-string-regexp": { 543 | "version": "1.0.5", 544 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 545 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 546 | }, 547 | "etag": { 548 | "version": "1.8.1", 549 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 550 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 551 | }, 552 | "express": { 553 | "version": "4.17.1", 554 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 555 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 556 | "requires": { 557 | "accepts": "~1.3.7", 558 | "array-flatten": "1.1.1", 559 | "body-parser": "1.19.0", 560 | "content-disposition": "0.5.3", 561 | "content-type": "~1.0.4", 562 | "cookie": "0.4.0", 563 | "cookie-signature": "1.0.6", 564 | "debug": "2.6.9", 565 | "depd": "~1.1.2", 566 | "encodeurl": "~1.0.2", 567 | "escape-html": "~1.0.3", 568 | "etag": "~1.8.1", 569 | "finalhandler": "~1.1.2", 570 | "fresh": "0.5.2", 571 | "merge-descriptors": "1.0.1", 572 | "methods": "~1.1.2", 573 | "on-finished": "~2.3.0", 574 | "parseurl": "~1.3.3", 575 | "path-to-regexp": "0.1.7", 576 | "proxy-addr": "~2.0.5", 577 | "qs": "6.7.0", 578 | "range-parser": "~1.2.1", 579 | "safe-buffer": "5.1.2", 580 | "send": "0.17.1", 581 | "serve-static": "1.14.1", 582 | "setprototypeof": "1.1.1", 583 | "statuses": "~1.5.0", 584 | "type-is": "~1.6.18", 585 | "utils-merge": "1.0.1", 586 | "vary": "~1.1.2" 587 | } 588 | }, 589 | "express-session": { 590 | "version": "1.17.2", 591 | "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.2.tgz", 592 | "integrity": "sha512-mPcYcLA0lvh7D4Oqr5aNJFMtBMKPLl++OKKxkHzZ0U0oDq1rpKBnkR5f5vCHR26VeArlTOEF9td4x5IjICksRQ==", 593 | "requires": { 594 | "cookie": "0.4.1", 595 | "cookie-signature": "1.0.6", 596 | "debug": "2.6.9", 597 | "depd": "~2.0.0", 598 | "on-headers": "~1.0.2", 599 | "parseurl": "~1.3.3", 600 | "safe-buffer": "5.2.1", 601 | "uid-safe": "~2.1.5" 602 | }, 603 | "dependencies": { 604 | "cookie": { 605 | "version": "0.4.1", 606 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", 607 | "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" 608 | }, 609 | "depd": { 610 | "version": "2.0.0", 611 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 612 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" 613 | }, 614 | "safe-buffer": { 615 | "version": "5.2.1", 616 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 617 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 618 | } 619 | } 620 | }, 621 | "express-validator": { 622 | "version": "6.12.1", 623 | "resolved": "https://registry.npmjs.org/express-validator/-/express-validator-6.12.1.tgz", 624 | "integrity": "sha512-olpTAv0ZB5IhNuDQ2rodKAuJsewgFgLIsczJMAWD6T0Yvxsa+j/Hk61jl8e26lAq+oJr6hUqPRjdlOBKhFlWeQ==", 625 | "requires": { 626 | "lodash": "^4.17.21", 627 | "validator": "^13.5.2" 628 | } 629 | }, 630 | "filelist": { 631 | "version": "1.0.2", 632 | "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz", 633 | "integrity": "sha512-z7O0IS8Plc39rTCq6i6iHxk43duYOn8uFJiWSewIq0Bww1RNybVHSCjahmcC87ZqAm4OTvFzlzeGu3XAzG1ctQ==", 634 | "requires": { 635 | "minimatch": "^3.0.4" 636 | } 637 | }, 638 | "fill-range": { 639 | "version": "7.0.1", 640 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 641 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 642 | "dev": true, 643 | "requires": { 644 | "to-regex-range": "^5.0.1" 645 | } 646 | }, 647 | "finalhandler": { 648 | "version": "1.1.2", 649 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 650 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 651 | "requires": { 652 | "debug": "2.6.9", 653 | "encodeurl": "~1.0.2", 654 | "escape-html": "~1.0.3", 655 | "on-finished": "~2.3.0", 656 | "parseurl": "~1.3.3", 657 | "statuses": "~1.5.0", 658 | "unpipe": "~1.0.0" 659 | } 660 | }, 661 | "forwarded": { 662 | "version": "0.1.2", 663 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 664 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 665 | }, 666 | "fresh": { 667 | "version": "0.5.2", 668 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 669 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 670 | }, 671 | "fsevents": { 672 | "version": "2.3.2", 673 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 674 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 675 | "dev": true, 676 | "optional": true 677 | }, 678 | "get-stream": { 679 | "version": "4.1.0", 680 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 681 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 682 | "dev": true, 683 | "requires": { 684 | "pump": "^3.0.0" 685 | } 686 | }, 687 | "glob-parent": { 688 | "version": "5.1.2", 689 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 690 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 691 | "dev": true, 692 | "requires": { 693 | "is-glob": "^4.0.1" 694 | } 695 | }, 696 | "global-dirs": { 697 | "version": "2.1.0", 698 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", 699 | "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", 700 | "dev": true, 701 | "requires": { 702 | "ini": "1.3.7" 703 | } 704 | }, 705 | "got": { 706 | "version": "9.6.0", 707 | "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", 708 | "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", 709 | "dev": true, 710 | "requires": { 711 | "@sindresorhus/is": "^0.14.0", 712 | "@szmarczak/http-timer": "^1.1.2", 713 | "cacheable-request": "^6.0.0", 714 | "decompress-response": "^3.3.0", 715 | "duplexer3": "^0.1.4", 716 | "get-stream": "^4.1.0", 717 | "lowercase-keys": "^1.0.1", 718 | "mimic-response": "^1.0.1", 719 | "p-cancelable": "^1.0.0", 720 | "to-readable-stream": "^1.0.0", 721 | "url-parse-lax": "^3.0.0" 722 | } 723 | }, 724 | "graceful-fs": { 725 | "version": "4.2.8", 726 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", 727 | "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", 728 | "dev": true 729 | }, 730 | "has-flag": { 731 | "version": "3.0.0", 732 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 733 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 734 | }, 735 | "has-yarn": { 736 | "version": "2.1.0", 737 | "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", 738 | "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", 739 | "dev": true 740 | }, 741 | "http-cache-semantics": { 742 | "version": "4.1.0", 743 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", 744 | "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", 745 | "dev": true 746 | }, 747 | "http-errors": { 748 | "version": "1.7.2", 749 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 750 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 751 | "requires": { 752 | "depd": "~1.1.2", 753 | "inherits": "2.0.3", 754 | "setprototypeof": "1.1.1", 755 | "statuses": ">= 1.5.0 < 2", 756 | "toidentifier": "1.0.0" 757 | } 758 | }, 759 | "iconv-lite": { 760 | "version": "0.4.24", 761 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 762 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 763 | "requires": { 764 | "safer-buffer": ">= 2.1.2 < 3" 765 | } 766 | }, 767 | "ignore-by-default": { 768 | "version": "1.0.1", 769 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 770 | "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", 771 | "dev": true 772 | }, 773 | "import-lazy": { 774 | "version": "2.1.0", 775 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 776 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", 777 | "dev": true 778 | }, 779 | "imurmurhash": { 780 | "version": "0.1.4", 781 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 782 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 783 | "dev": true 784 | }, 785 | "inherits": { 786 | "version": "2.0.3", 787 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 788 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 789 | }, 790 | "ini": { 791 | "version": "1.3.7", 792 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", 793 | "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", 794 | "dev": true 795 | }, 796 | "ipaddr.js": { 797 | "version": "1.9.1", 798 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 799 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 800 | }, 801 | "is-binary-path": { 802 | "version": "2.1.0", 803 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 804 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 805 | "dev": true, 806 | "requires": { 807 | "binary-extensions": "^2.0.0" 808 | } 809 | }, 810 | "is-ci": { 811 | "version": "2.0.0", 812 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", 813 | "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", 814 | "dev": true, 815 | "requires": { 816 | "ci-info": "^2.0.0" 817 | } 818 | }, 819 | "is-extglob": { 820 | "version": "2.1.1", 821 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 822 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 823 | "dev": true 824 | }, 825 | "is-fullwidth-code-point": { 826 | "version": "2.0.0", 827 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 828 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 829 | "dev": true 830 | }, 831 | "is-glob": { 832 | "version": "4.0.1", 833 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 834 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 835 | "dev": true, 836 | "requires": { 837 | "is-extglob": "^2.1.1" 838 | } 839 | }, 840 | "is-installed-globally": { 841 | "version": "0.3.2", 842 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", 843 | "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", 844 | "dev": true, 845 | "requires": { 846 | "global-dirs": "^2.0.1", 847 | "is-path-inside": "^3.0.1" 848 | } 849 | }, 850 | "is-npm": { 851 | "version": "4.0.0", 852 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", 853 | "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", 854 | "dev": true 855 | }, 856 | "is-number": { 857 | "version": "7.0.0", 858 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 859 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 860 | "dev": true 861 | }, 862 | "is-obj": { 863 | "version": "2.0.0", 864 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", 865 | "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", 866 | "dev": true 867 | }, 868 | "is-path-inside": { 869 | "version": "3.0.3", 870 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 871 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 872 | "dev": true 873 | }, 874 | "is-typedarray": { 875 | "version": "1.0.0", 876 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 877 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", 878 | "dev": true 879 | }, 880 | "is-yarn-global": { 881 | "version": "0.3.0", 882 | "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", 883 | "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", 884 | "dev": true 885 | }, 886 | "isarray": { 887 | "version": "0.0.1", 888 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", 889 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" 890 | }, 891 | "jake": { 892 | "version": "10.8.2", 893 | "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz", 894 | "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==", 895 | "requires": { 896 | "async": "0.9.x", 897 | "chalk": "^2.4.2", 898 | "filelist": "^1.0.1", 899 | "minimatch": "^3.0.4" 900 | } 901 | }, 902 | "json-buffer": { 903 | "version": "3.0.0", 904 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 905 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", 906 | "dev": true 907 | }, 908 | "keyv": { 909 | "version": "3.1.0", 910 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", 911 | "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", 912 | "dev": true, 913 | "requires": { 914 | "json-buffer": "3.0.0" 915 | } 916 | }, 917 | "latest-version": { 918 | "version": "5.1.0", 919 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", 920 | "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", 921 | "dev": true, 922 | "requires": { 923 | "package-json": "^6.3.0" 924 | } 925 | }, 926 | "lodash": { 927 | "version": "4.17.21", 928 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 929 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 930 | }, 931 | "lowercase-keys": { 932 | "version": "1.0.1", 933 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 934 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", 935 | "dev": true 936 | }, 937 | "make-dir": { 938 | "version": "3.1.0", 939 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 940 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 941 | "dev": true, 942 | "requires": { 943 | "semver": "^6.0.0" 944 | }, 945 | "dependencies": { 946 | "semver": { 947 | "version": "6.3.0", 948 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 949 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 950 | "dev": true 951 | } 952 | } 953 | }, 954 | "media-typer": { 955 | "version": "0.3.0", 956 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 957 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 958 | }, 959 | "merge-descriptors": { 960 | "version": "1.0.1", 961 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 962 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 963 | }, 964 | "method-override": { 965 | "version": "3.0.0", 966 | "resolved": "https://registry.npmjs.org/method-override/-/method-override-3.0.0.tgz", 967 | "integrity": "sha512-IJ2NNN/mSl9w3kzWB92rcdHpz+HjkxhDJWNDBqSlas+zQdP8wBiJzITPg08M/k2uVvMow7Sk41atndNtt/PHSA==", 968 | "requires": { 969 | "debug": "3.1.0", 970 | "methods": "~1.1.2", 971 | "parseurl": "~1.3.2", 972 | "vary": "~1.1.2" 973 | }, 974 | "dependencies": { 975 | "debug": { 976 | "version": "3.1.0", 977 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 978 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 979 | "requires": { 980 | "ms": "2.0.0" 981 | } 982 | } 983 | } 984 | }, 985 | "methods": { 986 | "version": "1.1.2", 987 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 988 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 989 | }, 990 | "mime": { 991 | "version": "1.6.0", 992 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 993 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 994 | }, 995 | "mime-db": { 996 | "version": "1.44.0", 997 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 998 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 999 | }, 1000 | "mime-types": { 1001 | "version": "2.1.27", 1002 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 1003 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 1004 | "requires": { 1005 | "mime-db": "1.44.0" 1006 | } 1007 | }, 1008 | "mimic-response": { 1009 | "version": "1.0.1", 1010 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 1011 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", 1012 | "dev": true 1013 | }, 1014 | "minimatch": { 1015 | "version": "3.0.4", 1016 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1017 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1018 | "requires": { 1019 | "brace-expansion": "^1.1.7" 1020 | } 1021 | }, 1022 | "minimist": { 1023 | "version": "1.2.5", 1024 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1025 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 1026 | }, 1027 | "mkdirp": { 1028 | "version": "0.5.5", 1029 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 1030 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 1031 | "requires": { 1032 | "minimist": "^1.2.5" 1033 | } 1034 | }, 1035 | "ms": { 1036 | "version": "2.0.0", 1037 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1038 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1039 | }, 1040 | "multer": { 1041 | "version": "1.4.3", 1042 | "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.3.tgz", 1043 | "integrity": "sha512-np0YLKncuZoTzufbkM6wEKp68EhWJXcU6fq6QqrSwkckd2LlMgd1UqhUJLj6NS/5sZ8dE8LYDWslsltJznnXlg==", 1044 | "requires": { 1045 | "append-field": "^1.0.0", 1046 | "busboy": "^0.2.11", 1047 | "concat-stream": "^1.5.2", 1048 | "mkdirp": "^0.5.4", 1049 | "object-assign": "^4.1.1", 1050 | "on-finished": "^2.3.0", 1051 | "type-is": "^1.6.4", 1052 | "xtend": "^4.0.0" 1053 | } 1054 | }, 1055 | "negotiator": { 1056 | "version": "0.6.2", 1057 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1058 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 1059 | }, 1060 | "nodemon": { 1061 | "version": "2.0.12", 1062 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.12.tgz", 1063 | "integrity": "sha512-egCTmNZdObdBxUBw6ZNwvZ/xzk24CKRs5K6d+5zbmrMr7rOpPmfPeF6OxM3DDpaRx331CQRFEktn+wrFFfBSOA==", 1064 | "dev": true, 1065 | "requires": { 1066 | "chokidar": "^3.2.2", 1067 | "debug": "^3.2.6", 1068 | "ignore-by-default": "^1.0.1", 1069 | "minimatch": "^3.0.4", 1070 | "pstree.remy": "^1.1.7", 1071 | "semver": "^5.7.1", 1072 | "supports-color": "^5.5.0", 1073 | "touch": "^3.1.0", 1074 | "undefsafe": "^2.0.3", 1075 | "update-notifier": "^4.1.0" 1076 | }, 1077 | "dependencies": { 1078 | "debug": { 1079 | "version": "3.2.7", 1080 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 1081 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 1082 | "dev": true, 1083 | "requires": { 1084 | "ms": "^2.1.1" 1085 | } 1086 | }, 1087 | "ms": { 1088 | "version": "2.1.3", 1089 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1090 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1091 | "dev": true 1092 | } 1093 | } 1094 | }, 1095 | "nopt": { 1096 | "version": "1.0.10", 1097 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 1098 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 1099 | "dev": true, 1100 | "requires": { 1101 | "abbrev": "1" 1102 | } 1103 | }, 1104 | "normalize-path": { 1105 | "version": "3.0.0", 1106 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1107 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1108 | "dev": true 1109 | }, 1110 | "normalize-url": { 1111 | "version": "4.5.1", 1112 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", 1113 | "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", 1114 | "dev": true 1115 | }, 1116 | "object-assign": { 1117 | "version": "4.1.1", 1118 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1119 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1120 | }, 1121 | "on-finished": { 1122 | "version": "2.3.0", 1123 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1124 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1125 | "requires": { 1126 | "ee-first": "1.1.1" 1127 | } 1128 | }, 1129 | "on-headers": { 1130 | "version": "1.0.2", 1131 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 1132 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" 1133 | }, 1134 | "once": { 1135 | "version": "1.4.0", 1136 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1137 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1138 | "dev": true, 1139 | "requires": { 1140 | "wrappy": "1" 1141 | } 1142 | }, 1143 | "p-cancelable": { 1144 | "version": "1.1.0", 1145 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", 1146 | "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", 1147 | "dev": true 1148 | }, 1149 | "package-json": { 1150 | "version": "6.5.0", 1151 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", 1152 | "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", 1153 | "dev": true, 1154 | "requires": { 1155 | "got": "^9.6.0", 1156 | "registry-auth-token": "^4.0.0", 1157 | "registry-url": "^5.0.0", 1158 | "semver": "^6.2.0" 1159 | }, 1160 | "dependencies": { 1161 | "semver": { 1162 | "version": "6.3.0", 1163 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1164 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1165 | "dev": true 1166 | } 1167 | } 1168 | }, 1169 | "parseurl": { 1170 | "version": "1.3.3", 1171 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1172 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1173 | }, 1174 | "path-to-regexp": { 1175 | "version": "0.1.7", 1176 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1177 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1178 | }, 1179 | "picomatch": { 1180 | "version": "2.3.0", 1181 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", 1182 | "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", 1183 | "dev": true 1184 | }, 1185 | "prepend-http": { 1186 | "version": "2.0.0", 1187 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 1188 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", 1189 | "dev": true 1190 | }, 1191 | "process-nextick-args": { 1192 | "version": "2.0.1", 1193 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1194 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 1195 | }, 1196 | "proxy-addr": { 1197 | "version": "2.0.6", 1198 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 1199 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 1200 | "requires": { 1201 | "forwarded": "~0.1.2", 1202 | "ipaddr.js": "1.9.1" 1203 | } 1204 | }, 1205 | "pstree.remy": { 1206 | "version": "1.1.8", 1207 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1208 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1209 | "dev": true 1210 | }, 1211 | "pump": { 1212 | "version": "3.0.0", 1213 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1214 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1215 | "dev": true, 1216 | "requires": { 1217 | "end-of-stream": "^1.1.0", 1218 | "once": "^1.3.1" 1219 | } 1220 | }, 1221 | "pupa": { 1222 | "version": "2.1.1", 1223 | "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", 1224 | "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", 1225 | "dev": true, 1226 | "requires": { 1227 | "escape-goat": "^2.0.0" 1228 | } 1229 | }, 1230 | "qs": { 1231 | "version": "6.7.0", 1232 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1233 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 1234 | }, 1235 | "random-bytes": { 1236 | "version": "1.0.0", 1237 | "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", 1238 | "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=" 1239 | }, 1240 | "range-parser": { 1241 | "version": "1.2.1", 1242 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1243 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1244 | }, 1245 | "raw-body": { 1246 | "version": "2.4.0", 1247 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1248 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1249 | "requires": { 1250 | "bytes": "3.1.0", 1251 | "http-errors": "1.7.2", 1252 | "iconv-lite": "0.4.24", 1253 | "unpipe": "1.0.0" 1254 | } 1255 | }, 1256 | "rc": { 1257 | "version": "1.2.8", 1258 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 1259 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 1260 | "dev": true, 1261 | "requires": { 1262 | "deep-extend": "^0.6.0", 1263 | "ini": "~1.3.0", 1264 | "minimist": "^1.2.0", 1265 | "strip-json-comments": "~2.0.1" 1266 | } 1267 | }, 1268 | "readable-stream": { 1269 | "version": "1.1.14", 1270 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", 1271 | "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", 1272 | "requires": { 1273 | "core-util-is": "~1.0.0", 1274 | "inherits": "~2.0.1", 1275 | "isarray": "0.0.1", 1276 | "string_decoder": "~0.10.x" 1277 | } 1278 | }, 1279 | "readdirp": { 1280 | "version": "3.6.0", 1281 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1282 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1283 | "dev": true, 1284 | "requires": { 1285 | "picomatch": "^2.2.1" 1286 | } 1287 | }, 1288 | "registry-auth-token": { 1289 | "version": "4.2.1", 1290 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.1.tgz", 1291 | "integrity": "sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==", 1292 | "dev": true, 1293 | "requires": { 1294 | "rc": "^1.2.8" 1295 | } 1296 | }, 1297 | "registry-url": { 1298 | "version": "5.1.0", 1299 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", 1300 | "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", 1301 | "dev": true, 1302 | "requires": { 1303 | "rc": "^1.2.8" 1304 | } 1305 | }, 1306 | "responselike": { 1307 | "version": "1.0.2", 1308 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 1309 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 1310 | "dev": true, 1311 | "requires": { 1312 | "lowercase-keys": "^1.0.0" 1313 | } 1314 | }, 1315 | "safe-buffer": { 1316 | "version": "5.1.2", 1317 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1318 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1319 | }, 1320 | "safer-buffer": { 1321 | "version": "2.1.2", 1322 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1323 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1324 | }, 1325 | "semver": { 1326 | "version": "5.7.1", 1327 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1328 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 1329 | "dev": true 1330 | }, 1331 | "semver-diff": { 1332 | "version": "3.1.1", 1333 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", 1334 | "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", 1335 | "dev": true, 1336 | "requires": { 1337 | "semver": "^6.3.0" 1338 | }, 1339 | "dependencies": { 1340 | "semver": { 1341 | "version": "6.3.0", 1342 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1343 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1344 | "dev": true 1345 | } 1346 | } 1347 | }, 1348 | "send": { 1349 | "version": "0.17.1", 1350 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1351 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1352 | "requires": { 1353 | "debug": "2.6.9", 1354 | "depd": "~1.1.2", 1355 | "destroy": "~1.0.4", 1356 | "encodeurl": "~1.0.2", 1357 | "escape-html": "~1.0.3", 1358 | "etag": "~1.8.1", 1359 | "fresh": "0.5.2", 1360 | "http-errors": "~1.7.2", 1361 | "mime": "1.6.0", 1362 | "ms": "2.1.1", 1363 | "on-finished": "~2.3.0", 1364 | "range-parser": "~1.2.1", 1365 | "statuses": "~1.5.0" 1366 | }, 1367 | "dependencies": { 1368 | "ms": { 1369 | "version": "2.1.1", 1370 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1371 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1372 | } 1373 | } 1374 | }, 1375 | "serve-static": { 1376 | "version": "1.14.1", 1377 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1378 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1379 | "requires": { 1380 | "encodeurl": "~1.0.2", 1381 | "escape-html": "~1.0.3", 1382 | "parseurl": "~1.3.3", 1383 | "send": "0.17.1" 1384 | } 1385 | }, 1386 | "setprototypeof": { 1387 | "version": "1.1.1", 1388 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1389 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1390 | }, 1391 | "signal-exit": { 1392 | "version": "3.0.3", 1393 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 1394 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", 1395 | "dev": true 1396 | }, 1397 | "statuses": { 1398 | "version": "1.5.0", 1399 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1400 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 1401 | }, 1402 | "streamsearch": { 1403 | "version": "0.1.2", 1404 | "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz", 1405 | "integrity": "sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo=" 1406 | }, 1407 | "string-width": { 1408 | "version": "4.2.2", 1409 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", 1410 | "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", 1411 | "dev": true, 1412 | "requires": { 1413 | "emoji-regex": "^8.0.0", 1414 | "is-fullwidth-code-point": "^3.0.0", 1415 | "strip-ansi": "^6.0.0" 1416 | }, 1417 | "dependencies": { 1418 | "ansi-regex": { 1419 | "version": "5.0.0", 1420 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 1421 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", 1422 | "dev": true 1423 | }, 1424 | "emoji-regex": { 1425 | "version": "8.0.0", 1426 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1427 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1428 | "dev": true 1429 | }, 1430 | "is-fullwidth-code-point": { 1431 | "version": "3.0.0", 1432 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1433 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1434 | "dev": true 1435 | }, 1436 | "strip-ansi": { 1437 | "version": "6.0.0", 1438 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 1439 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 1440 | "dev": true, 1441 | "requires": { 1442 | "ansi-regex": "^5.0.0" 1443 | } 1444 | } 1445 | } 1446 | }, 1447 | "string_decoder": { 1448 | "version": "0.10.31", 1449 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 1450 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" 1451 | }, 1452 | "strip-ansi": { 1453 | "version": "5.2.0", 1454 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1455 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1456 | "dev": true, 1457 | "requires": { 1458 | "ansi-regex": "^4.1.0" 1459 | } 1460 | }, 1461 | "strip-json-comments": { 1462 | "version": "2.0.1", 1463 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1464 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 1465 | "dev": true 1466 | }, 1467 | "supports-color": { 1468 | "version": "5.5.0", 1469 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1470 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1471 | "requires": { 1472 | "has-flag": "^3.0.0" 1473 | } 1474 | }, 1475 | "term-size": { 1476 | "version": "2.2.1", 1477 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", 1478 | "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", 1479 | "dev": true 1480 | }, 1481 | "to-readable-stream": { 1482 | "version": "1.0.0", 1483 | "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", 1484 | "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", 1485 | "dev": true 1486 | }, 1487 | "to-regex-range": { 1488 | "version": "5.0.1", 1489 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1490 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1491 | "dev": true, 1492 | "requires": { 1493 | "is-number": "^7.0.0" 1494 | } 1495 | }, 1496 | "toidentifier": { 1497 | "version": "1.0.0", 1498 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 1499 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 1500 | }, 1501 | "touch": { 1502 | "version": "3.1.0", 1503 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 1504 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 1505 | "dev": true, 1506 | "requires": { 1507 | "nopt": "~1.0.10" 1508 | } 1509 | }, 1510 | "type-fest": { 1511 | "version": "0.8.1", 1512 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 1513 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", 1514 | "dev": true 1515 | }, 1516 | "type-is": { 1517 | "version": "1.6.18", 1518 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1519 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1520 | "requires": { 1521 | "media-typer": "0.3.0", 1522 | "mime-types": "~2.1.24" 1523 | } 1524 | }, 1525 | "typedarray": { 1526 | "version": "0.0.6", 1527 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 1528 | "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" 1529 | }, 1530 | "typedarray-to-buffer": { 1531 | "version": "3.1.5", 1532 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", 1533 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", 1534 | "dev": true, 1535 | "requires": { 1536 | "is-typedarray": "^1.0.0" 1537 | } 1538 | }, 1539 | "uid-safe": { 1540 | "version": "2.1.5", 1541 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", 1542 | "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", 1543 | "requires": { 1544 | "random-bytes": "~1.0.0" 1545 | } 1546 | }, 1547 | "undefsafe": { 1548 | "version": "2.0.3", 1549 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", 1550 | "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", 1551 | "dev": true, 1552 | "requires": { 1553 | "debug": "^2.2.0" 1554 | } 1555 | }, 1556 | "unique-string": { 1557 | "version": "2.0.0", 1558 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", 1559 | "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", 1560 | "dev": true, 1561 | "requires": { 1562 | "crypto-random-string": "^2.0.0" 1563 | } 1564 | }, 1565 | "unpipe": { 1566 | "version": "1.0.0", 1567 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1568 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 1569 | }, 1570 | "update-notifier": { 1571 | "version": "4.1.3", 1572 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", 1573 | "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", 1574 | "dev": true, 1575 | "requires": { 1576 | "boxen": "^4.2.0", 1577 | "chalk": "^3.0.0", 1578 | "configstore": "^5.0.1", 1579 | "has-yarn": "^2.1.0", 1580 | "import-lazy": "^2.1.0", 1581 | "is-ci": "^2.0.0", 1582 | "is-installed-globally": "^0.3.1", 1583 | "is-npm": "^4.0.0", 1584 | "is-yarn-global": "^0.3.0", 1585 | "latest-version": "^5.0.0", 1586 | "pupa": "^2.0.1", 1587 | "semver-diff": "^3.1.1", 1588 | "xdg-basedir": "^4.0.0" 1589 | }, 1590 | "dependencies": { 1591 | "ansi-styles": { 1592 | "version": "4.3.0", 1593 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1594 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1595 | "dev": true, 1596 | "requires": { 1597 | "color-convert": "^2.0.1" 1598 | } 1599 | }, 1600 | "chalk": { 1601 | "version": "3.0.0", 1602 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 1603 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 1604 | "dev": true, 1605 | "requires": { 1606 | "ansi-styles": "^4.1.0", 1607 | "supports-color": "^7.1.0" 1608 | } 1609 | }, 1610 | "color-convert": { 1611 | "version": "2.0.1", 1612 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1613 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1614 | "dev": true, 1615 | "requires": { 1616 | "color-name": "~1.1.4" 1617 | } 1618 | }, 1619 | "color-name": { 1620 | "version": "1.1.4", 1621 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1622 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1623 | "dev": true 1624 | }, 1625 | "has-flag": { 1626 | "version": "4.0.0", 1627 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1628 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1629 | "dev": true 1630 | }, 1631 | "supports-color": { 1632 | "version": "7.2.0", 1633 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1634 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1635 | "dev": true, 1636 | "requires": { 1637 | "has-flag": "^4.0.0" 1638 | } 1639 | } 1640 | } 1641 | }, 1642 | "url-parse-lax": { 1643 | "version": "3.0.0", 1644 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 1645 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 1646 | "dev": true, 1647 | "requires": { 1648 | "prepend-http": "^2.0.0" 1649 | } 1650 | }, 1651 | "util-deprecate": { 1652 | "version": "1.0.2", 1653 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1654 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1655 | }, 1656 | "utils-merge": { 1657 | "version": "1.0.1", 1658 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1659 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 1660 | }, 1661 | "validator": { 1662 | "version": "13.6.0", 1663 | "resolved": "https://registry.npmjs.org/validator/-/validator-13.6.0.tgz", 1664 | "integrity": "sha512-gVgKbdbHgtxpRyR8K0O6oFZPhhB5tT1jeEHZR0Znr9Svg03U0+r9DXWMrnRAB+HtCStDQKlaIZm42tVsVjqtjg==" 1665 | }, 1666 | "vary": { 1667 | "version": "1.1.2", 1668 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1669 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 1670 | }, 1671 | "widest-line": { 1672 | "version": "3.1.0", 1673 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", 1674 | "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", 1675 | "dev": true, 1676 | "requires": { 1677 | "string-width": "^4.0.0" 1678 | } 1679 | }, 1680 | "wrappy": { 1681 | "version": "1.0.2", 1682 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1683 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1684 | "dev": true 1685 | }, 1686 | "write-file-atomic": { 1687 | "version": "3.0.3", 1688 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", 1689 | "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", 1690 | "dev": true, 1691 | "requires": { 1692 | "imurmurhash": "^0.1.4", 1693 | "is-typedarray": "^1.0.0", 1694 | "signal-exit": "^3.0.2", 1695 | "typedarray-to-buffer": "^3.1.5" 1696 | } 1697 | }, 1698 | "xdg-basedir": { 1699 | "version": "4.0.0", 1700 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", 1701 | "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", 1702 | "dev": true 1703 | }, 1704 | "xtend": { 1705 | "version": "4.0.2", 1706 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 1707 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" 1708 | } 1709 | } 1710 | } 1711 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ejsproyectojson", 3 | "version": "1.0.0", 4 | "description": "Proyecto de trabajo con ejs - express-validator - session - cookies - hash", 5 | "main": "src/index.js", 6 | "scripts": { 7 | "test": "nodemon src/index.js" 8 | }, 9 | "keywords": [], 10 | "author": "Angel Daniel Fuentes", 11 | "license": "ISC", 12 | "dependencies": { 13 | "bcryptjs": "^2.4.3", 14 | "cookie-parser": "^1.4.5", 15 | "ejs": "^3.1.6", 16 | "express": "^4.17.1", 17 | "express-session": "^1.17.2", 18 | "express-validator": "^6.12.1", 19 | "method-override": "^3.0.0", 20 | "multer": "^1.4.3" 21 | }, 22 | "devDependencies": { 23 | "nodemon": "^2.0.12" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /public/css/master.css: -------------------------------------------------------------------------------- 1 | *{ 2 | font-family: 'Nunito', sans-serif; 3 | box-sizing: border-box; 4 | margin: 0 ; 5 | } 6 | 7 | /*Esto produce un efecto, como un scroll con una transición*/ 8 | 9 | .container{ 10 | width: 100%; 11 | margin: 0 auto; 12 | } 13 | 14 | 15 | 16 | /*Aplicando propiedades al menú de hamburguesa*/ 17 | .hamburguesa{ 18 | font-size: 25px; 19 | background-color: teal; 20 | color: white; 21 | display: block; 22 | margin: auto; 23 | text-align: center; 24 | max-width: 100px; 25 | padding: 10px; 26 | border-radius: 10px; 27 | } 28 | 29 | /*Aplicando propiedades al menu*/ 30 | .menu{ 31 | display: none; 32 | } 33 | 34 | .opciones{ 35 | list-style-type: none; 36 | padding: 0; 37 | } 38 | /* 39 | .opciones a{ 40 | background-color: teal; 41 | color: white; 42 | text-decoration: none; 43 | display: block; 44 | max-width: 200px; 45 | margin: auto; 46 | text-align: center; 47 | } 48 | */ 49 | .servicios{ 50 | text-align: justify; 51 | } 52 | 53 | .titulo{ 54 | font-size: 3rem; /*tamaño fuente: 16px Medidas absolutas pixel, medidas relativas EM ó REM ó %*/ 55 | color: white; 56 | background-color: teal; /*RGB - RGBA #ffffff*/ 57 | text-align: center; 58 | } 59 | 60 | 61 | img{ 62 | width: 100%; 63 | } 64 | .fondo{ 65 | background-image: url('../img/banner.jpg'); 66 | height: 550px; 67 | background-size: cover; 68 | background-repeat: no-repeat; 69 | background-attachment: fixed; 70 | display: none; 71 | } 72 | 73 | /*Aquí estoy usando posicionamiento - Pueden observar como el la imagen del descuento queda por arriba de la imagen ya que posee una posición absoluta y además el artículo posee un posicionamiento relativo, por lo tanto el elemento se dispone absolutamente dentro del contenedor*/ 74 | /*-----------------------------------------------------------------*/ 75 | .descuento{ 76 | right: 15px; 77 | top: 20px; 78 | position: absolute; 79 | width: 15%; 80 | } 81 | /*-----------------------------------------------------------------*/ 82 | 83 | 84 | /*Aquí al artículo le coloque posición relativa, esto produce el efecto visual de que el descuento se posiciona absolutamente, pero dentro del contenedor y no con relación al body de nuestra página*/ 85 | .producto{ 86 | opacity: 1; 87 | position: relative; 88 | 89 | } 90 | 91 | 92 | 93 | /*Forma de aplicar CSS a un o a cualquier elemento que posea la clase destacado (class = "destacado" 94 | .destacado{ 95 | color: teal; 96 | font-size: 3rem; 97 | background-color: white; 98 | padding: 20px; 99 | } 100 | */ 101 | /*Forma como podemos aplicar CSS a un elemento que contenga un selector ID ( llamado parrafoUnico) 102 | #parrafoUnico{ 103 | color: tomato; 104 | background-color: white; 105 | padding: 15px; 106 | border: 10px solid red; 107 | } 108 | */ 109 | 110 | /*Aquí estoy aplicando CSS a un selector de etiqueta 111 | p{ 112 | color: white; 113 | background-color: turquoise; 114 | text-align: justify; 115 | } 116 | */ 117 | .descripcion{ 118 | display: none; 119 | /*Noten que por ejemplo esta propiedad la quiero igual en la visualización de cualquier dispositivo, entonces no la tengo que colocar nuevamente a menos que deseo otorgarle otro valor a la misma propiedad*/ 120 | text-align: justify; 121 | padding: 10px; 122 | } 123 | 124 | .boton{ 125 | text-decoration: none; 126 | font-family: 1.2rem; 127 | padding: 0 10px; 128 | color: white; 129 | background-color: tomato; 130 | border-radius: 10px; 131 | } 132 | 133 | .footer{ 134 | background-color: tomato; 135 | } 136 | 137 | .derechos{ 138 | color: white; 139 | } 140 | .opciones a{ 141 | margin: 0 5px; 142 | } 143 | .menuFooter{ 144 | display: none; 145 | } 146 | .redes a{ 147 | font-size: 1.2rem; 148 | color: white; 149 | } 150 | 151 | .subir { 152 | color: white; 153 | position: fixed; 154 | bottom: 20px; 155 | right: 20px; 156 | z-index: 100; 157 | } 158 | 159 | .avatar{ 160 | width: 10%; 161 | } 162 | 163 | 164 | /*Media Queries*/ 165 | @media (min-width:768px){ 166 | /*Aquí incorporo el comportameinto Flexible*/ 167 | .encabezado{ 168 | display: flex; 169 | background-color: rgba(0, 128,128,0.8); 170 | justify-content: space-between; 171 | align-items: center; 172 | 173 | /*Aquí aplico lo referido al posicionamiento fijo (fixed), al encabezado*/ 174 | /*position: fixed;*/ 175 | } 176 | .hamburguesa{ 177 | display: none; 178 | } 179 | .menu{ 180 | display: block; 181 | } 182 | .logo{ 183 | width: 10%; 184 | } 185 | .menu{ 186 | width: 90%; 187 | display: flex; 188 | justify-content: space-between; 189 | z-index: 100; 190 | } 191 | .opciones{ 192 | display: flex; 193 | padding-left: 40px; 194 | padding-right: 10px; 195 | } 196 | .opciones a{ 197 | color: white; 198 | font-size: 1.2rem; 199 | text-decoration: none; 200 | } 201 | .opciones a:hover{ 202 | color: teal; 203 | background-color: white; 204 | border-radius: 10px; 205 | } 206 | 207 | /*Aquí vuelvo a utilizar el Flexbox sobre el ccontenedor de nosotros*/ 208 | .nosotros{ 209 | display: flex; 210 | } 211 | .servicios, .imagenNosotros{ 212 | width: 50%; 213 | padding: 20px; 214 | } 215 | 216 | 217 | /*Aquí pueden ver como en las media queries pisamos las propieades dispuestas a los elementos, cuando trabajamos en modo celular*/ 218 | .descripcion{ 219 | display: block; 220 | } 221 | 222 | /*Aquí vuelvo a incorporar Flexbox, en donde muestros los productos mas vendidos*/ 223 | .productos{ 224 | display: flex; 225 | padding: 20px; 226 | flex-wrap: wrap; 227 | 228 | } 229 | .producto{ 230 | width: 50%; 231 | } 232 | .producto:hover{ 233 | opacity: 0.8; 234 | } 235 | .fondo{ 236 | display: block; 237 | } 238 | .footer{ 239 | display: flex; 240 | justify-content: space-around; 241 | padding: 20px; 242 | } 243 | } 244 | 245 | @media (min-width: 992px){ 246 | .productos{ 247 | flex-wrap: nowrap; 248 | } 249 | .menuFooter{ 250 | display: block; 251 | } 252 | 253 | } 254 | -------------------------------------------------------------------------------- /public/images/motos/cb190r-negra.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/cb190r-negra.jpg -------------------------------------------------------------------------------- /public/images/motos/cb190r-repsol.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/cb190r-repsol.jpg -------------------------------------------------------------------------------- /public/images/motos/cb190r-roja.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/cb190r-roja.jpg -------------------------------------------------------------------------------- /public/images/motos/cgtitan-color-blanco.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/cgtitan-color-blanco.jpg -------------------------------------------------------------------------------- /public/images/motos/cgtitan-color-negro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/cgtitan-color-negro.jpg -------------------------------------------------------------------------------- /public/images/motos/cgtitan-color-rojo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/cgtitan-color-rojo.jpg -------------------------------------------------------------------------------- /public/images/motos/color-blanco-wave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/color-blanco-wave.jpg -------------------------------------------------------------------------------- /public/images/motos/color-rojo-wave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/color-rojo-wave.jpg -------------------------------------------------------------------------------- /public/images/motos/honda-c-125new-detalle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/honda-c-125new-detalle.png -------------------------------------------------------------------------------- /public/images/motos/moto-1613961713579.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/moto-1613961713579.jpg -------------------------------------------------------------------------------- /public/images/motos/roja-xr150-color.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/roja-xr150-color.jpg -------------------------------------------------------------------------------- /public/images/motos/twister-color-blanco-detalle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/twister-color-blanco-detalle.jpg -------------------------------------------------------------------------------- /public/images/motos/xr-150l-detalle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/motos/xr-150l-detalle.png -------------------------------------------------------------------------------- /public/images/usuarios/foto-1614650624760.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/usuarios/foto-1614650624760.jpg -------------------------------------------------------------------------------- /public/images/usuarios/foto-1614819222033.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/images/usuarios/foto-1614819222033.png -------------------------------------------------------------------------------- /public/img/EnMantenimiento.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/EnMantenimiento.jpg -------------------------------------------------------------------------------- /public/img/acceso_denegado.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/acceso_denegado.jpg -------------------------------------------------------------------------------- /public/img/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/banner.jpg -------------------------------------------------------------------------------- /public/img/banner1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/banner1.jpg -------------------------------------------------------------------------------- /public/img/banner3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/banner3.jpg -------------------------------------------------------------------------------- /public/img/cb190r-negra.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/cb190r-negra.jpg -------------------------------------------------------------------------------- /public/img/cb190r-repsol.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/cb190r-repsol.jpg -------------------------------------------------------------------------------- /public/img/cb190r-roja.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/cb190r-roja.jpg -------------------------------------------------------------------------------- /public/img/cgtitan-color-blanco.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/cgtitan-color-blanco.jpg -------------------------------------------------------------------------------- /public/img/cgtitan-color-negro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/cgtitan-color-negro.jpg -------------------------------------------------------------------------------- /public/img/cgtitan-color-rojo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/cgtitan-color-rojo.jpg -------------------------------------------------------------------------------- /public/img/color-blanco-wave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/color-blanco-wave.jpg -------------------------------------------------------------------------------- /public/img/color-rojo-wave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/color-rojo-wave.jpg -------------------------------------------------------------------------------- /public/img/honda-c-125new-detalle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/honda-c-125new-detalle.png -------------------------------------------------------------------------------- /public/img/logo-daniel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/logo-daniel.png -------------------------------------------------------------------------------- /public/img/nosotros.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/nosotros.jpg -------------------------------------------------------------------------------- /public/img/promo15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/promo15.png -------------------------------------------------------------------------------- /public/img/promo30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/promo30.png -------------------------------------------------------------------------------- /public/img/roja-xr150-color.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/roja-xr150-color.jpg -------------------------------------------------------------------------------- /public/img/twister-color-blanco-detalle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/twister-color-blanco-detalle.jpg -------------------------------------------------------------------------------- /public/img/xr-150l-detalle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielfuentes/nodejs-crud-json-2021/9aecd0c45977d8995b5398f92c4552c307dc1a7d/public/img/xr-150l-detalle.png -------------------------------------------------------------------------------- /public/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v4.5.0 (https://getbootstrap.com/) 3 | * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use strict";function i(t,e){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),e.fn.emulateTransitionEnd=l,e.event.special[c.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var h="alert",u=e.fn[h],d=function(){function t(t){this._element=t}var n=t.prototype;return n.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(t){var n=c.getSelectorFromElement(t),i=!1;return n&&(i=document.querySelector(n)),i||(i=e(t).closest(".alert")[0]),i},n._triggerCloseEvent=function(t){var n=e.Event("close.bs.alert");return e(t).trigger(n),n},n._removeElement=function(t){var n=this;if(e(t).removeClass("show"),e(t).hasClass("fade")){var i=c.getTransitionDurationFromElement(t);e(t).one(c.TRANSITION_END,(function(e){return n._destroyElement(t,e)})).emulateTransitionEnd(i)}else this._destroyElement(t)},n._destroyElement=function(t){e(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.alert");o||(o=new t(this),i.data("bs.alert",o)),"close"===n&&o[n](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',d._handleDismiss(new d)),e.fn[h]=d._jQueryInterface,e.fn[h].Constructor=d,e.fn[h].noConflict=function(){return e.fn[h]=u,d._jQueryInterface};var f=e.fn.button,g=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=!0,n=!0,i=e(this._element).closest('[data-toggle="buttons"]')[0];if(i){var o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains("active"))t=!1;else{var s=i.querySelector(".active");s&&e(s).removeClass("active")}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains("active")),e(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&e(this._element).toggleClass("active"))},n.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.button");i||(i=new t(this),e(this).data("bs.button",i)),"toggle"===n&&i[n]()}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=t.target,i=n;if(e(n).hasClass("btn")||(n=e(n).closest(".btn")[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))t.preventDefault();else{var o=n.querySelector('input:not([type="hidden"])');if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"LABEL"===i.tagName&&o&&"checkbox"===o.type&&t.preventDefault(),g._jQueryInterface.call(e(n),"toggle")}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn")[0];e(n).toggleClass("focus",/^focus(in)?$/.test(t.type))})),e(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide("next")},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide("prev")},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var n=this;this._activeElement=this._element.querySelector(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one("slid.bs.carousel",(function(){return n.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var o=t>i?"next":"prev";this._slide(o,this._items[t])}},n.dispose=function(){e(this._element).off(p),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=a(a({},v),t),c.typeCheckConfig(m,t,b),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&e(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&y[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){t._pointerEvent&&y[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};e(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(e(this._element).on("pointerdown.bs.carousel",(function(t){return n(t)})),e(this._element).on("pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(e(this._element).on("touchstart.bs.carousel",(function(t){return n(t)})),e(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),e(this._element).on("touchend.bs.carousel",(function(t){return i(t)})))}},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return e;var r=(o+("prev"===t?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},n._triggerSlideEvent=function(t,n){var i=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(".active.carousel-item")),s=e.Event("slide.bs.carousel",{relatedTarget:t,direction:n,from:o,to:i});return e(this._element).trigger(s),s},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));e(n).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&e(i).addClass("active")}},n._slide=function(t,n){var i,o,s,r=this,a=this._element.querySelector(".active.carousel-item"),l=this._getItemIndex(a),h=n||a&&this._getItemByDirection(t,a),u=this._getItemIndex(h),d=Boolean(this._interval);if("next"===t?(i="carousel-item-left",o="carousel-item-next",s="left"):(i="carousel-item-right",o="carousel-item-prev",s="right"),h&&e(h).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(h,s).isDefaultPrevented()&&a&&h){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(h);var f=e.Event("slid.bs.carousel",{relatedTarget:h,direction:s,from:l,to:u});if(e(this._element).hasClass("slide")){e(h).addClass(o),c.reflow(h),e(a).addClass(i),e(h).addClass(i);var g=parseInt(h.getAttribute("data-interval"),10);g?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=g):this._config.interval=this._config.defaultInterval||this._config.interval;var m=c.getTransitionDurationFromElement(a);e(a).one(c.TRANSITION_END,(function(){e(h).removeClass(i+" "+o).addClass("active"),e(a).removeClass("active "+o+" "+i),r._isSliding=!1,setTimeout((function(){return e(r._element).trigger(f)}),0)})).emulateTransitionEnd(m)}else e(a).removeClass("active"),e(h).addClass("active"),this._isSliding=!1,e(this._element).trigger(f);d&&this.cycle()}},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.carousel"),o=a(a({},v),e(this).data());"object"==typeof n&&(o=a(a({},o),n));var s="string"==typeof n?n:o.slide;if(i||(i=new t(this,o),e(this).data("bs.carousel",i)),"number"==typeof n)i.to(n);else if("string"==typeof s){if("undefined"==typeof i[s])throw new TypeError('No method named "'+s+'"');i[s]()}else o.interval&&o.ride&&(i.pause(),i.cycle())}))},t._dataApiClickHandler=function(n){var i=c.getSelectorFromElement(this);if(i){var o=e(i)[0];if(o&&e(o).hasClass("carousel")){var s=a(a({},e(o).data()),e(this).data()),r=this.getAttribute("data-slide-to");r&&(s.interval=!1),t._jQueryInterface.call(e(o),s),r&&e(o).data("bs.carousel").to(r),n.preventDefault()}}},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return v}}]),t}();e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",E._dataApiClickHandler),e(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,i=t.length;n0&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){e(this._element).hasClass("show")?this.hide():this.show()},n.show=function(){var n,i,o=this;if(!this._isTransitioning&&!e(this._element).hasClass("show")&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains("collapse")}))).length&&(n=null),!(n&&(i=e(n).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var s=e.Event("show.bs.collapse");if(e(this._element).trigger(s),!s.isDefaultPrevented()){n&&(t._jQueryInterface.call(e(n).not(this._selector),"hide"),i||e(n).data("bs.collapse",null));var r=this._getDimension();e(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[r]=0,this._triggerArray.length&&e(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(r[0].toUpperCase()+r.slice(1)),l=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,(function(){e(o._element).removeClass("collapsing").addClass("collapse show"),o._element.style[r]="",o.setTransitioning(!1),e(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[r]=this._element[a]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass("show")){var n=e.Event("hide.bs.collapse");if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",c.reflow(this._element),e(this._element).addClass("collapsing").removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var s=0;s0},i._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a(a({},e.offsets),t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},i._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),a(a({},t),this._config.popperConfig)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.dropdown");if(i||(i=new t(this,"object"==typeof n?n:null),e(this).data("bs.dropdown",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},t._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),o=0,s=i.length;o0&&r--,40===n.which&&rdocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:F,popperConfig:null},Y={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},$=function(){function t(t,e){if("undefined"==typeof n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var i=t.prototype;return i.enable=function(){this._isEnabled=!0},i.disable=function(){this._isEnabled=!1},i.toggleEnabled=function(){this._isEnabled=!this._isEnabled},i.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},i.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},i.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var o=c.findShadowRoot(this.element),s=e.contains(null!==o?o:this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!s)return;var r=this.getTipElement(),a=c.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(r).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var u=this._getContainer();e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(u),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,r,this._getPopperConfig(h)),e(r).addClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),"out"===n&&t._leave(null,t)};if(e(this.tip).hasClass("fade")){var f=c.getTransitionDurationFromElement(this.tip);e(this.tip).one(c.TRANSITION_END,d).emulateTransitionEnd(f)}else d()}},i.hide=function(t){var n=this,i=this.getTipElement(),o=e.Event(this.constructor.Event.HIDE),s=function(){"show"!==n._hoverState&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(o),!o.isDefaultPrevented()){if(e(i).removeClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,e(this.tip).hasClass("fade")){var r=c.getTransitionDurationFromElement(i);e(i).one(c.TRANSITION_END,s).emulateTransitionEnd(r)}else s();this._hoverState=""}},i.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},i.isWithContent=function(){return Boolean(this.getTitle())},i.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},i.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},i.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(".tooltip-inner")),this.getTitle()),e(t).removeClass("fade show")},i.setElementContent=function(t,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=H(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n):this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text())},i.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},i._getPopperConfig=function(t){var e=this;return a(a({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),this.config.popperConfig)},i._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=a(a({},e.offsets),t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},i._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},i._getAttachment=function(t){return K[t.toUpperCase()]},i._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==n){var i="hover"===n?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o="hover"===n?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=a(a({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},i._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},i._enter=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e(n.getTipElement()).hasClass("show")||"show"===n._hoverState?n._hoverState="show":(clearTimeout(n._timeout),n._hoverState="show",n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){"show"===n._hoverState&&n.show()}),n.config.delay.show):n.show())},i._leave=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState="out",n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){"out"===n._hoverState&&n.hide()}),n.config.delay.hide):n.hide())},i._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},i._getConfig=function(t){var n=e(this.element).data();return Object.keys(n).forEach((function(t){-1!==V.indexOf(t)&&delete n[t]})),"number"==typeof(t=a(a(a({},this.constructor.Default),n),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c.typeCheckConfig(U,t,this.constructor.DefaultType),t.sanitize&&(t.template=H(t.template,t.whiteList,t.sanitizeFn)),t},i._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},i._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(W);null!==n&&n.length&&t.removeClass(n.join(""))},i._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},i._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.tooltip"),o="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,o),e(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return X}},{key:"NAME",get:function(){return U}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Y}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return z}}]),t}();e.fn[U]=$._jQueryInterface,e.fn[U].Constructor=$,e.fn[U].noConflict=function(){return e.fn[U]=M,$._jQueryInterface};var J="popover",G=e.fn[J],Z=new RegExp("(^|\\s)bs-popover\\S+","g"),tt=a(a({},$.Default),{},{placement:"right",trigger:"click",content:"",template:''}),et=a(a({},$.DefaultType),{},{content:"(string|element|function)"}),nt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},it=function(t){var n,i;function s(){return t.apply(this,arguments)||this}i=t,(n=s).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=s.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},r.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},r.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(".popover-body"),n),t.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(Z);null!==n&&n.length>0&&t.removeClass(n.join(""))},s._jQueryInterface=function(t){return this.each((function(){var n=e(this).data("bs.popover"),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new s(this,i),e(this).data("bs.popover",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},o(s,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return tt}},{key:"NAME",get:function(){return J}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return nt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return et}}]),s}($);e.fn[J]=it._jQueryInterface,e.fn[J].Constructor=it,e.fn[J].noConflict=function(){return e.fn[J]=G,it._jQueryInterface};var ot="scrollspy",st=e.fn[ot],rt={offset:10,method:"auto",target:""},at={offset:"number",method:"string",target:"(string|element)"},lt=function(){function t(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return i._process(t)})),this.refresh(),this._process()}var n=t.prototype;return n.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?n:this._config.method,o="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var n,s=c.getSelectorFromElement(t);if(s&&(n=document.querySelector(s)),n){var r=n.getBoundingClientRect();if(r.width||r.height)return[e(n)[i]().top+o,s]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},n.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=a(a({},rt),"object"==typeof t&&t?t:{})).target&&c.isElement(t.target)){var n=e(t.target).attr("id");n||(n=c.getUID(ot),e(t.target).attr("id",n)),t.target="#"+n}return c.typeCheckConfig(ot,t,at),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t li > .active":".active";i=(i=e.makeArray(e(o).find(r)))[i.length-1]}var a=e.Event("hide.bs.tab",{relatedTarget:this._element}),l=e.Event("show.bs.tab",{relatedTarget:i});if(i&&e(i).trigger(a),e(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){s&&(n=document.querySelector(s)),this._activate(this._element,o);var h=function(){var n=e.Event("hidden.bs.tab",{relatedTarget:t._element}),o=e.Event("shown.bs.tab",{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(o)};n?this._activate(n,n.parentNode,h):h()}}},n.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(t,n,i){var o=this,s=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(".active"):e(n).find("> li > .active"))[0],r=i&&s&&e(s).hasClass("fade"),a=function(){return o._transitionComplete(t,s,i)};if(s&&r){var l=c.getTransitionDurationFromElement(s);e(s).removeClass("show").one(c.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},n._transitionComplete=function(t,n,i){if(n){e(n).removeClass("active");var o=e(n.parentNode).find("> .dropdown-menu .active")[0];o&&e(o).removeClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),c.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&e(t.parentNode).hasClass("dropdown-menu")){var s=e(t).closest(".dropdown")[0];if(s){var r=[].slice.call(s.querySelectorAll(".dropdown-toggle"));e(r).addClass("active")}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.tab");if(o||(o=new t(this),i.data("bs.tab",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),ht._jQueryInterface.call(e(this),"show")})),e.fn.tab=ht._jQueryInterface,e.fn.tab.Constructor=ht,e.fn.tab.noConflict=function(){return e.fn.tab=ct,ht._jQueryInterface};var ut=e.fn.toast,dt={animation:"boolean",autohide:"boolean",delay:"number"},ft={animation:!0,autohide:!0,delay:500},gt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var n=t.prototype;return n.show=function(){var t=this,n=e.Event("show.bs.toast");if(e(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),e(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),c.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var o=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}},n.hide=function(){if(this._element.classList.contains("show")){var t=e.Event("hide.bs.toast");e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains("show")&&this._element.classList.remove("show"),e(this._element).off("click.dismiss.bs.toast"),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(t){return t=a(a(a({},ft),e(this._element).data()),"object"==typeof t&&t?t:{}),c.typeCheckConfig("toast",t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;e(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},n._close=function(){var t=this,n=function(){t._element.classList.add("hide"),e(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=c.getTransitionDurationFromElement(this._element);e(this._element).one(c.TRANSITION_END,n).emulateTransitionEnd(i)}else n()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.toast");if(o||(o=new t(this,"object"==typeof n&&n),i.data("bs.toast",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n](this)}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return dt}},{key:"Default",get:function(){return ft}}]),t}();e.fn.toast=gt._jQueryInterface,e.fn.toast.Constructor=gt,e.fn.toast.noConflict=function(){return e.fn.toast=ut,gt._jQueryInterface},t.Alert=d,t.Button=g,t.Carousel=E,t.Collapse=D,t.Dropdown=j,t.Modal=R,t.Popover=it,t.Scrollspy=lt,t.Tab=ht,t.Toast=gt,t.Tooltip=$,t.Util=c,Object.defineProperty(t,"__esModule",{value:!0})})); 7 | //# sourceMappingURL=bootstrap.min.js.map -------------------------------------------------------------------------------- /src/controllers/controllersAdmin.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const fs = require('fs'); 3 | 4 | module.exports = { 5 | index: (req,res) =>{ 6 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/motos.json'))); 7 | res.render(path.resolve(__dirname, '../views/admin/administrar'), {motos}); 8 | }, 9 | create: (req,res) =>{ 10 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/motos.json'))); 11 | res.render(path.resolve(__dirname, '../views/admin/create')); 12 | }, 13 | save: (req,res) =>{ 14 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/motos.json'))); 15 | let ultimaMoto = motos.pop(); 16 | motos.push(ultimaMoto); 17 | console.log(); 18 | let nuevoProducto = { 19 | id: ultimaMoto.id +1, 20 | nombre : req.body.nombre, 21 | descripcion: req.body.descripcion, 22 | precio: req.body.precio, 23 | descuento: req.body.descuento, 24 | imagen: req.file.filename 25 | } 26 | 27 | motos.push(nuevoProducto); 28 | let nuevoProductoGuardar = JSON.stringify(motos,null,2); 29 | fs.writeFileSync(path.resolve(__dirname,'../database/motos.json'), nuevoProductoGuardar); 30 | res.redirect('/administrar'); 31 | }, 32 | show: (req,res) =>{ 33 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/motos.json'))); 34 | let miMoto; 35 | motos.forEach(moto => { 36 | if(moto.id == req.params.id){ 37 | miMoto = moto; 38 | } 39 | }); 40 | res.render(path.resolve(__dirname, '../views/admin/detail'), {miMoto}) 41 | 42 | }, 43 | edit: (req,res)=>{ 44 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/motos.json'))); 45 | const modoId = req.params.id; 46 | let motoEditar = motos.find(moto=> moto.id == modoId); 47 | res.render(path.resolve(__dirname,'../views/admin/edit'), {motoEditar}); 48 | }, 49 | update: (req,res) =>{ 50 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/motos.json'))); 51 | req.body.id = req.params.id; 52 | req.body.imagen = req.file ? req.file.filename : req.body.oldImagen; 53 | let motosUpdate = motos.map(moto =>{ 54 | if(moto.id == req.body.id){ 55 | return moto = req.body; 56 | } 57 | return moto; 58 | }) 59 | let motoActualizar = JSON.stringify(motosUpdate,null,2); 60 | fs.writeFileSync(path.resolve(__dirname,'../database/motos.json'),motoActualizar) 61 | res.redirect('/administrar'); 62 | }, 63 | destroy: (req,res) =>{ 64 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/motos.json'))); 65 | const motoDeleteId = req.params.id; 66 | const motosFinal = motos.filter(moto => moto.id != motoDeleteId); 67 | let motosGuardar = JSON.stringify(motosFinal,null,2) 68 | fs.writeFileSync(path.resolve(__dirname, '../database/motos.json'),motosGuardar); 69 | res.redirect('/administrar'); 70 | } 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | } -------------------------------------------------------------------------------- /src/controllers/controllersProducto.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const fs = require('fs'); 3 | 4 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname,'..','database','motos.json'))); 5 | 6 | module.exports = { 7 | index: function(req,res){ 8 | //res.sendFile(path.resolve(__dirname, '..', 'views', 'productos', 'productos.html')); 9 | res.render(path.resolve(__dirname, '..', 'views', 'productos', 'productos'),{motos}); 10 | } 11 | } -------------------------------------------------------------------------------- /src/controllers/controllersUser.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const fs = require('fs'); 3 | const bcrypt = require('bcryptjs'); 4 | const multer = require('multer'); 5 | 6 | //Aquí requiero a la función que trae los errores desde la ruta, de llegar a existir 7 | const { validationResult } = require('express-validator'); 8 | 9 | 10 | const controllersUser = { 11 | login: function(req,res){ 12 | res.render(path.resolve(__dirname, '../views/usuarios/login')); 13 | }, 14 | registro: function(req,res){ 15 | res.render(path.resolve(__dirname, '../views/usuarios/registro')); 16 | }, 17 | create: (req, res) => { 18 | let errors = validationResult(req); 19 | if (errors.isEmpty()) { 20 | let user = { 21 | nombre: req.body.first_name, 22 | apellido: req.body.last_name, 23 | email: req.body.email, 24 | password: bcrypt.hashSync(req.body.password, 10), 25 | avatar: req.file ? req.file.filename : '', 26 | role: 1 27 | } 28 | let archivoUsers = fs.readFileSync(path.resolve(__dirname, '../database/usuarios.json'), { 29 | encoding: 'utf-8' 30 | }); 31 | let users; 32 | if (archivoUsers == "") { 33 | users = []; 34 | } else { 35 | users = JSON.parse(archivoUsers); 36 | }; 37 | 38 | users.push(user); 39 | usersJSON = JSON.stringify(users, null, 2); 40 | fs.writeFileSync(path.resolve(__dirname, '../database/usuarios.json'), usersJSON); 41 | res.redirect('/login'); 42 | } else { 43 | //return res.send(errors); 44 | 45 | //Aquí incoporé el old: req.body --> Para poder enviar a la vista los datos que el usuario indique y no tienen errores entonces deben persistir lo que el usuario escribio 46 | 47 | //Si desean especificar debajo de cada input el mendaje de error específico, entonces deben enviar a la vista los errores de la siguiente manera: errors: errors.mapped() 48 | //Después en la vista para mostrar debajo del input el respectivo error sólo deben hacer lo siguiente: 49 | /* 50 |
51 | 52 | 54 |

<%= typeof errors == 'undefined' ? '' : errors.username ? errors.username.msg : '' %>

55 |
56 | */ 57 | 58 | return res.render(path.resolve(__dirname, '../views/usuarios/registro'), { 59 | errors: errors.errors, old: req.body 60 | }); 61 | } 62 | }, 63 | ingresar: (req,res) =>{ 64 | const errors = validationResult(req); 65 | //return res.send(errors.mapped()); 66 | if(errors.isEmpty()){ 67 | let archivoUsuarios = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/usuarios.json'))); 68 | let usuarioLogueado = archivoUsuarios.find(usuario => usuario.email == req.body.email) 69 | //return res.send(usuarioLogueado); 70 | //Como podemos modificar nuestros req.body 71 | delete usuarioLogueado.password; 72 | req.session.usuario = usuarioLogueado; //Guardar del lado del servidor 73 | //Aquí voy a guardar las cookies del usuario que se loguea 74 | if(req.body.recordarme){ 75 | res.cookie('email',usuarioLogueado.email,{maxAge: 1000 * 60 * 60 * 24}) 76 | } 77 | return res.redirect('/'); //Aquí ustedes mandan al usuario para donde quieran (Perfil- home - a donde deseen) 78 | 79 | }else{ 80 | //Devolver a la vista los errores 81 | res.render(path.resolve(__dirname, '../views/usuarios/login'),{errors:errors.mapped(),old:req.body}); 82 | } 83 | }, 84 | logout: (req,res) =>{ 85 | req.session.destroy(); 86 | res.cookie('email',null,{maxAge: -1}); 87 | res.redirect('/') 88 | } 89 | 90 | } 91 | module.exports = controllersUser; 92 | -------------------------------------------------------------------------------- /src/controllers/controllersWeb.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const fs = require('fs'); 3 | 4 | let motos = JSON.parse(fs.readFileSync(path.resolve(__dirname,'..','database','motos.json'))); 5 | 6 | 7 | module.exports = { 8 | index: function(req,res){ 9 | //res.sendFile(path.resolve(__dirname, '..', 'views','web','index.html')); 10 | res.render(path.resolve(__dirname, '..', 'views','web','index'),{motos}); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /src/database/motos.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": "1", 4 | "nombre": "Moto honda c125c", 5 | "descripcion": "Some quick example text to build on the card title and make up the bulk of the card's content.", 6 | "precio": "150.000", 7 | "descuento": "30", 8 | "imagen": "color-rojo-wave.jpg" 9 | }, 10 | { 11 | "id": 2, 12 | "nombre": "Moto honda xr150", 13 | "descripcion": "Some quick example text to build on the card title and make up the bulk of the card's content.", 14 | "precio": "250.000", 15 | "descuento": "30", 16 | "imagen": "roja-xr150-color.jpg" 17 | }, 18 | { 19 | "id": 3, 20 | "nombre": "Moto honda cgtitan190", 21 | "descripcion": "Some quick example text to build on the card title and make up the bulk of the card's content.", 22 | "precio": "345.000", 23 | "descuento": "15", 24 | "imagen": "cgtitan-color-negro.jpg" 25 | }, 26 | { 27 | "id": 4, 28 | "nombre": "Moto honda repsol cb190", 29 | "descripcion": "Some quick example text to build on the card title and make up the bulk of the card's content.", 30 | "precio": "286.000", 31 | "descuento": "15", 32 | "imagen": "cb190r-repsol.jpg" 33 | } 34 | ] -------------------------------------------------------------------------------- /src/database/usuarios.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "nombre": "Eduardo", 4 | "apellido": "Virgilio", 5 | "email": "edu@gmail.com", 6 | "password": "$2a$10$mQIr77kIe9ow7d0VrIbWsuR8MVbiNLbo/pVMc7fanVw2X8t3QAmaK", 7 | "avatar": "foto-1614650624760.jpg", 8 | "role": 1 9 | }, 10 | { 11 | "nombre": "Daniel", 12 | "apellido": "Fuentes", 13 | "email": "cedavilu@gmail.com", 14 | "password": "$2a$10$CQvuD3pEqDa0EwgsUR6q6.GP9xeJflT1BPuzXNtzfFF9CQaXWSMdq", 15 | "avatar": "foto-1614819222033.png", 16 | "role": 9 17 | } 18 | ] -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const app = express(); 3 | const path = require('path'); 4 | const methodOverride = require('method-override'); 5 | 6 | //Aqui requiero los paquetes para trabajar lo referido a session y cookies 7 | const session = require('express-session'); 8 | const cookieParser = require('cookie-parser'); 9 | 10 | 11 | //Requerir nuestro middleware - Aplicación 12 | //Requiero el middleware que controla si el sitio está o no culminado 13 | const mantenimiento = require('./middlewares/mantenimiento'); 14 | //Requerir el middleware que controla si el usuario está o no Logueado 15 | const acceso = require('./middlewares/acceso'); 16 | 17 | //Para indicarle express la carpeta donde se encuentran los archivos estáticos 18 | app.use(express.static(path.resolve(__dirname, '..', 'public'))); 19 | 20 | //app.use(mantenimiento); 21 | 22 | 23 | //Debemos indicar cual es el motor de plantillas que estamos usando EJS 24 | app.set('view engine','ejs'); 25 | //URL encode - Para que nos pueda llegar la información desde el formulario al req.body 26 | app.use(express.urlencoded({ extended: false })); 27 | //Middleware de aplicación el cual se encargue de controlar la posibilidad de usar otros métodos diferentes al GET y al POST, en nuestros formularios 28 | app.use(methodOverride('_method')); 29 | 30 | 31 | // Aquí requerimos nuestros middlewares de session y cookies 32 | /* 33 | Cuando un cliente realiza una solicitud HTTP, y esa solicitud no contiene una cookie de sesión, express-session creará una nueva sesión. Crear una nueva sesión hace algunas cosas: 34 | 35 | generar una identificación de sesión única 36 | almacenar esa identificación de sesión en una cookie de sesión (para que se puedan identificar las solicitudes posteriores realizadas por el cliente) 37 | crear un objeto de sesión vacío, como req.session 38 | dependiendo del valor de saveUninitialized, al final de la solicitud, el objeto de sesión se almacenará en el almacén de sesión (que generalmente es algún tipo de base de datos) 39 | 40 | Si durante la vida útil de la solicitud el objeto de sesión no se modifica, al final de la solicitud y cuando saveUninitialized es falso, el objeto de sesión (aún vacío, porque no modificado) no se almacenará en la tienda de sesión. 41 | 42 | El razonamiento detrás de esto es que esto evitará que muchos objetos de sesión vacíos se almacenen en el almacén de sesión. Como no hay nada útil para almacenar, la sesión se "olvida" al final de la solicitud. 43 | 44 | ¿Cuándo quieres habilitar esto? Cuando desee poder identificar visitantes recurrentes, por ejemplo. Podrá reconocer a ese visitante porque envía la cookie de sesión que contiene la identificación única. 45 | 46 | Acerca de resave: es posible que esto deba habilitarse para los almacenes de sesiones que no admiten el comando "táctil". Lo que esto hace es decirle al almacén de sesiones que una sesión en particular aún está activa, lo cual es necesario porque algunos almacenes eliminarán las sesiones inactivas (no utilizadas) después de algún tiempo. 47 | 48 | Si un controlador de la tienda de sesión no implementa el comando táctil, entonces debe habilitar resave de modo que incluso cuando una sesión no se modificó durante una solicitud, todavía se actualice en la tienda (marcándola como activa). 49 | 50 | */ 51 | 52 | app.use(session({ 53 | secret : 'topSecret', 54 | resave: true, 55 | saveUninitialized: true, 56 | })) 57 | 58 | //Aqui coloco el Middleware para activar lo referido a las cookies 59 | app.use(cookieParser()); 60 | 61 | //Middleware de aplicación que se encarga de controlar si el usuario está logueado o no. 62 | app.use(acceso); 63 | 64 | 65 | //Requerir las rutas 66 | const webRoutes = require('./routes/web'); 67 | const userRoutes = require('./routes/user'); 68 | const productoRoutes = require('./routes/producto'); 69 | const adminRoutes = require('./routes/admin'); 70 | //Para usar las rutas 71 | app.use(webRoutes); 72 | app.use(productoRoutes); 73 | app.use(userRoutes); 74 | app.use(adminRoutes); 75 | //Levantar servidor 76 | app.listen(3001, 'localhost', ()=> console.log('Servidor corriendo en el puerto 3001')); 77 | -------------------------------------------------------------------------------- /src/middlewares/acceso.js: -------------------------------------------------------------------------------- 1 | /* Esto fue lo primero que practicamos - para ver como funcionan los middleware 2 | 3 | const path = require('path'); 4 | module.exports = (req,res,next) =>{ 5 | let perfil = 1; // Para mi 9 es = Administrador 6 | if(perfil != 9){ 7 | return res.render(path.resolve(__dirname, '../views/web/accesoDenegado')); 8 | }else{ 9 | next(); 10 | } 11 | } 12 | */ 13 | 14 | const fs = require('fs'); 15 | const path = require('path'); 16 | let archivoUsuarios = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/usuarios.json'))); 17 | 18 | module.exports = (req,res,next) =>{ 19 | //Variable locals (super global - vive en las vistas ) 20 | res.locals.usuario = false; 21 | if(req.session.usuario){ 22 | res.locals.usuario = req.session.usuario; 23 | return next(); 24 | }else if(req.cookies.email){ 25 | let usuario = archivoUsuarios.find(usuario => usuario.email == req.cookies.email) 26 | //return res.send(usuario); 27 | //delete usuario.password; 28 | req.session.usuario = usuario; 29 | res.locals.usuario = usuario; 30 | return next(); 31 | }else{ 32 | return next(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/middlewares/mantenimiento.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | module.exports = (req,res,next) =>{ 4 | return res.render(path.resolve(__dirname, '../views/web/mantenimiento')); 5 | 6 | next(); 7 | } -------------------------------------------------------------------------------- /src/routes/admin.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const router = express.Router(); 3 | const path = require('path'); 4 | const multer = require('multer'); 5 | 6 | const controllersAdmin = require(path.resolve(__dirname,'../controllers/controllersAdmin')); 7 | //Requerir el middleware Ruta Acceso 8 | const acceso = require(path.resolve(__dirname,'../middlewares/acceso')); 9 | 10 | //Como podemos indicar para subir el archivo nombre y donde guardarlo 11 | var storage = multer.diskStorage({ 12 | destination: function (req, file, cb) { 13 | cb(null, path.resolve(__dirname, '../../public/images/motos')); 14 | }, 15 | filename: function (req, file, cb) { 16 | cb(null, 'moto-'+Date.now()+path.extname(file.originalname)) 17 | } 18 | }) 19 | 20 | const upload = multer({ storage }) 21 | 22 | router.get('/administrar', acceso, controllersAdmin.index); 23 | router.get('/administrar/create', controllersAdmin.create); 24 | router.post('/administrar/create', upload.single('imagen'), controllersAdmin.save); 25 | router.get('/administrar/detail/:id', controllersAdmin.show); 26 | router.get('/administrar/edit/:id', controllersAdmin.edit); 27 | router.put('/administrar/edit/:id', upload.single('imagen'), controllersAdmin.update); 28 | router.get('/administrar/delete/:id', controllersAdmin.destroy); 29 | 30 | module.exports = router; -------------------------------------------------------------------------------- /src/routes/producto.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const router = express.Router(); 3 | const path = require('path'); 4 | 5 | const controllersProducto = require(path.resolve(__dirname, '..', 'controllers', 'controllersProducto')); 6 | 7 | router.get('/productos', controllersProducto.index); 8 | 9 | module.exports = router; -------------------------------------------------------------------------------- /src/routes/user.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const router = express.Router(); 3 | const path = require('path'); 4 | 5 | //Requiero el paquete para comparar las contraseñas que tengo hash (Pueden instalar el paquete bcrypt o bcryptjs) 6 | const bcrypt = require('bcryptjs'); 7 | //Requiero fs ya que debo leer el archivo json de usuarios y verificar si el usuario que se está reistrando existe o no 8 | const fs = require('fs'); 9 | //Requiero Multer, ya que voy a permitir que el usuario que se registre suba su avatar 10 | const multer = require('multer'); 11 | 12 | //Requiero el paquete expres-validator 13 | const { body } = require('express-validator'); 14 | 15 | //Requerir el modulo de los controladores 16 | const controllersUser = require(path.resolve(__dirname, '../controllers/controllersUser')); 17 | 18 | //Aquí aperturo mi archivo de usuarios, ya que al registrarse un usuario es conveniente buscar que no exista una ya registrado con el mismo email o id o el campo que utlicen para identificar al usuario. 19 | 20 | let archivoUsuarios = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../database/usuarios.json'))) 21 | 22 | 23 | //Aquí le incoporé lo referido a la carga de la imagen 24 | 25 | //Aquí dispongo la información del storage para tratamiento de guardado imagenes 26 | //https://www.npmjs.com/package/multer 27 | const storage = multer.diskStorage({ 28 | destination: function (req, file, cb) { 29 | cb(null, path.resolve(__dirname, '../../public/images/usuarios')); //Aquí deben indicar donde van a guardar la imagen 30 | }, 31 | filename: function (req, file, cb) { 32 | cb(null, 'foto' + '-' + Date.now()+ path.extname(file.originalname)); 33 | } 34 | }) 35 | 36 | const upload= multer({ storage }) 37 | 38 | //Aquí ejecuto mis validaciones 39 | const validacionesLogin = [ 40 | body('email').isEmail().withMessage('Agregar un email válido'), 41 | body('password').isLength({min: 6 }).withMessage('La contraseña debe tener un mínimo de 6 caractéres'), 42 | body('email').custom( (value ) =>{ 43 | for (let i = 0; i < archivoUsuarios.length; i++) { 44 | if (archivoUsuarios[i].email == value) { 45 | return true 46 | } 47 | } 48 | return false 49 | }).withMessage('Usuario no se encuentra registrado...'), 50 | 51 | //Aquí valido si la contraseña colocada es la misma a la que tenemos hasheada 52 | body('password').custom( (value, {req}) =>{ 53 | for (let i = 0; i < archivoUsuarios.length; i++) { 54 | if (archivoUsuarios[i].email == req.body.email) { 55 | if(bcrypt.compareSync(value, archivoUsuarios[i].password)){ 56 | return true; 57 | }else{ 58 | return false; 59 | } 60 | } 61 | } 62 | 63 | }).withMessage('Usurio o contraseña no coinciden'), 64 | ] 65 | 66 | //Aquí armo las validaciones del Registro 67 | const validacionesRegistro = [ 68 | //Aquí incoporé otras validaciones, para que las tengan de guía para sus proyectos 69 | body('first_name').isLength({ 70 | min: 1 71 | }).withMessage('El campo nombre no puede estar vacío'), 72 | body('last_name').isLength({min: 1 73 | }).withMessage('El campo apellido no puede estar vacío'), 74 | body('email').isEmail().withMessage('Agregar un email válido'), 75 | 76 | //Aquí valido el Password 77 | body('password').isLength({min: 6 }).withMessage('La contraseña debe tener un mínimo de 6 caractéres'), 78 | 79 | //Aquí valido la confimación del password dispuesto por el usuario 80 | body('confirm_password').isLength({min: 6 }).withMessage('La confirmación de la contraseña debe tener un mínimo de 6 caractéres'), 81 | 82 | //Aquí valido si las contraseñas son iguales o no 83 | //El ( value ) viene a ser el valor que viaje en el name del del input del campo 84 | //El valor { req } corresponde a lo que viene desde el formulario 85 | 86 | body('confirm_password').custom((value, {req}) =>{ 87 | if(req.body.password == value ){ 88 | return true // Si yo retorno un true no se muestra el error 89 | }else{ 90 | return false // Si retorno un false si se muestra el error 91 | } 92 | }).withMessage('Las contraseñas deben ser iguales'), 93 | 94 | //Aquí obligo a que el usuario seleccione su avatar 95 | body('avatar').custom((value, {req}) =>{ 96 | if(req.file != undefined){ 97 | return true 98 | } 99 | return false; 100 | }).withMessage('Debe elegir su avatar y debe ser un archivo con formato: .JPG ó JPEG ó PNG') 101 | ] 102 | 103 | 104 | 105 | // Métodos en nuestros controladores: index - show - edit - delete 106 | router.get('/login', controllersUser.login); 107 | router.post('/login', validacionesLogin,controllersUser.ingresar); 108 | 109 | router.get('/registro', controllersUser.registro); 110 | 111 | //Aqui en esta ruta envio al controlador el avatar del usuario así como las respectivas validaciones 112 | 113 | router.post('/registro', upload.single('avatar'),validacionesRegistro, controllersUser.create); 114 | 115 | //Esta es la ruta que se activa al momento que el usuario desea salir de la página 116 | router.get('/logout', controllersUser.logout); 117 | module.exports = router; -------------------------------------------------------------------------------- /src/routes/web.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const router = express.Router(); 3 | const path = require('path'); 4 | 5 | 6 | //Para nuestras rutas debemos considerar lo siguiente: 7 | //Si ustedes quieren mostrar toda la informacion de lo que deseen: index 8 | //Si desean mostrar el detalle de un producto: show 9 | //Si desean actualizar un producto: edit 10 | // Si desean crear un producto o usuario: create 11 | //Si desean borrar un producto: delete 12 | 13 | //Debo requerir nuestro controlador 14 | const controllersWeb = require(path.resolve(__dirname, '..', 'controllers', 'controllersWeb')); 15 | //Armo mis rutas 16 | router.get('/', controllersWeb.index); 17 | //router.get('/nosotros', controllersWeb.nosotros); 18 | //router.get('/contacto', controllersWeb.contacto); 19 | module.exports = router; -------------------------------------------------------------------------------- /src/views/admin/administrar.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head.ejs') %> 4 | 5 |
6 | <%- include('../partials/navBar.ejs') %> 7 | 8 |
9 |
10 |
11 |

Administrador de Productos

12 |
13 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | <% motos.forEach(moto => { %> 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | <% }); %> 37 | 38 |
IdNombreVerEditarBorrar
<%= moto.id%> <%= moto.nombre%>
39 |
40 |
41 | 42 |
43 | 44 | -------------------------------------------------------------------------------- /src/views/admin/create.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head') %> 4 | 5 |
6 | <%- include('../partials/navBar.ejs') %> 7 |
8 |
9 |
10 |

Crear un Producto

11 |
12 |
13 |
14 | 15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 23 |
24 |
25 | 26 |
27 |
28 | 29 |
30 |
31 | 37 |
38 | 39 |
40 | 41 | 44 |
45 |
46 | 47 | Volver 48 |
49 | 50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | 58 | -------------------------------------------------------------------------------- /src/views/admin/detail.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head.ejs') %> 4 | 5 |
6 | <%- include('../partials/navBar.ejs') %> 7 | 8 |

9 |
10 |
11 |
12 | Moto 13 |
14 | <% if (miMoto.descuento == 30) { %> 15 | Descuento 30% 16 | <% } else if(miMoto.descuento == 15){%> 17 | Descuento 15% 18 | <%}%> 19 |
20 |
<%= miMoto.nombre%>
21 |
$ <%= miMoto.precio %>
22 |

<%= miMoto.descripcion %>

23 | 24 |
25 | Volver 26 |
27 |
28 |
29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/views/admin/edit.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head') %> 4 | 5 |
6 | <%- include('../partials/navBar') %> 7 | 8 | 9 |
10 |
11 |
12 |

Actualizar un Producto

13 |
14 |
15 |
16 | 17 |
18 |
19 |
20 |
21 |
22 |
24 |
25 | 26 |
27 |
28 | 29 |
30 |
31 | 32 |
33 |
34 | 41 |
42 | 43 |
44 |
45 | moto <%= motoEditar.nombre%> 46 |
47 | 48 | 49 | 50 | 53 |
54 |
55 | 56 | Volver 57 |
58 | 59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | 67 | -------------------------------------------------------------------------------- /src/views/partials/footer.ejs: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Contactanos

4 |
5 |
6 | 7 | 8 |
9 |
10 | 11 | 12 |
13 |
14 | 15 | 16 |
17 | 18 |
19 | 20 |
21 |
22 |

Aquí nos encontramos

23 |
24 | 25 |
26 | 27 |
28 | 29 |
30 |
Todos los derechos reservados: MSc. Ángel Daniel Fuentes - 2021
31 | 32 |
33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
41 | -------------------------------------------------------------------------------- /src/views/partials/head.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 17 | 18 | Motos Daniel 19 | -------------------------------------------------------------------------------- /src/views/partials/navBar.ejs: -------------------------------------------------------------------------------- 1 |
2 | 5 | 6 | 7 | 41 |
42 | -------------------------------------------------------------------------------- /src/views/productos/productos.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head.ejs') %> 4 | 5 |
6 | <%- include('../partials/navBar.ejs') %> 7 | 8 |
9 |
10 |

Que buenas Hondas

11 |
12 |
13 | 14 | <% for(let i= 0; i < motos.length; i++){ %> 15 | 16 |
17 |
18 | Moto 19 |
20 | <% if (motos[i].descuento == 30) { %> 21 | Descuento 30% 22 | <% }else if(motos[i].descuento == 15 ){ %> 23 | Descuento 15% 24 | <% } %> 25 |
26 |
<%= motos[i].nombre%>
27 |
$ <%= motos[i].precio%>
28 |

<%= motos[i].descripcion%>

29 | Ver detalle 30 |
31 | 32 |
33 | 34 | <% } %> 35 | 36 |
37 | <%- include('../partials/footer.ejs') %> 38 |
39 | 40 | -------------------------------------------------------------------------------- /src/views/usuarios/login.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head'); %> 4 | 5 |
6 | <%- include('../partials/navBar'); %> 7 | 8 |
9 |
10 |
11 |

Iniciar Sesión

12 |

Introduzca su correo y contraseña.

13 | 14 |
15 |
16 |
17 | 18 |
19 |
20 |
21 |
22 | 52 |
53 |
54 |
55 |
56 | 57 |
58 | 59 | -------------------------------------------------------------------------------- /src/views/usuarios/registro.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%-include('../partials/head') %> 4 | 5 |
6 | <%- include('../partials/navBar') %> 7 | 8 |
9 |
10 |
11 |

Registrate

12 |

Crea tu cuenta, sólo te tomara unos minutos.

13 |
14 |
15 |
16 | 17 |
18 |
19 |
20 |
21 | 22 | <% if(typeof(errors) != 'undefined'){%> 23 |
    24 | <% errors.forEach(error => { %> 25 |
  • <%= error.msg%>
  • 26 | <%});%> 27 |
28 | <%}%> 29 | 30 | 57 |
58 |
59 |
60 |
61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /src/views/web/accesoDenegado.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head') %> 4 | 5 |
6 | Usted no es un administrador 7 |
8 | Acceso denegado 9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /src/views/web/index.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head.ejs') %> 4 | 5 |
6 | <%- include('../partials/navBar.ejs') %> 7 |
8 | Banner moto honda 9 |
10 |
11 |

Descubre y disfruta tu Honda

12 |
13 |
14 |
15 | 16 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Et blanditiis quia perspiciatis! Nobis vitae officiis iusto nisi distinctio velit repellendus doloribus laudantium aperiam obcaecati, dolore quis deleniti unde asperiores aliquam, omnis aspernatur veritatis pariatur aut officia, quibusdam perspiciatis. Qui Mollitia vitae, soluta eius sequi sit ratione culpa asperiores rerum expedita. Dolorum vero eveniet assumenda repellat fugit molestias omnis harum eius, molestiae a facilis quas, velit perferendis! Exercitationem expedita vel delectus sapiente corrupti odio, id eius commodi atque repellat iure consequuntur in veniam? Repellendus praesentium sequi tempore quas voluptas? Magnam dignissimos corporis.

17 |
18 |
19 | Imagen sobre nosotros 20 |
21 |
22 |
23 |

Las más vendidas

24 |
25 |
26 | 27 | <% for(let i= 0; i < motos.length; i++){ %> 28 | <% if (motos[i].descuento == 30) { %> 29 |
30 |
31 | Moto 32 |
33 | <% if (motos[i].descuento == 30) { %> 34 | Descuento 30% 35 | <% }else if(motos[i].descuento == 15 ){ %> 36 | Descuento 15% 37 | <% } %> 38 |
39 |
<%= motos[i].nombre%>
40 |
$ <%= motos[i].precio%>
41 |

<%= motos[i].descripcion%>

42 | Ver detalle 43 |
44 | <% } %> 45 |
46 | 47 | <% } %> 48 | 49 |
50 |
51 | 52 |
53 | 54 | <%- include('../partials/footer.ejs') %> 55 |
56 | 57 | -------------------------------------------------------------------------------- /src/views/web/mantenimiento.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%- include('../partials/head') %> 4 | 5 |
6 | 7 |
8 | Página en mantenimiento 9 |
10 |
11 | 12 | --------------------------------------------------------------------------------