WebUI with file list - now fully functional

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
eztrans
Posts: 18
Joined: Fri Dec 19, 2008 2:30 am

Re: WebUI with file list - now fully functional

Post by eztrans »

snake98,

Are you looking at the activity tab in the inspector? The graph only shows in the activity tab.

Apart from that, if the png files are being written to the correct place in the transmission/web/images directory, then the webui should be able to see them.

Have you tried displaying the images manually in your browser by entering:

http://yourserver:9091/transmission/web ... ansfer.png -- (for ALL)

http://yourserver:9091/transmission/web ... sfer_1.png -- (for torrent with ID = 1)

I did this before I got the changes to transmission.js working. That way I could be sure that the png was valid and displayed OK.

eztrans
snake98
Posts: 8
Joined: Thu Jul 10, 2008 9:30 pm

Re: WebUI with file list - now fully functional

Post by snake98 »

yes they are showing that way,(they are not accurate yet, i'm working on my sed command still)
the transmission web page still refuses to load when i insert this line

$(ti+'graph_image')[0].innerHTML = image_prefix + '_' + torrents[0].id() + image_suffix;

Did you make anymore changes, can you send me your transmission.js. I'll run a diff o then to see the difference? or is their another file i need to edit?
eztrans
Posts: 18
Joined: Fri Dec 19, 2008 2:30 am

Re: WebUI with file list - now fully functional

Post by eztrans »

I'm going to try and integrate the file list and my changes into 1.51. If I'm successful, I'll make it available here.

eztrans
eztrans
Posts: 18
Joined: Fri Dec 19, 2008 2:30 am

Re: WebUI with file list - now fully functional

Post by eztrans »

OK. I've got it all working with v1.51.

I don't seem to be able to attach it here so I'll have to find another way.

In the meantime, there is a bug I've found and fixed in the original file list code. In torrent.js, the function refreshWantedHTML highlights the file as complete every second update to the html. I changed the function to only highlight the file as complete if the _done count is >= the file size.

Original:

Code: Select all

   refreshWantedHTML: function() {
      var element = this.element();
      if (this._wanted && element.hasClass('skip'))
         this.element().removeClass('skip');
      else if (!this._wanted && !element.hasClass('skip'))
         this.element().addClass('skip');

      if (this._done < this._size && this.element().hasClass('complete
         this.element().removeClass('complete');
      else if (!this.element().hasClass('complete'))
         this.element().addClass('complete');
   },
Fixed:

Code: Select all

	refreshWantedHTML: function() {
		var element = this.element();
		if (this._wanted && element.hasClass('skip'))
			this.element().removeClass('skip');
		else if (!this._wanted && !element.hasClass('skip'))
			this.element().addClass('skip');
		
		if (this._done < this._size && this.element().hasClass('complete'))
			this.element().removeClass('complete');
		else if ((this._done >= this._size) && !this.element().hasClass('complete'))
			this.element().addClass('complete');
	},
When I work out how to upload/attach the fixed v1.51 webui with files and graphing, this bugfix will be incorporated.

If anyone can steer me in the right direction (other than the forum master) for uploading my stuff, I'd appreciate the help.

eztrans
eztrans
Posts: 18
Joined: Fri Dec 19, 2008 2:30 am

Re: WebUI with file list - now fully functional

Post by eztrans »

done.

I've uploaded a tgz of the entire web UI with my changes to:

http://cid-a1988451876368a1.skydrive.li ... .graph.tgz

I hope this works for everyone.

eztrans
super-poussin
Posts: 74
Joined: Sun Mar 15, 2009 8:04 pm

Re: WebUI with file list - now fully functional

Post by super-poussin »

you have file list in the last nightly build :)
eztrans
Posts: 18
Joined: Fri Dec 19, 2008 2:30 am

Re: WebUI with file list - now fully functional

Post by eztrans »

Thanks for that. The nightly version of the file list is much cleaner and works in Chrome very well. I've integrated my graphing into it locally and all seems fine.

I note that the bug I mentioned in my earlier post (http://forum.transmissionbt.com/viewtop ... 509#p35509) is still present.

I'll see I can repost that bug as a bug report in a more appropriate spot.

Thanks again.

eztrans
cheongseeker
Posts: 10
Joined: Fri Oct 31, 2008 7:56 am

Re: WebUI with file list - now fully functional

Post by cheongseeker »

I've just upgraded to ver 1.51 and found that the webUI still does not have file list. I still have a copy of the zip file that contain the "web" folder done by fschaeckermann.

However I had forgotten where to copy the files in "web" folder to. I have transmission ver 1.51 install in my Dlink DNS-323. I've search around and can't find the location where the webUI files are stored. With the new version 1.51, have the files been moved?

Any idea?

Your help is much appreciated.

Cheers.
eztrans
Posts: 18
Joined: Fri Dec 19, 2008 2:30 am

Re: WebUI with file list - now fully functional

Post by eztrans »

On my ASUS wl700ge, the web folder is in /opt/share/transmission/web

The latest 1.51 from SVN has the file list whichis great. Not sure if it's made it into the release yet.

eztrans
cheongseeker
Posts: 10
Joined: Fri Oct 31, 2008 7:56 am

Re: WebUI with file list - now fully functional

Post by cheongseeker »

Thanks for the information. I found it in the Dlink DNS-323 in ffp/share/transmission. However, after copying the "web" folder over I found the webUI sorting is not working.

I usually look at my webUI with sorting by "Progress" and "Reverse Order". After copying the "web" folder over, this sorting is not working. I had to put back the original "web" folder.

Do you have this problem?
Post Reply