From e64b3fbd66007e158894584dea20f4f20ee99a33 Mon Sep 17 00:00:00 2001 From: hamza zia Date: Thu, 17 Jan 2013 11:51:03 +0500 Subject: [PATCH] refactoed rpc and templates with ui hints for download status --- angular.html | 120 +++++++++++------------ index.html | 184 ++++++++++++------------------------ js/ctrls/download.js | 20 ++-- js/script.js | 15 ++- js/services/rpc/jsoncall.js | 2 +- js/services/rpc/rpc.js | 38 +++++--- js/services/rpc/sockcall.js | 47 ++++----- js/services/rpc/syscall.js | 6 +- js/services/utils.js | 53 ++++++++++- 9 files changed, 241 insertions(+), 244 deletions(-) diff --git a/angular.html b/angular.html index d0d93ac..89bc18d 100644 --- a/angular.html +++ b/angular.html @@ -136,73 +136,73 @@
- - - + + - + - - - + + + - - -
- {{name}} +
+ {{name}} -
    -
  • Time left: {{eta}}
  • -
  • Download Speed: {{down_speed}}
  • -
  • Progress: {{percentage}}%
  • -
-
-
-
-
-
- - -
+
+ + + -
-
-
- -
    -
  • Status: {{status}}
  • -
  • GID: {{gid}}
  • -
  • Dir: {{dir}}
  • -
  • Size: {{size}}
  • -
  • Downloaded: {{downloaded}}
  • -
  • Num of Pieces: {{numPieces}}
  • -
  • Piece Length: {{pieceLength}}
  • -
  • ETA: {{eta}}
  • -
  • Down Speed: {{down_speed}}
  • -
  • Upload Speed: {{upload_speed}}
  • -
  • Upload Length: {{uploadLength}}
  • -
  • Connections: {{connections}}
  • -
+
  • Settings
  • +
  • Peers
  • +
  • More Info
  • +
  • Remove
  • + +
    +
    +
    + +
      +
    • Status: {{status}}
    • +
    • GID: {{gid}}
    • +
    • Dir: {{dir}}
    • +
    • Size: {{size}}
    • +
    • Downloaded: {{downloaded}}
    • +
    • Num of Pieces: {{numPieces}}
    • +
    • Piece Length: {{pieceLength}}
    • +
    • ETA: {{eta}}
    • +
    • Down Speed: {{down_speed}}
    • +
    • Upload Speed: {{upload_speed}}
    • +
    • Upload Length: {{uploadLength}}
    • +
    • Connections: {{connections}}
    • +
    -

    Download Files

    -
      -
    • {{path}} ({{size}})
    • -
    +

    Download Files

    +
      +
    • {{path}} ({{size}})
    • +
    -
    -
    -
    -
    -
    +
    +
    +
    +
    + + + + -
    +
    -
    +
    diff --git a/index.html b/index.html index ab85740..657b664 100755 --- a/index.html +++ b/index.html @@ -73,35 +73,88 @@ - - - - - - - - - - - +