Commit Graph

291 Commits

Author SHA1 Message Date
hamza zia
36c282536f support for tweaking download page size in the webui configuration 2014-06-03 04:02:23 +08:00
hamza zia
5ba428d4ae removed assemed conf from jsonrpc 2014-06-03 03:53:45 +08:00
hamza zia
b85de64746 added global statistics to tweat the webui 2014-06-03 03:36:21 +08:00
hamza zia
2a35277100 added screenshot and reduced overview graph tick size 2014-06-02 19:59:07 +08:00
hamza zia
26e8055317 more ui refinements, global statistics moved to the new sidebar 2014-06-02 18:58:58 +08:00
hamza zia
5aca5ed8d4 fixed restart functionality and added again 2014-06-02 16:06:39 +08:00
hamza zia
fa926e7d47 Merge branch 'master' into gh-pages 2014-06-01 01:44:11 +08:00
hamza zia
23591212b0 Added Per download specific settings along with more UI tweaks 2014-06-01 01:32:46 +08:00
hamza zia
6e9a234412 added a warning for insecure connections 2014-05-31 20:59:02 +08:00
hamza zia
3589434d97 Merge branch 'nmaier' 2014-05-31 20:43:55 +08:00
hamza zia
58d9221aa5 made rpc error handling more robust 2014-05-31 20:42:09 +08:00
hamza zia
3d6df1d5f5 Merge branch 'rpc-token' of git://github.com/nmaier/webui-aria2 into nmaier 2014-05-31 18:10:16 +08:00
hamza zia
884de1ed22 completely removed restart as its broken for most cases 2014-05-31 18:01:57 +08:00
hamza zia
3ca6abe3be added collapse animation back again 2014-05-31 17:53:44 +08:00
Nils Maier
cea5f8bd12 Implement --rpc-secret support 2014-05-24 16:59:35 +02:00
Nils Maier
07d5fa910a Remove "old.html" and friends
Entirely broken. Should be put into a branch and/or tagged instead.
2014-05-24 16:55:42 +02:00
Nils Maier
c7d5185e34 Disable restart action for now 2014-05-24 16:55:42 +02:00
Nils Maier
23773bac0d Consolidate titles 2014-05-24 16:55:42 +02:00
Nils Maier
7eec859d49 Do not remove stuff from lists...
next update will take care of that. Not removing will avoid re-insertion
if aria2/RPC did not yet remove the item before the next update.
2014-05-24 16:55:41 +02:00
Nils Maier
e4326a4394 Persist category filters 2014-05-24 16:55:41 +02:00
Nils Maier
8b5b465231 Confirm removal of downloads 2014-05-24 16:55:41 +02:00
Nils Maier
5d1af829fd Link metadata with the actual downloads 2014-05-24 16:55:41 +02:00
Nils Maier
1ee0a95d76 Do not use [METADATA] label, but an icon 2014-05-16 01:17:26 +02:00
Nils Maier
2712b236ba Allow to filter for running downloads
i.e. downloads with some speed.
2014-05-15 09:39:24 +02:00
Nils Maier
5f515bf56b More pagesize 2014-05-15 09:39:23 +02:00
robbielj
8b5abe1439 Update download.js 2014-03-14 15:49:25 +01:00
robbielj
809591bd62 Update download.js 2014-03-14 14:01:14 +01:00
robbielj
e129e7c034 Update rpc.js 2014-03-14 13:59:12 +01:00
robbielj
59c66a211a Update utils.js 2014-03-14 13:57:57 +01:00
robbielj
9e0673f077 Update bytes.js 2014-03-14 13:55:18 +01:00
robbielj
c290e3f913 Update dgraph.js 2014-03-14 13:52:51 +01:00
Nils Maier
37a8307027 IE compat 2014-02-28 13:30:45 +01:00
Nils Maier
f816ab853f Safari compat 2014-02-28 13:30:45 +01:00
Nils Maier
09eba68e41 Display the full download.relpath as name. 2014-02-28 13:30:44 +01:00
Nils Maier
6027005616 Use angular-ui pagination 2014-02-28 13:30:44 +01:00
Nils Maier
a773d03dc4 Right-float the main download graph 2014-02-28 13:30:44 +01:00
Nils Maier
aa147cc93f Rewrite search 2014-02-28 13:30:44 +01:00
Nils Maier
38a413e95b Performance improvements
* Pre-compute name, formatted sizes and speeds.
* Handle name edge-cases such as no-path and no-uris better.
* Unroll getCtx.
* Improve performance of mergeMap.
* Delay the search filter.

