diff --git a/index.js b/index.js index c66fa47..c6ab0bc 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,7 @@ const bodyParser = require('body-parser'); const tus = require('tus-node-server'); const jwt = require('jsonwebtoken'); const path = require('path'); +const resolvePath = require('resolve-path'); const webpack = require('webpack'); const webpackDevMiddleware = require('webpack-dev-middleware'); @@ -40,11 +41,9 @@ const webpackConfig = require('./webpack.config.js'); - const loadAPI = (route, name) => { app.use(route, require('./lib/api/' + name)(repository)) } - - loadAPI('/', 'upload'); - loadAPI('/token', 'token'); - loadAPI('/admin', 'admin'); + app.use('/', require('./lib/api/upload')(repository, tusServer)); + app.use('/token', require('./lib/api/token')(repository)); + app.use('/admin', require('./lib/api/admin')(repository)); // Frontend @@ -59,6 +58,33 @@ const webpackConfig = require('./webpack.config.js'); app.use(webpackHotMiddleware(compiler)); } + + // Automatic fallback support for file icons + app.get('/images/fileicons/:format/:filename', (req, res) => + { + var basePath; + var filePath; + + try + { + basePath = resolvePath('./public/dist/images/fileicons/', req.params.format); + filePath = resolvePath(basePath, req.params.filename); + } + catch (err) + { + res.sendStatus(404); + } + + fs.stat(filePath, (err, stat) => + { + if (err) + res.sendFile(resolvePath(basePath, '_blank.png')); + else + res.sendFile(filePath); + }); + }); + + app.use(express.static(path.join(__dirname, 'custom'))); app.use(express.static(path.join(__dirname, 'public', 'dist'))); @@ -68,6 +94,7 @@ const webpackConfig = require('./webpack.config.js'); app.get('/admin', (req, res) => { res.redirect(301, '/#/admin/') }); + var server = app.listen(config.port, () => console.log('Recv running on port ' + server.address().port)); } catch (e) diff --git a/lib/api/admin.js b/lib/api/admin.js index d224df6..b469417 100644 --- a/lib/api/admin.js +++ b/lib/api/admin.js @@ -46,9 +46,35 @@ module.exports = (repository) => { await checkAuthorization(req, res, async (decoded) => { - res.send(await repository.codes.getCodes(decoded.userId)); + var codes = await repository.codes.getCodes(decoded.userId); + var usernames = await repository.users.getUsernames(); + + codes.forEach((item) => + { + item.username = usernames[item.userId]; + }); + + res.send(codes); }); })); + + router.get('/uploads', asyncHandler(async (req, res) => + { + await checkAuthorization(req, res, async (decoded) => + { + var files = await repository.uploads.getUploads(decoded.userId); + var usernames = await repository.users.getUsernames(); + + files.forEach((item) => + { + item.username = usernames[item.userId]; + }); + + res.send(files); + }); + })); + + return router; } \ No newline at end of file diff --git a/lib/api/token.js b/lib/api/token.js index 0c13a7d..65ed5e6 100644 --- a/lib/api/token.js +++ b/lib/api/token.js @@ -47,7 +47,8 @@ module.exports = (repository) => if (user !== null) { jwt.sign({ - userId: user.id + userId: user.id, + auth: user.auth }, config.jwtSecret, (err, token) => { if (err) diff --git a/lib/api/upload.js b/lib/api/upload.js index 1ab90ef..e6c4049 100644 --- a/lib/api/upload.js +++ b/lib/api/upload.js @@ -38,7 +38,7 @@ async function checkAuthorization(req, res, onVerified) -module.exports = (repository) => +module.exports = (repository, tusServer) => { var router = express.Router(); diff --git a/lib/repository/code.js b/lib/repository/code.js index 84a90dd..a91a9fc 100644 --- a/lib/repository/code.js +++ b/lib/repository/code.js @@ -97,9 +97,11 @@ class CodeRepository getCodes(userId) { + var self = this; + return new Promise((resolve, reject) => { - self.store.find({ userId: userId }, (err, docs) => + self.store.find(userId != null ? { userId: userId } : {}, (err, docs) => { if (err) { diff --git a/lib/repository/upload.js b/lib/repository/upload.js index 421d917..e456f08 100644 --- a/lib/repository/upload.js +++ b/lib/repository/upload.js @@ -1,3 +1,21 @@ +const _ = require('lodash'); + + +class Upload +{ + constructor(values) + { + var self = this; + + self.id = values.id || values._id || null; + self.userId = values.userId || null; + self.created = values.created || new Date(); + self.expiration = values.expiration || null; + self.files = values.files || []; + } +} + + class UploadRepository { constructor(store) @@ -39,6 +57,7 @@ class UploadRepository { var upload = { created: new Date(), + userId: userId, expiration: expiration, files: _.map(_.filter(files, (file) => file.hasOwnProperty('id') && file.hasOwnProperty('name')), @@ -64,6 +83,29 @@ class UploadRepository } }); } + + + getUploads(userId) + { + var self = this; + + return new Promise((resolve, reject) => + { + self.store.find(userId != null ? { userId: userId } : {}, (err, docs) => + { + if (err) + { + reject(err); + return; + } + + resolve(docs.map((dbUpload) => + { + return new Upload(dbUpload); + })); + }); + }); + } } diff --git a/lib/repository/user.js b/lib/repository/user.js index 5d95f83..2f68397 100644 --- a/lib/repository/user.js +++ b/lib/repository/user.js @@ -138,6 +138,32 @@ class UserRepository }); }); } + + + getUsernames() + { + var self = this; + + return new Promise((resolve, reject) => + { + self.store.find({}, (err, docs) => + { + if (err) + { + reject(err); + return; + } + + var usernames = {}; + docs.forEach((dbUser) => + { + usernames[dbUser._id] = dbUser.username + }); + + resolve(usernames); + }); + }); + } } diff --git a/package.json b/package.json index de2bf04..c4f796a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Recv - self-hosted web file transfer", "main": "index.js", "scripts": { - "dev": "node index.js", + "dev": "supervisor -w index.js,lib index.js", "build": "webpack --mode production", "test": "echo \"Error: no test specified\" && exit 1" }, @@ -21,11 +21,13 @@ "debug": "^3.1.0", "express": "^4.16.3", "express-async-handler": "^1.1.2", + "js-cookie": "^2.2.0", "jsonwebtoken": "^8.2.0", "lodash": "^4.17.5", "mkdirp": "^0.5.1", "nedb": "^1.8.0", "npm": "^5.8.0", + "resolve-path": "^1.4.0", "shortid": "^2.2.8", "tus-node-server": "^0.2.10" }, diff --git a/public/dist/images/fileicons/16px/_blank.png b/public/dist/images/fileicons/16px/_blank.png new file mode 100644 index 0000000..65e156a Binary files /dev/null and b/public/dist/images/fileicons/16px/_blank.png differ diff --git a/public/dist/images/fileicons/16px/_page.png b/public/dist/images/fileicons/16px/_page.png new file mode 100644 index 0000000..5773b80 Binary files /dev/null and b/public/dist/images/fileicons/16px/_page.png differ diff --git a/public/dist/images/fileicons/16px/aac.png b/public/dist/images/fileicons/16px/aac.png new file mode 100644 index 0000000..1e00664 Binary files /dev/null and b/public/dist/images/fileicons/16px/aac.png differ diff --git a/public/dist/images/fileicons/16px/ai.png b/public/dist/images/fileicons/16px/ai.png new file mode 100644 index 0000000..0fc0b42 Binary files /dev/null and b/public/dist/images/fileicons/16px/ai.png differ diff --git a/public/dist/images/fileicons/16px/aiff.png b/public/dist/images/fileicons/16px/aiff.png new file mode 100644 index 0000000..137b296 Binary files /dev/null and b/public/dist/images/fileicons/16px/aiff.png differ diff --git a/public/dist/images/fileicons/16px/avi.png b/public/dist/images/fileicons/16px/avi.png new file mode 100644 index 0000000..4a496e2 Binary files /dev/null and b/public/dist/images/fileicons/16px/avi.png differ diff --git a/public/dist/images/fileicons/16px/bmp.png b/public/dist/images/fileicons/16px/bmp.png new file mode 100644 index 0000000..a65b9ea Binary files /dev/null and b/public/dist/images/fileicons/16px/bmp.png differ diff --git a/public/dist/images/fileicons/16px/c.png b/public/dist/images/fileicons/16px/c.png new file mode 100644 index 0000000..12f9e32 Binary files /dev/null and b/public/dist/images/fileicons/16px/c.png differ diff --git a/public/dist/images/fileicons/16px/cpp.png b/public/dist/images/fileicons/16px/cpp.png new file mode 100644 index 0000000..4d1f57e Binary files /dev/null and b/public/dist/images/fileicons/16px/cpp.png differ diff --git a/public/dist/images/fileicons/16px/css.png b/public/dist/images/fileicons/16px/css.png new file mode 100644 index 0000000..3c2157a Binary files /dev/null and b/public/dist/images/fileicons/16px/css.png differ diff --git a/public/dist/images/fileicons/16px/csv.png b/public/dist/images/fileicons/16px/csv.png new file mode 100644 index 0000000..8433faf Binary files /dev/null and b/public/dist/images/fileicons/16px/csv.png differ diff --git a/public/dist/images/fileicons/16px/dat.png b/public/dist/images/fileicons/16px/dat.png new file mode 100644 index 0000000..d122917 Binary files /dev/null and b/public/dist/images/fileicons/16px/dat.png differ diff --git a/public/dist/images/fileicons/16px/dmg.png b/public/dist/images/fileicons/16px/dmg.png new file mode 100644 index 0000000..d772ea5 Binary files /dev/null and b/public/dist/images/fileicons/16px/dmg.png differ diff --git a/public/dist/images/fileicons/16px/doc.png b/public/dist/images/fileicons/16px/doc.png new file mode 100644 index 0000000..93d8461 Binary files /dev/null and b/public/dist/images/fileicons/16px/doc.png differ diff --git a/public/dist/images/fileicons/16px/dotx.png b/public/dist/images/fileicons/16px/dotx.png new file mode 100644 index 0000000..84fc21b Binary files /dev/null and b/public/dist/images/fileicons/16px/dotx.png differ diff --git a/public/dist/images/fileicons/16px/dwg.png b/public/dist/images/fileicons/16px/dwg.png new file mode 100644 index 0000000..345850a Binary files /dev/null and b/public/dist/images/fileicons/16px/dwg.png differ diff --git a/public/dist/images/fileicons/16px/dxf.png b/public/dist/images/fileicons/16px/dxf.png new file mode 100644 index 0000000..5ddb55a Binary files /dev/null and b/public/dist/images/fileicons/16px/dxf.png differ diff --git a/public/dist/images/fileicons/16px/eps.png b/public/dist/images/fileicons/16px/eps.png new file mode 100644 index 0000000..f5c14af Binary files /dev/null and b/public/dist/images/fileicons/16px/eps.png differ diff --git a/public/dist/images/fileicons/16px/exe.png b/public/dist/images/fileicons/16px/exe.png new file mode 100644 index 0000000..0ec60a8 Binary files /dev/null and b/public/dist/images/fileicons/16px/exe.png differ diff --git a/public/dist/images/fileicons/16px/flv.png b/public/dist/images/fileicons/16px/flv.png new file mode 100644 index 0000000..59e6323 Binary files /dev/null and b/public/dist/images/fileicons/16px/flv.png differ diff --git a/public/dist/images/fileicons/16px/gif.png b/public/dist/images/fileicons/16px/gif.png new file mode 100644 index 0000000..5ba4693 Binary files /dev/null and b/public/dist/images/fileicons/16px/gif.png differ diff --git a/public/dist/images/fileicons/16px/h.png b/public/dist/images/fileicons/16px/h.png new file mode 100644 index 0000000..ccb549d Binary files /dev/null and b/public/dist/images/fileicons/16px/h.png differ diff --git a/public/dist/images/fileicons/16px/hpp.png b/public/dist/images/fileicons/16px/hpp.png new file mode 100644 index 0000000..01420ef Binary files /dev/null and b/public/dist/images/fileicons/16px/hpp.png differ diff --git a/public/dist/images/fileicons/16px/html.png b/public/dist/images/fileicons/16px/html.png new file mode 100644 index 0000000..287e5d1 Binary files /dev/null and b/public/dist/images/fileicons/16px/html.png differ diff --git a/public/dist/images/fileicons/16px/ics.png b/public/dist/images/fileicons/16px/ics.png new file mode 100644 index 0000000..32fc37f Binary files /dev/null and b/public/dist/images/fileicons/16px/ics.png differ diff --git a/public/dist/images/fileicons/16px/iso.png b/public/dist/images/fileicons/16px/iso.png new file mode 100644 index 0000000..47f0f72 Binary files /dev/null and b/public/dist/images/fileicons/16px/iso.png differ diff --git a/public/dist/images/fileicons/16px/java.png b/public/dist/images/fileicons/16px/java.png new file mode 100644 index 0000000..bc068a0 Binary files /dev/null and b/public/dist/images/fileicons/16px/java.png differ diff --git a/public/dist/images/fileicons/16px/jpg.png b/public/dist/images/fileicons/16px/jpg.png new file mode 100644 index 0000000..19d83e4 Binary files /dev/null and b/public/dist/images/fileicons/16px/jpg.png differ diff --git a/public/dist/images/fileicons/16px/js.png b/public/dist/images/fileicons/16px/js.png new file mode 100644 index 0000000..fb31214 Binary files /dev/null and b/public/dist/images/fileicons/16px/js.png differ diff --git a/public/dist/images/fileicons/16px/key.png b/public/dist/images/fileicons/16px/key.png new file mode 100644 index 0000000..bec703e Binary files /dev/null and b/public/dist/images/fileicons/16px/key.png differ diff --git a/public/dist/images/fileicons/16px/less.png b/public/dist/images/fileicons/16px/less.png new file mode 100644 index 0000000..256006f Binary files /dev/null and b/public/dist/images/fileicons/16px/less.png differ diff --git a/public/dist/images/fileicons/16px/mid.png b/public/dist/images/fileicons/16px/mid.png new file mode 100644 index 0000000..6d80115 Binary files /dev/null and b/public/dist/images/fileicons/16px/mid.png differ diff --git a/public/dist/images/fileicons/16px/mp3.png b/public/dist/images/fileicons/16px/mp3.png new file mode 100644 index 0000000..7674978 Binary files /dev/null and b/public/dist/images/fileicons/16px/mp3.png differ diff --git a/public/dist/images/fileicons/16px/mp4.png b/public/dist/images/fileicons/16px/mp4.png new file mode 100644 index 0000000..91e312b Binary files /dev/null and b/public/dist/images/fileicons/16px/mp4.png differ diff --git a/public/dist/images/fileicons/16px/mpg.png b/public/dist/images/fileicons/16px/mpg.png new file mode 100644 index 0000000..dcf8e83 Binary files /dev/null and b/public/dist/images/fileicons/16px/mpg.png differ diff --git a/public/dist/images/fileicons/16px/odf.png b/public/dist/images/fileicons/16px/odf.png new file mode 100644 index 0000000..f865321 Binary files /dev/null and b/public/dist/images/fileicons/16px/odf.png differ diff --git a/public/dist/images/fileicons/16px/ods.png b/public/dist/images/fileicons/16px/ods.png new file mode 100644 index 0000000..b2bd792 Binary files /dev/null and b/public/dist/images/fileicons/16px/ods.png differ diff --git a/public/dist/images/fileicons/16px/odt.png b/public/dist/images/fileicons/16px/odt.png new file mode 100644 index 0000000..56d1947 Binary files /dev/null and b/public/dist/images/fileicons/16px/odt.png differ diff --git a/public/dist/images/fileicons/16px/otp.png b/public/dist/images/fileicons/16px/otp.png new file mode 100644 index 0000000..642605c Binary files /dev/null and b/public/dist/images/fileicons/16px/otp.png differ diff --git a/public/dist/images/fileicons/16px/ots.png b/public/dist/images/fileicons/16px/ots.png new file mode 100644 index 0000000..a22bbe1 Binary files /dev/null and b/public/dist/images/fileicons/16px/ots.png differ diff --git a/public/dist/images/fileicons/16px/ott.png b/public/dist/images/fileicons/16px/ott.png new file mode 100644 index 0000000..24f02c0 Binary files /dev/null and b/public/dist/images/fileicons/16px/ott.png differ diff --git a/public/dist/images/fileicons/16px/pdf.png b/public/dist/images/fileicons/16px/pdf.png new file mode 100644 index 0000000..99f0b4e Binary files /dev/null and b/public/dist/images/fileicons/16px/pdf.png differ diff --git a/public/dist/images/fileicons/16px/php.png b/public/dist/images/fileicons/16px/php.png new file mode 100644 index 0000000..f59e148 Binary files /dev/null and b/public/dist/images/fileicons/16px/php.png differ diff --git a/public/dist/images/fileicons/16px/png.png b/public/dist/images/fileicons/16px/png.png new file mode 100644 index 0000000..c12c737 Binary files /dev/null and b/public/dist/images/fileicons/16px/png.png differ diff --git a/public/dist/images/fileicons/16px/ppt.png b/public/dist/images/fileicons/16px/ppt.png new file mode 100644 index 0000000..617022a Binary files /dev/null and b/public/dist/images/fileicons/16px/ppt.png differ diff --git a/public/dist/images/fileicons/16px/psd.png b/public/dist/images/fileicons/16px/psd.png new file mode 100644 index 0000000..b5a7bd7 Binary files /dev/null and b/public/dist/images/fileicons/16px/psd.png differ diff --git a/public/dist/images/fileicons/16px/py.png b/public/dist/images/fileicons/16px/py.png new file mode 100644 index 0000000..fc4daaf Binary files /dev/null and b/public/dist/images/fileicons/16px/py.png differ diff --git a/public/dist/images/fileicons/16px/qt.png b/public/dist/images/fileicons/16px/qt.png new file mode 100644 index 0000000..11b4f61 Binary files /dev/null and b/public/dist/images/fileicons/16px/qt.png differ diff --git a/public/dist/images/fileicons/16px/rar.png b/public/dist/images/fileicons/16px/rar.png new file mode 100644 index 0000000..a69c9ea Binary files /dev/null and b/public/dist/images/fileicons/16px/rar.png differ diff --git a/public/dist/images/fileicons/16px/rb.png b/public/dist/images/fileicons/16px/rb.png new file mode 100644 index 0000000..3c474d7 Binary files /dev/null and b/public/dist/images/fileicons/16px/rb.png differ diff --git a/public/dist/images/fileicons/16px/rtf.png b/public/dist/images/fileicons/16px/rtf.png new file mode 100644 index 0000000..20ccbbd Binary files /dev/null and b/public/dist/images/fileicons/16px/rtf.png differ diff --git a/public/dist/images/fileicons/16px/sass.png b/public/dist/images/fileicons/16px/sass.png new file mode 100644 index 0000000..9dd4e35 Binary files /dev/null and b/public/dist/images/fileicons/16px/sass.png differ diff --git a/public/dist/images/fileicons/16px/scss.png b/public/dist/images/fileicons/16px/scss.png new file mode 100644 index 0000000..327c413 Binary files /dev/null and b/public/dist/images/fileicons/16px/scss.png differ diff --git a/public/dist/images/fileicons/16px/sql.png b/public/dist/images/fileicons/16px/sql.png new file mode 100644 index 0000000..f19e593 Binary files /dev/null and b/public/dist/images/fileicons/16px/sql.png differ diff --git a/public/dist/images/fileicons/16px/tga.png b/public/dist/images/fileicons/16px/tga.png new file mode 100644 index 0000000..b714efd Binary files /dev/null and b/public/dist/images/fileicons/16px/tga.png differ diff --git a/public/dist/images/fileicons/16px/tgz.png b/public/dist/images/fileicons/16px/tgz.png new file mode 100644 index 0000000..1797a4b Binary files /dev/null and b/public/dist/images/fileicons/16px/tgz.png differ diff --git a/public/dist/images/fileicons/16px/tiff.png b/public/dist/images/fileicons/16px/tiff.png new file mode 100644 index 0000000..ca0f253 Binary files /dev/null and b/public/dist/images/fileicons/16px/tiff.png differ diff --git a/public/dist/images/fileicons/16px/txt.png b/public/dist/images/fileicons/16px/txt.png new file mode 100644 index 0000000..4a0a419 Binary files /dev/null and b/public/dist/images/fileicons/16px/txt.png differ diff --git a/public/dist/images/fileicons/16px/wav.png b/public/dist/images/fileicons/16px/wav.png new file mode 100644 index 0000000..1648365 Binary files /dev/null and b/public/dist/images/fileicons/16px/wav.png differ diff --git a/public/dist/images/fileicons/16px/xls.png b/public/dist/images/fileicons/16px/xls.png new file mode 100644 index 0000000..0f9309f Binary files /dev/null and b/public/dist/images/fileicons/16px/xls.png differ diff --git a/public/dist/images/fileicons/16px/xlsx.png b/public/dist/images/fileicons/16px/xlsx.png new file mode 100644 index 0000000..af1b30e Binary files /dev/null and b/public/dist/images/fileicons/16px/xlsx.png differ diff --git a/public/dist/images/fileicons/16px/xml.png b/public/dist/images/fileicons/16px/xml.png new file mode 100644 index 0000000..375e3d9 Binary files /dev/null and b/public/dist/images/fileicons/16px/xml.png differ diff --git a/public/dist/images/fileicons/16px/yml.png b/public/dist/images/fileicons/16px/yml.png new file mode 100644 index 0000000..7a585e0 Binary files /dev/null and b/public/dist/images/fileicons/16px/yml.png differ diff --git a/public/dist/images/fileicons/16px/zip.png b/public/dist/images/fileicons/16px/zip.png new file mode 100644 index 0000000..85c1ced Binary files /dev/null and b/public/dist/images/fileicons/16px/zip.png differ diff --git a/public/dist/images/fileicons/32px/_blank.png b/public/dist/images/fileicons/32px/_blank.png new file mode 100644 index 0000000..fd57dfc Binary files /dev/null and b/public/dist/images/fileicons/32px/_blank.png differ diff --git a/public/dist/images/fileicons/32px/_page.png b/public/dist/images/fileicons/32px/_page.png new file mode 100644 index 0000000..d56d3f4 Binary files /dev/null and b/public/dist/images/fileicons/32px/_page.png differ diff --git a/public/dist/images/fileicons/32px/aac.png b/public/dist/images/fileicons/32px/aac.png new file mode 100644 index 0000000..4788715 Binary files /dev/null and b/public/dist/images/fileicons/32px/aac.png differ diff --git a/public/dist/images/fileicons/32px/ai.png b/public/dist/images/fileicons/32px/ai.png new file mode 100644 index 0000000..9fe6963 Binary files /dev/null and b/public/dist/images/fileicons/32px/ai.png differ diff --git a/public/dist/images/fileicons/32px/aiff.png b/public/dist/images/fileicons/32px/aiff.png new file mode 100644 index 0000000..b55326b Binary files /dev/null and b/public/dist/images/fileicons/32px/aiff.png differ diff --git a/public/dist/images/fileicons/32px/avi.png b/public/dist/images/fileicons/32px/avi.png new file mode 100644 index 0000000..a7c57c4 Binary files /dev/null and b/public/dist/images/fileicons/32px/avi.png differ diff --git a/public/dist/images/fileicons/32px/bmp.png b/public/dist/images/fileicons/32px/bmp.png new file mode 100644 index 0000000..63f1817 Binary files /dev/null and b/public/dist/images/fileicons/32px/bmp.png differ diff --git a/public/dist/images/fileicons/32px/c.png b/public/dist/images/fileicons/32px/c.png new file mode 100644 index 0000000..5171293 Binary files /dev/null and b/public/dist/images/fileicons/32px/c.png differ diff --git a/public/dist/images/fileicons/32px/cpp.png b/public/dist/images/fileicons/32px/cpp.png new file mode 100644 index 0000000..4f5f854 Binary files /dev/null and b/public/dist/images/fileicons/32px/cpp.png differ diff --git a/public/dist/images/fileicons/32px/css.png b/public/dist/images/fileicons/32px/css.png new file mode 100644 index 0000000..05c112b Binary files /dev/null and b/public/dist/images/fileicons/32px/css.png differ diff --git a/public/dist/images/fileicons/32px/csv.png b/public/dist/images/fileicons/32px/csv.png new file mode 100644 index 0000000..37f03fa Binary files /dev/null and b/public/dist/images/fileicons/32px/csv.png differ diff --git a/public/dist/images/fileicons/32px/dat.png b/public/dist/images/fileicons/32px/dat.png new file mode 100644 index 0000000..f803fca Binary files /dev/null and b/public/dist/images/fileicons/32px/dat.png differ diff --git a/public/dist/images/fileicons/32px/dmg.png b/public/dist/images/fileicons/32px/dmg.png new file mode 100644 index 0000000..5f67ec9 Binary files /dev/null and b/public/dist/images/fileicons/32px/dmg.png differ diff --git a/public/dist/images/fileicons/32px/doc.png b/public/dist/images/fileicons/32px/doc.png new file mode 100644 index 0000000..a42f391 Binary files /dev/null and b/public/dist/images/fileicons/32px/doc.png differ diff --git a/public/dist/images/fileicons/32px/dotx.png b/public/dist/images/fileicons/32px/dotx.png new file mode 100644 index 0000000..b067bfa Binary files /dev/null and b/public/dist/images/fileicons/32px/dotx.png differ diff --git a/public/dist/images/fileicons/32px/dwg.png b/public/dist/images/fileicons/32px/dwg.png new file mode 100644 index 0000000..698eb4c Binary files /dev/null and b/public/dist/images/fileicons/32px/dwg.png differ diff --git a/public/dist/images/fileicons/32px/dxf.png b/public/dist/images/fileicons/32px/dxf.png new file mode 100644 index 0000000..ca30be9 Binary files /dev/null and b/public/dist/images/fileicons/32px/dxf.png differ diff --git a/public/dist/images/fileicons/32px/eps.png b/public/dist/images/fileicons/32px/eps.png new file mode 100644 index 0000000..649a9d9 Binary files /dev/null and b/public/dist/images/fileicons/32px/eps.png differ diff --git a/public/dist/images/fileicons/32px/exe.png b/public/dist/images/fileicons/32px/exe.png new file mode 100644 index 0000000..ddfa770 Binary files /dev/null and b/public/dist/images/fileicons/32px/exe.png differ diff --git a/public/dist/images/fileicons/32px/flv.png b/public/dist/images/fileicons/32px/flv.png new file mode 100644 index 0000000..a02bcd9 Binary files /dev/null and b/public/dist/images/fileicons/32px/flv.png differ diff --git a/public/dist/images/fileicons/32px/gif.png b/public/dist/images/fileicons/32px/gif.png new file mode 100644 index 0000000..2b84c9d Binary files /dev/null and b/public/dist/images/fileicons/32px/gif.png differ diff --git a/public/dist/images/fileicons/32px/h.png b/public/dist/images/fileicons/32px/h.png new file mode 100644 index 0000000..f2bcdbf Binary files /dev/null and b/public/dist/images/fileicons/32px/h.png differ diff --git a/public/dist/images/fileicons/32px/hpp.png b/public/dist/images/fileicons/32px/hpp.png new file mode 100644 index 0000000..f725fc8 Binary files /dev/null and b/public/dist/images/fileicons/32px/hpp.png differ diff --git a/public/dist/images/fileicons/32px/html.png b/public/dist/images/fileicons/32px/html.png new file mode 100644 index 0000000..a1f6692 Binary files /dev/null and b/public/dist/images/fileicons/32px/html.png differ diff --git a/public/dist/images/fileicons/32px/ics.png b/public/dist/images/fileicons/32px/ics.png new file mode 100644 index 0000000..04d149a Binary files /dev/null and b/public/dist/images/fileicons/32px/ics.png differ diff --git a/public/dist/images/fileicons/32px/iso.png b/public/dist/images/fileicons/32px/iso.png new file mode 100644 index 0000000..4daccd2 Binary files /dev/null and b/public/dist/images/fileicons/32px/iso.png differ diff --git a/public/dist/images/fileicons/32px/java.png b/public/dist/images/fileicons/32px/java.png new file mode 100644 index 0000000..423bdeb Binary files /dev/null and b/public/dist/images/fileicons/32px/java.png differ diff --git a/public/dist/images/fileicons/32px/jpg.png b/public/dist/images/fileicons/32px/jpg.png new file mode 100644 index 0000000..0e7ace3 Binary files /dev/null and b/public/dist/images/fileicons/32px/jpg.png differ diff --git a/public/dist/images/fileicons/32px/js.png b/public/dist/images/fileicons/32px/js.png new file mode 100644 index 0000000..71dcfa5 Binary files /dev/null and b/public/dist/images/fileicons/32px/js.png differ diff --git a/public/dist/images/fileicons/32px/key.png b/public/dist/images/fileicons/32px/key.png new file mode 100644 index 0000000..8fd2e79 Binary files /dev/null and b/public/dist/images/fileicons/32px/key.png differ diff --git a/public/dist/images/fileicons/32px/less.png b/public/dist/images/fileicons/32px/less.png new file mode 100644 index 0000000..362fd3d Binary files /dev/null and b/public/dist/images/fileicons/32px/less.png differ diff --git a/public/dist/images/fileicons/32px/mid.png b/public/dist/images/fileicons/32px/mid.png new file mode 100644 index 0000000..542b9d0 Binary files /dev/null and b/public/dist/images/fileicons/32px/mid.png differ diff --git a/public/dist/images/fileicons/32px/mp3.png b/public/dist/images/fileicons/32px/mp3.png new file mode 100644 index 0000000..bcc30df Binary files /dev/null and b/public/dist/images/fileicons/32px/mp3.png differ diff --git a/public/dist/images/fileicons/32px/mp4.png b/public/dist/images/fileicons/32px/mp4.png new file mode 100644 index 0000000..9c96f2b Binary files /dev/null and b/public/dist/images/fileicons/32px/mp4.png differ diff --git a/public/dist/images/fileicons/32px/mpg.png b/public/dist/images/fileicons/32px/mpg.png new file mode 100644 index 0000000..dfd6596 Binary files /dev/null and b/public/dist/images/fileicons/32px/mpg.png differ diff --git a/public/dist/images/fileicons/32px/odf.png b/public/dist/images/fileicons/32px/odf.png new file mode 100644 index 0000000..8ac8ee4 Binary files /dev/null and b/public/dist/images/fileicons/32px/odf.png differ diff --git a/public/dist/images/fileicons/32px/ods.png b/public/dist/images/fileicons/32px/ods.png new file mode 100644 index 0000000..cb77dc1 Binary files /dev/null and b/public/dist/images/fileicons/32px/ods.png differ diff --git a/public/dist/images/fileicons/32px/odt.png b/public/dist/images/fileicons/32px/odt.png new file mode 100644 index 0000000..585120a Binary files /dev/null and b/public/dist/images/fileicons/32px/odt.png differ diff --git a/public/dist/images/fileicons/32px/otp.png b/public/dist/images/fileicons/32px/otp.png new file mode 100644 index 0000000..79f2da0 Binary files /dev/null and b/public/dist/images/fileicons/32px/otp.png differ diff --git a/public/dist/images/fileicons/32px/ots.png b/public/dist/images/fileicons/32px/ots.png new file mode 100644 index 0000000..192b792 Binary files /dev/null and b/public/dist/images/fileicons/32px/ots.png differ diff --git a/public/dist/images/fileicons/32px/ott.png b/public/dist/images/fileicons/32px/ott.png new file mode 100644 index 0000000..cc6aaeb Binary files /dev/null and b/public/dist/images/fileicons/32px/ott.png differ diff --git a/public/dist/images/fileicons/32px/pdf.png b/public/dist/images/fileicons/32px/pdf.png new file mode 100644 index 0000000..b2efd2c Binary files /dev/null and b/public/dist/images/fileicons/32px/pdf.png differ diff --git a/public/dist/images/fileicons/32px/php.png b/public/dist/images/fileicons/32px/php.png new file mode 100644 index 0000000..20677a7 Binary files /dev/null and b/public/dist/images/fileicons/32px/php.png differ diff --git a/public/dist/images/fileicons/32px/png.png b/public/dist/images/fileicons/32px/png.png new file mode 100644 index 0000000..b698be6 Binary files /dev/null and b/public/dist/images/fileicons/32px/png.png differ diff --git a/public/dist/images/fileicons/32px/ppt.png b/public/dist/images/fileicons/32px/ppt.png new file mode 100644 index 0000000..39601ae Binary files /dev/null and b/public/dist/images/fileicons/32px/ppt.png differ diff --git a/public/dist/images/fileicons/32px/psd.png b/public/dist/images/fileicons/32px/psd.png new file mode 100644 index 0000000..fb347ca Binary files /dev/null and b/public/dist/images/fileicons/32px/psd.png differ diff --git a/public/dist/images/fileicons/32px/py.png b/public/dist/images/fileicons/32px/py.png new file mode 100644 index 0000000..79dbbaf Binary files /dev/null and b/public/dist/images/fileicons/32px/py.png differ diff --git a/public/dist/images/fileicons/32px/qt.png b/public/dist/images/fileicons/32px/qt.png new file mode 100644 index 0000000..cd9a08f Binary files /dev/null and b/public/dist/images/fileicons/32px/qt.png differ diff --git a/public/dist/images/fileicons/32px/rar.png b/public/dist/images/fileicons/32px/rar.png new file mode 100644 index 0000000..723f719 Binary files /dev/null and b/public/dist/images/fileicons/32px/rar.png differ diff --git a/public/dist/images/fileicons/32px/rb.png b/public/dist/images/fileicons/32px/rb.png new file mode 100644 index 0000000..33a8f23 Binary files /dev/null and b/public/dist/images/fileicons/32px/rb.png differ diff --git a/public/dist/images/fileicons/32px/rtf.png b/public/dist/images/fileicons/32px/rtf.png new file mode 100644 index 0000000..552cddb Binary files /dev/null and b/public/dist/images/fileicons/32px/rtf.png differ diff --git a/public/dist/images/fileicons/32px/sass.png b/public/dist/images/fileicons/32px/sass.png new file mode 100644 index 0000000..a208194 Binary files /dev/null and b/public/dist/images/fileicons/32px/sass.png differ diff --git a/public/dist/images/fileicons/32px/scss.png b/public/dist/images/fileicons/32px/scss.png new file mode 100644 index 0000000..441e730 Binary files /dev/null and b/public/dist/images/fileicons/32px/scss.png differ diff --git a/public/dist/images/fileicons/32px/sql.png b/public/dist/images/fileicons/32px/sql.png new file mode 100644 index 0000000..3546e70 Binary files /dev/null and b/public/dist/images/fileicons/32px/sql.png differ diff --git a/public/dist/images/fileicons/32px/tga.png b/public/dist/images/fileicons/32px/tga.png new file mode 100644 index 0000000..544d146 Binary files /dev/null and b/public/dist/images/fileicons/32px/tga.png differ diff --git a/public/dist/images/fileicons/32px/tgz.png b/public/dist/images/fileicons/32px/tgz.png new file mode 100644 index 0000000..b25f50d Binary files /dev/null and b/public/dist/images/fileicons/32px/tgz.png differ diff --git a/public/dist/images/fileicons/32px/tiff.png b/public/dist/images/fileicons/32px/tiff.png new file mode 100644 index 0000000..4ea16f7 Binary files /dev/null and b/public/dist/images/fileicons/32px/tiff.png differ diff --git a/public/dist/images/fileicons/32px/txt.png b/public/dist/images/fileicons/32px/txt.png new file mode 100644 index 0000000..6252711 Binary files /dev/null and b/public/dist/images/fileicons/32px/txt.png differ diff --git a/public/dist/images/fileicons/32px/wav.png b/public/dist/images/fileicons/32px/wav.png new file mode 100644 index 0000000..80287a9 Binary files /dev/null and b/public/dist/images/fileicons/32px/wav.png differ diff --git a/public/dist/images/fileicons/32px/xls.png b/public/dist/images/fileicons/32px/xls.png new file mode 100644 index 0000000..997a0ff Binary files /dev/null and b/public/dist/images/fileicons/32px/xls.png differ diff --git a/public/dist/images/fileicons/32px/xlsx.png b/public/dist/images/fileicons/32px/xlsx.png new file mode 100644 index 0000000..350252f Binary files /dev/null and b/public/dist/images/fileicons/32px/xlsx.png differ diff --git a/public/dist/images/fileicons/32px/xml.png b/public/dist/images/fileicons/32px/xml.png new file mode 100644 index 0000000..a2a9a84 Binary files /dev/null and b/public/dist/images/fileicons/32px/xml.png differ diff --git a/public/dist/images/fileicons/32px/yml.png b/public/dist/images/fileicons/32px/yml.png new file mode 100644 index 0000000..758ea70 Binary files /dev/null and b/public/dist/images/fileicons/32px/yml.png differ diff --git a/public/dist/images/fileicons/32px/zip.png b/public/dist/images/fileicons/32px/zip.png new file mode 100644 index 0000000..15850ff Binary files /dev/null and b/public/dist/images/fileicons/32px/zip.png differ diff --git a/public/dist/images/fileicons/48px/_blank.png b/public/dist/images/fileicons/48px/_blank.png new file mode 100644 index 0000000..ceebb42 Binary files /dev/null and b/public/dist/images/fileicons/48px/_blank.png differ diff --git a/public/dist/images/fileicons/48px/_page.png b/public/dist/images/fileicons/48px/_page.png new file mode 100644 index 0000000..349e29f Binary files /dev/null and b/public/dist/images/fileicons/48px/_page.png differ diff --git a/public/dist/images/fileicons/48px/aac.png b/public/dist/images/fileicons/48px/aac.png new file mode 100644 index 0000000..a0720ca Binary files /dev/null and b/public/dist/images/fileicons/48px/aac.png differ diff --git a/public/dist/images/fileicons/48px/ai.png b/public/dist/images/fileicons/48px/ai.png new file mode 100644 index 0000000..25428c7 Binary files /dev/null and b/public/dist/images/fileicons/48px/ai.png differ diff --git a/public/dist/images/fileicons/48px/aiff.png b/public/dist/images/fileicons/48px/aiff.png new file mode 100644 index 0000000..c4adb94 Binary files /dev/null and b/public/dist/images/fileicons/48px/aiff.png differ diff --git a/public/dist/images/fileicons/48px/avi.png b/public/dist/images/fileicons/48px/avi.png new file mode 100644 index 0000000..6ccb586 Binary files /dev/null and b/public/dist/images/fileicons/48px/avi.png differ diff --git a/public/dist/images/fileicons/48px/bmp.png b/public/dist/images/fileicons/48px/bmp.png new file mode 100644 index 0000000..98ef182 Binary files /dev/null and b/public/dist/images/fileicons/48px/bmp.png differ diff --git a/public/dist/images/fileicons/48px/c.png b/public/dist/images/fileicons/48px/c.png new file mode 100644 index 0000000..1134bd2 Binary files /dev/null and b/public/dist/images/fileicons/48px/c.png differ diff --git a/public/dist/images/fileicons/48px/cpp.png b/public/dist/images/fileicons/48px/cpp.png new file mode 100644 index 0000000..cbf4db5 Binary files /dev/null and b/public/dist/images/fileicons/48px/cpp.png differ diff --git a/public/dist/images/fileicons/48px/css.png b/public/dist/images/fileicons/48px/css.png new file mode 100644 index 0000000..1d2ee26 Binary files /dev/null and b/public/dist/images/fileicons/48px/css.png differ diff --git a/public/dist/images/fileicons/48px/csv.png b/public/dist/images/fileicons/48px/csv.png new file mode 100644 index 0000000..df6953f Binary files /dev/null and b/public/dist/images/fileicons/48px/csv.png differ diff --git a/public/dist/images/fileicons/48px/dat.png b/public/dist/images/fileicons/48px/dat.png new file mode 100644 index 0000000..8623145 Binary files /dev/null and b/public/dist/images/fileicons/48px/dat.png differ diff --git a/public/dist/images/fileicons/48px/dmg.png b/public/dist/images/fileicons/48px/dmg.png new file mode 100644 index 0000000..3fc2e36 Binary files /dev/null and b/public/dist/images/fileicons/48px/dmg.png differ diff --git a/public/dist/images/fileicons/48px/doc.png b/public/dist/images/fileicons/48px/doc.png new file mode 100644 index 0000000..cdfcf6c Binary files /dev/null and b/public/dist/images/fileicons/48px/doc.png differ diff --git a/public/dist/images/fileicons/48px/dotx.png b/public/dist/images/fileicons/48px/dotx.png new file mode 100644 index 0000000..6b52dd1 Binary files /dev/null and b/public/dist/images/fileicons/48px/dotx.png differ diff --git a/public/dist/images/fileicons/48px/dwg.png b/public/dist/images/fileicons/48px/dwg.png new file mode 100644 index 0000000..2e82182 Binary files /dev/null and b/public/dist/images/fileicons/48px/dwg.png differ diff --git a/public/dist/images/fileicons/48px/dxf.png b/public/dist/images/fileicons/48px/dxf.png new file mode 100644 index 0000000..18abb2a Binary files /dev/null and b/public/dist/images/fileicons/48px/dxf.png differ diff --git a/public/dist/images/fileicons/48px/eps.png b/public/dist/images/fileicons/48px/eps.png new file mode 100644 index 0000000..41fc8dc Binary files /dev/null and b/public/dist/images/fileicons/48px/eps.png differ diff --git a/public/dist/images/fileicons/48px/exe.png b/public/dist/images/fileicons/48px/exe.png new file mode 100644 index 0000000..7bee6e2 Binary files /dev/null and b/public/dist/images/fileicons/48px/exe.png differ diff --git a/public/dist/images/fileicons/48px/flv.png b/public/dist/images/fileicons/48px/flv.png new file mode 100644 index 0000000..ceba637 Binary files /dev/null and b/public/dist/images/fileicons/48px/flv.png differ diff --git a/public/dist/images/fileicons/48px/gif.png b/public/dist/images/fileicons/48px/gif.png new file mode 100644 index 0000000..8d47b3a Binary files /dev/null and b/public/dist/images/fileicons/48px/gif.png differ diff --git a/public/dist/images/fileicons/48px/h.png b/public/dist/images/fileicons/48px/h.png new file mode 100644 index 0000000..8c3accc Binary files /dev/null and b/public/dist/images/fileicons/48px/h.png differ diff --git a/public/dist/images/fileicons/48px/hpp.png b/public/dist/images/fileicons/48px/hpp.png new file mode 100644 index 0000000..a524529 Binary files /dev/null and b/public/dist/images/fileicons/48px/hpp.png differ diff --git a/public/dist/images/fileicons/48px/html.png b/public/dist/images/fileicons/48px/html.png new file mode 100644 index 0000000..abd1aaa Binary files /dev/null and b/public/dist/images/fileicons/48px/html.png differ diff --git a/public/dist/images/fileicons/48px/ics.png b/public/dist/images/fileicons/48px/ics.png new file mode 100644 index 0000000..2be146d Binary files /dev/null and b/public/dist/images/fileicons/48px/ics.png differ diff --git a/public/dist/images/fileicons/48px/iso.png b/public/dist/images/fileicons/48px/iso.png new file mode 100644 index 0000000..fbe5a0c Binary files /dev/null and b/public/dist/images/fileicons/48px/iso.png differ diff --git a/public/dist/images/fileicons/48px/java.png b/public/dist/images/fileicons/48px/java.png new file mode 100644 index 0000000..fe608bf Binary files /dev/null and b/public/dist/images/fileicons/48px/java.png differ diff --git a/public/dist/images/fileicons/48px/jpg.png b/public/dist/images/fileicons/48px/jpg.png new file mode 100644 index 0000000..f04374f Binary files /dev/null and b/public/dist/images/fileicons/48px/jpg.png differ diff --git a/public/dist/images/fileicons/48px/js.png b/public/dist/images/fileicons/48px/js.png new file mode 100644 index 0000000..903904f Binary files /dev/null and b/public/dist/images/fileicons/48px/js.png differ diff --git a/public/dist/images/fileicons/48px/key.png b/public/dist/images/fileicons/48px/key.png new file mode 100644 index 0000000..07695ec Binary files /dev/null and b/public/dist/images/fileicons/48px/key.png differ diff --git a/public/dist/images/fileicons/48px/less.png b/public/dist/images/fileicons/48px/less.png new file mode 100644 index 0000000..0a2a4e8 Binary files /dev/null and b/public/dist/images/fileicons/48px/less.png differ diff --git a/public/dist/images/fileicons/48px/mid.png b/public/dist/images/fileicons/48px/mid.png new file mode 100644 index 0000000..6244336 Binary files /dev/null and b/public/dist/images/fileicons/48px/mid.png differ diff --git a/public/dist/images/fileicons/48px/mp3.png b/public/dist/images/fileicons/48px/mp3.png new file mode 100644 index 0000000..523bd79 Binary files /dev/null and b/public/dist/images/fileicons/48px/mp3.png differ diff --git a/public/dist/images/fileicons/48px/mp4.png b/public/dist/images/fileicons/48px/mp4.png new file mode 100644 index 0000000..68a4404 Binary files /dev/null and b/public/dist/images/fileicons/48px/mp4.png differ diff --git a/public/dist/images/fileicons/48px/mpg.png b/public/dist/images/fileicons/48px/mpg.png new file mode 100644 index 0000000..64e72e7 Binary files /dev/null and b/public/dist/images/fileicons/48px/mpg.png differ diff --git a/public/dist/images/fileicons/48px/odf.png b/public/dist/images/fileicons/48px/odf.png new file mode 100644 index 0000000..4739952 Binary files /dev/null and b/public/dist/images/fileicons/48px/odf.png differ diff --git a/public/dist/images/fileicons/48px/ods.png b/public/dist/images/fileicons/48px/ods.png new file mode 100644 index 0000000..5f09b0c Binary files /dev/null and b/public/dist/images/fileicons/48px/ods.png differ diff --git a/public/dist/images/fileicons/48px/odt.png b/public/dist/images/fileicons/48px/odt.png new file mode 100644 index 0000000..607bae5 Binary files /dev/null and b/public/dist/images/fileicons/48px/odt.png differ diff --git a/public/dist/images/fileicons/48px/otp.png b/public/dist/images/fileicons/48px/otp.png new file mode 100644 index 0000000..655bc83 Binary files /dev/null and b/public/dist/images/fileicons/48px/otp.png differ diff --git a/public/dist/images/fileicons/48px/ots.png b/public/dist/images/fileicons/48px/ots.png new file mode 100644 index 0000000..c59ad95 Binary files /dev/null and b/public/dist/images/fileicons/48px/ots.png differ diff --git a/public/dist/images/fileicons/48px/ott.png b/public/dist/images/fileicons/48px/ott.png new file mode 100644 index 0000000..18dd9fa Binary files /dev/null and b/public/dist/images/fileicons/48px/ott.png differ diff --git a/public/dist/images/fileicons/48px/pdf.png b/public/dist/images/fileicons/48px/pdf.png new file mode 100644 index 0000000..0f8a3e1 Binary files /dev/null and b/public/dist/images/fileicons/48px/pdf.png differ diff --git a/public/dist/images/fileicons/48px/php.png b/public/dist/images/fileicons/48px/php.png new file mode 100644 index 0000000..144b543 Binary files /dev/null and b/public/dist/images/fileicons/48px/php.png differ diff --git a/public/dist/images/fileicons/48px/png.png b/public/dist/images/fileicons/48px/png.png new file mode 100644 index 0000000..0043d8b Binary files /dev/null and b/public/dist/images/fileicons/48px/png.png differ diff --git a/public/dist/images/fileicons/48px/ppt.png b/public/dist/images/fileicons/48px/ppt.png new file mode 100644 index 0000000..ef39540 Binary files /dev/null and b/public/dist/images/fileicons/48px/ppt.png differ diff --git a/public/dist/images/fileicons/48px/psd.png b/public/dist/images/fileicons/48px/psd.png new file mode 100644 index 0000000..c1fad7c Binary files /dev/null and b/public/dist/images/fileicons/48px/psd.png differ diff --git a/public/dist/images/fileicons/48px/py.png b/public/dist/images/fileicons/48px/py.png new file mode 100644 index 0000000..892dda1 Binary files /dev/null and b/public/dist/images/fileicons/48px/py.png differ diff --git a/public/dist/images/fileicons/48px/qt.png b/public/dist/images/fileicons/48px/qt.png new file mode 100644 index 0000000..db94f79 Binary files /dev/null and b/public/dist/images/fileicons/48px/qt.png differ diff --git a/public/dist/images/fileicons/48px/rar.png b/public/dist/images/fileicons/48px/rar.png new file mode 100644 index 0000000..a0d3b94 Binary files /dev/null and b/public/dist/images/fileicons/48px/rar.png differ diff --git a/public/dist/images/fileicons/48px/rb.png b/public/dist/images/fileicons/48px/rb.png new file mode 100644 index 0000000..edadadc Binary files /dev/null and b/public/dist/images/fileicons/48px/rb.png differ diff --git a/public/dist/images/fileicons/48px/rtf.png b/public/dist/images/fileicons/48px/rtf.png new file mode 100644 index 0000000..b735802 Binary files /dev/null and b/public/dist/images/fileicons/48px/rtf.png differ diff --git a/public/dist/images/fileicons/48px/sass.png b/public/dist/images/fileicons/48px/sass.png new file mode 100644 index 0000000..00edae2 Binary files /dev/null and b/public/dist/images/fileicons/48px/sass.png differ diff --git a/public/dist/images/fileicons/48px/scss.png b/public/dist/images/fileicons/48px/scss.png new file mode 100644 index 0000000..e984238 Binary files /dev/null and b/public/dist/images/fileicons/48px/scss.png differ diff --git a/public/dist/images/fileicons/48px/sql.png b/public/dist/images/fileicons/48px/sql.png new file mode 100644 index 0000000..0664ed5 Binary files /dev/null and b/public/dist/images/fileicons/48px/sql.png differ diff --git a/public/dist/images/fileicons/48px/tga.png b/public/dist/images/fileicons/48px/tga.png new file mode 100644 index 0000000..fb6ad73 Binary files /dev/null and b/public/dist/images/fileicons/48px/tga.png differ diff --git a/public/dist/images/fileicons/48px/tgz.png b/public/dist/images/fileicons/48px/tgz.png new file mode 100644 index 0000000..d99d6d6 Binary files /dev/null and b/public/dist/images/fileicons/48px/tgz.png differ diff --git a/public/dist/images/fileicons/48px/tiff.png b/public/dist/images/fileicons/48px/tiff.png new file mode 100644 index 0000000..8b90725 Binary files /dev/null and b/public/dist/images/fileicons/48px/tiff.png differ diff --git a/public/dist/images/fileicons/48px/txt.png b/public/dist/images/fileicons/48px/txt.png new file mode 100644 index 0000000..26909be Binary files /dev/null and b/public/dist/images/fileicons/48px/txt.png differ diff --git a/public/dist/images/fileicons/48px/wav.png b/public/dist/images/fileicons/48px/wav.png new file mode 100644 index 0000000..9079924 Binary files /dev/null and b/public/dist/images/fileicons/48px/wav.png differ diff --git a/public/dist/images/fileicons/48px/xls.png b/public/dist/images/fileicons/48px/xls.png new file mode 100644 index 0000000..67c7708 Binary files /dev/null and b/public/dist/images/fileicons/48px/xls.png differ diff --git a/public/dist/images/fileicons/48px/xlsx.png b/public/dist/images/fileicons/48px/xlsx.png new file mode 100644 index 0000000..4e83448 Binary files /dev/null and b/public/dist/images/fileicons/48px/xlsx.png differ diff --git a/public/dist/images/fileicons/48px/xml.png b/public/dist/images/fileicons/48px/xml.png new file mode 100644 index 0000000..8bdd012 Binary files /dev/null and b/public/dist/images/fileicons/48px/xml.png differ diff --git a/public/dist/images/fileicons/48px/yml.png b/public/dist/images/fileicons/48px/yml.png new file mode 100644 index 0000000..1b5c7b8 Binary files /dev/null and b/public/dist/images/fileicons/48px/yml.png differ diff --git a/public/dist/images/fileicons/48px/zip.png b/public/dist/images/fileicons/48px/zip.png new file mode 100644 index 0000000..db988ad Binary files /dev/null and b/public/dist/images/fileicons/48px/zip.png differ diff --git a/public/dist/images/fileicons/LICENSE b/public/dist/images/fileicons/LICENSE new file mode 100644 index 0000000..826ec58 --- /dev/null +++ b/public/dist/images/fileicons/LICENSE @@ -0,0 +1,14 @@ +The MIT License (MIT) + +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. diff --git a/public/dist/images/fileicons/README.md b/public/dist/images/fileicons/README.md new file mode 100644 index 0000000..3765de4 --- /dev/null +++ b/public/dist/images/fileicons/README.md @@ -0,0 +1,49 @@ +Free Icon Set for files +================================ + +A free icon set with vector images for popular extensions: +AAC, AI, AIFF, AVI, C, CPP, CSS, CSV, DAT, DMG, DOC, EXE, FLV, GIF, H, HPP, +HTML, ICS, JAVA, JPG, KEY, MID, MP3, MP4, MPG, PDF, PHP, PNG, PPT, PSD, PY, +QT, RAR, RB, RTF, SQL, TIFF, TXT, WAV, XLS, XML, YML, ZIP. + +All icons are also offered in 512x512px, 48x48px, 32x32px. + +These icons are an extract of [Teambox project manager](http://www.teambox.com/ "Project Management"). +Designed for Teambox Technologies S.L. (2009) + +Teambox is a collaboration web application built on Ruby on Rails. + +Visit [Teambox website](http://teambox.com/ "Project Management") +for documentation, community and support: + +Teambox: Project Management and Collaboration software +------- + +- Website: +- Copyright: (cc) 2009 Teambox Technologies +- License: MIT License + +LICENSE +------- + +Copyright (C) 2009. Teambox Technologies, S.L. + +The MIT License (MIT) + +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. diff --git a/public/src/App.vue b/public/src/App.vue index 6dd6b03..0ac5bb3 100644 --- a/public/src/App.vue +++ b/public/src/App.vue @@ -1,5 +1,5 @@ + + \ No newline at end of file diff --git a/public/src/route/admin/Uploads.vue b/public/src/route/admin/Uploads.vue new file mode 100644 index 0000000..8322f0a --- /dev/null +++ b/public/src/route/admin/Uploads.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/public/src/route/admin/Users.vue b/public/src/route/admin/Users.vue index 188fab2..37c44fa 100644 --- a/public/src/route/admin/Users.vue +++ b/public/src/route/admin/Users.vue @@ -1,4 +1,25 @@ + + \ No newline at end of file diff --git a/public/src/shared.js b/public/src/shared.js index 16ad717..20aa07b 100644 --- a/public/src/shared.js +++ b/public/src/shared.js @@ -1,9 +1,26 @@ import Vue from 'vue'; +import Cookies from 'js-cookie'; export default new Vue({ - data () { + data() { return { token: null } }, + + created() + { + var self = this; + + var cookie = Cookies.get('token'); + if (typeof cookie !== 'undefined') + self.token = cookie; + }, + + watch: { + token(newValue) + { + Cookies.set('token', newValue); + } + } }); \ No newline at end of file