diff --git a/README.MD b/README.MD index b8ea79b..b8caf4b 100644 --- a/README.MD +++ b/README.MD @@ -1,3 +1,5 @@ +This project is tested with [BrowserStack](https://www.browserstack.com/) + # Supplementary Course Resources This repository contains course code and other resources (e.g. slides) that are shown, created or used in our [complete web development course](https://acad.link/web-dev). diff --git a/code/00-starting-project/app.js b/code/00-starting-project/app.js new file mode 100644 index 0000000..e69de29 diff --git a/code/00-starting-project/frontend-site/about.html b/code/00-starting-project/frontend-site/about.html new file mode 100644 index 0000000..6d1e88d --- /dev/null +++ b/code/00-starting-project/frontend-site/about.html @@ -0,0 +1,53 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/00-starting-project/frontend-site/confirm.html b/code/00-starting-project/frontend-site/confirm.html new file mode 100644 index 0000000..9795307 --- /dev/null +++ b/code/00-starting-project/frontend-site/confirm.html @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/00-starting-project/frontend-site/index.html b/code/00-starting-project/frontend-site/index.html new file mode 100644 index 0000000..7a30c85 --- /dev/null +++ b/code/00-starting-project/frontend-site/index.html @@ -0,0 +1,57 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/00-starting-project/frontend-site/recommend.html b/code/00-starting-project/frontend-site/recommend.html new file mode 100644 index 0000000..881bdbd --- /dev/null +++ b/code/00-starting-project/frontend-site/recommend.html @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/00-starting-project/frontend-site/restaurants.html b/code/00-starting-project/frontend-site/restaurants.html new file mode 100644 index 0000000..a175929 --- /dev/null +++ b/code/00-starting-project/frontend-site/restaurants.html @@ -0,0 +1,73 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+

Find your next favorite restaurants with help of our other users!

+ +
+ + diff --git a/code/00-starting-project/frontend-site/scripts/responsive.js b/code/00-starting-project/frontend-site/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/00-starting-project/frontend-site/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/00-starting-project/frontend-site/styles/index.css b/code/00-starting-project/frontend-site/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/00-starting-project/frontend-site/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/00-starting-project/frontend-site/styles/recommend.css b/code/00-starting-project/frontend-site/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/00-starting-project/frontend-site/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/00-starting-project/frontend-site/styles/restaurants.css b/code/00-starting-project/frontend-site/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/00-starting-project/frontend-site/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/00-starting-project/frontend-site/styles/shared.css b/code/00-starting-project/frontend-site/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/00-starting-project/frontend-site/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/00-starting-project/package.json b/code/00-starting-project/package.json new file mode 100644 index 0000000..05f7ab2 --- /dev/null +++ b/code/00-starting-project/package.json @@ -0,0 +1,18 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/01-setting-up-basic-express-app/app.js b/code/01-setting-up-basic-express-app/app.js new file mode 100644 index 0000000..30e291e --- /dev/null +++ b/code/01-setting-up-basic-express-app/app.js @@ -0,0 +1,9 @@ +const express = require('express'); + +const app = express(); + +app.get('/', function(req, res) { + res.send('

Hello World!

'); +}); + +app.listen(3000); \ No newline at end of file diff --git a/code/01-setting-up-basic-express-app/frontend-site/about.html b/code/01-setting-up-basic-express-app/frontend-site/about.html new file mode 100644 index 0000000..6d1e88d --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/about.html @@ -0,0 +1,53 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/01-setting-up-basic-express-app/frontend-site/confirm.html b/code/01-setting-up-basic-express-app/frontend-site/confirm.html new file mode 100644 index 0000000..9795307 --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/confirm.html @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/01-setting-up-basic-express-app/frontend-site/index.html b/code/01-setting-up-basic-express-app/frontend-site/index.html new file mode 100644 index 0000000..7a30c85 --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/index.html @@ -0,0 +1,57 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/01-setting-up-basic-express-app/frontend-site/recommend.html b/code/01-setting-up-basic-express-app/frontend-site/recommend.html new file mode 100644 index 0000000..881bdbd --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/recommend.html @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/01-setting-up-basic-express-app/frontend-site/restaurants.html b/code/01-setting-up-basic-express-app/frontend-site/restaurants.html new file mode 100644 index 0000000..a175929 --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/restaurants.html @@ -0,0 +1,73 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+

Find your next favorite restaurants with help of our other users!

+ +
+ + diff --git a/code/01-setting-up-basic-express-app/frontend-site/scripts/responsive.js b/code/01-setting-up-basic-express-app/frontend-site/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/01-setting-up-basic-express-app/frontend-site/styles/index.css b/code/01-setting-up-basic-express-app/frontend-site/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/01-setting-up-basic-express-app/frontend-site/styles/recommend.css b/code/01-setting-up-basic-express-app/frontend-site/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/01-setting-up-basic-express-app/frontend-site/styles/restaurants.css b/code/01-setting-up-basic-express-app/frontend-site/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/01-setting-up-basic-express-app/frontend-site/styles/shared.css b/code/01-setting-up-basic-express-app/frontend-site/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/01-setting-up-basic-express-app/frontend-site/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/01-setting-up-basic-express-app/package.json b/code/01-setting-up-basic-express-app/package.json new file mode 100644 index 0000000..05f7ab2 --- /dev/null +++ b/code/01-setting-up-basic-express-app/package.json @@ -0,0 +1,18 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/02-serving-html-files/app.js b/code/02-serving-html-files/app.js new file mode 100644 index 0000000..91ccd37 --- /dev/null +++ b/code/02-serving-html-files/app.js @@ -0,0 +1,32 @@ +const path = require('path'); + +const express = require('express'); + +const app = express(); + +app.get('/', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'index.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/restaurants', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'restaurants.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/recommend', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'recommend.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/confirm', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'confirm.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/about', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'about.html'); + res.sendFile(htmlFilePath); +}); + +app.listen(3000); diff --git a/code/02-serving-html-files/frontend-site/scripts/responsive.js b/code/02-serving-html-files/frontend-site/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/02-serving-html-files/frontend-site/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/02-serving-html-files/package.json b/code/02-serving-html-files/package.json new file mode 100644 index 0000000..05f7ab2 --- /dev/null +++ b/code/02-serving-html-files/package.json @@ -0,0 +1,18 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/02-serving-html-files/views/about.html b/code/02-serving-html-files/views/about.html new file mode 100644 index 0000000..fdbf17a --- /dev/null +++ b/code/02-serving-html-files/views/about.html @@ -0,0 +1,61 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/02-serving-html-files/views/confirm.html b/code/02-serving-html-files/views/confirm.html new file mode 100644 index 0000000..3cd6b2b --- /dev/null +++ b/code/02-serving-html-files/views/confirm.html @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/02-serving-html-files/views/index.html b/code/02-serving-html-files/views/index.html new file mode 100644 index 0000000..80255c4 --- /dev/null +++ b/code/02-serving-html-files/views/index.html @@ -0,0 +1,65 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/02-serving-html-files/views/recommend.html b/code/02-serving-html-files/views/recommend.html new file mode 100644 index 0000000..14716ab --- /dev/null +++ b/code/02-serving-html-files/views/recommend.html @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/02-serving-html-files/views/restaurants.html b/code/02-serving-html-files/views/restaurants.html new file mode 100644 index 0000000..501c792 --- /dev/null +++ b/code/02-serving-html-files/views/restaurants.html @@ -0,0 +1,73 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+

Find your next favorite restaurants with help of our other users!

+ +
+ + diff --git a/code/02-serving-html-files/views/styles/index.css b/code/02-serving-html-files/views/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/02-serving-html-files/views/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/02-serving-html-files/views/styles/recommend.css b/code/02-serving-html-files/views/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/02-serving-html-files/views/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/02-serving-html-files/views/styles/restaurants.css b/code/02-serving-html-files/views/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/02-serving-html-files/views/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/02-serving-html-files/views/styles/shared.css b/code/02-serving-html-files/views/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/02-serving-html-files/views/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/03-serving-static-files/app.js b/code/03-serving-static-files/app.js new file mode 100644 index 0000000..8de4df9 --- /dev/null +++ b/code/03-serving-static-files/app.js @@ -0,0 +1,34 @@ +const path = require('path'); + +const express = require('express'); + +const app = express(); + +app.use(express.static('public')); + +app.get('/', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'index.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/restaurants', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'restaurants.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/recommend', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'recommend.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/confirm', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'confirm.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/about', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'about.html'); + res.sendFile(htmlFilePath); +}); + +app.listen(3000); diff --git a/code/03-serving-static-files/package.json b/code/03-serving-static-files/package.json new file mode 100644 index 0000000..05f7ab2 --- /dev/null +++ b/code/03-serving-static-files/package.json @@ -0,0 +1,18 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/03-serving-static-files/public/scripts/responsive.js b/code/03-serving-static-files/public/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/03-serving-static-files/public/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/03-serving-static-files/public/styles/index.css b/code/03-serving-static-files/public/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/03-serving-static-files/public/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/03-serving-static-files/public/styles/recommend.css b/code/03-serving-static-files/public/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/03-serving-static-files/public/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/03-serving-static-files/public/styles/restaurants.css b/code/03-serving-static-files/public/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/03-serving-static-files/public/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/03-serving-static-files/public/styles/shared.css b/code/03-serving-static-files/public/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/03-serving-static-files/public/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/03-serving-static-files/views/about.html b/code/03-serving-static-files/views/about.html new file mode 100644 index 0000000..fdbf17a --- /dev/null +++ b/code/03-serving-static-files/views/about.html @@ -0,0 +1,61 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/03-serving-static-files/views/confirm.html b/code/03-serving-static-files/views/confirm.html new file mode 100644 index 0000000..3cd6b2b --- /dev/null +++ b/code/03-serving-static-files/views/confirm.html @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/03-serving-static-files/views/index.html b/code/03-serving-static-files/views/index.html new file mode 100644 index 0000000..80255c4 --- /dev/null +++ b/code/03-serving-static-files/views/index.html @@ -0,0 +1,65 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/03-serving-static-files/views/recommend.html b/code/03-serving-static-files/views/recommend.html new file mode 100644 index 0000000..14716ab --- /dev/null +++ b/code/03-serving-static-files/views/recommend.html @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/03-serving-static-files/views/restaurants.html b/code/03-serving-static-files/views/restaurants.html new file mode 100644 index 0000000..501c792 --- /dev/null +++ b/code/03-serving-static-files/views/restaurants.html @@ -0,0 +1,73 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+