As indicated by Chrome/Gecko profilers.
2014-02-28 13:30:44 +01:00
Nils Maier
4ab27fb503 Pimp the speed graphs
- Upgrade jquery-flot.
- Disable actual local time.
- Use colors more in line with the current theme.
- Scale the y-axis (bytes) ticks.
2014-02-28 13:05:24 +01:00
Nils Maier
55dea0f0dd Pimp pagination
* Better active color
* Prev/Next items
2014-02-28 13:05:24 +01:00
Nils Maier
0f4ddbd155 Improve bytes formatting.
Also may or may not perform a bit better. Most likely the former.
2014-02-28 13:05:24 +01:00
Nils Maier
09120284c5 Cache relative paths instead of using an angular filter.
This will improve the performance a lot. First load performance may
suffer a bit, though.

Also, the leading "./" is skipped now, as this causes additional string
ops, which turn out to be particularly harmful in some cases (slots vs
heaps aka. shortstrings in spidermonkey, allocation overhead). And the
leading "./" is not really required anymore.
2014-02-28 13:05:24 +01:00
Nils Maier
89005aa168 Re-style
* Fix alignment issues
* Use fixed width for label
* Iconize labels
* Colorize speeds
* Simplifications
* Re-arragements
2014-02-28 13:05:24 +01:00
Nils Maier
c22cd3c28c Improve alert messages a bit 2014-02-28 12:25:23 +01:00
Nils Maier
dc9bd97eb4 Upgrade Libraries.
* Latest JQuery 2.x
* Latest angular
* Last 2.x bootstrap
* Last 3.x font-awesome
* Last compatible angular-bootstrap UI (0.8)

This fixes some nasty display issues, such as items starting out at
uncollapsed, to be immediately collapsed after the load.

Also it seems to improve performance a bit in certain areas, while
performance regressions in other areas are neglectable.
2014-02-28 12:25:23 +01:00
Nils Maier
603ad30040 Fix Upload* display 2014-02-20 20:56:51 +01:00
hamza zia
97271eabbc Merge pull request #81 from nmaier/perf
Improve ngWatch time significantly
2014-02-21 00:03:20 +08:00
Nils Maier
71d66758e0 Improve ngWatch time significantly
Angular uses dirty-checking for data-bindings. This is OK for POD types,
but when it comes to objects, incl. arrays, just stuffing in the new
array without checking for changed content will make angular think
something has changed and update the DOM when there really was no change
at all. So do not blindly copy over objects and arrays anymore.

Also, since webui-aria2 does not use all `bittorrent` and `file` fields,
there is no point in keeping all fields around, causing unnecessary
angular invalidations.

