-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ram Lmn
committed
Oct 14, 2016
1 parent
b5b1792
commit a36e7e8
Showing
9 changed files
with
183 additions
and
260 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -1,21 +1,25 @@ | ||
# Apache-directory-listing | ||
`Apache directory listing` is a theme inspired from [Apaxy](https://github.com/AdamWhitcroft/Apaxy) which uses Apache's `mod_autoindex` module. | ||
# Apache-Directory-Listing | ||
'Apache Directory Listing' is a theme inspired from [Apaxy](https://github.com/AdamWhitcroft/Apaxy) which uses Apache's `mod_autoindex` module. | ||
|
||
# Installation | ||
* Download and copy all the files of directory-listing folder to any folder in the server(root directory is highly preferred). | ||
* Copy any one of the `.htaccess` from either the 'grid' or 'table' folder to the root directory. | ||
* Open the `.htaccess` file and replace `{SOME_FOLDER}` to the location of folder that you copied the files. | ||
# Usage | ||
* Download or clone the repo and copy all the files of `directory-listing` folder to any folder in the server(root directory is highly preferred). | ||
* Copy the `.htaccess` file to the root directory of your server. | ||
* Open the `.htaccess` file and | ||
* Replace `{SOME_FOLDER}` to the location of `directory-listing` folder on your server. | ||
* Finally replace `{VIEW}` to either `grid` or `table`. | ||
|
||
# Themes | ||
The theme is included with two css files for grid(grid.css) and normal(row.css) table styled indexing. | ||
Just use any one of the .htaccess file from the 'grid' folder or 'table' folder. | ||
The theme is included with two css files for grid(`grid.css`) and normal(`table.css`) for table styled indexing. | ||
|
||
Just change the `{VIEW}` in `.htaccess` to either `grid` or `table`. | ||
|
||
You can add your custom code in the `header.html` and `footer.html`. | ||
|
||
### Grid style: | ||
![Grid Screenshot](https://raw.githubusercontent.com/Ramlmn/Apache-directory-listing/master/screenshots/grid.png) | ||
![grid](https://cloud.githubusercontent.com/assets/12368291/19376773/8444eaa6-91fe-11e6-9a1e-d233553191a6.png) | ||
|
||
### Table style: | ||
![Table Screenshot](https://raw.githubusercontent.com/Ramlmn/Apache-directory-listing/master/screenshots/table.png) | ||
![table](https://cloud.githubusercontent.com/assets/12368291/19376783/951cc542-91fe-11e6-91d1-4a41b7880f7f.png) | ||
|
||
# Credits | ||
This theme uses icons from [File Types Icons Set](http://uifest.com/product/file-types-icons-set). | ||
## Credits | ||
Icons referenced from [File Types Icons Set](http://uifest.com/product/file-types-icons-set). |
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,64 @@ | ||
# Indexing | ||
|
||
Options +Indexes | ||
|
||
# INDEX OPTIONS | ||
IndexOptions +Charset=UTF-8 +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription -SuppressSize -SuppressLastModified +NameWidth=* +IconsAreLinks | ||
|
||
# META TAGS | ||
IndexHeadInsert "<meta charset='UTF-8'><meta name='viewport' content='width=device-width, initial-scale=1'><meta http-equiv='X-UA-Compatible' content='IE=edge'>" | ||
|
||
# GENERAL ICONS (BLANK, DIRECTORY, PARENT DIRECTORY) | ||
|
||
AddIcon /{SOME_FOLDER}/icons/blank.svg ^^BLANKICON^^ | ||
AddIcon /{SOME_FOLDER}/icons/folder.svg ^^DIRECTORY^^ | ||
AddIcon /{SOME_FOLDER}/icons/folder-home.svg .. | ||
|
||
#AddIconByType (TXT,/{SOME_FOLDER}/icons/text.svg) text/* | ||
AddIconByType (IMG,/{SOME_FOLDER}/icons/img.svg) image/* | ||
AddIconByType (SND,/{SOME_FOLDER}/icons/audio.svg) audio/* | ||
AddIconByType (VID,/{SOME_FOLDER}/icons/video.svg) video/* | ||
|
||
# | ||
# EXTENSION SPECIFIC ICONS | ||
# | ||
|
||
DefaultIcon /{SOME_FOLDER}/icons/unknown.svg | ||
|
||
AddIcon /{SOME_FOLDER}/icons/archive.svg .zip .7z .bz2 .cab .gz .tar .rar | ||
AddIcon /{SOME_FOLDER}/icons/audio.png .aac .aif .aifc .aiff .ape .au .flac .iff .m4a .mid .mp3 .mpa .ra .wav .wma .f4a .f4b .oga .ogg .xm .it .s3m .mod | ||
AddIcon /{SOME_FOLDER}/icons/bin.svg .bin .hex | ||
AddIcon /{SOME_FOLDER}/icons/code.svg .xml | ||
AddIcon /{SOME_FOLDER}/icons/doc.svg .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps | ||
AddIcon /{SOME_FOLDER}/icons/img.svg .bmp .png .tiff .tif .gif .jpg .jpeg .jpe .psd .ai .ico | ||
AddIcon /{SOME_FOLDER}/icons/spreadsheet.svg .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv | ||
AddIcon /{SOME_FOLDER}/icons/presentation.svg .ppt .pptx .pot .potx .pptm .potm .xps | ||
AddIcon /{SOME_FOLDER}/icons/c++.svg .cpp | ||
AddIcon /{SOME_FOLDER}/icons/c.svg .c | ||
AddIcon /{SOME_FOLDER}/icons/css3.svg .css .sass .scss .less | ||
AddIcon /{SOME_FOLDER}/icons/font.svg .ttf .TTF .woff .WOFF .woff2 .WOFF2 .otf .OTF | ||
AddIcon /{SOME_FOLDER}/icons/h.svg .h | ||
AddIcon /{SOME_FOLDER}/icons/html5.svg .html .xhtml .shtml .htm .URL .url | ||
AddIcon /{SOME_FOLDER}/icons/info.svg .nfo .info | ||
AddIcon /{SOME_FOLDER}/icons/iso.svg .iso .img | ||
AddIcon /{SOME_FOLDER}/icons/java.svg .jar .java | ||
AddIcon /{SOME_FOLDER}/icons/js.svg .js .json | ||
AddIcon /{SOME_FOLDER}/icons/markdown.svg .md | ||
AddIcon /{SOME_FOLDER}/icons/package.svg .pkg .dmg .rpm .deb | ||
AddIcon /{SOME_FOLDER}/icons/pdf.svg .pdf | ||
AddIcon /{SOME_FOLDER}/icons/php.svg .php .phtml | ||
AddIcon /{SOME_FOLDER}/icons/py.svg .py | ||
AddIcon /{SOME_FOLDER}/icons/rb.svg .rb | ||
AddIcon /{SOME_FOLDER}/icons/script.svg .bat .BAT .cmd .sh .ps .exe .EXE .msi .MSI | ||
AddIcon /{SOME_FOLDER}/icons/sql.svg .sql | ||
AddIcon /{SOME_FOLDER}/icons/text.svg .txt .cnf .conf .map .yaml | ||
AddIcon /{SOME_FOLDER}/icons/vector.svg .svg .svgz | ||
AddIcon /{SOME_FOLDER}/icons/video.svg .asf .asx .avi .flv .mkv .mov .mp4 .mpg .rm .srt .swf .vob .wmv .m4v .f4v .f4p .ogv | ||
|
||
# | ||
# THEME FILES | ||
# | ||
|
||
HeaderName /{SOME_FOLDER}/header.html | ||
ReadmeName /{SOME_FOLDER}/footer.html | ||
IndexStyleSheet "/{SOME_FOLDER}/{VIEW}.css" |
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 |
---|---|---|
@@ -1,16 +1,25 @@ | ||
</div><!--/.wrapper--> | ||
</main> | ||
|
||
<div class="footer block"> | ||
<footer> | ||
<i>Apache directory</i> | ||
</div><!--/.footer--> | ||
<script type="text/javascript"> | ||
// grab the 2nd child and add the parent class. tr:nth-child(2) | ||
document.getElementsByTagName('tr')[1].className = 'parent'; | ||
</footer> | ||
|
||
<script> | ||
|
||
(function(){ | ||
|
||
var parent = document.querySelector('tr:not(.indexhead)'); | ||
parent.classList.add('parent'); | ||
|
||
[].forEach.call(document.querySelectorAll('tr'), function(tr) { | ||
tr.addEventListener("click", function(){ | ||
window.location.href = this.querySelectorAll('a')[0].href; | ||
}); | ||
}); | ||
// Make all the icon links unfocusable with tab | ||
var icolinks = document.querySelectorAll('.indexcolicon a'); | ||
[].forEach.call(icolinks, function(link) { | ||
|
||
link.setAttribute('tabindex', '-1'); | ||
|
||
}); | ||
|
||
})(); | ||
|
||
</script> | ||
|
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
This file was deleted.
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 |
---|---|---|
@@ -1 +1 @@ | ||
<div class="wrapper"> | ||
<main> |
Oops, something went wrong.