Find your next favorite restaurants with help of our other users!

+ +
+ + diff --git a/code/04-parsing-form-data/app.js b/code/04-parsing-form-data/app.js new file mode 100644 index 0000000..3f60ed9 --- /dev/null +++ b/code/04-parsing-form-data/app.js @@ -0,0 +1,50 @@ +const fs = require('fs'); +const path = require('path'); + +const express = require('express'); + +const app = express(); + +app.use(express.static('public')); +app.use(express.urlencoded({ extended: false })); + +app.get('/', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'index.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/restaurants', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'restaurants.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/recommend', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'recommend.html'); + res.sendFile(htmlFilePath); +}); + +app.post('/recommend', function (req, res) { + const restaurant = req.body; + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + storedRestaurants.push(restaurant); + + fs.writeFileSync(filePath, JSON.stringify(storedRestaurants)); + + res.redirect('/confirm'); +}); + +app.get('/confirm', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'confirm.html'); + res.sendFile(htmlFilePath); +}); + +app.get('/about', function (req, res) { + const htmlFilePath = path.join(__dirname, 'views', 'about.html'); + res.sendFile(htmlFilePath); +}); + +app.listen(3000); diff --git a/code/04-parsing-form-data/data/restaurants.json b/code/04-parsing-form-data/data/restaurants.json new file mode 100644 index 0000000..b317620 --- /dev/null +++ b/code/04-parsing-form-data/data/restaurants.json @@ -0,0 +1,16 @@ +[ + { + "name": "Test", + "address": "Teststreet 5, Testcity", + "cuisine": "Italian", + "website": "https://mytest.com", + "description": "It's awesome!" + }, + { + "name": "Test 2", + "address": "Teststreet 10, Testcity 2", + "cuisine": "Indian", + "website": "https://mygreattest.com", + "description": "It's also amazing!" + } +] diff --git a/code/04-parsing-form-data/package-lock.json b/code/04-parsing-form-data/package-lock.json new file mode 100644 index 0000000..31936f7 --- /dev/null +++ b/code/04-parsing-form-data/package-lock.json @@ -0,0 +1,3091 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } + }, + "node_modules/@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "dev": true, + "dependencies": { + "defer-to-connect": "^1.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "node_modules/accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "dependencies": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ansi-align": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", + "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", + "dev": true, + "dependencies": { + "string-width": "^3.0.0" + } + }, + "node_modules/ansi-align/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-align/node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "node_modules/ansi-align/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ansi-align/node_modules/string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-align/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "dependencies": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/boxen": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", + "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", + "dev": true, + "dependencies": { + "ansi-align": "^3.0.0", + "camelcase": "^5.3.1", + "chalk": "^3.0.0", + "cli-boxes": "^2.2.0", + "string-width": "^4.1.0", + "term-size": "^2.1.0", + "type-fest": "^0.8.1", + "widest-line": "^3.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dev": true, + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", + "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.1", + "braces": "~3.0.2", + "glob-parent": "~5.1.0", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.5.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.1" + } + }, + "node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "node_modules/cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "dev": true, + "dependencies": { + "mimic-response": "^1.0.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "node_modules/configstore": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "dev": true, + "dependencies": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "dev": true, + "dependencies": { + "mimic-response": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", + "dev": true + }, + "node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + }, + "node_modules/dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dev": true, + "dependencies": { + "is-obj": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/escape-goat": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "dependencies": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/global-dirs": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", + "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", + "dev": true, + "dependencies": { + "ini": "1.3.7" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "dev": true, + "dependencies": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", + "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-yarn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", + "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "dev": true + }, + "node_modules/http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", + "dev": true + }, + "node_modules/import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "node_modules/ini": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", + "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", + "dev": true + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-installed-globally": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", + "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", + "dev": true, + "dependencies": { + "global-dirs": "^2.0.1", + "is-path-inside": "^3.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-npm": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", + "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "node_modules/is-yarn-global": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", + "dev": true + }, + "node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", + "dev": true + }, + "node_modules/keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.0" + } + }, + "node_modules/latest-version": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "dev": true, + "dependencies": { + "package-json": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", + "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.31", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", + "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", + "dependencies": { + "mime-db": "1.48.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/nodemon": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.7.tgz", + "integrity": "sha512-XHzK69Awgnec9UzHr1kc8EomQh4sjTQ8oRf8TsGrSmHDx9/UmiGG9E/mM3BuTfNeFwdNBvrqQq/RHL0xIeyFOA==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "chokidar": "^3.2.2", + "debug": "^3.2.6", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.0.4", + "pstree.remy": "^1.1.7", + "semver": "^5.7.1", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.3", + "update-notifier": "^4.1.0" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", + "dev": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "dev": true, + "dependencies": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/package-json/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "node_modules/picomatch": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", + "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/pupa": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", + "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", + "dev": true, + "dependencies": { + "escape-goat": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "dependencies": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/readdirp": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", + "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/registry-auth-token": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.1.tgz", + "integrity": "sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==", + "dev": true, + "dependencies": { + "rc": "^1.2.8" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/registry-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", + "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", + "dev": true, + "dependencies": { + "rc": "^1.2.8" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "dev": true, + "dependencies": { + "lowercase-keys": "^1.0.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/semver-diff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "dev": true, + "dependencies": { + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/semver-diff/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "dependencies": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + }, + "node_modules/serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + }, + "node_modules/signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "dev": true + }, + "node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/string-width": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "dependencies": { + "nopt": "~1.0.10" + }, + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/undefsafe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", + "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", + "dev": true, + "dependencies": { + "debug": "^2.2.0" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dev": true, + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-notifier": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", + "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", + "dev": true, + "dependencies": { + "boxen": "^4.2.0", + "chalk": "^3.0.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.3.1", + "is-npm": "^4.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.0.0", + "pupa": "^2.0.1", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/yeoman/update-notifier?sponsor=1" + } + }, + "node_modules/url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "dev": true, + "dependencies": { + "prepend-http": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "dev": true, + "dependencies": { + "string-width": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/xdg-basedir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", + "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", + "dev": true, + "engines": { + "node": ">=8" + } + } + }, + "dependencies": { + "@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "dev": true + }, + "@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "dev": true, + "requires": { + "defer-to-connect": "^1.0.1" + } + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "requires": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + } + }, + "ansi-align": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", + "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", + "dev": true, + "requires": { + "string-width": "^3.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } + } + }, + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true + }, + "body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "requires": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + } + }, + "boxen": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", + "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", + "dev": true, + "requires": { + "ansi-align": "^3.0.0", + "camelcase": "^5.3.1", + "chalk": "^3.0.0", + "cli-boxes": "^2.2.0", + "string-width": "^4.1.0", + "term-size": "^2.1.0", + "type-fest": "^0.8.1", + "widest-line": "^3.1.0" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" + }, + "cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dev": true, + "requires": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "dependencies": { + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true + } + } + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "chokidar": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", + "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", + "dev": true, + "requires": { + "anymatch": "~3.1.1", + "braces": "~3.0.2", + "fsevents": "~2.3.1", + "glob-parent": "~5.1.0", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.5.0" + } + }, + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "dev": true + }, + "clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "configstore": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "dev": true, + "requires": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + } + }, + "content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "requires": { + "safe-buffer": "5.1.2" + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", + "dev": true + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + }, + "dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dev": true, + "requires": { + "is-obj": "^2.0.0" + } + }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "escape-goat": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", + "dev": true + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + }, + "express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "requires": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + } + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "global-dirs": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", + "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", + "dev": true, + "requires": { + "ini": "1.3.7" + } + }, + "got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "dev": true, + "requires": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + } + }, + "graceful-fs": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", + "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-yarn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", + "dev": true + }, + "http-cache-semantics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", + "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "dev": true + }, + "http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", + "dev": true + }, + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "ini": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", + "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", + "dev": true + }, + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "requires": { + "ci-info": "^2.0.0" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-installed-globally": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", + "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", + "dev": true, + "requires": { + "global-dirs": "^2.0.1", + "is-path-inside": "^3.0.1" + } + }, + "is-npm": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", + "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "dev": true + }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "is-yarn-global": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", + "dev": true + }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", + "dev": true + }, + "keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dev": true, + "requires": { + "json-buffer": "3.0.0" + } + }, + "latest-version": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "dev": true, + "requires": { + "package-json": "^6.3.0" + } + }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", + "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==" + }, + "mime-types": { + "version": "2.1.31", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", + "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", + "requires": { + "mime-db": "1.48.0" + } + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" + }, + "nodemon": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.7.tgz", + "integrity": "sha512-XHzK69Awgnec9UzHr1kc8EomQh4sjTQ8oRf8TsGrSmHDx9/UmiGG9E/mM3BuTfNeFwdNBvrqQq/RHL0xIeyFOA==", + "dev": true, + "requires": { + "chokidar": "^3.2.2", + "debug": "^3.2.6", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.0.4", + "pstree.remy": "^1.1.7", + "semver": "^5.7.1", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.3", + "update-notifier": "^4.1.0" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + } + } + }, + "nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "dev": true + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "requires": { + "ee-first": "1.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "dev": true + }, + "package-json": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "dev": true, + "requires": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "picomatch": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", + "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "dev": true + }, + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "dev": true + }, + "proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + } + }, + "pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "pupa": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", + "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", + "dev": true, + "requires": { + "escape-goat": "^2.0.0" + } + }, + "qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "requires": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + } + }, + "readdirp": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", + "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "registry-auth-token": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.1.tgz", + "integrity": "sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==", + "dev": true, + "requires": { + "rc": "^1.2.8" + } + }, + "registry-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", + "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", + "dev": true, + "requires": { + "rc": "^1.2.8" + } + }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "dev": true, + "requires": { + "lowercase-keys": "^1.0.0" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "semver-diff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "dev": true, + "requires": { + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "requires": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "dependencies": { + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + } + } + }, + "serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + } + }, + "setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + }, + "signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "dev": true + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" + }, + "string-width": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", + "dev": true + }, + "to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" + }, + "touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "requires": { + "nopt": "~1.0.10" + } + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "undefsafe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", + "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", + "dev": true, + "requires": { + "debug": "^2.2.0" + } + }, + "unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dev": true, + "requires": { + "crypto-random-string": "^2.0.0" + } + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + }, + "update-notifier": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", + "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", + "dev": true, + "requires": { + "boxen": "^4.2.0", + "chalk": "^3.0.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.3.1", + "is-npm": "^4.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.0.0", + "pupa": "^2.0.1", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + } + }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "dev": true, + "requires": { + "prepend-http": "^2.0.0" + } + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + }, + "widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "dev": true, + "requires": { + "string-width": "^4.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "xdg-basedir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", + "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", + "dev": true + } + } +} diff --git a/code/04-parsing-form-data/package.json b/code/04-parsing-form-data/package.json new file mode 100644 index 0000000..05f7ab2 --- /dev/null +++ b/code/04-parsing-form-data/package.json @@ -0,0 +1,18 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/04-parsing-form-data/public/scripts/responsive.js b/code/04-parsing-form-data/public/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/04-parsing-form-data/public/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/04-parsing-form-data/public/styles/index.css b/code/04-parsing-form-data/public/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/04-parsing-form-data/public/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/04-parsing-form-data/public/styles/recommend.css b/code/04-parsing-form-data/public/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/04-parsing-form-data/public/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/04-parsing-form-data/public/styles/restaurants.css b/code/04-parsing-form-data/public/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/04-parsing-form-data/public/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/04-parsing-form-data/public/styles/shared.css b/code/04-parsing-form-data/public/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/04-parsing-form-data/public/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/04-parsing-form-data/views/about.html b/code/04-parsing-form-data/views/about.html new file mode 100644 index 0000000..fdbf17a --- /dev/null +++ b/code/04-parsing-form-data/views/about.html @@ -0,0 +1,61 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/04-parsing-form-data/views/confirm.html b/code/04-parsing-form-data/views/confirm.html new file mode 100644 index 0000000..3cd6b2b --- /dev/null +++ b/code/04-parsing-form-data/views/confirm.html @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/04-parsing-form-data/views/index.html b/code/04-parsing-form-data/views/index.html new file mode 100644 index 0000000..80255c4 --- /dev/null +++ b/code/04-parsing-form-data/views/index.html @@ -0,0 +1,65 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/04-parsing-form-data/views/recommend.html b/code/04-parsing-form-data/views/recommend.html new file mode 100644 index 0000000..026266b --- /dev/null +++ b/code/04-parsing-form-data/views/recommend.html @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/04-parsing-form-data/views/restaurants.html b/code/04-parsing-form-data/views/restaurants.html new file mode 100644 index 0000000..501c792 --- /dev/null +++ b/code/04-parsing-form-data/views/restaurants.html @@ -0,0 +1,73 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+

Find your next favorite restaurants with help of our other users!

+ +
+ + diff --git a/code/05-adding-ejs-template-engine/app.js b/code/05-adding-ejs-template-engine/app.js new file mode 100644 index 0000000..2b2cbe2 --- /dev/null +++ b/code/05-adding-ejs-template-engine/app.js @@ -0,0 +1,48 @@ +const fs = require('fs'); +const path = require('path'); + +const express = require('express'); + +const app = express(); + +app.set('views', path.join(__dirname, 'views')); +app.set('view engine', 'ejs'); + +app.use(express.static('public')); +app.use(express.urlencoded({ extended: false })); + +app.get('/', function (req, res) { + res.render('index'); +}); + +app.get('/restaurants', function (req, res) { + res.render('restaurants'); +}); + +app.get('/recommend', function (req, res) { + res.render('recommend'); +}); + +app.post('/recommend', function (req, res) { + const restaurant = req.body; + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + storedRestaurants.push(restaurant); + + fs.writeFileSync(filePath, JSON.stringify(storedRestaurants)); + + res.redirect('/confirm'); +}); + +app.get('/confirm', function (req, res) { + res.render('confirm'); +}); + +app.get('/about', function (req, res) { + res.render('about'); +}); + +app.listen(3000); diff --git a/code/05-adding-ejs-template-engine/data/restaurants.json b/code/05-adding-ejs-template-engine/data/restaurants.json new file mode 100644 index 0000000..b317620 --- /dev/null +++ b/code/05-adding-ejs-template-engine/data/restaurants.json @@ -0,0 +1,16 @@ +[ + { + "name": "Test", + "address": "Teststreet 5, Testcity", + "cuisine": "Italian", + "website": "https://mytest.com", + "description": "It's awesome!" + }, + { + "name": "Test 2", + "address": "Teststreet 10, Testcity 2", + "cuisine": "Indian", + "website": "https://mygreattest.com", + "description": "It's also amazing!" + } +] diff --git a/code/05-adding-ejs-template-engine/package.json b/code/05-adding-ejs-template-engine/package.json new file mode 100644 index 0000000..bb15ef8 --- /dev/null +++ b/code/05-adding-ejs-template-engine/package.json @@ -0,0 +1,19 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "ejs": "^3.1.6", + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/05-adding-ejs-template-engine/public/scripts/responsive.js b/code/05-adding-ejs-template-engine/public/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/05-adding-ejs-template-engine/public/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/05-adding-ejs-template-engine/public/styles/index.css b/code/05-adding-ejs-template-engine/public/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/05-adding-ejs-template-engine/public/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/05-adding-ejs-template-engine/public/styles/recommend.css b/code/05-adding-ejs-template-engine/public/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/05-adding-ejs-template-engine/public/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/05-adding-ejs-template-engine/public/styles/restaurants.css b/code/05-adding-ejs-template-engine/public/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/05-adding-ejs-template-engine/public/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/05-adding-ejs-template-engine/public/styles/shared.css b/code/05-adding-ejs-template-engine/public/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/05-adding-ejs-template-engine/public/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/05-adding-ejs-template-engine/views/about.ejs b/code/05-adding-ejs-template-engine/views/about.ejs new file mode 100644 index 0000000..fdbf17a --- /dev/null +++ b/code/05-adding-ejs-template-engine/views/about.ejs @@ -0,0 +1,61 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/05-adding-ejs-template-engine/views/confirm.ejs b/code/05-adding-ejs-template-engine/views/confirm.ejs new file mode 100644 index 0000000..3cd6b2b --- /dev/null +++ b/code/05-adding-ejs-template-engine/views/confirm.ejs @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/05-adding-ejs-template-engine/views/index.ejs b/code/05-adding-ejs-template-engine/views/index.ejs new file mode 100644 index 0000000..80255c4 --- /dev/null +++ b/code/05-adding-ejs-template-engine/views/index.ejs @@ -0,0 +1,65 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/05-adding-ejs-template-engine/views/recommend.ejs b/code/05-adding-ejs-template-engine/views/recommend.ejs new file mode 100644 index 0000000..026266b --- /dev/null +++ b/code/05-adding-ejs-template-engine/views/recommend.ejs @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/05-adding-ejs-template-engine/views/restaurants.ejs b/code/05-adding-ejs-template-engine/views/restaurants.ejs new file mode 100644 index 0000000..501c792 --- /dev/null +++ b/code/05-adding-ejs-template-engine/views/restaurants.ejs @@ -0,0 +1,73 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+

Find your next favorite restaurants with help of our other users!

+ +
+ + diff --git a/code/06-rendering-dynamic-content/app.js b/code/06-rendering-dynamic-content/app.js new file mode 100644 index 0000000..b087407 --- /dev/null +++ b/code/06-rendering-dynamic-content/app.js @@ -0,0 +1,53 @@ +const fs = require('fs'); +const path = require('path'); + +const express = require('express'); + +const app = express(); + +app.set('views', path.join(__dirname, 'views')); +app.set('view engine', 'ejs'); + +app.use(express.static('public')); +app.use(express.urlencoded({ extended: false })); + +app.get('/', function (req, res) { + res.render('index'); +}); + +app.get('/restaurants', function (req, res) { + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + res.render('restaurants', { numberOfRestaurants: storedRestaurants.length }); +}); + +app.get('/recommend', function (req, res) { + res.render('recommend'); +}); + +app.post('/recommend', function (req, res) { + const restaurant = req.body; + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + storedRestaurants.push(restaurant); + + fs.writeFileSync(filePath, JSON.stringify(storedRestaurants)); + + res.redirect('/confirm'); +}); + +app.get('/confirm', function (req, res) { + res.render('confirm'); +}); + +app.get('/about', function (req, res) { + res.render('about'); +}); + +app.listen(3000); diff --git a/code/06-rendering-dynamic-content/data/restaurants.json b/code/06-rendering-dynamic-content/data/restaurants.json new file mode 100644 index 0000000..b8fa327 --- /dev/null +++ b/code/06-rendering-dynamic-content/data/restaurants.json @@ -0,0 +1 @@ +[{"name":"Test","address":"Teststreet 5, Testcity","cuisine":"Italian","website":"https://mytest.com","description":"It's awesome!"},{"name":"Test 2","address":"Teststreet 10, Testcity 2","cuisine":"Indian","website":"https://mygreattest.com","description":"It's also amazing!"},{"name":"Restaurant 3","address":"Awesomestreet 5, Mycity","cuisine":"German","website":"https://awesome.com","description":"It's amazing! Of course!"}] \ No newline at end of file diff --git a/code/06-rendering-dynamic-content/package.json b/code/06-rendering-dynamic-content/package.json new file mode 100644 index 0000000..bb15ef8 --- /dev/null +++ b/code/06-rendering-dynamic-content/package.json @@ -0,0 +1,19 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "ejs": "^3.1.6", + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/06-rendering-dynamic-content/public/scripts/responsive.js b/code/06-rendering-dynamic-content/public/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/06-rendering-dynamic-content/public/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/06-rendering-dynamic-content/public/styles/index.css b/code/06-rendering-dynamic-content/public/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/06-rendering-dynamic-content/public/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/06-rendering-dynamic-content/public/styles/recommend.css b/code/06-rendering-dynamic-content/public/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/06-rendering-dynamic-content/public/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/06-rendering-dynamic-content/public/styles/restaurants.css b/code/06-rendering-dynamic-content/public/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/06-rendering-dynamic-content/public/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/06-rendering-dynamic-content/public/styles/shared.css b/code/06-rendering-dynamic-content/public/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/06-rendering-dynamic-content/public/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/06-rendering-dynamic-content/views/about.ejs b/code/06-rendering-dynamic-content/views/about.ejs new file mode 100644 index 0000000..fdbf17a --- /dev/null +++ b/code/06-rendering-dynamic-content/views/about.ejs @@ -0,0 +1,61 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/06-rendering-dynamic-content/views/confirm.ejs b/code/06-rendering-dynamic-content/views/confirm.ejs new file mode 100644 index 0000000..3cd6b2b --- /dev/null +++ b/code/06-rendering-dynamic-content/views/confirm.ejs @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/06-rendering-dynamic-content/views/index.ejs b/code/06-rendering-dynamic-content/views/index.ejs new file mode 100644 index 0000000..80255c4 --- /dev/null +++ b/code/06-rendering-dynamic-content/views/index.ejs @@ -0,0 +1,65 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/06-rendering-dynamic-content/views/recommend.ejs b/code/06-rendering-dynamic-content/views/recommend.ejs new file mode 100644 index 0000000..026266b --- /dev/null +++ b/code/06-rendering-dynamic-content/views/recommend.ejs @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/06-rendering-dynamic-content/views/restaurants.ejs b/code/06-rendering-dynamic-content/views/restaurants.ejs new file mode 100644 index 0000000..5c00d3c --- /dev/null +++ b/code/06-rendering-dynamic-content/views/restaurants.ejs @@ -0,0 +1,74 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+

Find your next favorite restaurants with help of our other users!

+

We found <%= numberOfRestaurants %> restaurants.

+ +
+ + diff --git a/code/07-outputting-repeated-content/app.js b/code/07-outputting-repeated-content/app.js new file mode 100644 index 0000000..e550d0d --- /dev/null +++ b/code/07-outputting-repeated-content/app.js @@ -0,0 +1,56 @@ +const fs = require('fs'); +const path = require('path'); + +const express = require('express'); + +const app = express(); + +app.set('views', path.join(__dirname, 'views')); +app.set('view engine', 'ejs'); + +app.use(express.static('public')); +app.use(express.urlencoded({ extended: false })); + +app.get('/', function (req, res) { + res.render('index'); +}); + +app.get('/restaurants', function (req, res) { + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + res.render('restaurants', { + numberOfRestaurants: storedRestaurants.length, + restaurants: storedRestaurants, + }); +}); + +app.get('/recommend', function (req, res) { + res.render('recommend'); +}); + +app.post('/recommend', function (req, res) { + const restaurant = req.body; + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + storedRestaurants.push(restaurant); + + fs.writeFileSync(filePath, JSON.stringify(storedRestaurants)); + + res.redirect('/confirm'); +}); + +app.get('/confirm', function (req, res) { + res.render('confirm'); +}); + +app.get('/about', function (req, res) { + res.render('about'); +}); + +app.listen(3000); diff --git a/code/07-outputting-repeated-content/data/restaurants.json b/code/07-outputting-repeated-content/data/restaurants.json new file mode 100644 index 0000000..d9777ec --- /dev/null +++ b/code/07-outputting-repeated-content/data/restaurants.json @@ -0,0 +1,23 @@ +[ + { + "name": "Test", + "address": "Teststreet 5, Testcity", + "cuisine": "Italian", + "website": "https://mytest.com", + "description": "It's awesome!" + }, + { + "name": "Test 2", + "address": "Teststreet 10, Testcity 2", + "cuisine": "Indian", + "website": "https://mygreattest.com", + "description": "It's also amazing!" + }, + { + "name": "Restaurant 3", + "address": "Awesomestreet 5, Mycity", + "cuisine": "German", + "website": "https://awesome.com", + "description": "It's amazing! Of course!" + } +] diff --git a/code/07-outputting-repeated-content/package.json b/code/07-outputting-repeated-content/package.json new file mode 100644 index 0000000..bb15ef8 --- /dev/null +++ b/code/07-outputting-repeated-content/package.json @@ -0,0 +1,19 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "ejs": "^3.1.6", + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/07-outputting-repeated-content/public/scripts/responsive.js b/code/07-outputting-repeated-content/public/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/07-outputting-repeated-content/public/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/07-outputting-repeated-content/public/styles/index.css b/code/07-outputting-repeated-content/public/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/07-outputting-repeated-content/public/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/07-outputting-repeated-content/public/styles/recommend.css b/code/07-outputting-repeated-content/public/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/07-outputting-repeated-content/public/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/07-outputting-repeated-content/public/styles/restaurants.css b/code/07-outputting-repeated-content/public/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/07-outputting-repeated-content/public/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/07-outputting-repeated-content/public/styles/shared.css b/code/07-outputting-repeated-content/public/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/07-outputting-repeated-content/public/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/07-outputting-repeated-content/views/about.ejs b/code/07-outputting-repeated-content/views/about.ejs new file mode 100644 index 0000000..fdbf17a --- /dev/null +++ b/code/07-outputting-repeated-content/views/about.ejs @@ -0,0 +1,61 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/07-outputting-repeated-content/views/confirm.ejs b/code/07-outputting-repeated-content/views/confirm.ejs new file mode 100644 index 0000000..3cd6b2b --- /dev/null +++ b/code/07-outputting-repeated-content/views/confirm.ejs @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/07-outputting-repeated-content/views/index.ejs b/code/07-outputting-repeated-content/views/index.ejs new file mode 100644 index 0000000..80255c4 --- /dev/null +++ b/code/07-outputting-repeated-content/views/index.ejs @@ -0,0 +1,65 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/07-outputting-repeated-content/views/recommend.ejs b/code/07-outputting-repeated-content/views/recommend.ejs new file mode 100644 index 0000000..026266b --- /dev/null +++ b/code/07-outputting-repeated-content/views/recommend.ejs @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/07-outputting-repeated-content/views/restaurants.ejs b/code/07-outputting-repeated-content/views/restaurants.ejs new file mode 100644 index 0000000..df754ff --- /dev/null +++ b/code/07-outputting-repeated-content/views/restaurants.ejs @@ -0,0 +1,75 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+

Find your next favorite restaurants with help of our other users!

+

We found <%= numberOfRestaurants %> restaurants.

+ +
+ + diff --git a/code/08-rendering-conditional-content/app.js b/code/08-rendering-conditional-content/app.js new file mode 100644 index 0000000..e550d0d --- /dev/null +++ b/code/08-rendering-conditional-content/app.js @@ -0,0 +1,56 @@ +const fs = require('fs'); +const path = require('path'); + +const express = require('express'); + +const app = express(); + +app.set('views', path.join(__dirname, 'views')); +app.set('view engine', 'ejs'); + +app.use(express.static('public')); +app.use(express.urlencoded({ extended: false })); + +app.get('/', function (req, res) { + res.render('index'); +}); + +app.get('/restaurants', function (req, res) { + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + res.render('restaurants', { + numberOfRestaurants: storedRestaurants.length, + restaurants: storedRestaurants, + }); +}); + +app.get('/recommend', function (req, res) { + res.render('recommend'); +}); + +app.post('/recommend', function (req, res) { + const restaurant = req.body; + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + storedRestaurants.push(restaurant); + + fs.writeFileSync(filePath, JSON.stringify(storedRestaurants)); + + res.redirect('/confirm'); +}); + +app.get('/confirm', function (req, res) { + res.render('confirm'); +}); + +app.get('/about', function (req, res) { + res.render('about'); +}); + +app.listen(3000); diff --git a/code/08-rendering-conditional-content/data/restaurants.json b/code/08-rendering-conditional-content/data/restaurants.json new file mode 100644 index 0000000..d9777ec --- /dev/null +++ b/code/08-rendering-conditional-content/data/restaurants.json @@ -0,0 +1,23 @@ +[ + { + "name": "Test", + "address": "Teststreet 5, Testcity", + "cuisine": "Italian", + "website": "https://mytest.com", + "description": "It's awesome!" + }, + { + "name": "Test 2", + "address": "Teststreet 10, Testcity 2", + "cuisine": "Indian", + "website": "https://mygreattest.com", + "description": "It's also amazing!" + }, + { + "name": "Restaurant 3", + "address": "Awesomestreet 5, Mycity", + "cuisine": "German", + "website": "https://awesome.com", + "description": "It's amazing! Of course!" + } +] diff --git a/code/08-rendering-conditional-content/package.json b/code/08-rendering-conditional-content/package.json new file mode 100644 index 0000000..bb15ef8 --- /dev/null +++ b/code/08-rendering-conditional-content/package.json @@ -0,0 +1,19 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "ejs": "^3.1.6", + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/08-rendering-conditional-content/public/scripts/responsive.js b/code/08-rendering-conditional-content/public/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/08-rendering-conditional-content/public/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/08-rendering-conditional-content/public/styles/index.css b/code/08-rendering-conditional-content/public/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/08-rendering-conditional-content/public/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/08-rendering-conditional-content/public/styles/recommend.css b/code/08-rendering-conditional-content/public/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/08-rendering-conditional-content/public/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/08-rendering-conditional-content/public/styles/restaurants.css b/code/08-rendering-conditional-content/public/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/08-rendering-conditional-content/public/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/08-rendering-conditional-content/public/styles/shared.css b/code/08-rendering-conditional-content/public/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/08-rendering-conditional-content/public/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/08-rendering-conditional-content/views/about.ejs b/code/08-rendering-conditional-content/views/about.ejs new file mode 100644 index 0000000..fdbf17a --- /dev/null +++ b/code/08-rendering-conditional-content/views/about.ejs @@ -0,0 +1,61 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/08-rendering-conditional-content/views/confirm.ejs b/code/08-rendering-conditional-content/views/confirm.ejs new file mode 100644 index 0000000..3cd6b2b --- /dev/null +++ b/code/08-rendering-conditional-content/views/confirm.ejs @@ -0,0 +1,54 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + +
+ + + +
+ +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/08-rendering-conditional-content/views/index.ejs b/code/08-rendering-conditional-content/views/index.ejs new file mode 100644 index 0000000..80255c4 --- /dev/null +++ b/code/08-rendering-conditional-content/views/index.ejs @@ -0,0 +1,65 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Make the world a tastier place!

+

+ Share your favorite restaurants or find recommendations of other users! +

+ +
+ + diff --git a/code/08-rendering-conditional-content/views/recommend.ejs b/code/08-rendering-conditional-content/views/recommend.ejs new file mode 100644 index 0000000..026266b --- /dev/null +++ b/code/08-rendering-conditional-content/views/recommend.ejs @@ -0,0 +1,88 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Share your favorite restaurant!

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/code/08-rendering-conditional-content/views/restaurants.ejs b/code/08-rendering-conditional-content/views/restaurants.ejs new file mode 100644 index 0000000..48a97a4 --- /dev/null +++ b/code/08-rendering-conditional-content/views/restaurants.ejs @@ -0,0 +1,80 @@ + + + + + + + Eatwell - Make The World A Tastier Place + + + + + + + +
+ + + +
+ +
+

Recommended restaurants

+ <% if (numberOfRestaurants === 0) { %> +

Unfortunately, we have no restaurants yet - maybe start recommending some?

+ <% } else { %> +

Find your next favorite restaurants with help of our other users!

+

We found <%= numberOfRestaurants %> restaurants.

+ + <% } %> + +
+ + diff --git a/code/09-including-partial-content/app.js b/code/09-including-partial-content/app.js new file mode 100644 index 0000000..e550d0d --- /dev/null +++ b/code/09-including-partial-content/app.js @@ -0,0 +1,56 @@ +const fs = require('fs'); +const path = require('path'); + +const express = require('express'); + +const app = express(); + +app.set('views', path.join(__dirname, 'views')); +app.set('view engine', 'ejs'); + +app.use(express.static('public')); +app.use(express.urlencoded({ extended: false })); + +app.get('/', function (req, res) { + res.render('index'); +}); + +app.get('/restaurants', function (req, res) { + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + res.render('restaurants', { + numberOfRestaurants: storedRestaurants.length, + restaurants: storedRestaurants, + }); +}); + +app.get('/recommend', function (req, res) { + res.render('recommend'); +}); + +app.post('/recommend', function (req, res) { + const restaurant = req.body; + const filePath = path.join(__dirname, 'data', 'restaurants.json'); + + const fileData = fs.readFileSync(filePath); + const storedRestaurants = JSON.parse(fileData); + + storedRestaurants.push(restaurant); + + fs.writeFileSync(filePath, JSON.stringify(storedRestaurants)); + + res.redirect('/confirm'); +}); + +app.get('/confirm', function (req, res) { + res.render('confirm'); +}); + +app.get('/about', function (req, res) { + res.render('about'); +}); + +app.listen(3000); diff --git a/code/09-including-partial-content/data/restaurants.json b/code/09-including-partial-content/data/restaurants.json new file mode 100644 index 0000000..d9777ec --- /dev/null +++ b/code/09-including-partial-content/data/restaurants.json @@ -0,0 +1,23 @@ +[ + { + "name": "Test", + "address": "Teststreet 5, Testcity", + "cuisine": "Italian", + "website": "https://mytest.com", + "description": "It's awesome!" + }, + { + "name": "Test 2", + "address": "Teststreet 10, Testcity 2", + "cuisine": "Indian", + "website": "https://mygreattest.com", + "description": "It's also amazing!" + }, + { + "name": "Restaurant 3", + "address": "Awesomestreet 5, Mycity", + "cuisine": "German", + "website": "https://awesome.com", + "description": "It's amazing! Of course!" + } +] diff --git a/code/09-including-partial-content/package.json b/code/09-including-partial-content/package.json new file mode 100644 index 0000000..bb15ef8 --- /dev/null +++ b/code/09-including-partial-content/package.json @@ -0,0 +1,19 @@ +{ + "name": "web-development-complete-guide", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "start": "nodemon app.js" + }, + "keywords": [], + "author": "Maximilian Schwarzmüller (Academind GmbH)", + "license": "MIT", + "dependencies": { + "ejs": "^3.1.6", + "express": "^4.17.1" + }, + "devDependencies": { + "nodemon": "^2.0.7" + } +} diff --git a/code/09-including-partial-content/public/scripts/responsive.js b/code/09-including-partial-content/public/scripts/responsive.js new file mode 100644 index 0000000..842fa43 --- /dev/null +++ b/code/09-including-partial-content/public/scripts/responsive.js @@ -0,0 +1,8 @@ +const drawerBtnElement = document.getElementById('drawer-btn'); +const mobileDarwerElement = document.getElementById('mobile-drawer'); + +function toggleDrawer() { + mobileDarwerElement.classList.toggle('open'); +} + +drawerBtnElement.addEventListener('click', toggleDrawer); \ No newline at end of file diff --git a/code/09-including-partial-content/public/styles/index.css b/code/09-including-partial-content/public/styles/index.css new file mode 100644 index 0000000..454bf96 --- /dev/null +++ b/code/09-including-partial-content/public/styles/index.css @@ -0,0 +1,45 @@ +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main ul { + list-style: none; + margin: 3rem 0; + padding: 0; + display: flex; +} + +main li { + width: 20rem; + height: 10rem; + border-radius: 6px; + margin: 0 1rem; + overflow: hidden; +} + +main li a { + height: 100%; + width: 100%; + display: flex; + background-color: rgb(48, 42, 31); + justify-content: center; + align-items: center; + text-decoration: none; + color: rgb(218, 205, 183); + font-size: 1.25rem; + padding: 1rem; + box-sizing: border-box; +} + +main li a:hover, +main li a:active { + background-color: rgb(100, 81, 43); +} \ No newline at end of file diff --git a/code/09-including-partial-content/public/styles/recommend.css b/code/09-including-partial-content/public/styles/recommend.css new file mode 100644 index 0000000..79bc840 --- /dev/null +++ b/code/09-including-partial-content/public/styles/recommend.css @@ -0,0 +1,55 @@ +main { + max-width: 40rem; +} + +form { + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + padding: 1rem; + background-color: rgb(216, 190, 133); + text-align: left; +} + +.form-control { + margin-bottom: 0.75rem; +} + +label, +input, +textarea { + display: block; + width: 100%; +} + +label { + color: rgb(80, 57, 7); + margin-bottom: 0.25rem; +} + +input, +textarea { + font: inherit; + padding: 0.25rem; + border-radius: 4px; + background-color: rgb(252, 248, 239); + border: 1px solid rgb(121, 85, 7); + color: rgb(121, 85, 7); + box-sizing: border-box; +} + +input:focus, +textarea:focus { + background-color: rgb(252, 234, 197); +} + +button { + cursor: pointer; + padding: 0.5rem 1.5rem; + background-color: rgb(189, 130, 41); + border-radius: 4px; + color: white; + border: 1px solid rgb(202, 158, 62); +} + +button:hover { + background-color: rgb(202, 141, 62); +} diff --git a/code/09-including-partial-content/public/styles/restaurants.css b/code/09-including-partial-content/public/styles/restaurants.css new file mode 100644 index 0000000..9a79034 --- /dev/null +++ b/code/09-including-partial-content/public/styles/restaurants.css @@ -0,0 +1,56 @@ +main { + max-width: 40rem; +} + +#restaurants-list { + list-style: none; + margin: 2rem 0; + padding: 0; +} + +.restaurant-item { + margin: 1rem 0; + padding: 1rem; + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); + background-color: rgb(250, 233, 194); + color: rgb(110, 78, 7); + text-align: left; +} + +.restaurant-item h2 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-size: 1.25rem; + margin: 0.25rem 0; +} + +.restaurant-item p { + margin: 0.2rem 0; + color: rgb(110, 78, 7); +} + +.restaurant-meta { + margin-bottom: 0.5rem; +} + +.restaurant-meta p { + color: rgb(170, 148, 95); +} + +.restaurant-actions { + margin-top: 1rem; + text-align: right; +} + +.restaurant-actions a { + padding: 0.5rem 1.5rem; + background-color: rgb(202, 158, 62); + border-radius: 4px; + color: white; + text-decoration: none; +} + +.restaurant-actions a:hover, +.restaurant-actions a:active { + background-color: rgb(202, 141, 62); +} diff --git a/code/09-including-partial-content/public/styles/shared.css b/code/09-including-partial-content/public/styles/shared.css new file mode 100644 index 0000000..b193fd2 --- /dev/null +++ b/code/09-including-partial-content/public/styles/shared.css @@ -0,0 +1,154 @@ +body { + font-family: 'Roboto', sans-serif; + margin: 0; + background-color: rgb(250, 237, 208); + font-size: 1.5rem; +} + +main { + width: 95%; + max-width: 50rem; + margin: 3rem auto; + text-align: center; +} + +main h1 { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + color:rgb(202, 158, 62); +} + +main p { + color: rgb(95, 83, 58); +} + +#main-header { + width: 100%; + height: 5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 5%; + box-sizing: border-box; +} + +#logo { + font-family: 'Roboto Condensed', 'Roboto', sans-serif; + font-weight: bold; + font-size: 2rem; +} + +#logo a { + text-decoration: none; + color: white; + padding: 1rem 2.5rem; + background-color: rgb(240, 167, 9); + border-radius: 50%; +} + +#main-header nav { + display: none; +} + +#main-header ul { + margin: 0; + padding: 0; + display: flex; + list-style: none; +} + +#main-header .nav-item { + margin-left: 1rem; +} + +#main-header .nav-item a { + text-decoration: none; + color: rgb(139, 100, 8); + padding: 0.25rem 0.75rem; + border-radius: 4px; +} + +#main-header .nav-item a:hover, +#main-header .nav-item a:active { + background-color: rgb(245, 222, 173); +} + +#drawer-btn { + display: flex; + flex-direction: column; + width: 2rem; + height: 2rem; + justify-content: space-around; + padding: 0.1rem; + border: none; + background-color: transparent; + cursor: pointer; +} + +#drawer-btn span { + width: 2rem; + height: 2px; + background-color: rgb(119, 83, 5); +} + +#mobile-drawer { + display: none; +} + +#mobile-drawer.open { + display: block; + position: fixed; + top: 5rem; + left: 0; + width: 100%; + height: calc(100vh - 5rem); + background-color: rgb(43, 31, 5); +} + +#mobile-drawer ul { + list-style: none; + display: flex; + flex-direction: column; + align-items: center; + margin: 3rem 0; + padding: 0; +} + +#mobile-drawer .nav-item { + margin: 1.5rem 0; +} + +#mobile-drawer .nav-item a { + text-decoration: none; + color: white; + font-size: 1.5rem; +} + +#mobile-drawer .nav-item a:hover, +#mobile-drawer .nav-item a:active { + color: rgb(240, 167, 9); +} + +@media (min-width: 60rem) { + #main-header { + padding: 0 5%; + } + + #main-header nav { + display: block; + } + + #drawer-btn { + display: none; + } + + #mobile-drawer.open { + display: none; + } +} + + +@media (min-width: 80rem) { + #main-header { + padding: 0 15%; + } +} \ No newline at end of file diff --git a/code/09-including-partial-content/views/about.ejs b/code/09-including-partial-content/views/about.ejs new file mode 100644 index 0000000..81537ba --- /dev/null +++ b/code/09-including-partial-content/views/about.ejs @@ -0,0 +1,21 @@ + + + + <%- include('includes/head') %> + + + <%- include('includes/header') %> + <%- include('includes/side-drawer') %> +
+