With this commit, the update code runs in about 1/10th of the time it
did before on my system (Chrome/Firefox) when using displaying many
torrent downloads with many files.
2014-02-20 08:20:01 +01:00
Florent Viard
d3d9b6fd42 Re-organization of the main page: mini graph is on top of download list (one click on it to enlarge / reduce it) + fixed message when nothing on download list. 2014-02-18 01:10:45 +01:00
Florent Viard
b1da2b0a84 Moved miscallenous info out of the main page. Added "server info" and "about" modals as settings sub-menus. 2014-02-17 01:13:25 +01:00
Nils Maier
3843bf34f5 Fix subscriptions race. 2014-01-09 04:18:44 +01:00
hamza zia
f6df1689c2 fixed the upload graph bug 2014-01-08 15:13:25 +05:00
Andrew Payne
f5fab45662 Prefixed uint8array() with 'new ' to make everything work again. 2013-08-18 10:18:21 +10:00
hamza zia
b6e25bf1cd Merge pull request #63 from nmaier/uuid
Generate RFC4122 UUIDs and use in randStr
2013-08-02 17:03:44 -07:00
hamza zia
f76837ae28 Merge pull request #64 from sskaje/master
changed download filter to be case insensitive
2013-08-02 17:03:10 -07:00
sskaje
58fb00f9fd case insensitive download filter 2013-08-02 22:12:10 +08:00
Nils Maier
1b7b8aa41c Generate RFC4122 UUIDs and use in randStr 2013-07-31 23:44:03 +02:00
Nils Maier
993363d309 Use UUIDs for jsonrpc requestes 2013-07-31 23:44:03 +02:00
Nils Maier
6027f1ad7c Format times like hh:mm:ss 2013-07-31 23:37:10 +02:00
hamza zia
39ecd3a3d6 updated the page title to be more obvious 2013-07-17 16:13:43 +02:00
hamza zia
047e7d8b98 added page title for notifications if pinned as app tab in a modern browser 2013-07-17 16:10:24 +02:00
hamza zia
6d9162442f TONS of features and refinements, quick access settings finally landed :) 2013-06-23 22:02:50 +02:00
hamza zia
4bd0c7c7c1 tweaked getting the configuration from the cookie 2013-06-22 21:37:14 +01:00
hamza zia
842b81c1bc tweaked the websocket error message, and finally commited something after a while ;) 2013-06-22 21:04:37 +01:00
hamza zia
3cc42f1626 minor fixes and remove statistics when no downloads, better way to hide them comming soon 2013-03-24 09:57:56 +01:00
hamza zia
02a7a595a0 refactored window location with angular 2013-03-20 10:08:50 +01:00
hamza zia
d272f1d086 feature detection for compiled support for bittorrent and metalinks added 2013-03-20 08:45:28 +01:00
hamza zia
cfb721b57d added host name heuristics for selecting aria2 server 2013-03-19 22:03:34 +01:00
hamza zia
80581ad7db added global download search and finally made angular the default implementationgit add . 2013-03-19 21:57:52 +01:00
hamza zia
4e9404f29e fixed angular recursive bug in nested rpc calls 2013-03-18 15:59:40 +01:00
hamza zia
8b3b30dd4a fixed angular waiting downloads bug 2013-03-18 10:51:03 +01:00
hamza zia
aa84b4cafa rename variables in angular 2013-03-16 14:33:10 +01:00
hamza zia
dd76756d26 initial pagination added in angualar 2013-03-16 09:13:06 +01:00
hamza zia
9d3daff3b7 made rpc api angular friendly 2013-03-12 07:51:44 +01:00
hamza zia
f10cdb0d1c further refined connection handling in angular and added cookie support 2013-03-11 19:16:48 +01:00
hamza zia
9e63fa2ff6 improved aria2 connection settings handling in angular 2013-03-11 17:03:16 +01:00
hamza zia
cc9e33f5bc let us take over ng-app injection in angular 2013-03-09 05:52:47 +00:00
hamza zia
949534ccf2 simple refinement for rpc helpers in angular 2013-03-09 05:44:37 +00:00
hamza zia
0060d884d3 can change aria2 connection settings in angular implementation, cookie caching and error handling still missing 2013-03-09 05:35:53 +00:00
hamza zia
32b25f29b4 improvements the angular rpc system 2013-03-02 12:01:07 +01:00
hamza zia
3e89b06f17 initial commit for connection modal 2013-02-26 15:02:26 +01:00
hamza zia
0d3b2f03a1 added manage menu to angular 2013-02-25 14:09:11 +01:00
hamza zia
708d627ff3 file settings landed in angular implementation 2013-02-25 11:50:42 +01:00
hamza zia
6c93dba6ff global settings fully working in angular, ui can be improved 2013-02-25 10:58:35 +01:00
hamza zia
67785b2560 refactored title in settings modal in angular 2013-02-23 09:34:56 +01:00
hamza zia
7d1129275b alert timeouts and error codes from ari2 now show as alerts 2013-02-22 20:44:10 +01:00
hamza zia
bff6694f05 added alerts servive and perf improvements in angular 2013-02-22 19:28:10 +01:00
hamza zia
30ae20260f global settings partially working in angular 2013-02-20 14:12:55 +01:00
hamza zia
1a3ddf5089 added initial settings dialog in angular, still incomplete 2013-02-20 01:13:06 +01:00
hamza zia
c36446bb5a added initial settings service in angular 2013-02-15 18:34:10 +01:00
hamza zia
0734dbe83a changed global timeout to 1 sec for angular 2013-02-09 20:48:21 +01:00
hamza zia
5a9e0b8d4f added metalink and torrent modals to angular 2013-01-30 11:13:38 +05:00
hamza zia
c3c135a093 add uris bug fix 2013-01-30 08:52:01 +05:00
hamza zia
2a18278f43 added initial infrastructure for modals in angular 2013-01-29 22:52:30 +05:00
hamza zia
567d6f8179 separated angular components into modules 2013-01-29 17:47:40 +05:00
hamza zia
489f12ea1e new uri modal in angular, with overall refactoring and fixes in the
codebase
2013-01-28 19:18:21 +05:00
hamza zia
5c02174117 basic tweaks in styling in small resolutions, with graphs drawing updated in angular 2013-01-26 21:54:17 +05:00
hamza zia
3f767c0b84 only draw graphs in angular when not collapsed, perf improvement 2013-01-25 19:38:08 +05:00
hamza zia
61bfe20b94 added bittorrent to the ctx, fix the torrent name in angular 2013-01-24 17:19:57 +05:00
hamza zia
dfe6bd509e refactored download view ctx and added restart in angular 2013-01-22 17:11:38 +05:00
hamza zia
5ec45b0aac added basic download control functionally in angular 2013-01-22 15:12:40 +05:00
hamza zia
d2f82365f1 refactored old js core in a separate folder 2013-01-22 12:59:52 +05:00
hamza zia
9db282addd filters landed in angular 2013-01-22 12:53:30 +05:00
hamza zia
73dbcb67e0 added directives for chunkbar and graphs, with overall fixes in improvement in angular implementation 2013-01-21 19:07:55 +05:00
hamza zia
6481737c61 changed download ctx with angular templates updated 2013-01-19 22:46:22 +05:00
hamza zia
bd8a1ad87f name fix for angular 2013-01-18 13:08:39 +05:00
hamza zia
fd9b5207af relative path trailing slash fix 2013-01-17 22:23:01 +05:00
hamza zia
c1735267fb relative file paths added 2013-01-17 22:13:58 +05:00
hamza zia
e9042c8b55 download info now working in angular 2013-01-17 21:18:23 +05:00
hamza zia
576df81193 fixed progress bar bug 2013-01-17 12:00:33 +05:00
hamza zia
e64b3fbd66 refactoed rpc and templates with ui hints for download status 2013-01-17 11:51:03 +05:00
hamza zia
50218debae fixed rpc and modal issues 2013-01-15 16:19:26 +05:00
hamza zia
571eaf8257 Initial core the new overhauled ui in angular.html with fixes for ui in the old index.html 2013-01-15 13:28:14 +05:00
hamza zia
e7c9e4d0cc removed requirejs shim 2013-01-15 13:24:46 +05:00
hamza zia
0029e1087b initial prototype with new the mobile and touch ui 2013-01-15 13:24:44 +05:00
Carl Monnig
ee90971472 Display queue order as Aria2 will download. 2013-01-05 10:41:05 +02:00
Carl Monnig
c287960fa8 Fixed undefined error when downloading BitTorrent Magnet links. 2013-01-04 23:23:46 +02:00
Carl Monnig
3d32434640 Performance improvements for many downloads. 2013-01-03 19:47:38 +02:00
Carl Monnig
34f10e1b02 Batch DOM updates to improve speed with less reflows. 2013-01-02 22:58:37 +02:00
hamza zia
c58cea1174 renamed navbar controls 2012-12-31 17:18:12 +05:00
hamza zia
a3c98a47ae simple tuning of download graphs 2012-12-30 15:54:00 +08:00
hamza zia
c13a911e70 refactored core and fixed small resolution bugs 2012-12-26 18:57:11 +08:00
hamza zia
ff9b3e652c fixed resolution bug and added files in more info for downloads 2012-10-30 14:28:11 +08:00
hamza zia
9b2ed332bf added javascript lib files 2012-10-30 11:35:32 +08:00
hamza zia
2b998ae380 polished and added new progress title pie chart 2012-10-30 11:34:14 +08:00
hamza zia
7b0d42fee4 fixed torrent file names 2012-10-30 11:03:40 +08:00
hamza zia
8f8155b2e6 timeout heruistics improved 2012-10-06 23:26:19 -07:00
hamza zia
4e11173a8a improved title bar status 2012-10-04 09:26:59 -07:00
hamza zia
775dc59f00 title bar global statistics added 2012-10-03 21:42:26 -07:00
Hamza Zia
b20ad0d04e improved aria2 connection handling 2012-10-02 11:06:37 -07:00
Tatsuhiro Tsujikawa
2bc0f3a90a Add SSL/TLS encryption 2012-10-02 23:50:57 +09:00
hamza zia
e1675c513d websocket support turned on 2012-09-18 22:53:35 +08:00
Hamza Zia
932a72d53f fixed harsh error exception 2012-09-15 01:13:03 +08:00
Hamza Zia
08a4b399f3 added underscore library 2012-09-05 23:18:35 +08:00
Hamza Zia
a5ebd19ec2 connection handling refactored all the way
all the refactored connection handling code resides in the connection.js
file, its a lot more rebost although still might have bugs
2012-09-05 22:53:09 +08:00
ziahamza
d6e1279cfb Merge pull request #23 from dannywarren/misc_js_syntax_fixes
fixing misc javascript syntax errors
2012-09-04 21:26:10 -07:00
Danny Warren
4035d5cf10 fixing misc javascript syntax errors
* these are nitpicky things that some browsers just step right over silently, and others halt script execution for

