dependabot[bot] ffb7e90e40 Bump lodash from 4.17.11 to 4.17.15
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 07:52:34 +00:00
2019-05-19 12:21:28 +05:30
2019-05-27 15:49:17 +05:30
2019-05-24 08:52:42 +05:30
2019-05-27 15:46:27 +05:30
2019-05-17 20:57:11 +05:30
2019-05-25 13:37:19 +05:30
??
2019-05-27 17:55:54 +05:30
2019-05-27 15:46:27 +05:30
2019-05-26 21:50:08 +05:30
2019-05-27 13:55:22 +05:30

nodejs-fm

Build Status

A simple file manager for managing files on a remote fs using Node.

Dependencies: express body-parser @fortawesome/fontawesome-free jquery connect-busboy Dependencies(testing): chai mocha chai-http

Checklist

  • Folder Traversal
  • File Downloads
  • File Moving
  • Upload

Why

Personal requirement. Because of this, only renaming/moving(only in same fs, due to fs.rename()) is available, and uploading/downloading. No authentication, as it is based on a small local server, and the major way of accessing it, is ssh.

Usage

Use settings.json and point it to a valid address, and select a required port. Default 8080

For the backend, the jsons have this form.

For running it:

# Clone repo
git clone https://github.com/chrisvrose/nodejs-fm.git
# Move into repo folder
cd nodejs-fm/
# Setup the project
npm i
# Your own config, start with settings.json
#...
# Start the server
npm start

Server requests

Requests:

{
    'loc': "<valid location>"
}

Responses (View directory):

{
    'loc': "<location>",
    'back': "<location|null>",
    'contents':[
        {
            'name':"<filename>",
            'path':"<location>",
            'isDir': "<true|false>"
        },
        ...
    ]
}

Responses(Rename/Move Success,Upload)

{
    'loc':"<new location>"
}

Credit

  • Samuel Thornton: Material Design Box Shadows
  • Chris Pratt: File Download via Ajax
  • StackOverflow: Troubleshooting errors
  • Google: All knowing
Description
Barebones file management for file serving, supports uploads and moves.
Readme MIT 184 KiB
Languages
JavaScript 67.9%
CSS 16.7%
HTML 15.4%