Make the world a tastier place!

+

+ Eatwell is a website for food enthusiasts that allows you to share and + discover amazing restaurants from all over the world! +

+

+ You don't need to sign up or create any account - you can simply start + sharing right away! +

+
+ + diff --git a/code/09-including-partial-content/views/confirm.ejs b/code/09-including-partial-content/views/confirm.ejs new file mode 100644 index 0000000..f6bb059 --- /dev/null +++ b/code/09-including-partial-content/views/confirm.ejs @@ -0,0 +1,14 @@ + + + + <%- include('includes/head') %> + + + <%- include('includes/header') %> + <%- include('includes/side-drawer') %> +
+

Success!

+

Your restaurant was successfully added to our list!

+
+ + diff --git a/code/09-including-partial-content/views/includes/head.ejs b/code/09-including-partial-content/views/includes/head.ejs new file mode 100644 index 0000000..a6ded14 --- /dev/null +++ b/code/09-including-partial-content/views/includes/head.ejs @@ -0,0 +1,11 @@ + + + +Eatwell - Make The World A Tastier Place + + + + diff --git a/code/09-including-partial-content/views/includes/header.ejs b/code/09-including-partial-content/views/includes/header.ejs new file mode 100644 index 0000000..4810c50 --- /dev/null +++ b/code/09-including-partial-content/views/includes/header.ejs @@ -0,0 +1,19 @@ +
+ + + +
\ No newline at end of file diff --git a/code/09-including-partial-content/views/includes/restaurants/restaurant-item.ejs b/code/09-including-partial-content/views/includes/restaurants/restaurant-item.ejs new file mode 100644 index 0000000..4d57dbf --- /dev/null +++ b/code/09-including-partial-content/views/includes/restaurants/restaurant-item.ejs @@ -0,0 +1,15 @@ +
  • +
    +

    <%= restaurant.name %>

    +
    +

    <%= restaurant.cuisine %>

    +

    <%= restaurant.address %>

    +
    +

    + <%= restaurant.description %> +

    + +
    +
  • \ No newline at end of file diff --git a/code/09-including-partial-content/views/includes/side-drawer.ejs b/code/09-including-partial-content/views/includes/side-drawer.ejs new file mode 100644 index 0000000..7836dd7 --- /dev/null +++ b/code/09-including-partial-content/views/includes/side-drawer.ejs @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/code/09-including-partial-content/views/index.ejs b/code/09-including-partial-content/views/index.ejs new file mode 100644 index 0000000..003f9fc --- /dev/null +++ b/code/09-including-partial-content/views/index.ejs @@ -0,0 +1,25 @@ + + + + <%- include('includes/head') %> + + + + <%- include('includes/header') %> + <%- include('includes/side-drawer') %> +
    +

    Make the world a tastier place!

    +

    + Share your favorite restaurants or find recommendations of other users! +

    + +
    + + diff --git a/code/09-including-partial-content/views/recommend.ejs b/code/09-including-partial-content/views/recommend.ejs new file mode 100644 index 0000000..7e69acd --- /dev/null +++ b/code/09-including-partial-content/views/recommend.ejs @@ -0,0 +1,48 @@ + + + + <%- include('includes/head') %> + + + + <%- include('includes/header') %> + <%- include('includes/side-drawer') %> +
    +

    Share your favorite restaurant!

    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +
    +
    + + diff --git a/code/09-including-partial-content/views/restaurants.ejs b/code/09-including-partial-content/views/restaurants.ejs new file mode 100644 index 0000000..3555e8b --- /dev/null +++ b/code/09-including-partial-content/views/restaurants.ejs @@ -0,0 +1,25 @@ + + + + <%- include('includes/head') %> + + + + <%- include('includes/header') %> + <%- include('includes/side-drawer') %> +
    +

    Recommended restaurants

    + <% if (numberOfRestaurants === 0) { %> +

    Unfortunately, we have no restaurants yet - maybe start recommending some?

    + <% } else { %> +

    Find your next favorite restaurants with help of our other users!

    +

    We found <%= numberOfRestaurants %> restaurants.

    + + <% } %> +
    + + diff --git a/license b/license new file mode 100644 index 0000000..221783c --- /dev/null +++ b/license @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Adil-06 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.