Spaces:
Sleeping
Sleeping
Commit
•
63caaa6
0
Parent(s):
init
Browse files- .gitignore +1 -0
- Dockerfile +20 -0
- app.js +33 -0
- package-lock.json +1138 -0
- package.json +16 -0
- public/stylesheets/style.css +57 -0
- routes/index.js +19 -0
- views/index.pug +10 -0
- views/layout.pug +9 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
node_modules
|
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Node.js image as the base image
|
2 |
+
FROM node:14
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /usr/src/app
|
6 |
+
|
7 |
+
# Copy package.json and package-lock.json to the working directory
|
8 |
+
COPY package*.json ./
|
9 |
+
|
10 |
+
# Install the dependencies
|
11 |
+
RUN npm install
|
12 |
+
|
13 |
+
# Copy the rest of the application code to the working directory
|
14 |
+
COPY . .
|
15 |
+
|
16 |
+
# Expose the port the app will run on
|
17 |
+
EXPOSE 3000
|
18 |
+
|
19 |
+
# Start the application
|
20 |
+
CMD [ "node", "app.js" ]
|
app.js
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const express = require('express');
|
2 |
+
const multer = require('multer');
|
3 |
+
const path = require('path');
|
4 |
+
const fs = require('fs');
|
5 |
+
const app = express();
|
6 |
+
const indexRouter = require('./routes/index');
|
7 |
+
// Set up view engine
|
8 |
+
app.set('views', path.join(__dirname, 'views'));
|
9 |
+
app.set('view engine', 'pug');
|
10 |
+
// Set up static files
|
11 |
+
app.use(express.static(path.join(__dirname, 'public')));
|
12 |
+
app.use('/data', express.static(path.join(__dirname, 'data'))); // Add this line
|
13 |
+
// Set up multer for file uploads
|
14 |
+
const storage = multer.diskStorage({
|
15 |
+
destination: (req, file, cb) => {
|
16 |
+
cb(null, 'data/');
|
17 |
+
},
|
18 |
+
filename: (req, file, cb) => {
|
19 |
+
cb(null, file.fieldname + '-' + Date.now() + path.extname(file.originalname));
|
20 |
+
}
|
21 |
+
});
|
22 |
+
const upload = multer({ storage: storage });
|
23 |
+
// Routes
|
24 |
+
app.use('/', indexRouter);
|
25 |
+
app.post('/upload', upload.single('image'), (req, res) => {
|
26 |
+
res.redirect('/');
|
27 |
+
});
|
28 |
+
// Start server
|
29 |
+
const port = process.env.PORT || 3000;
|
30 |
+
app.listen(port, () => {
|
31 |
+
console.log(`Server running on port ${port}`);
|
32 |
+
});
|
33 |
+
module.exports = app;
|
package-lock.json
ADDED
@@ -0,0 +1,1138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "image-gallery",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"lockfileVersion": 3,
|
5 |
+
"requires": true,
|
6 |
+
"packages": {
|
7 |
+
"": {
|
8 |
+
"name": "image-gallery",
|
9 |
+
"version": "1.0.0",
|
10 |
+
"license": "ISC",
|
11 |
+
"dependencies": {
|
12 |
+
"express": "^4.17.1",
|
13 |
+
"multer": "^1.4.3",
|
14 |
+
"pug": "^3.0.2"
|
15 |
+
}
|
16 |
+
},
|
17 |
+
"node_modules/@babel/helper-string-parser": {
|
18 |
+
"version": "7.22.5",
|
19 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz",
|
20 |
+
"integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==",
|
21 |
+
"engines": {
|
22 |
+
"node": ">=6.9.0"
|
23 |
+
}
|
24 |
+
},
|
25 |
+
"node_modules/@babel/helper-validator-identifier": {
|
26 |
+
"version": "7.22.5",
|
27 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz",
|
28 |
+
"integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==",
|
29 |
+
"engines": {
|
30 |
+
"node": ">=6.9.0"
|
31 |
+
}
|
32 |
+
},
|
33 |
+
"node_modules/@babel/parser": {
|
34 |
+
"version": "7.22.5",
|
35 |
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz",
|
36 |
+
"integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==",
|
37 |
+
"bin": {
|
38 |
+
"parser": "bin/babel-parser.js"
|
39 |
+
},
|
40 |
+
"engines": {
|
41 |
+
"node": ">=6.0.0"
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"node_modules/@babel/types": {
|
45 |
+
"version": "7.22.5",
|
46 |
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz",
|
47 |
+
"integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==",
|
48 |
+
"dependencies": {
|
49 |
+
"@babel/helper-string-parser": "^7.22.5",
|
50 |
+
"@babel/helper-validator-identifier": "^7.22.5",
|
51 |
+
"to-fast-properties": "^2.0.0"
|
52 |
+
},
|
53 |
+
"engines": {
|
54 |
+
"node": ">=6.9.0"
|
55 |
+
}
|
56 |
+
},
|
57 |
+
"node_modules/accepts": {
|
58 |
+
"version": "1.3.8",
|
59 |
+
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
60 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
61 |
+
"dependencies": {
|
62 |
+
"mime-types": "~2.1.34",
|
63 |
+
"negotiator": "0.6.3"
|
64 |
+
},
|
65 |
+
"engines": {
|
66 |
+
"node": ">= 0.6"
|
67 |
+
}
|
68 |
+
},
|
69 |
+
"node_modules/acorn": {
|
70 |
+
"version": "7.4.1",
|
71 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",
|
72 |
+
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
|
73 |
+
"bin": {
|
74 |
+
"acorn": "bin/acorn"
|
75 |
+
},
|
76 |
+
"engines": {
|
77 |
+
"node": ">=0.4.0"
|
78 |
+
}
|
79 |
+
},
|
80 |
+
"node_modules/append-field": {
|
81 |
+
"version": "1.0.0",
|
82 |
+
"resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
|
83 |
+
"integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw=="
|
84 |
+
},
|
85 |
+
"node_modules/array-flatten": {
|
86 |
+
"version": "1.1.1",
|
87 |
+
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
88 |
+
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
|
89 |
+
},
|
90 |
+
"node_modules/asap": {
|
91 |
+
"version": "2.0.6",
|
92 |
+
"resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
|
93 |
+
"integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA=="
|
94 |
+
},
|
95 |
+
"node_modules/assert-never": {
|
96 |
+
"version": "1.2.1",
|
97 |
+
"resolved": "https://registry.npmjs.org/assert-never/-/assert-never-1.2.1.tgz",
|
98 |
+
"integrity": "sha512-TaTivMB6pYI1kXwrFlEhLeGfOqoDNdTxjCdwRfFFkEA30Eu+k48W34nlok2EYWJfFFzqaEmichdNM7th6M5HNw=="
|
99 |
+
},
|
100 |
+
"node_modules/babel-walk": {
|
101 |
+
"version": "3.0.0-canary-5",
|
102 |
+
"resolved": "https://registry.npmjs.org/babel-walk/-/babel-walk-3.0.0-canary-5.tgz",
|
103 |
+
"integrity": "sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==",
|
104 |
+
"dependencies": {
|
105 |
+
"@babel/types": "^7.9.6"
|
106 |
+
},
|
107 |
+
"engines": {
|
108 |
+
"node": ">= 10.0.0"
|
109 |
+
}
|
110 |
+
},
|
111 |
+
"node_modules/body-parser": {
|
112 |
+
"version": "1.20.1",
|
113 |
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
|
114 |
+
"integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
|
115 |
+
"dependencies": {
|
116 |
+
"bytes": "3.1.2",
|
117 |
+
"content-type": "~1.0.4",
|
118 |
+
"debug": "2.6.9",
|
119 |
+
"depd": "2.0.0",
|
120 |
+
"destroy": "1.2.0",
|
121 |
+
"http-errors": "2.0.0",
|
122 |
+
"iconv-lite": "0.4.24",
|
123 |
+
"on-finished": "2.4.1",
|
124 |
+
"qs": "6.11.0",
|
125 |
+
"raw-body": "2.5.1",
|
126 |
+
"type-is": "~1.6.18",
|
127 |
+
"unpipe": "1.0.0"
|
128 |
+
},
|
129 |
+
"engines": {
|
130 |
+
"node": ">= 0.8",
|
131 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
132 |
+
}
|
133 |
+
},
|
134 |
+
"node_modules/buffer-from": {
|
135 |
+
"version": "1.1.2",
|
136 |
+
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
137 |
+
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
|
138 |
+
},
|
139 |
+
"node_modules/busboy": {
|
140 |
+
"version": "0.2.14",
|
141 |
+
"resolved": "https://registry.npmjs.org/busboy/-/busboy-0.2.14.tgz",
|
142 |
+
"integrity": "sha512-InWFDomvlkEj+xWLBfU3AvnbVYqeTWmQopiW0tWWEy5yehYm2YkGEc59sUmw/4ty5Zj/b0WHGs1LgecuBSBGrg==",
|
143 |
+
"dependencies": {
|
144 |
+
"dicer": "0.2.5",
|
145 |
+
"readable-stream": "1.1.x"
|
146 |
+
},
|
147 |
+
"engines": {
|
148 |
+
"node": ">=0.8.0"
|
149 |
+
}
|
150 |
+
},
|
151 |
+
"node_modules/bytes": {
|
152 |
+
"version": "3.1.2",
|
153 |
+
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
154 |
+
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
155 |
+
"engines": {
|
156 |
+
"node": ">= 0.8"
|
157 |
+
}
|
158 |
+
},
|
159 |
+
"node_modules/call-bind": {
|
160 |
+
"version": "1.0.2",
|
161 |
+
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
|
162 |
+
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
|
163 |
+
"dependencies": {
|
164 |
+
"function-bind": "^1.1.1",
|
165 |
+
"get-intrinsic": "^1.0.2"
|
166 |
+
},
|
167 |
+
"funding": {
|
168 |
+
"url": "https://github.com/sponsors/ljharb"
|
169 |
+
}
|
170 |
+
},
|
171 |
+
"node_modules/character-parser": {
|
172 |
+
"version": "2.2.0",
|
173 |
+
"resolved": "https://registry.npmjs.org/character-parser/-/character-parser-2.2.0.tgz",
|
174 |
+
"integrity": "sha512-+UqJQjFEFaTAs3bNsF2j2kEN1baG/zghZbdqoYEDxGZtJo9LBzl1A+m0D4n3qKx8N2FNv8/Xp6yV9mQmBuptaw==",
|
175 |
+
"dependencies": {
|
176 |
+
"is-regex": "^1.0.3"
|
177 |
+
}
|
178 |
+
},
|
179 |
+
"node_modules/concat-stream": {
|
180 |
+
"version": "1.6.2",
|
181 |
+
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
|
182 |
+
"integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
|
183 |
+
"engines": [
|
184 |
+
"node >= 0.8"
|
185 |
+
],
|
186 |
+
"dependencies": {
|
187 |
+
"buffer-from": "^1.0.0",
|
188 |
+
"inherits": "^2.0.3",
|
189 |
+
"readable-stream": "^2.2.2",
|
190 |
+
"typedarray": "^0.0.6"
|
191 |
+
}
|
192 |
+
},
|
193 |
+
"node_modules/concat-stream/node_modules/isarray": {
|
194 |
+
"version": "1.0.0",
|
195 |
+
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
196 |
+
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
|
197 |
+
},
|
198 |
+
"node_modules/concat-stream/node_modules/readable-stream": {
|
199 |
+
"version": "2.3.8",
|
200 |
+
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
|
201 |
+
"integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
|
202 |
+
"dependencies": {
|
203 |
+
"core-util-is": "~1.0.0",
|
204 |
+
"inherits": "~2.0.3",
|
205 |
+
"isarray": "~1.0.0",
|
206 |
+
"process-nextick-args": "~2.0.0",
|
207 |
+
"safe-buffer": "~5.1.1",
|
208 |
+
"string_decoder": "~1.1.1",
|
209 |
+
"util-deprecate": "~1.0.1"
|
210 |
+
}
|
211 |
+
},
|
212 |
+
"node_modules/concat-stream/node_modules/safe-buffer": {
|
213 |
+
"version": "5.1.2",
|
214 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
215 |
+
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
216 |
+
},
|
217 |
+
"node_modules/concat-stream/node_modules/string_decoder": {
|
218 |
+
"version": "1.1.1",
|
219 |
+
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
220 |
+
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
221 |
+
"dependencies": {
|
222 |
+
"safe-buffer": "~5.1.0"
|
223 |
+
}
|
224 |
+
},
|
225 |
+
"node_modules/constantinople": {
|
226 |
+
"version": "4.0.1",
|
227 |
+
"resolved": "https://registry.npmjs.org/constantinople/-/constantinople-4.0.1.tgz",
|
228 |
+
"integrity": "sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw==",
|
229 |
+
"dependencies": {
|
230 |
+
"@babel/parser": "^7.6.0",
|
231 |
+
"@babel/types": "^7.6.1"
|
232 |
+
}
|
233 |
+
},
|
234 |
+
"node_modules/content-disposition": {
|
235 |
+
"version": "0.5.4",
|
236 |
+
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
237 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
238 |
+
"dependencies": {
|
239 |
+
"safe-buffer": "5.2.1"
|
240 |
+
},
|
241 |
+
"engines": {
|
242 |
+
"node": ">= 0.6"
|
243 |
+
}
|
244 |
+
},
|
245 |
+
"node_modules/content-type": {
|
246 |
+
"version": "1.0.5",
|
247 |
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
248 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
249 |
+
"engines": {
|
250 |
+
"node": ">= 0.6"
|
251 |
+
}
|
252 |
+
},
|
253 |
+
"node_modules/cookie": {
|
254 |
+
"version": "0.5.0",
|
255 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
|
256 |
+
"integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
|
257 |
+
"engines": {
|
258 |
+
"node": ">= 0.6"
|
259 |
+
}
|
260 |
+
},
|
261 |
+
"node_modules/cookie-signature": {
|
262 |
+
"version": "1.0.6",
|
263 |
+
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
264 |
+
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
|
265 |
+
},
|
266 |
+
"node_modules/core-util-is": {
|
267 |
+
"version": "1.0.3",
|
268 |
+
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
|
269 |
+
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="
|
270 |
+
},
|
271 |
+
"node_modules/debug": {
|
272 |
+
"version": "2.6.9",
|
273 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
274 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
275 |
+
"dependencies": {
|
276 |
+
"ms": "2.0.0"
|
277 |
+
}
|
278 |
+
},
|
279 |
+
"node_modules/depd": {
|
280 |
+
"version": "2.0.0",
|
281 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
282 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
283 |
+
"engines": {
|
284 |
+
"node": ">= 0.8"
|
285 |
+
}
|
286 |
+
},
|
287 |
+
"node_modules/destroy": {
|
288 |
+
"version": "1.2.0",
|
289 |
+
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
290 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
291 |
+
"engines": {
|
292 |
+
"node": ">= 0.8",
|
293 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
294 |
+
}
|
295 |
+
},
|
296 |
+
"node_modules/dicer": {
|
297 |
+
"version": "0.2.5",
|
298 |
+
"resolved": "https://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz",
|
299 |
+
"integrity": "sha512-FDvbtnq7dzlPz0wyYlOExifDEZcu8h+rErEXgfxqmLfRfC/kJidEFh4+effJRO3P0xmfqyPbSMG0LveNRfTKVg==",
|
300 |
+
"dependencies": {
|
301 |
+
"readable-stream": "1.1.x",
|
302 |
+
"streamsearch": "0.1.2"
|
303 |
+
},
|
304 |
+
"engines": {
|
305 |
+
"node": ">=0.8.0"
|
306 |
+
}
|
307 |
+
},
|
308 |
+
"node_modules/doctypes": {
|
309 |
+
"version": "1.1.0",
|
310 |
+
"resolved": "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz",
|
311 |
+
"integrity": "sha512-LLBi6pEqS6Do3EKQ3J0NqHWV5hhb78Pi8vvESYwyOy2c31ZEZVdtitdzsQsKb7878PEERhzUk0ftqGhG6Mz+pQ=="
|
312 |
+
},
|
313 |
+
"node_modules/ee-first": {
|
314 |
+
"version": "1.1.1",
|
315 |
+
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
316 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
317 |
+
},
|
318 |
+
"node_modules/encodeurl": {
|
319 |
+
"version": "1.0.2",
|
320 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
321 |
+
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
322 |
+
"engines": {
|
323 |
+
"node": ">= 0.8"
|
324 |
+
}
|
325 |
+
},
|
326 |
+
"node_modules/escape-html": {
|
327 |
+
"version": "1.0.3",
|
328 |
+
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
329 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
|
330 |
+
},
|
331 |
+
"node_modules/etag": {
|
332 |
+
"version": "1.8.1",
|
333 |
+
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
334 |
+
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
335 |
+
"engines": {
|
336 |
+
"node": ">= 0.6"
|
337 |
+
}
|
338 |
+
},
|
339 |
+
"node_modules/express": {
|
340 |
+
"version": "4.18.2",
|
341 |
+
"resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
|
342 |
+
"integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
|
343 |
+
"dependencies": {
|
344 |
+
"accepts": "~1.3.8",
|
345 |
+
"array-flatten": "1.1.1",
|
346 |
+
"body-parser": "1.20.1",
|
347 |
+
"content-disposition": "0.5.4",
|
348 |
+
"content-type": "~1.0.4",
|
349 |
+
"cookie": "0.5.0",
|
350 |
+
"cookie-signature": "1.0.6",
|
351 |
+
"debug": "2.6.9",
|
352 |
+
"depd": "2.0.0",
|
353 |
+
"encodeurl": "~1.0.2",
|
354 |
+
"escape-html": "~1.0.3",
|
355 |
+
"etag": "~1.8.1",
|
356 |
+
"finalhandler": "1.2.0",
|
357 |
+
"fresh": "0.5.2",
|
358 |
+
"http-errors": "2.0.0",
|
359 |
+
"merge-descriptors": "1.0.1",
|
360 |
+
"methods": "~1.1.2",
|
361 |
+
"on-finished": "2.4.1",
|
362 |
+
"parseurl": "~1.3.3",
|
363 |
+
"path-to-regexp": "0.1.7",
|
364 |
+
"proxy-addr": "~2.0.7",
|
365 |
+
"qs": "6.11.0",
|
366 |
+
"range-parser": "~1.2.1",
|
367 |
+
"safe-buffer": "5.2.1",
|
368 |
+
"send": "0.18.0",
|
369 |
+
"serve-static": "1.15.0",
|
370 |
+
"setprototypeof": "1.2.0",
|
371 |
+
"statuses": "2.0.1",
|
372 |
+
"type-is": "~1.6.18",
|
373 |
+
"utils-merge": "1.0.1",
|
374 |
+
"vary": "~1.1.2"
|
375 |
+
},
|
376 |
+
"engines": {
|
377 |
+
"node": ">= 0.10.0"
|
378 |
+
}
|
379 |
+
},
|
380 |
+
"node_modules/finalhandler": {
|
381 |
+
"version": "1.2.0",
|
382 |
+
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
|
383 |
+
"integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
|
384 |
+
"dependencies": {
|
385 |
+
"debug": "2.6.9",
|
386 |
+
"encodeurl": "~1.0.2",
|
387 |
+
"escape-html": "~1.0.3",
|
388 |
+
"on-finished": "2.4.1",
|
389 |
+
"parseurl": "~1.3.3",
|
390 |
+
"statuses": "2.0.1",
|
391 |
+
"unpipe": "~1.0.0"
|
392 |
+
},
|
393 |
+
"engines": {
|
394 |
+
"node": ">= 0.8"
|
395 |
+
}
|
396 |
+
},
|
397 |
+
"node_modules/forwarded": {
|
398 |
+
"version": "0.2.0",
|
399 |
+
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
400 |
+
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
401 |
+
"engines": {
|
402 |
+
"node": ">= 0.6"
|
403 |
+
}
|
404 |
+
},
|
405 |
+
"node_modules/fresh": {
|
406 |
+
"version": "0.5.2",
|
407 |
+
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
408 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
409 |
+
"engines": {
|
410 |
+
"node": ">= 0.6"
|
411 |
+
}
|
412 |
+
},
|
413 |
+
"node_modules/function-bind": {
|
414 |
+
"version": "1.1.1",
|
415 |
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
416 |
+
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
|
417 |
+
},
|
418 |
+
"node_modules/get-intrinsic": {
|
419 |
+
"version": "1.2.1",
|
420 |
+
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
|
421 |
+
"integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
|
422 |
+
"dependencies": {
|
423 |
+
"function-bind": "^1.1.1",
|
424 |
+
"has": "^1.0.3",
|
425 |
+
"has-proto": "^1.0.1",
|
426 |
+
"has-symbols": "^1.0.3"
|
427 |
+
},
|
428 |
+
"funding": {
|
429 |
+
"url": "https://github.com/sponsors/ljharb"
|
430 |
+
}
|
431 |
+
},
|
432 |
+
"node_modules/has": {
|
433 |
+
"version": "1.0.3",
|
434 |
+
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
|
435 |
+
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
|
436 |
+
"dependencies": {
|
437 |
+
"function-bind": "^1.1.1"
|
438 |
+
},
|
439 |
+
"engines": {
|
440 |
+
"node": ">= 0.4.0"
|
441 |
+
}
|
442 |
+
},
|
443 |
+
"node_modules/has-proto": {
|
444 |
+
"version": "1.0.1",
|
445 |
+
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
|
446 |
+
"integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
|
447 |
+
"engines": {
|
448 |
+
"node": ">= 0.4"
|
449 |
+
},
|
450 |
+
"funding": {
|
451 |
+
"url": "https://github.com/sponsors/ljharb"
|
452 |
+
}
|
453 |
+
},
|
454 |
+
"node_modules/has-symbols": {
|
455 |
+
"version": "1.0.3",
|
456 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
|
457 |
+
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
|
458 |
+
"engines": {
|
459 |
+
"node": ">= 0.4"
|
460 |
+
},
|
461 |
+
"funding": {
|
462 |
+
"url": "https://github.com/sponsors/ljharb"
|
463 |
+
}
|
464 |
+
},
|
465 |
+
"node_modules/has-tostringtag": {
|
466 |
+
"version": "1.0.0",
|
467 |
+
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz",
|
468 |
+
"integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==",
|
469 |
+
"dependencies": {
|
470 |
+
"has-symbols": "^1.0.2"
|
471 |
+
},
|
472 |
+
"engines": {
|
473 |
+
"node": ">= 0.4"
|
474 |
+
},
|
475 |
+
"funding": {
|
476 |
+
"url": "https://github.com/sponsors/ljharb"
|
477 |
+
}
|
478 |
+
},
|
479 |
+
"node_modules/http-errors": {
|
480 |
+
"version": "2.0.0",
|
481 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
482 |
+
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
483 |
+
"dependencies": {
|
484 |
+
"depd": "2.0.0",
|
485 |
+
"inherits": "2.0.4",
|
486 |
+
"setprototypeof": "1.2.0",
|
487 |
+
"statuses": "2.0.1",
|
488 |
+
"toidentifier": "1.0.1"
|
489 |
+
},
|
490 |
+
"engines": {
|
491 |
+
"node": ">= 0.8"
|
492 |
+
}
|
493 |
+
},
|
494 |
+
"node_modules/iconv-lite": {
|
495 |
+
"version": "0.4.24",
|
496 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
497 |
+
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
498 |
+
"dependencies": {
|
499 |
+
"safer-buffer": ">= 2.1.2 < 3"
|
500 |
+
},
|
501 |
+
"engines": {
|
502 |
+
"node": ">=0.10.0"
|
503 |
+
}
|
504 |
+
},
|
505 |
+
"node_modules/inherits": {
|
506 |
+
"version": "2.0.4",
|
507 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
508 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
509 |
+
},
|
510 |
+
"node_modules/ipaddr.js": {
|
511 |
+
"version": "1.9.1",
|
512 |
+
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
513 |
+
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
514 |
+
"engines": {
|
515 |
+
"node": ">= 0.10"
|
516 |
+
}
|
517 |
+
},
|
518 |
+
"node_modules/is-core-module": {
|
519 |
+
"version": "2.12.1",
|
520 |
+
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz",
|
521 |
+
"integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==",
|
522 |
+
"dependencies": {
|
523 |
+
"has": "^1.0.3"
|
524 |
+
},
|
525 |
+
"funding": {
|
526 |
+
"url": "https://github.com/sponsors/ljharb"
|
527 |
+
}
|
528 |
+
},
|
529 |
+
"node_modules/is-expression": {
|
530 |
+
"version": "4.0.0",
|
531 |
+
"resolved": "https://registry.npmjs.org/is-expression/-/is-expression-4.0.0.tgz",
|
532 |
+
"integrity": "sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A==",
|
533 |
+
"dependencies": {
|
534 |
+
"acorn": "^7.1.1",
|
535 |
+
"object-assign": "^4.1.1"
|
536 |
+
}
|
537 |
+
},
|
538 |
+
"node_modules/is-promise": {
|
539 |
+
"version": "2.2.2",
|
540 |
+
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
|
541 |
+
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ=="
|
542 |
+
},
|
543 |
+
"node_modules/is-regex": {
|
544 |
+
"version": "1.1.4",
|
545 |
+
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
|
546 |
+
"integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==",
|
547 |
+
"dependencies": {
|
548 |
+
"call-bind": "^1.0.2",
|
549 |
+
"has-tostringtag": "^1.0.0"
|
550 |
+
},
|
551 |
+
"engines": {
|
552 |
+
"node": ">= 0.4"
|
553 |
+
},
|
554 |
+
"funding": {
|
555 |
+
"url": "https://github.com/sponsors/ljharb"
|
556 |
+
}
|
557 |
+
},
|
558 |
+
"node_modules/isarray": {
|
559 |
+
"version": "0.0.1",
|
560 |
+
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
|
561 |
+
"integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ=="
|
562 |
+
},
|
563 |
+
"node_modules/js-stringify": {
|
564 |
+
"version": "1.0.2",
|
565 |
+
"resolved": "https://registry.npmjs.org/js-stringify/-/js-stringify-1.0.2.tgz",
|
566 |
+
"integrity": "sha512-rtS5ATOo2Q5k1G+DADISilDA6lv79zIiwFd6CcjuIxGKLFm5C+RLImRscVap9k55i+MOZwgliw+NejvkLuGD5g=="
|
567 |
+
},
|
568 |
+
"node_modules/jstransformer": {
|
569 |
+
"version": "1.0.0",
|
570 |
+
"resolved": "https://registry.npmjs.org/jstransformer/-/jstransformer-1.0.0.tgz",
|
571 |
+
"integrity": "sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==",
|
572 |
+
"dependencies": {
|
573 |
+
"is-promise": "^2.0.0",
|
574 |
+
"promise": "^7.0.1"
|
575 |
+
}
|
576 |
+
},
|
577 |
+
"node_modules/media-typer": {
|
578 |
+
"version": "0.3.0",
|
579 |
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
580 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
581 |
+
"engines": {
|
582 |
+
"node": ">= 0.6"
|
583 |
+
}
|
584 |
+
},
|
585 |
+
"node_modules/merge-descriptors": {
|
586 |
+
"version": "1.0.1",
|
587 |
+
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
|
588 |
+
"integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
|
589 |
+
},
|
590 |
+
"node_modules/methods": {
|
591 |
+
"version": "1.1.2",
|
592 |
+
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
593 |
+
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
594 |
+
"engines": {
|
595 |
+
"node": ">= 0.6"
|
596 |
+
}
|
597 |
+
},
|
598 |
+
"node_modules/mime": {
|
599 |
+
"version": "1.6.0",
|
600 |
+
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
601 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
602 |
+
"bin": {
|
603 |
+
"mime": "cli.js"
|
604 |
+
},
|
605 |
+
"engines": {
|
606 |
+
"node": ">=4"
|
607 |
+
}
|
608 |
+
},
|
609 |
+
"node_modules/mime-db": {
|
610 |
+
"version": "1.52.0",
|
611 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
612 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
613 |
+
"engines": {
|
614 |
+
"node": ">= 0.6"
|
615 |
+
}
|
616 |
+
},
|
617 |
+
"node_modules/mime-types": {
|
618 |
+
"version": "2.1.35",
|
619 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
620 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
621 |
+
"dependencies": {
|
622 |
+
"mime-db": "1.52.0"
|
623 |
+
},
|
624 |
+
"engines": {
|
625 |
+
"node": ">= 0.6"
|
626 |
+
}
|
627 |
+
},
|
628 |
+
"node_modules/minimist": {
|
629 |
+
"version": "1.2.8",
|
630 |
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
|
631 |
+
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
|
632 |
+
"funding": {
|
633 |
+
"url": "https://github.com/sponsors/ljharb"
|
634 |
+
}
|
635 |
+
},
|
636 |
+
"node_modules/mkdirp": {
|
637 |
+
"version": "0.5.6",
|
638 |
+
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
|
639 |
+
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
640 |
+
"dependencies": {
|
641 |
+
"minimist": "^1.2.6"
|
642 |
+
},
|
643 |
+
"bin": {
|
644 |
+
"mkdirp": "bin/cmd.js"
|
645 |
+
}
|
646 |
+
},
|
647 |
+
"node_modules/ms": {
|
648 |
+
"version": "2.0.0",
|
649 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
650 |
+
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
|
651 |
+
},
|
652 |
+
"node_modules/multer": {
|
653 |
+
"version": "1.4.4",
|
654 |
+
"resolved": "https://registry.npmjs.org/multer/-/multer-1.4.4.tgz",
|
655 |
+
"integrity": "sha512-2wY2+xD4udX612aMqMcB8Ws2Voq6NIUPEtD1be6m411T4uDH/VtL9i//xvcyFlTVfRdaBsk7hV5tgrGQqhuBiw==",
|
656 |
+
"deprecated": "Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.",
|
657 |
+
"dependencies": {
|
658 |
+
"append-field": "^1.0.0",
|
659 |
+
"busboy": "^0.2.11",
|
660 |
+
"concat-stream": "^1.5.2",
|
661 |
+
"mkdirp": "^0.5.4",
|
662 |
+
"object-assign": "^4.1.1",
|
663 |
+
"on-finished": "^2.3.0",
|
664 |
+
"type-is": "^1.6.4",
|
665 |
+
"xtend": "^4.0.0"
|
666 |
+
},
|
667 |
+
"engines": {
|
668 |
+
"node": ">= 0.10.0"
|
669 |
+
}
|
670 |
+
},
|
671 |
+
"node_modules/negotiator": {
|
672 |
+
"version": "0.6.3",
|
673 |
+
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
674 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
675 |
+
"engines": {
|
676 |
+
"node": ">= 0.6"
|
677 |
+
}
|
678 |
+
},
|
679 |
+
"node_modules/object-assign": {
|
680 |
+
"version": "4.1.1",
|
681 |
+
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
682 |
+
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
683 |
+
"engines": {
|
684 |
+
"node": ">=0.10.0"
|
685 |
+
}
|
686 |
+
},
|
687 |
+
"node_modules/object-inspect": {
|
688 |
+
"version": "1.12.3",
|
689 |
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
|
690 |
+
"integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",
|
691 |
+
"funding": {
|
692 |
+
"url": "https://github.com/sponsors/ljharb"
|
693 |
+
}
|
694 |
+
},
|
695 |
+
"node_modules/on-finished": {
|
696 |
+
"version": "2.4.1",
|
697 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
698 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
699 |
+
"dependencies": {
|
700 |
+
"ee-first": "1.1.1"
|
701 |
+
},
|
702 |
+
"engines": {
|
703 |
+
"node": ">= 0.8"
|
704 |
+
}
|
705 |
+
},
|
706 |
+
"node_modules/parseurl": {
|
707 |
+
"version": "1.3.3",
|
708 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
709 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
710 |
+
"engines": {
|
711 |
+
"node": ">= 0.8"
|
712 |
+
}
|
713 |
+
},
|
714 |
+
"node_modules/path-parse": {
|
715 |
+
"version": "1.0.7",
|
716 |
+
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
717 |
+
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
|
718 |
+
},
|
719 |
+
"node_modules/path-to-regexp": {
|
720 |
+
"version": "0.1.7",
|
721 |
+
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
722 |
+
"integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
|
723 |
+
},
|
724 |
+
"node_modules/process-nextick-args": {
|
725 |
+
"version": "2.0.1",
|
726 |
+
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
727 |
+
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
|
728 |
+
},
|
729 |
+
"node_modules/promise": {
|
730 |
+
"version": "7.3.1",
|
731 |
+
"resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz",
|
732 |
+
"integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==",
|
733 |
+
"dependencies": {
|
734 |
+
"asap": "~2.0.3"
|
735 |
+
}
|
736 |
+
},
|
737 |
+
"node_modules/proxy-addr": {
|
738 |
+
"version": "2.0.7",
|
739 |
+
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
740 |
+
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
741 |
+
"dependencies": {
|
742 |
+
"forwarded": "0.2.0",
|
743 |
+
"ipaddr.js": "1.9.1"
|
744 |
+
},
|
745 |
+
"engines": {
|
746 |
+
"node": ">= 0.10"
|
747 |
+
}
|
748 |
+
},
|
749 |
+
"node_modules/pug": {
|
750 |
+
"version": "3.0.2",
|
751 |
+
"resolved": "https://registry.npmjs.org/pug/-/pug-3.0.2.tgz",
|
752 |
+
"integrity": "sha512-bp0I/hiK1D1vChHh6EfDxtndHji55XP/ZJKwsRqrz6lRia6ZC2OZbdAymlxdVFwd1L70ebrVJw4/eZ79skrIaw==",
|
753 |
+
"dependencies": {
|
754 |
+
"pug-code-gen": "^3.0.2",
|
755 |
+
"pug-filters": "^4.0.0",
|
756 |
+
"pug-lexer": "^5.0.1",
|
757 |
+
"pug-linker": "^4.0.0",
|
758 |
+
"pug-load": "^3.0.0",
|
759 |
+
"pug-parser": "^6.0.0",
|
760 |
+
"pug-runtime": "^3.0.1",
|
761 |
+
"pug-strip-comments": "^2.0.0"
|
762 |
+
}
|
763 |
+
},
|
764 |
+
"node_modules/pug-attrs": {
|
765 |
+
"version": "3.0.0",
|
766 |
+
"resolved": "https://registry.npmjs.org/pug-attrs/-/pug-attrs-3.0.0.tgz",
|
767 |
+
"integrity": "sha512-azINV9dUtzPMFQktvTXciNAfAuVh/L/JCl0vtPCwvOA21uZrC08K/UnmrL+SXGEVc1FwzjW62+xw5S/uaLj6cA==",
|
768 |
+
"dependencies": {
|
769 |
+
"constantinople": "^4.0.1",
|
770 |
+
"js-stringify": "^1.0.2",
|
771 |
+
"pug-runtime": "^3.0.0"
|
772 |
+
}
|
773 |
+
},
|
774 |
+
"node_modules/pug-code-gen": {
|
775 |
+
"version": "3.0.2",
|
776 |
+
"resolved": "https://registry.npmjs.org/pug-code-gen/-/pug-code-gen-3.0.2.tgz",
|
777 |
+
"integrity": "sha512-nJMhW16MbiGRiyR4miDTQMRWDgKplnHyeLvioEJYbk1RsPI3FuA3saEP8uwnTb2nTJEKBU90NFVWJBk4OU5qyg==",
|
778 |
+
"dependencies": {
|
779 |
+
"constantinople": "^4.0.1",
|
780 |
+
"doctypes": "^1.1.0",
|
781 |
+
"js-stringify": "^1.0.2",
|
782 |
+
"pug-attrs": "^3.0.0",
|
783 |
+
"pug-error": "^2.0.0",
|
784 |
+
"pug-runtime": "^3.0.0",
|
785 |
+
"void-elements": "^3.1.0",
|
786 |
+
"with": "^7.0.0"
|
787 |
+
}
|
788 |
+
},
|
789 |
+
"node_modules/pug-error": {
|
790 |
+
"version": "2.0.0",
|
791 |
+
"resolved": "https://registry.npmjs.org/pug-error/-/pug-error-2.0.0.tgz",
|
792 |
+
"integrity": "sha512-sjiUsi9M4RAGHktC1drQfCr5C5eriu24Lfbt4s+7SykztEOwVZtbFk1RRq0tzLxcMxMYTBR+zMQaG07J/btayQ=="
|
793 |
+
},
|
794 |
+
"node_modules/pug-filters": {
|
795 |
+
"version": "4.0.0",
|
796 |
+
"resolved": "https://registry.npmjs.org/pug-filters/-/pug-filters-4.0.0.tgz",
|
797 |
+
"integrity": "sha512-yeNFtq5Yxmfz0f9z2rMXGw/8/4i1cCFecw/Q7+D0V2DdtII5UvqE12VaZ2AY7ri6o5RNXiweGH79OCq+2RQU4A==",
|
798 |
+
"dependencies": {
|
799 |
+
"constantinople": "^4.0.1",
|
800 |
+
"jstransformer": "1.0.0",
|
801 |
+
"pug-error": "^2.0.0",
|
802 |
+
"pug-walk": "^2.0.0",
|
803 |
+
"resolve": "^1.15.1"
|
804 |
+
}
|
805 |
+
},
|
806 |
+
"node_modules/pug-lexer": {
|
807 |
+
"version": "5.0.1",
|
808 |
+
"resolved": "https://registry.npmjs.org/pug-lexer/-/pug-lexer-5.0.1.tgz",
|
809 |
+
"integrity": "sha512-0I6C62+keXlZPZkOJeVam9aBLVP2EnbeDw3An+k0/QlqdwH6rv8284nko14Na7c0TtqtogfWXcRoFE4O4Ff20w==",
|
810 |
+
"dependencies": {
|
811 |
+
"character-parser": "^2.2.0",
|
812 |
+
"is-expression": "^4.0.0",
|
813 |
+
"pug-error": "^2.0.0"
|
814 |
+
}
|
815 |
+
},
|
816 |
+
"node_modules/pug-linker": {
|
817 |
+
"version": "4.0.0",
|
818 |
+
"resolved": "https://registry.npmjs.org/pug-linker/-/pug-linker-4.0.0.tgz",
|
819 |
+
"integrity": "sha512-gjD1yzp0yxbQqnzBAdlhbgoJL5qIFJw78juN1NpTLt/mfPJ5VgC4BvkoD3G23qKzJtIIXBbcCt6FioLSFLOHdw==",
|
820 |
+
"dependencies": {
|
821 |
+
"pug-error": "^2.0.0",
|
822 |
+
"pug-walk": "^2.0.0"
|
823 |
+
}
|
824 |
+
},
|
825 |
+
"node_modules/pug-load": {
|
826 |
+
"version": "3.0.0",
|
827 |
+
"resolved": "https://registry.npmjs.org/pug-load/-/pug-load-3.0.0.tgz",
|
828 |
+
"integrity": "sha512-OCjTEnhLWZBvS4zni/WUMjH2YSUosnsmjGBB1An7CsKQarYSWQ0GCVyd4eQPMFJqZ8w9xgs01QdiZXKVjk92EQ==",
|
829 |
+
"dependencies": {
|
830 |
+
"object-assign": "^4.1.1",
|
831 |
+
"pug-walk": "^2.0.0"
|
832 |
+
}
|
833 |
+
},
|
834 |
+
"node_modules/pug-parser": {
|
835 |
+
"version": "6.0.0",
|
836 |
+
"resolved": "https://registry.npmjs.org/pug-parser/-/pug-parser-6.0.0.tgz",
|
837 |
+
"integrity": "sha512-ukiYM/9cH6Cml+AOl5kETtM9NR3WulyVP2y4HOU45DyMim1IeP/OOiyEWRr6qk5I5klpsBnbuHpwKmTx6WURnw==",
|
838 |
+
"dependencies": {
|
839 |
+
"pug-error": "^2.0.0",
|
840 |
+
"token-stream": "1.0.0"
|
841 |
+
}
|
842 |
+
},
|
843 |
+
"node_modules/pug-runtime": {
|
844 |
+
"version": "3.0.1",
|
845 |
+
"resolved": "https://registry.npmjs.org/pug-runtime/-/pug-runtime-3.0.1.tgz",
|
846 |
+
"integrity": "sha512-L50zbvrQ35TkpHwv0G6aLSuueDRwc/97XdY8kL3tOT0FmhgG7UypU3VztfV/LATAvmUfYi4wNxSajhSAeNN+Kg=="
|
847 |
+
},
|
848 |
+
"node_modules/pug-strip-comments": {
|
849 |
+
"version": "2.0.0",
|
850 |
+
"resolved": "https://registry.npmjs.org/pug-strip-comments/-/pug-strip-comments-2.0.0.tgz",
|
851 |
+
"integrity": "sha512-zo8DsDpH7eTkPHCXFeAk1xZXJbyoTfdPlNR0bK7rpOMuhBYb0f5qUVCO1xlsitYd3w5FQTK7zpNVKb3rZoUrrQ==",
|
852 |
+
"dependencies": {
|
853 |
+
"pug-error": "^2.0.0"
|
854 |
+
}
|
855 |
+
},
|
856 |
+
"node_modules/pug-walk": {
|
857 |
+
"version": "2.0.0",
|
858 |
+
"resolved": "https://registry.npmjs.org/pug-walk/-/pug-walk-2.0.0.tgz",
|
859 |
+
"integrity": "sha512-yYELe9Q5q9IQhuvqsZNwA5hfPkMJ8u92bQLIMcsMxf/VADjNtEYptU+inlufAFYcWdHlwNfZOEnOOQrZrcyJCQ=="
|
860 |
+
},
|
861 |
+
"node_modules/qs": {
|
862 |
+
"version": "6.11.0",
|
863 |
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
|
864 |
+
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
|
865 |
+
"dependencies": {
|
866 |
+
"side-channel": "^1.0.4"
|
867 |
+
},
|
868 |
+
"engines": {
|
869 |
+
"node": ">=0.6"
|
870 |
+
},
|
871 |
+
"funding": {
|
872 |
+
"url": "https://github.com/sponsors/ljharb"
|
873 |
+
}
|
874 |
+
},
|
875 |
+
"node_modules/range-parser": {
|
876 |
+
"version": "1.2.1",
|
877 |
+
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
878 |
+
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
879 |
+
"engines": {
|
880 |
+
"node": ">= 0.6"
|
881 |
+
}
|
882 |
+
},
|
883 |
+
"node_modules/raw-body": {
|
884 |
+
"version": "2.5.1",
|
885 |
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
|
886 |
+
"integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
|
887 |
+
"dependencies": {
|
888 |
+
"bytes": "3.1.2",
|
889 |
+
"http-errors": "2.0.0",
|
890 |
+
"iconv-lite": "0.4.24",
|
891 |
+
"unpipe": "1.0.0"
|
892 |
+
},
|
893 |
+
"engines": {
|
894 |
+
"node": ">= 0.8"
|
895 |
+
}
|
896 |
+
},
|
897 |
+
"node_modules/readable-stream": {
|
898 |
+
"version": "1.1.14",
|
899 |
+
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
|
900 |
+
"integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==",
|
901 |
+
"dependencies": {
|
902 |
+
"core-util-is": "~1.0.0",
|
903 |
+
"inherits": "~2.0.1",
|
904 |
+
"isarray": "0.0.1",
|
905 |
+
"string_decoder": "~0.10.x"
|
906 |
+
}
|
907 |
+
},
|
908 |
+
"node_modules/resolve": {
|
909 |
+
"version": "1.22.2",
|
910 |
+
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz",
|
911 |
+
"integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==",
|
912 |
+
"dependencies": {
|
913 |
+
"is-core-module": "^2.11.0",
|
914 |
+
"path-parse": "^1.0.7",
|
915 |
+
"supports-preserve-symlinks-flag": "^1.0.0"
|
916 |
+
},
|
917 |
+
"bin": {
|
918 |
+
"resolve": "bin/resolve"
|
919 |
+
},
|
920 |
+
"funding": {
|
921 |
+
"url": "https://github.com/sponsors/ljharb"
|
922 |
+
}
|
923 |
+
},
|
924 |
+
"node_modules/safe-buffer": {
|
925 |
+
"version": "5.2.1",
|
926 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
927 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
928 |
+
"funding": [
|
929 |
+
{
|
930 |
+
"type": "github",
|
931 |
+
"url": "https://github.com/sponsors/feross"
|
932 |
+
},
|
933 |
+
{
|
934 |
+
"type": "patreon",
|
935 |
+
"url": "https://www.patreon.com/feross"
|
936 |
+
},
|
937 |
+
{
|
938 |
+
"type": "consulting",
|
939 |
+
"url": "https://feross.org/support"
|
940 |
+
}
|
941 |
+
]
|
942 |
+
},
|
943 |
+
"node_modules/safer-buffer": {
|
944 |
+
"version": "2.1.2",
|
945 |
+
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
946 |
+
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
947 |
+
},
|
948 |
+
"node_modules/send": {
|
949 |
+
"version": "0.18.0",
|
950 |
+
"resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
|
951 |
+
"integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
|
952 |
+
"dependencies": {
|
953 |
+
"debug": "2.6.9",
|
954 |
+
"depd": "2.0.0",
|
955 |
+
"destroy": "1.2.0",
|
956 |
+
"encodeurl": "~1.0.2",
|
957 |
+
"escape-html": "~1.0.3",
|
958 |
+
"etag": "~1.8.1",
|
959 |
+
"fresh": "0.5.2",
|
960 |
+
"http-errors": "2.0.0",
|
961 |
+
"mime": "1.6.0",
|
962 |
+
"ms": "2.1.3",
|
963 |
+
"on-finished": "2.4.1",
|
964 |
+
"range-parser": "~1.2.1",
|
965 |
+
"statuses": "2.0.1"
|
966 |
+
},
|
967 |
+
"engines": {
|
968 |
+
"node": ">= 0.8.0"
|
969 |
+
}
|
970 |
+
},
|
971 |
+
"node_modules/send/node_modules/ms": {
|
972 |
+
"version": "2.1.3",
|
973 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
974 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
975 |
+
},
|
976 |
+
"node_modules/serve-static": {
|
977 |
+
"version": "1.15.0",
|
978 |
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
|
979 |
+
"integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
|
980 |
+
"dependencies": {
|
981 |
+
"encodeurl": "~1.0.2",
|
982 |
+
"escape-html": "~1.0.3",
|
983 |
+
"parseurl": "~1.3.3",
|
984 |
+
"send": "0.18.0"
|
985 |
+
},
|
986 |
+
"engines": {
|
987 |
+
"node": ">= 0.8.0"
|
988 |
+
}
|
989 |
+
},
|
990 |
+
"node_modules/setprototypeof": {
|
991 |
+
"version": "1.2.0",
|
992 |
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
993 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
994 |
+
},
|
995 |
+
"node_modules/side-channel": {
|
996 |
+
"version": "1.0.4",
|
997 |
+
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
|
998 |
+
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
|
999 |
+
"dependencies": {
|
1000 |
+
"call-bind": "^1.0.0",
|
1001 |
+
"get-intrinsic": "^1.0.2",
|
1002 |
+
"object-inspect": "^1.9.0"
|
1003 |
+
},
|
1004 |
+
"funding": {
|
1005 |
+
"url": "https://github.com/sponsors/ljharb"
|
1006 |
+
}
|
1007 |
+
},
|
1008 |
+
"node_modules/statuses": {
|
1009 |
+
"version": "2.0.1",
|
1010 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
1011 |
+
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
1012 |
+
"engines": {
|
1013 |
+
"node": ">= 0.8"
|
1014 |
+
}
|
1015 |
+
},
|
1016 |
+
"node_modules/streamsearch": {
|
1017 |
+
"version": "0.1.2",
|
1018 |
+
"resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz",
|
1019 |
+
"integrity": "sha512-jos8u++JKm0ARcSUTAZXOVC0mSox7Bhn6sBgty73P1f3JGf7yG2clTbBNHUdde/kdvP2FESam+vM6l8jBrNxHA==",
|
1020 |
+
"engines": {
|
1021 |
+
"node": ">=0.8.0"
|
1022 |
+
}
|
1023 |
+
},
|
1024 |
+
"node_modules/string_decoder": {
|
1025 |
+
"version": "0.10.31",
|
1026 |
+
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
|
1027 |
+
"integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ=="
|
1028 |
+
},
|
1029 |
+
"node_modules/supports-preserve-symlinks-flag": {
|
1030 |
+
"version": "1.0.0",
|
1031 |
+
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
1032 |
+
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
|
1033 |
+
"engines": {
|
1034 |
+
"node": ">= 0.4"
|
1035 |
+
},
|
1036 |
+
"funding": {
|
1037 |
+
"url": "https://github.com/sponsors/ljharb"
|
1038 |
+
}
|
1039 |
+
},
|
1040 |
+
"node_modules/to-fast-properties": {
|
1041 |
+
"version": "2.0.0",
|
1042 |
+
"resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
|
1043 |
+
"integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
|
1044 |
+
"engines": {
|
1045 |
+
"node": ">=4"
|
1046 |
+
}
|
1047 |
+
},
|
1048 |
+
"node_modules/toidentifier": {
|
1049 |
+
"version": "1.0.1",
|
1050 |
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
1051 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
1052 |
+
"engines": {
|
1053 |
+
"node": ">=0.6"
|
1054 |
+
}
|
1055 |
+
},
|
1056 |
+
"node_modules/token-stream": {
|
1057 |
+
"version": "1.0.0",
|
1058 |
+
"resolved": "https://registry.npmjs.org/token-stream/-/token-stream-1.0.0.tgz",
|
1059 |
+
"integrity": "sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg=="
|
1060 |
+
},
|
1061 |
+
"node_modules/type-is": {
|
1062 |
+
"version": "1.6.18",
|
1063 |
+
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
1064 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
1065 |
+
"dependencies": {
|
1066 |
+
"media-typer": "0.3.0",
|
1067 |
+
"mime-types": "~2.1.24"
|
1068 |
+
},
|
1069 |
+
"engines": {
|
1070 |
+
"node": ">= 0.6"
|
1071 |
+
}
|
1072 |
+
},
|
1073 |
+
"node_modules/typedarray": {
|
1074 |
+
"version": "0.0.6",
|
1075 |
+
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
1076 |
+
"integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA=="
|
1077 |
+
},
|
1078 |
+
"node_modules/unpipe": {
|
1079 |
+
"version": "1.0.0",
|
1080 |
+
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
1081 |
+
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
1082 |
+
"engines": {
|
1083 |
+
"node": ">= 0.8"
|
1084 |
+
}
|
1085 |
+
},
|
1086 |
+
"node_modules/util-deprecate": {
|
1087 |
+
"version": "1.0.2",
|
1088 |
+
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
1089 |
+
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
1090 |
+
},
|
1091 |
+
"node_modules/utils-merge": {
|
1092 |
+
"version": "1.0.1",
|
1093 |
+
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
1094 |
+
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
1095 |
+
"engines": {
|
1096 |
+
"node": ">= 0.4.0"
|
1097 |
+
}
|
1098 |
+
},
|
1099 |
+
"node_modules/vary": {
|
1100 |
+
"version": "1.1.2",
|
1101 |
+
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
1102 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
1103 |
+
"engines": {
|
1104 |
+
"node": ">= 0.8"
|
1105 |
+
}
|
1106 |
+
},
|
1107 |
+
"node_modules/void-elements": {
|
1108 |
+
"version": "3.1.0",
|
1109 |
+
"resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz",
|
1110 |
+
"integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==",
|
1111 |
+
"engines": {
|
1112 |
+
"node": ">=0.10.0"
|
1113 |
+
}
|
1114 |
+
},
|
1115 |
+
"node_modules/with": {
|
1116 |
+
"version": "7.0.2",
|
1117 |
+
"resolved": "https://registry.npmjs.org/with/-/with-7.0.2.tgz",
|
1118 |
+
"integrity": "sha512-RNGKj82nUPg3g5ygxkQl0R937xLyho1J24ItRCBTr/m1YnZkzJy1hUiHUJrc/VlsDQzsCnInEGSg3bci0Lmd4w==",
|
1119 |
+
"dependencies": {
|
1120 |
+
"@babel/parser": "^7.9.6",
|
1121 |
+
"@babel/types": "^7.9.6",
|
1122 |
+
"assert-never": "^1.2.1",
|
1123 |
+
"babel-walk": "3.0.0-canary-5"
|
1124 |
+
},
|
1125 |
+
"engines": {
|
1126 |
+
"node": ">= 10.0.0"
|
1127 |
+
}
|
1128 |
+
},
|
1129 |
+
"node_modules/xtend": {
|
1130 |
+
"version": "4.0.2",
|
1131 |
+
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
|
1132 |
+
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
|
1133 |
+
"engines": {
|
1134 |
+
"node": ">=0.4"
|
1135 |
+
}
|
1136 |
+
}
|
1137 |
+
}
|
1138 |
+
}
|
package.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "image-gallery",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "A basic node application using express to render a basic page with a file upload and a gallery of images uploaded by users.",
|
5 |
+
"main": "app.js",
|
6 |
+
"scripts": {
|
7 |
+
"start": "node app.js"
|
8 |
+
},
|
9 |
+
"dependencies": {
|
10 |
+
"express": "^4.17.1",
|
11 |
+
"multer": "^1.4.3",
|
12 |
+
"pug": "^3.0.2"
|
13 |
+
},
|
14 |
+
"author": "",
|
15 |
+
"license": "ISC"
|
16 |
+
}
|
public/stylesheets/style.css
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body {
|
2 |
+
font-family: Arial, sans-serif;
|
3 |
+
margin: 0;
|
4 |
+
padding: 0;
|
5 |
+
}
|
6 |
+
|
7 |
+
.container {
|
8 |
+
max-width: 1200px;
|
9 |
+
margin: 0 auto;
|
10 |
+
padding: 20px;
|
11 |
+
}
|
12 |
+
|
13 |
+
header {
|
14 |
+
text-align: center;
|
15 |
+
margin-bottom: 20px;
|
16 |
+
}
|
17 |
+
|
18 |
+
h1 {
|
19 |
+
font-size: 2rem;
|
20 |
+
margin-bottom: 10px;
|
21 |
+
}
|
22 |
+
|
23 |
+
form {
|
24 |
+
display: flex;
|
25 |
+
flex-direction: column;
|
26 |
+
align-items: center;
|
27 |
+
margin-bottom: 20px;
|
28 |
+
}
|
29 |
+
|
30 |
+
input[type="file"] {
|
31 |
+
margin-bottom: 10px;
|
32 |
+
}
|
33 |
+
|
34 |
+
input[type="submit"] {
|
35 |
+
background-color: #4CAF50;
|
36 |
+
border: none;
|
37 |
+
color: white;
|
38 |
+
padding: 10px 20px;
|
39 |
+
text-align: center;
|
40 |
+
text-decoration: none;
|
41 |
+
display: inline-block;
|
42 |
+
font-size: 16px;
|
43 |
+
margin: 4px 2px;
|
44 |
+
cursor: pointer;
|
45 |
+
}
|
46 |
+
|
47 |
+
.gallery {
|
48 |
+
display: flex;
|
49 |
+
flex-wrap: wrap;
|
50 |
+
justify-content: center;
|
51 |
+
}
|
52 |
+
|
53 |
+
.gallery img {
|
54 |
+
max-width: 200px;
|
55 |
+
margin: 10px;
|
56 |
+
object-fit: cover;
|
57 |
+
}
|
routes/index.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const express = require('express');
|
2 |
+
const router = express.Router();
|
3 |
+
const fs = require('fs');
|
4 |
+
const path = require('path');
|
5 |
+
|
6 |
+
router.get('/', (req, res) => {
|
7 |
+
const imagesPath = path.join(__dirname, '..', 'data');
|
8 |
+
fs.readdir(imagesPath, (err, files) => {
|
9 |
+
if (err) {
|
10 |
+
console.error(err);
|
11 |
+
return res.status(500).send('Error reading image files');
|
12 |
+
}
|
13 |
+
|
14 |
+
const imageFiles = files.filter(file => /\.(jpg|jpeg|png|gif)$/i.test(file));
|
15 |
+
res.render('index', { title: 'Image Gallery', images: imageFiles });
|
16 |
+
});
|
17 |
+
});
|
18 |
+
|
19 |
+
module.exports = router;
|
views/index.pug
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends layout
|
2 |
+
|
3 |
+
block content
|
4 |
+
.container
|
5 |
+
form(action="/upload", method="post", enctype="multipart/form-data")
|
6 |
+
input(type="file", name="image", accept="image/*")
|
7 |
+
input(type="submit", value="Upload Image")
|
8 |
+
.gallery
|
9 |
+
each image in images
|
10 |
+
img(src="/data/" + image)
|
views/layout.pug
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
doctype html
|
2 |
+
html
|
3 |
+
head
|
4 |
+
title= title
|
5 |
+
link(rel='stylesheet', href='/stylesheets/style.css')
|
6 |
+
body
|
7 |
+
header
|
8 |
+
h1 Image Gallery
|
9 |
+
block content
|