forked from endor/kettu
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/endor/kettu
Conflicts: index.html
- Loading branch information
Showing
52 changed files
with
2,483 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
# kettu | ||
|
||
Port of http://github.com/kjg/derailleur and the original Transmission Web Client | ||
using [jquery](http://jquery.com), [sammy](http://github.com/quirkey/sammy), [jspec](http://github.com/visionmedia/jspec) and [mustache.js](http://github.com/janl/mustache.js). | ||
Port of http://github.com/kjg/derailleur and the original Transmission Web Client | ||
using [jquery](http://jquery.com), [sammy](http://github.com/quirkey/sammy) and [mustache.js](http://github.com/janl/mustache.js). | ||
|
||
By Frank Prößdorf <fp@notjusthosting.com>. | ||
|
||
|
||
## Thanks | ||
kjg for all the work on the transmission web client. | ||
lenalena for introducing proper jspec testing to this project. | ||
* kjg for all the work on the transmission web client and help. | ||
* lenalena for introducing proper jspec testing to this project. | ||
|
||
## Where to use? | ||
You can use kettu instead of the original web client to remotely administrate your transmission application. | ||
|
||
## Usage | ||
Once you allowed remote access in your transmission client, you can simply open the `index.html` in the browser. If you run your transmission application on something other than the default host and port, you can adjust these settings in the `rpc` file. | ||
You can use kettu instead of the original web client to remotely administrate your transmission application. | ||
|
||
Once you allowed remote access in your transmission client, you can simply open the `index.html` in the browser. If you run your transmission application on something other than the default host and port, you can adjust these settings in the `rpc` file. | ||
|
||
It's recommended to replace the old web interface with this one, so the server and the web interface run in the same location (e.g. localhost:9091). When uploading torrents there is a cross-site request which leads to a deserved warning. Also Firefox and Chrome will not work because cross-site requests will trigger [preflight requests](http://www.w3.org/TR/access-control/#preflight-request) in those browsers, which the server cannot handle. | ||
|
||
|
||
## Tests | ||
|
||
### Unit Tests | ||
There are [jspecs](http://github.com/visionmedia/jspec) in `/spec` which you can run by opening the `index.html` file within the spec directory. | ||
|
||
### Acceptance Tests | ||
There are [culerity](http://github.com/langalex/culerity) tests in `features`. You will need culerity, celerity and the most current htmlunit to run them. You will just need to type `cucumber features/<feature>`. | ||
|
||
|
||
## Todo | ||
* countdown till next scrape in tracker info | ||
* show more information about files | ||
* show more information about peers | ||
* feature test that the right rpc queries are sent when updating settings, adding torrents, etc. | ||
* display errors, also tracker errors in tracker info |
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Feature: sort and filter torrents | ||
In order to have a better overview | ||
As a user | ||
I want to sort and filter torrents | ||
|
||
Scenario: filter torrents | ||
Given three torrents with the names "Mutant Ninja Turtles, Donald Duck, Saber Riders" and the stati "4, 8, 16" | ||
When I go to the start page | ||
And I follow "Filter" | ||
And I follow "Downloading" | ||
Then I should see "Mutant Ninja Turtles" | ||
But I should not see "Donald Duck" | ||
And I should not see "Saber Riders" | ||
When I follow "Seeding" | ||
Then I should see "Donald Duck" | ||
But I should not see "Mutant Ninja Turtles" | ||
And I should not see "Saber Riders" | ||
When I follow "Paused" | ||
Then I should see "Saber Riders" | ||
But I should not see "Mutant Ninja Turtles" | ||
And I should not see "Donald Duck" | ||
When I follow "All" | ||
Then I should see "Mutant Ninja Turtles" | ||
And I should see "Donald Duck" | ||
And I should see "Saber Riders" | ||
|
||
Scenario: sort torrents by name | ||
Given three torrents with the names "Mutant Ninja Turtles, Donald Duck, Saber Riders" and the stati "4, 8, 16" | ||
When I go to the name sorted torrents page | ||
Then I should see "Donald Duck" before "Mutant Ninja Turtles" | ||
And I should see "Mutant Ninja Turtles" before "Saber Riders" | ||
|
||
Scenario: sort torrents by status | ||
Given three torrents with the names "Mutant Ninja Turtles, Donald Duck, Saber Riders" and the stati "8, 16, 4" | ||
When I go to the state sorted torrents page | ||
Then I should see "Saber Riders" before "Mutant Ninja Turtles" | ||
And I should see "Mutant Ninja Turtles" before "Donald Duck" | ||
|
||
Scenario: sort torrents by activity | ||
Given three torrents with the names "Mutant Ninja Turtles, Donald Duck, Saber Riders" and the download rates "16000, 8000, 4000" | ||
When I go to the activity sorted torrents page | ||
Then I should see "Mutant Ninja Turtles" before "Donald Duck" | ||
And I should see "Donald Duck" before "Saber Riders" | ||
|
||
Scenario: sort torrents by age | ||
Given three torrents with the names "Mutant Ninja Turtles, Donald Duck, Saber Riders" and the date added "87742, 84253, 81181" | ||
When I go to the age sorted torrents page | ||
Then I should see "Mutant Ninja Turtles" before "Donald Duck" | ||
And I should see "Donald Duck" before "Saber Riders" | ||
|
||
Scenario: sort torrents by progress | ||
Given three torrents with the names "Mutant Ninja Turtles, Donald Duck, Saber Riders" and the left until done "8, 4, 16" | ||
When I go to the progress sorted torrents page | ||
Then I should see "Saber Riders" before "Mutant Ninja Turtles" | ||
And I should see "Mutant Ninja Turtles" before "Donald Duck" | ||
|
||
Scenario: sort torrents by queue | ||
Given three torrents with the names "Mutant Ninja Turtles, Donald Duck, Saber Riders" and the ids "1, 2, 3" | ||
When I go to the queue sorted torrents page | ||
Then I should see "Mutant Ninja Turtles" before "Donald Duck" | ||
And I should see "Donald Duck" before "Saber Riders" | ||
|
Oops, something went wrong.