Commit Graph

6836 Commits

Author SHA1 Message Date
Damien Churchill 6892834d4d web: minor IE compatibility change 2011-11-25 23:47:08 +00:00
Damien Churchill 609f54a704 css: move icons out to their own stylesheet 2011-11-24 17:45:42 +00:00
Damien Churchill fa08f7de43 details: add the missing items to the details tab
The web interface was missing the Owner and Shared items
that have been added to the gtk ui. Add these to bring the web
interface up to scratch.
2011-11-24 17:20:44 +00:00
Damien Churchill a91037843b details: complete the status tab
Fix the remaining data items so they display correctly and tweak
the spacing to make the view a little more pleasant on the eye
2011-11-24 17:11:08 +00:00
Damien Churchill 4a43d6a635 data: fix type for progress column 2011-11-24 17:09:10 +00:00
Damien Churchill 1837d833c2 web: few sidebar fixes 2011-11-21 23:05:02 +00:00
Damien Churchill e3e20aa14f web: fix using wrong Resource class
The Tracker class was still using the Resource class from Twisted instead
of our own subclass that adds some fun stuff :-)
2011-11-21 22:59:58 +00:00
Damien Churchill c865486f82 web: add more jokey headers 2011-11-04 01:06:56 +00:00
Damien Churchill c06d4dfea5 web: add a fun header
Add a jokey powered by header for people who like to
look at that sort of thing :-)
2011-11-04 00:50:11 +00:00
Damien Churchill c405425993 web: fix details tab taking a while to update
Somewhere the handler for the torrent grid selection change
got removed during the upgrade to ext-4, add it back so the
details tab updating becomes instant once more.
2011-11-04 00:44:56 +00:00
Damien Churchill d10752fc1a web: add a better log method
Add a new method, deluge.log which outputs to the javascript
console, including a date and time which will help when debugging
speed issues
2011-11-04 00:44:17 +00:00
Damien Churchill ab665384d4 web: implement a better status tab
This new StatusTab uses a custom component, StatusItem and a
bunch of the Ext layout stuff in order to render the info on
the StatusTab, instead of an arbitary html modification. We
gain dynamic layout and more generic way of modifying the tab
2011-11-02 23:42:53 +00:00
Damien Churchill f5e6eabee4 web: fix the details status tab
Start porting over the status tab to the new extjs4 format
2011-10-31 20:40:14 +00:00
Damien Churchill 717e66b836 web: big update for ext4.0.7 compatibility
Lots of changes here:

 * Switched to using Ext.create over new Object()
 * Add torrent window is now half working
 * Begin the makings of DnD add torrent file