* the jquery trim function only works on variables that have been returned as jquery objects, so doing "'foo'.trim()" doesn't work, should be "$.trim('foo')"

* some javascript interpreters (annoyingly) can't handle trailing commas in lists
2012-09-04 17:24:09 -07:00
Danny Warren
b025ef3355 fixed websocket fallback for browsers that don't support websocket
* repro: open webui-aria2 in any browser that doesn't have native websocket support in its javascript library (example: Opera 12.01, IE9), and none of the functionality in webui-aria2 will work due to javascript errors

* see: http://en.wikipedia.org/wiki/WebSocket#Browser_support (Note that Firefox has websocket support, but calls its object "MozWebSocket" instead of "WebSocket", so this issue applies there too)

* there were a few places in script.js that check for websocket support by doing something like "if(WebSocket)" to see if the WebSocket object exists

* javascript doesn't handle undefined variables that way, the interpreter will actually throw an "undefined variable" error and stop execution of the script

* this means that any browser that doesn't have websocket support can never reach the fallback json call code

* added a new variable "web_sock_support" that does a proper "undefined" check, and is set to "1" if the "WebSocket" object is available in the browser

* changed the websocket checks to use the "web_sock_support" variable
2012-09-04 16:30:55 -07:00
hamza zia
6f300f9c09 split the uris by space or new line for new download 2012-08-27 19:18:47 +08:00
hamza zia
76299e6b1f incorrect form submission bug fixed 2012-08-27 19:12:50 +08:00
hamza zia
4d606f6d14 refined add new download 2012-08-27 14:12:52 +08:00
hamza zia
b0881e8262 changed session cookies to presistant cookies 2012-08-25 18:58:17 +08:00
hamza zia
104580ff4e updated the default host placeholder 2012-08-25 01:44:34 +08:00
Hamza Zia
91a2cc7ef0 chunk progress bar refined, peer info for torrents added 2012-08-05 04:08:08 +08:00
Hamza Zia
34dd757841 vim typo file removed. sooo annoying!! 2012-08-05 02:39:26 +08:00
Hamza Zia
04823ecfd1 chunk progress bar replaced with canvas implementation, global download graph also added 2012-08-05 02:37:25 +08:00
Hamza Zia
ed3e32a5ec improved performance of chunk progress bars and now stable to use! 2012-08-02 20:47:01 +08:00
Hamza Zia
bebf4e7741 unstable commit for a new and smart algorithm for piece progress bar, not usable, 2012-08-02 11:42:03 +08:00
Hamza Zia
72208fe579 chunked progress bar added!, somewhat experimental and very unstable (slow) for large download pieces 2012-08-02 03:08:41 +08:00
Hamza
36dfb82ff4 polished graphs for downloads with upload graphs merged in!!! 2012-08-01 23:59:12 +08:00