Skip to content

Commit

Permalink
Adds README; Adds LICENSE; Adds package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
msimmer committed Oct 23, 2019
1 parent fc5c78d commit 41c6987
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) Maxwell Simmer (http:https://maxwellsimmer.com) 2019

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.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# torrent-dashboard

An Express app for managing Transmit clients

## Install

```
npm i && npm run vendor
```

## Develop

```
npm run start:dev
```

Then navigate to http:https://localhost:3000/

19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"vendor": "node scripts/copy-vendor-scripts.js",
"reset": ". ./env.sh && node scripts/reset-database.js",
"start": "npm run vendor && node ./bin/www",
"start:dev": ". ./env.sh && DEBUG=dashboard:* node ./bin/www"
"start:dev": ". ./env.sh && npm run vendor && DEBUG=dashboard:* node ./bin/www"
},
"dependencies": {
"cookie-parser": "~1.4.4",
Expand All @@ -21,5 +21,20 @@
},
"devDependencies": {
"eslint": "^6.4.0"
}
},
"description": "## Install",
"main": "bin/www",
"directories": {
"lib": "lib"
},
"repository": {
"type": "git",
"url": "git+https://github.com/msimmer/torrent-dashboard.git"
},
"author": "Maxwell Simmer <[email protected]> (http:https://maxwellsimmer.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/msimmer/torrent-dashboard/issues"
},
"homepage": "https://github.com/msimmer/torrent-dashboard#readme"
}
2 changes: 1 addition & 1 deletion routes/torrents.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ router.post('/remove', (req, res) => {
api.removeTorrents(ports, torrents, error1 => {
if (error1) return res.send({ error: error1, data: {} })

// Update the torrents in the database by setting them to 'active'
// Update the torrents in the database by setting them to 'inactive'
db.removeTorrents(torrentIds, error2 => {
res.send({ error: error2, data: {} })
})
Expand Down

0 comments on commit 41c6987

Please sign in to comment.