2011-10-29 04:35:33 +01:00
Damien Churchill fea0b41425 web: update extjs to 4.0.7 2011-10-29 01:28:58 +01:00
Damien Churchill d37c3e0213 web: fix country flags
The flags have been moved into the ui folder so
the web server was looking in the wrong place
2011-10-21 21:49:34 +01:00
Damien Churchill b724f74700 web: drop JSLoader extension
Ext now includes an Ext.Loader class that can load scripts so this
extra extension to do so is surplurfluous.
2011-10-05 23:31:41 +01:00
Damien Churchill d44a357284 web: fix the sidebar and filterpanels
The filters in the sidebar can now be switch between finally. It
was down to the setTitle method overwriting whatever the accordion
layout was adding in.
2011-10-05 02:31:51 +01:00
Damien Churchill d6715fcbb9 web: fix the filterpanel column width
Set flex = 1 on the column so it auto expands to take up the
entire available width.
2011-10-05 02:21:06 +01:00
Damien Churchill 2853d028fd web: more progressbar fixes
Fix displaying the progress bars within the peers tab, also
reduce the modifier so that the bars don't overflow their
containers.
2011-10-05 02:05:58 +01:00
Damien Churchill 4ab5c6d9de web: fix selecting the active tab
Fix selecting the active tab in the details panel, it seems that
the activeTab property wasn't working so explicitly call
setActiveTab after adding in the various panels.
2011-10-05 01:54:33 +01:00
Damien Churchill f53dc5faaf web: random fixes
Just a bunch of random fixes to improve the situation whilst
trying to convert over to extjs4.
2011-10-05 01:41:49 +01:00
Damien Churchill c46bc049d1 web: add files resource to the web server
Add a files resource that allows Ext to fetch the file tree via
one of it's ajax proxies.
2011-10-05 01:40:40 +01:00
Damien Churchill 39d19b5afd web: ensure torrent keys are always str
Make sure that we aren't sending unicode strings as keys, always
map them with str.
2011-10-05 01:40:40 +01:00
Damien Churchill e8506b925f web: fix the progressbar renderer
Modify our progress bar renderer so it uses the new ext style
and actually creates a progress bar now :-)
2011-10-05 01:40:40 +01:00
Damien Churchill eb9071fcb0 web: add a secure decorator to the auth module
This new decorator will make it easy to secure the render method
of twisted resources as we will be adding a fair few as more of
the interface moves to use ajax requests over json-rpc.
2011-10-05 01:38:37 +01:00
Damien Churchill 9362ec0103 ui: add a new file tree geared towards ext
Add a new file tree that is more suited to created a tree that
an ext proxy will be able to load and convert into a data store.
This file tree also has an improved file tree walk method that
uses generators instead of callbacks.
2011-10-05 01:38:37 +01:00
Damien Churchill fe0332bccf web: allow the peers grid to be stateful
Give the peers grid an id so it can store it's state and be
guaranteed to be able to restore it upon a refresh.
2011-10-05 01:38:37 +01:00
Damien Churchill 64bacbfbf4 web: support using localStorage for state
This adds support for checking to see if the browser supports
the HTML5 localStorage, if so use that instead of cookies for
storing the UI state.
2011-10-05 01:38:37 +01:00
Damien Churchill 280377ad6f web: convert the peers tab to use an ext proxy
Instead of fetching the peer information via a rpc call simply
expose it as a fetching page via ajax so we can make use of
the Ext proxy and reader instead of manually loading it into
the store ourselves.
2011-10-05 01:38:37 +01:00
Damien Churchill 0c3d2322cc web: add loading mask
Add a loading mask that hides the loading of the interface with
some text and a nice ajax spinner. The situation can be further
improved by loading all of the scripts and other resources
dynamically, which will be added later.
2011-10-05 01:36:58 +01:00
Damien Churchill 07b6db0c98 web: update to extjs 4.0.2a 2011-10-05 01:36:58 +01:00
Damien Churchill 713953ec03 web: fix the toolbar actions
Use the proper method for getting the torrent ids instead of the
implementation within the toolbar. Using the one on the torrent
grid will be more likely to work.
2011-10-05 01:36:58 +01:00
Damien Churchill 6324737031 web: simple formatting change
Nicely space out a few dictionaries so they are easier on the
eye when reading the code.
2011-10-05 01:36:58 +01:00
Damien Churchill 428681aca3 webui: use the getId method in the details panel
Before we were using the id property which seems to have been
deprecated and wasn't returning the actual id. Switching to
use the getId() method returns the correct id (the torrent hash)
so grabbing the torrent details starts working again for the
details tabs.
2011-10-05 01:36:57 +01:00
Damien Churchill 317e9ee423 webui: fix the details tab
The path to DomHelper isn't working, so fix that, and also update
the copyright notices.
2011-10-05 01:36:57 +01:00
Damien Churchill 08e774bbda webui: fix displaying the torrent context menu
The event name and arguments has changed, as well as the response
from getPoint, nothing major.
2011-10-05 01:36:57 +01:00
Damien Churchill 43cb787b44 webui: fix closing the connection manager
Don't override the onHide method in the ConnectionManager, this
was stopping the window from being able to close.
2011-10-05 01:36:57 +01:00
Damien Churchill fb8f1e7ebc web: fix the FilterPanel to a degree
This finishes converting the FilterPanel to use the new data stuff
from ExtJS4 as well as switching from a listview to a gridview.
Currently the Sidebar is still broken.
2011-10-05 01:36:57 +01:00
Damien Churchill 881bcee160 web: fix starting/stopping daemons
Just a simple change from listview to gridview here.
2011-10-05 01:36:57 +01:00
Damien Churchill 42b8af25aa milestone number 1, web interface loads now 2011-10-05 01:36:57 +01:00
Damien Churchill bf4b826809 webui: fix the login window
The login window now functions correctly under ExtJS 4.0.
2011-10-05 01:36:57 +01:00
Damien Churchill 8ae14de208 webui: fix up the connection manager
Partially fix the connection manager so it now displays correctly
on first load. A lot of the functionality needs to be changed
due to the list -> grid migration.
2011-10-05 01:36:57 +01:00
Damien Churchill 5b45670a85 webui: first commit where the interface loads
At this point the interface loads, but it is misshapen and needs a lot more
work to get it fully extjs 4.0 compatible.
2011-10-05 01:36:57 +01:00
Damien Churchill 6cdf9940d3 add extjs javascript files too 2011-10-05 01:31:14 +01:00
Damien Churchill 8b69d66bae tidy up some deferred stuff 2011-10-05 01:31:13 +01:00
Damien Churchill 3ee434975c upgrade to extjs 4.0.2 2011-10-05 01:31:13 +01:00
Damien Churchill dda4620d98 remove and update the ext-extensions 2011-10-05 01:31:13 +01:00
Damien Churchill 7ac0083239 remove more extensions that have been moved into core 2011-10-05 01:31:13 +01:00
Damien Churchill 6ae58248a1 remove the treegrid extensions as they are now included with extjs 2011-10-05 01:31:12 +01:00