-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
License: MIT Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
- Loading branch information
1 parent
1ee3645
commit 8fe12ef
Showing
8 changed files
with
599 additions
and
63 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# dir-index-html | ||
|
||
directory listing html for go-ipfs gateways. | ||
|
||
![](http://gateway.ipfs.io/ipfs/Qmf82jUC9ZuoSTCNY55hyx3HmiDed3WnhFD5PC7CTSPmC2/cap.png) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<!-- TODO: seed these - maybe like the starter ex or the webui? --> | ||
<link rel="stylesheet" href="/ipfs/QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED/bootstrap.min.css"/> | ||
<!-- helper to construct this is here: https://github.com/cryptix/exp/blob/master/imgesToCSSData/convert.go --> | ||
<link rel="stylesheet" href="/ipfs/QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED/icons.css"> | ||
<style> | ||
.narrow {width: 0px;} | ||
.padding { margin: 100px;} | ||
#header { | ||
background: #000; | ||
} | ||
#logo { | ||
height: 25px; | ||
margin: 10px; | ||
} | ||
.ipfs-icon { | ||
width:16px; | ||
} | ||
</style> | ||
<title>{{ .Path }}</title> | ||
</head> | ||
<body> | ||
<div id="header" class="row"> | ||
<div class="col-xs-2"> | ||
<div id="logo" class="ipfs-logo"> </div> | ||
</div> | ||
</div> | ||
<br/> | ||
<div class="col-xs-12"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<strong>Index of {{ .Path }}</strong> | ||
</div> | ||
<table class="table table-striped"> | ||
<tr> | ||
<td class="narrow"> | ||
<div class="ipfs-icon ipfs-_blank"> </div> | ||
</td> | ||
<td class="padding"> | ||
<a href="{{.BackLink}}">..</a> | ||
</td> | ||
<td></td> | ||
</tr> | ||
{{ range .Listing }} | ||
<tr> | ||
<td> | ||
<div class="ipfs-icon {{iconFromExt .Name}}"> </div> | ||
</td> | ||
<td> | ||
<a href="{{ .Path }}">{{ .Name }}</a> | ||
</td> | ||
<td>{{ .Size }}</td> | ||
</tr> | ||
{{ end }} | ||
</table> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
.aac | ||
.aiff | ||
.ai | ||
.avi | ||
.bmp | ||
.c | ||
.cpp | ||
.css | ||
.dat | ||
.dmg | ||
.doc | ||
.dotx | ||
.dwg | ||
.dxf | ||
.eps | ||
.exe | ||
.flv | ||
.gif | ||
.h | ||
.hpp | ||
.html | ||
.ics | ||
.iso | ||
.java | ||
.jpg | ||
.js | ||
.key | ||
.less | ||
.mid | ||
.mp3 | ||
.mp4 | ||
.mpg | ||
.odf | ||
.ods | ||
.odt | ||
.otp | ||
.ots | ||
.ott | ||
.php | ||
.png | ||
.ppt | ||
.psd | ||
.py | ||
.qt | ||
.rar | ||
.rb | ||
.rtf | ||
.sass | ||
.scss | ||
.sql | ||
.tga | ||
.tgz | ||
.tiff | ||
.txt | ||
.wav | ||
.xls | ||
.xlsx | ||
.xml | ||
.yml | ||
.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "dir-index-html", | ||
"version": "1.0.0" | ||
} |