Comparing version 1.0.1 to 1.0.2
@@ -27,7 +27,8 @@ // Administration tools | ||
opts = Object.assign({ | ||
title: 'Bit Chest', | ||
roomWord: 'File Chest', | ||
title: 'File Chest', | ||
roomWord: 'Chest', | ||
port: 8888, | ||
uploadDir: path.join(__dirname, '.temp'), | ||
maxFileSize: 1048576 | ||
maxFileSize: 1048576, | ||
poweredBy: true | ||
}, opts) | ||
@@ -34,0 +35,0 @@ |
@@ -5,2 +5,3 @@ const fs = require('fs') | ||
const lorem = require('random-lorem') | ||
const pjson = require('../package.json') | ||
@@ -21,3 +22,6 @@ // Setup | ||
exports.index = (req, res) => { | ||
res.send(template({ opts: req.opts })) | ||
res.send(template({ | ||
opts: req.opts, | ||
homeUrl: pjson.homepage | ||
})) | ||
} | ||
@@ -24,0 +28,0 @@ |
@@ -6,2 +6,3 @@ const fse = require('fs-extra') | ||
const multer = require('multer') | ||
const pjson = require('../../package.json') | ||
@@ -65,3 +66,4 @@ // Setup | ||
opts: req.opts, | ||
files: files | ||
files: files, | ||
homeUrl: pjson.homepage | ||
})) | ||
@@ -68,0 +70,0 @@ }) |
{ | ||
"name": "bitchest", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Bit Chest. Simple anonymous and temporary file sharing app.", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/axelpale/bitchest#readme", | ||
"homepage": "https://github.com/axelpale/bitchest", | ||
"dependencies": { | ||
@@ -24,0 +24,0 @@ "ejs": "^2.6.1", |
@@ -21,11 +21,18 @@ # bitchest | ||
bit.run({ | ||
title: 'Bit Chest', | ||
roomWord: 'File Chest', | ||
title: 'File Chest', | ||
roomWord: 'Chest', | ||
port: 8888, | ||
uploadDir: path.resolve(\__dirname, '.temp'), | ||
maxFileSize: 1048576 // bytes | ||
uploadDir: path.join(\__dirname, '.temp'), | ||
maxFileSize: 1048576, // bytes | ||
poweredBy: true | ||
}) | ||
## Tech | ||
- [Express.js](https://expressjs.com/) | ||
- [Multer](https://github.com/expressjs/multer) | ||
- [Bootstrap](https://getbootstrap.com/) | ||
## Licence | ||
MIT | ||
[MIT](LICENSE) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
64027
188
38