ncdu: Added some screenshots; ncdc: Improved homepage text

This commit is contained in:
Yorhel 2011-09-15 16:07:21 +02:00
parent b1c26953dc
commit b52bfdb1ba
7 changed files with 74 additions and 29 deletions

BIN
img/ncduconfirm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/ncdudone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
img/ncduhelp1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
img/ncduhelp2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
img/ncduinfo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
img/ncduscan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

103
index.cgi
View file

@ -14,6 +14,7 @@ TUWF::register(
qr{ncdu} => \&ncdu, qr{ncdu} => \&ncdu,
qr{ncdu/changes} => \&ncduchangelog, qr{ncdu/changes} => \&ncduchangelog,
qr{ncdu/man} => \&ncdumanual, qr{ncdu/man} => \&ncdumanual,
qr{ncdu/scr} => \&ncduscr,
qr{ncdc} => \&ncdc, qr{ncdc} => \&ncdc,
qr{ncdc/faq} => \&ncdcfaq, qr{ncdc/faq} => \&ncdcfaq,
qr{ncdc/guide} => \&ncdcguide, qr{ncdc/guide} => \&ncdcguide,
@ -52,6 +53,7 @@ sub home {
E; E;
end; end;
h2 'Updates'; h2 'Updates';
b '2011-09-15'; txt ' Added some screenshots for ncdu.'; br;
b '2011-09-03'; txt ' ncdc 0.9 released!'; br; b '2011-09-03'; txt ' ncdc 0.9 released!'; br;
b '2011-08-26'; txt ' ncdc 0.8 released!'; br; b '2011-08-26'; txt ' ncdc 0.8 released!'; br;
b '2011-08-17'; txt ' ncdc 0.7 released!'; br; b '2011-08-17'; txt ' ncdc 0.7 released!'; br;
@ -179,6 +181,31 @@ sub ncdumanual {
} }
sub ncduscr {
my $s = shift;
$s->htmlHeader(title => 'Screenshots', page => 'ncdu', tab => 'scr');
p;
txt 'Scanning...';
img src => '/img/ncduscan.png', style => 'margin: 5px 0 0 0; border: 1px solid #999', alt => 'Ncdu scanning a large directory.';
br;br;
txt 'Done scanning';
img src => '/img/ncdudone.png', style => 'margin: 5px 0 0 0; border: 1px solid #999', alt => 'Ncdu done scanning a large directory.';
br;br;
txt 'Directory information';
img src => '/img/ncduinfo.png', style => 'margin: 5px 0 0 0; border: 1px solid #999', alt => 'Ncdu displaying directory information.';
br;br;
txt 'Delete confirmation';
img src => '/img/ncduconfirm.png', style => 'margin: 5px 0 0 0; border: 1px solid #999', alt => 'Ncdu asking for confirmation to delete a file.';
br;br;
txt 'Help screen';
img src => '/img/ncduhelp1.png', style => 'margin: 5px 0 0 0; border: 1px solid #999', alt => 'Ncdu help screen.';
br;br;
txt 'About screen';
img src => '/img/ncduhelp2.png', style => 'margin: 5px 0 0 0; border: 1px solid #999', alt => 'Ncdu about screen.';
end;
$s->htmlFooter;
}
# N C D C # N C D C
@ -196,25 +223,7 @@ sub ncdc {
E; E;
end; end;
h2 'Current Status'; h2 'Get ncdc!';
p 'Ncdc is currently still in development, and therefore lacks a few features
one would expect from a full-blown DC client. The following is a list of
features that have been implemented so far:';
ul;
li 'Connecting to multiple hubs at the same time,';
li 'Chatting and private messaging,';
li 'Browsing the user list of a connected hub,';
li 'Share management (file list generation, hashing, refreshing, etc),';
li 'Replying to search requests from other clients,';
li 'File uploading in active and passive mode,';
li 'Connections and download queue management,';
li 'File list browsing,';
li 'Single-source and TTH-checked file downloading,';
li 'Searching for files,';
li 'Secure hub (adcs:// and nmdcs://) and client (ADCS) connections.';
end;
h2 'Try it out';
p; p;
b 'Latest version:'; txt ' 0.9 ('; b 'Latest version:'; txt ' 0.9 (';
a href => '/download/ncdc-0.9.tar.gz', 'download'; a href => '/download/ncdc-0.9.tar.gz', 'download';
@ -222,13 +231,50 @@ sub ncdc {
txt ' - '; a href => '/download/ncdc.md5', 'md5'; txt ' - '; a href => '/download/ncdc.md5', 'md5';
txt ' - '; a href => '/download/ncdc.sha1', 'sha1'; txt ' - '; a href => '/download/ncdc.sha1', 'sha1';
txt ')'; br; txt ')'; br;
txt 'You can also get the latest development version of ncdc from '; txt 'You can also get the latest development version from ';
a href => 'http://g.blicky.net/ncdc.git/', 'this git repository'; a href => 'http://g.blicky.net/ncdc.git/', 'this git repository';
txt '. The README includes instructions to build ncdc.'; br; txt '. The README includes instructions to build ncdc. Check out the ';
txt 'Check out the '; a href => '/ncdc/guide', 'user guide'; a href => '/ncdc/guide', 'user guide'; txt ' to get started.';
txt ' to get started. Connect to adc://dc.blicky.net:2780/ to join the (chat-only) development hub!';
end; end;
h2 'Features';
p 'Common features that all modern DC clients (should) have:';
ul;
li 'Connecting to multiple hubs at the same time,';
li 'Chatting and private messaging,';
li 'Browsing the user list of a connected hub,';
li 'Share management and file uploading,';
li 'Connections and download queue management,';
li 'File list browsing,';
li 'Single-source and TTH-checked file downloading,';
li 'Searching for files,';
li 'Secure hub (adcs:// and nmdcs://) and client (ADCS) connections.';
end;
br;
p 'Special features not commonly found in other clients:';
ul;
li 'Subdirectory refreshing,';
li 'Nick notification and highlighting in chat windows,';
li 'Detecting changes to the TLS certificate of a hub,';
li 'Efficient file uploads using sendfile(),';
li 'Large file lists are opened in a background thread,';
li '(Relatively...) low memory usage.';
end;
h2 'What doesn\'t ncdc do?';
p "Since the above list is getting larger and larger every time, it may be
more interesting to list a few features that are (relatively) common in other
DC clients, but which ncdc doesn\'t do. Yet.";
ul;
li 'Multi-source downloading,';
li 'Segmented downloading,';
li 'Bandwidth throttling,';
li 'OP features (e.g. client detection, file list scanning and other useful stuff for OPs),';
li 'SOCKS support.';
end;
p 'Of course, there are many more features that could be implemented or
improved. These will all be addressed in later versions (hopefully :).';
h2 'Requirements'; h2 'Requirements';
p; p;
lit <<' E;'; lit <<' E;';
@ -237,10 +283,10 @@ sub ncdc {
glib-networking installed.<br /> glib-networking installed.<br />
These dependencies should be easy to satisfy. Depending on your system, you These dependencies should be easy to satisfy. Depending on your system, you
may have all of these installed already.<br /> may have all of these installed already.<br />
Ncdc has been developed on a recent Arch Linux installation and has been Ncdc has been developed on Arch Linux, but I have received reports from
tested on FreeBSD 8.2 and Debian Squeeze. I have also received reports from people who successfully used it on CentOS, Debian, FreeBSD, Gentoo, Mac OS
people who successfully used it on Gentoo, Mac OS X, Ubuntu and CentOS. It X and Ubuntu. It should be fairly trivial to port to other POSIX-like
should be fairly trivial to port to other POSIX-like systems.<br /> systems.<br />
Ncdc is entirely written in C and available under a liberal MIT license. Ncdc is entirely written in C and available under a liberal MIT license.
E; E;
end; end;
@ -436,8 +482,6 @@ sub ncdcguide {
pre class => 'code'; pre class => 'code';
b 'j'; txt ' scroll down.'; br; b 'j'; txt ' scroll down.'; br;
b 'k'; txt ' scroll up.'; br; b 'k'; txt ' scroll up.'; br;
b 'l'; txt ' open selected directory.'; br;
b 'h'; txt ' open parent directory.'; br;
b 's'; txt ' order by share size.'; br; b 's'; txt ' order by share size.'; br;
b 'u'; txt ' order by username.'; br; b 'u'; txt ' order by username.'; br;
b 'o'; txt ' toggle sort OPs before others.'; br; b 'o'; txt ' toggle sort OPs before others.'; br;
@ -1018,6 +1062,7 @@ sub htmlHeader {
a href => '/ncdu', !$o{tab} ? (class => 'sel') : (), 'main'; txt ' '; a href => '/ncdu', !$o{tab} ? (class => 'sel') : (), 'main'; txt ' ';
a href => '/ncdu/changes', $o{tab} eq 'changes' ? (class => 'sel') : (), 'changelog'; txt ' '; a href => '/ncdu/changes', $o{tab} eq 'changes' ? (class => 'sel') : (), 'changelog'; txt ' ';
a href => '/ncdu/man', $o{tab} eq 'man' ? (class => 'sel') : (), 'manual'; txt ' '; a href => '/ncdu/man', $o{tab} eq 'man' ? (class => 'sel') : (), 'manual'; txt ' ';
a href => '/ncdu/scr', $o{tab} eq 'scr' ? (class => 'sel') : (), 'screenshots'; txt ' ';
a href => 'http://sourceforge.net/tracker/?group_id=200175', 'bug tracker (sf)'; a href => 'http://sourceforge.net/tracker/?group_id=200175', 'bug tracker (sf)';
end; end;
} }