h5ai/README.md

425 lines
13 KiB
Markdown
Raw Normal View History

2011-07-29 03:25:48 +02:00
# h5ai
2012-10-13 15:26:44 +02:00
**a modern HTTP web server index for Apache httpd, lighttpd, nginx and Cherokee**
2011-07-29 03:25:48 +02:00
2012-10-13 15:23:30 +02:00
The preferred way to report a bug or make a feature request is to
create [a new issue](http://github.com/lrsjng/h5ai/issues/new) on GitHub!
2011-11-26 20:53:51 +01:00
2011-07-29 03:25:48 +02:00
2012-10-13 15:23:30 +02:00
## Install
2012-10-13 15:36:04 +02:00
(**note:** please don't use files from the `src` folder for installation,
they need to be preprocessed to work correctly)
2012-10-13 15:23:30 +02:00
You'll find a preprocessed package, as well as detailed installation
instructions on the [project page](http://larsjung.de/h5ai/).
2011-06-16 01:24:49 +02:00
2012-08-05 17:39:33 +02:00
## Build
2012-10-13 15:36:04 +02:00
(there are repositories of the latest [releases](http://release.larsjung.de/h5ai/) and [dev builds](http://release.larsjung.de/h5ai/dev/))
2012-09-22 13:51:24 +02:00
2012-10-13 02:31:08 +02:00
If you want to build **h5ai** yourself you need to install the build tool [fQuery](http://larsjung.de/fquery/) first:
2012-08-05 17:39:33 +02:00
> npm install -g fquery
2012-09-18 16:46:48 +02:00
This will install fQuery and its command line tool `makejs`. Run `makejs --help` to see if everything
worked fine.
2012-08-05 17:39:33 +02:00
2012-09-18 16:59:11 +02:00
To clone and build the project run the following commands.
2012-10-13 15:36:04 +02:00
You'll find a new directory `build` including a fresh zipball.
2012-09-18 16:46:48 +02:00
> git clone git://github.com/lrsjng/h5ai.git
> cd h5ai
2012-09-18 16:59:11 +02:00
> makejs release
2012-08-05 17:39:33 +02:00
2011-11-01 22:33:00 +01:00
2012-10-13 15:23:30 +02:00
## License
**h5ai** is provided under the terms of the [MIT License](http://github.com/lrsjng/h5ai/blob/develop/LICENSE.md).
2012-10-13 15:26:44 +02:00
2012-10-13 15:23:30 +02:00
It profits from these great projects:
[Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-173323228) (GPL),
[HTML5 ★ Boilerplate](http://html5boilerplate.com) (MIT),
[jQuery](http://jquery.com) (MIT),
2012-10-13 21:37:06 +02:00
[jQuery.filedrop](http://www.github.com/weixiyen/jquery-filedrop) (MIT),
2012-10-13 15:23:30 +02:00
[jQuery.fracs](http://larsjung.de/fracs/) (MIT),
[jQuery.mousewheel](http://github.com/brandonaaron/jquery-mousewheel) (MIT),
[jQuery.qrcode](http://larsjung.de/qrcode/) (MIT),
[jQuery.scrollpanel](http://larsjung.de/scrollpanel/) (MIT),
[markdown-js](http://github.com/evilstreak/markdown-js) (MIT),
[Modernizr](http://www.modernizr.com) (MIT/BSD),
[modulejs](http://larsjung.de/modulejs/) (MIT),
[Moment.js](http://momentjs.com) (MIT),
[spin.js](http://fgnass.github.com/spin.js/) (MIT),
[SyntaxHighlighter](http://alexgorbatchev.com/SyntaxHighlighter/) (MIT/GPL),
[Underscore.js](http://underscorejs.org) (MIT)
2012-08-05 19:56:26 +02:00
## Changelog
2012-10-13 03:09:00 +02:00
(**h5ai** uses [semantic versioning](http://semver.org/))
2012-02-12 02:40:14 +01:00
2012-10-16 17:04:04 +02:00
### v0.23
*
2012-10-16 17:02:24 +02:00
### v0.22.1 - *2012-10-16*
2012-10-14 18:40:43 +02:00
2012-10-16 17:02:24 +02:00
* bug fix concerning API requests in PHP mode
* minor changes in responsive styles
2012-10-14 18:40:43 +02:00
2012-10-14 18:38:34 +02:00
### v0.22 - *2012-10-14*
2012-08-06 19:28:56 +02:00
2012-10-13 02:54:51 +02:00
* general changes h5ai directory layout and configuration
* splits configuration file (`config.json`) into files `options.json`, `types.json` and `langs.json`
* localization now in separate files
2012-10-14 02:30:01 +02:00
* adds auto-refresh
* adds drag'n'drop upload (PHP, experimental)
* adds file deletion (PHP, experimental)
2012-10-06 16:50:43 +02:00
* cleans and improves PHP code
2012-10-07 13:48:27 +02:00
* PHP no longer respects htaccess restrictions (so be careful)
2012-08-12 16:44:58 +02:00
* PHP ignore patterns might include paths now
2012-10-07 13:48:27 +02:00
* improves separation between aai and php mode
2012-10-13 02:54:51 +02:00
* improves performance in aai mode
* adds optional binary prefixes for file sizes
* improves filter: autofocus on keypress, clear on `ESC`
2012-10-14 00:02:10 +02:00
* download packages now packaged relative to current folder
* download package name changable
2012-10-13 02:54:51 +02:00
* splits type `js` into `js` and `json`
* prevents some errors with files > 2GB on 32bit OS
* adds max subfolder size in tree view
* adds ctrl-click file selection
2012-10-13 02:54:51 +02:00
* adds Piwik analytics extension
2012-10-07 13:48:27 +02:00
* temp download packages are now stored in the `cache`-folder and deleted as soon as possible
2012-08-13 21:42:36 +02:00
* updates translations
2012-09-12 21:35:24 +02:00
* adds `he` translation by [Tomer Cohen](https://github.com/tomer)
2012-09-14 15:32:33 +02:00
* updates 3rd party libs
2012-08-06 19:28:56 +02:00
2012-08-06 19:26:32 +02:00
### v0.21 - *2012-08-06*
2012-05-11 19:09:01 +02:00
2012-07-16 01:12:06 +02:00
* fixes misaligned image previews
* adds no JavaScript fallback to PHP version
* fixes duplicate tree entries and empty main views
2012-08-02 23:14:45 +02:00
* adds Google Analytics support (async)
2012-08-03 00:06:43 +02:00
* improves filter (now ignorecase, now only checks if chars in right order)
2012-08-04 15:41:42 +02:00
* adds keyboard support to image preview (space, enter, backspace, left, right, up, down, f, esc)
2012-08-06 16:47:17 +02:00
* adds text file preview and highlighting with [SyntaxHighlighter](http://alexgorbatchev.com/SyntaxHighlighter/) (same keys as img preview)
2012-08-06 00:25:25 +02:00
* adds Markdown preview with [markdown-js](http://github.com/evilstreak/markdown-js)
* adds new type `markdown`
2012-08-03 00:32:07 +02:00
* changes language code `gr` to `el`
* adds localization for filter placeholder
2012-05-28 15:06:07 +02:00
* adds `hu` translation by [Rodolffo](http://github.com/Rodolffo)
* updates to [jQuery.qrcode](http://larsjung.de/qrcode/) 0.2
* updates to [jQuery.scrollpanel](http://larsjung.de/scrollpanel/) 0.1
2012-07-14 16:42:07 +02:00
* updates to [modulejs](http://larsjung.de/modulejs/) 0.2
2012-08-03 00:49:28 +02:00
* updates to [Moment.js](http://momentjs.com) 1.7.0
* updates to [Underscore.js](http://underscorejs.org) 1.3.3
2012-05-11 19:09:01 +02:00
2012-05-11 18:54:52 +02:00
### v0.20 - *2012-05-11*
* adds image preview
* adds thumbnails for video and pdf
* adds support for lighttpd, nginx and cherokee and maybe other webservers with PHP
* adds folder size in PHP version via shell `du`
* fixes some localization problems
* updates info page at `/_h5ai/`
* switches to JSHint
### v0.19 - *2012-04-19*
2012-02-24 18:14:33 +01:00
* adds lots of config options
* changes in `config.js` and `h5ai.htaccess`
* fixes js problems in IE 7+8
* hides broken tree view in IE < 9, adds a message to the footer
* removes hash changes since they break logical browser history
* fixes thumbnail size for portrait images in icon view
2012-04-17 23:38:15 +02:00
* fixes problems with file type recognition
2012-05-11 18:54:52 +02:00
* adds an info page at `/_h5ai/`
* sort order is preserved while browsing
* removes PHP error messages on thumbnail generation
2012-04-19 00:57:43 +02:00
* fixes PHP some problems with packed download
2012-04-17 23:38:15 +02:00
* adds support for tarred downloads
2012-04-19 00:57:43 +02:00
* changes crumb image for folders with an index file
* adds `index.php` to use h5ai in non-Apache environments
* switches from [Datejs](http://www.datejs.com) to [Moment.js](http://momentjs.com)
* adds [underscore.js](http://underscorejs.org)
* fixes mousewheel problems, updates [jQuery.mousewheel](http://github.com/brandonaaron/jquery-mousewheel) to 3.0.6
2012-05-28 15:06:07 +02:00
* updates `lv` translation
* adds `ro` translation by [Jakob Cosoroabă](http://github.com/midday)
* adds `ja` translation by [metasta](http://github.com/metasta)
* adds `nb` translation by [Sindre Sorhus](http://github.com/sindresorhus)
* adds `sr` translation by [vBm](http://github.com/vBm)
* adds `gr` translation by [xhmikosr](http://github.com/xhmikosr)
2012-02-24 18:14:33 +01:00
2012-02-24 16:37:37 +01:00
### v0.18 - *2012-02-24*
2012-02-12 02:40:14 +01:00
* adds optional QRCode display
* adds optional filtering for displayed files and folders
* updates design
* improves zipped download
* adds support for zipped download of htaccess restricted files
2012-02-20 02:47:00 +01:00
* changes h5ai.htaccess
* custom headers/footers are now optional and disabled by default
* fixes problems with folder recognition in the JS version
2012-02-16 00:34:55 +01:00
* fixes include problems in PHP version
* fixes path problems on servers running on Windows in PHP version
2012-02-17 03:25:57 +01:00
* fixes broken links in custom headers/footers while zipped download enabled
* fixes problems with thumbnails for files with single or double quotes in filename
2012-02-23 22:41:17 +01:00
* improves url hashes
* updates year in `LICENSE.TXT`
* updates es translation
2012-05-28 15:06:07 +02:00
* adds `zh-tw` translation by [Yao Wei](http://github.com/medicalwei)
* updates `zh-cn` translation
2012-02-17 23:21:13 +01:00
2012-02-12 02:40:14 +01:00
### v0.17 - *2011-11-28*
2011-11-26 20:53:51 +01:00
* h5ai is now located in `_h5ai` to reduce collisions
* switches from HTML5 Boilerplate reset to normalization
* adds some style changes for small devices
* configuration (options, types, translations) now via `config.js`
* icons for JS version are now configured via `config.js`
* sort order configuration changed
* sorting is now done without page reload
* adds `customHeader` and `customFooter` to `config.js`
* supports restricted folders to some extent
* some style changes on tree and language menu
* fixes total file/folder count in status bar
* adds support for use with userdir (requires some manual changes)
2012-02-12 02:40:14 +01:00
### v0.16 - *2011-11-02*
2011-09-18 19:54:18 +02:00
2011-10-30 22:05:25 +01:00
* sorts translations in `options.js`
* improves HTML head sections
2011-11-01 22:33:00 +01:00
* refactors JavaScript and PHP a lot
2011-10-30 22:05:25 +01:00
* improves/fixes file selection for zipped download
2011-11-02 00:56:55 +01:00
* fixes scrollbar and header/footer link issues (didn't work when zipped download enabled)
2011-11-01 22:33:00 +01:00
* adds support for ctrl-select
* `dateFormat` in `options.js` changed, now affecting JS and PHP version
* `dateFormat` is localizable by adding it to a translation in `options.js`
* PHP version is now configurable via `php/config.php` (set custom doc root and other PHP related things)
2011-11-02 00:56:55 +01:00
* image thumbs and zipped download is disabled by default now, but works fine if PHP is configured
2011-09-18 19:54:18 +02:00
2012-02-12 02:40:14 +01:00
### v0.15.2 - *2011-09-18*
2012-05-28 15:06:07 +02:00
* adds `it` translation by [Salvo Gentile](http://github.com/SalvoGentile) and [Marco Patriarca](http://github.com/Fexys)
* switches build process from scripp to wepp
2012-02-12 02:40:14 +01:00
### v0.15.1 - *2011-09-06*
2011-09-06 20:57:49 +02:00
2012-05-28 15:06:07 +02:00
* fixes security issues with the zipped download feature
* makes zipped download optional (but enabled by default)
2011-09-06 20:57:49 +02:00
2012-02-12 02:40:14 +01:00
### v0.15 - *2011-09-04*
2011-09-04 21:18:19 +02:00
2012-05-28 15:06:07 +02:00
* adds zipped download for selected files
* cleans and refactores
2011-09-04 21:18:19 +02:00
2012-02-12 02:40:14 +01:00
### v0.14.1 - *2011-09-01*
2011-09-01 14:27:58 +02:00
* display meta information in bottom bar (icon view)
2012-05-28 15:06:07 +02:00
* adds `zh-cn` translation by [Dongsheng Cai](http://github.com/dongsheng)
* adds `pl` translation by Radosław Zając
* adds `ru` translation by Богдан Илюхин
2011-09-01 14:27:58 +02:00
2012-02-12 02:40:14 +01:00
### v0.14 - *2011-08-16*
2011-08-16 21:03:09 +02:00
2012-05-28 15:06:07 +02:00
* adds image thumbnails for PHP version
2011-08-16 21:03:09 +02:00
* new option `slideTree` to turn off auto slide in
2012-02-12 02:40:14 +01:00
### v0.13.2 - *2011-08-12*
2011-08-12 19:04:14 +02:00
* changes in `/h5ai/.htaccess` ... PHP configuration ...
2012-02-12 02:40:14 +01:00
### v0.13.1 - *2011-08-12*
2012-05-28 15:06:07 +02:00
* fixes initial tree display
* adds sort order option
* adds/fixes some translations
* adds `lv` translation by Sandis Veinbergs
2012-02-12 02:40:14 +01:00
### v0.13 - *2011-08-06*
2011-07-30 13:19:28 +02:00
2012-05-28 15:06:07 +02:00
* adds PHP implementation! (should work with PHP 5.2+)
* adds new options
* changes layout of the bottom bar to display status information
* adds language selector to the bottom bar
* quotes keys in `options.js` to make it valid json
* changes value of option `lang` from `undefined` to `null`
* adds some new keys to `h5aiLangs`
* adds browser caching rules for css and js
* adds `pt` translation by [Jonnathan](http://github.com/jonnsl)
* adds `bg` translation by George Andonov
2011-07-30 13:19:28 +02:00
2012-02-12 02:40:14 +01:00
### v0.12.3 - *2011-07-30*
2012-05-28 15:06:07 +02:00
* adds `tr` translation by [Batuhan Icoz](http://github.com/batuhanicoz)
2012-02-12 02:40:14 +01:00
### v0.12.2 - *2011-07-30*
2011-07-30 12:35:51 +02:00
2012-05-28 15:06:07 +02:00
* adds `es` translation by Jose David Calderon Serrano
2011-07-30 12:35:51 +02:00
2012-02-12 02:40:14 +01:00
### v0.12.1 - *2011-07-29*
2011-07-29 02:36:53 +02:00
2012-05-28 15:06:07 +02:00
* fixes unchecked use of console.log
2011-07-29 02:36:53 +02:00
2012-02-12 02:40:14 +01:00
### v0.12 - *2011-07-28*
2012-05-28 15:06:07 +02:00
* improves performance
2012-02-12 02:40:14 +01:00
### v0.11 - *2011-07-27*
2011-07-27 02:25:00 +02:00
2012-05-28 15:06:07 +02:00
* changes license to MIT license, see `LICENSE.txt`
2011-07-27 02:25:00 +02:00
2012-02-12 02:40:14 +01:00
### v0.10.2 - *2011-07-26*
2011-07-26 16:40:18 +02:00
2012-05-28 15:06:07 +02:00
* improves tree scrollbar
2011-07-26 16:40:18 +02:00
2012-02-12 02:40:14 +01:00
### v0.10.1 - *2011-07-24*
2011-07-24 18:05:44 +02:00
2012-05-28 15:06:07 +02:00
* fixes problems with ' in links
2011-07-24 18:05:44 +02:00
2012-02-12 02:40:14 +01:00
### v0.10 - *2011-07-24*
2012-05-28 15:06:07 +02:00
* fixes problems with XAMPP on Windows (see `dot.htaccess` comments for instructions)
* fixes tree fade-in-fade-out effect for small displays ([issue #6](http://github.com/lrsjng/h5ai/issues/6))
* adds custom scrollbar to tree ([issue #6](http://github.com/lrsjng/h5ai/issues/6))
* fixes broken links caused by URI encoding/decoding ([issue #9](http://github.com/lrsjng/h5ai/issues/9))
* adds "empty" to localization (hope Google Translate did a good job here)
2012-02-12 02:40:14 +01:00
### v0.9 - *2011-07-18*
2012-05-28 15:06:07 +02:00
* links hover states between crumb, extended view and tree
* fixes size of tree view (now there's a ugly scrollbar, hopefully will be fixed)
* refactores js to improve performance and cleaned code
* adds caching for folder status codes and content
* adds `fr` translation by [Nicolas](http://github.com/Nicosmos)
* adds `nl` translation by [Stefan de Konink](http://github.com/skinkie)
* adds `sv` translation by Oscar Carlsson
2012-02-12 02:40:14 +01:00
### v0.8 - *2011-07-08*
2012-05-28 15:06:07 +02:00
* removes slashes from folder labels
* optionally rename parent folder entries to real folder names, see `options.js`
2011-11-26 20:53:51 +01:00
* long breadcrumbs (multiple rows) no longer hide content
* error folder icons are opaque now
2012-05-28 15:06:07 +02:00
* refactores js a lot (again...)
2012-02-12 02:40:14 +01:00
### v0.7 - *2011-07-07*
2012-05-28 15:06:07 +02:00
* removes shadows
* smarter tree side bar
2012-02-12 02:40:14 +01:00
### v0.6 - *2011-07-05*
2011-07-05 01:39:45 +02:00
2012-05-28 15:06:07 +02:00
* refactores js
* adds localization, see `options.js`
2011-07-05 01:39:45 +02:00
2012-02-12 02:40:14 +01:00
### v0.5.3 - *2011-07-04*
2012-05-28 15:06:07 +02:00
* refactores js
* adds basic options support via `options.js`
* adds comments to `options.js`
* adds optional tree sidebar
2012-02-12 02:40:14 +01:00
### v0.5.2 - *2011-07-02*
2011-07-02 21:11:25 +02:00
* details view adjusts to window width
2012-05-28 15:06:07 +02:00
* links icon for *.gz and *.bz2
2011-07-02 21:11:25 +02:00
2012-02-12 02:40:14 +01:00
### v0.5.1 - *2011-07-01*
2011-07-01 15:32:22 +02:00
2012-05-28 15:06:07 +02:00
* disables tree sidebar for now, since it had unwanted side effects
2011-07-01 15:32:22 +02:00
2012-02-12 02:40:14 +01:00
### v0.5 - *2011-07-01*
2011-07-01 01:51:24 +02:00
2012-05-28 15:06:07 +02:00
* adds tree sidebar
2011-07-01 01:51:24 +02:00
* some refactorings
2012-02-12 02:40:14 +01:00
### v0.4 - *2011-06-27*
2012-05-28 15:06:07 +02:00
* adds better fallback, in case JavaScript is disabled
* rewrites js, fixed middle-button click etc. problems
* refactors css
* sorts, adds and moves icons and images
* updates dot.access
2012-02-12 02:40:14 +01:00
### v0.3.2 - *2011-06-24*
2011-06-24 22:18:44 +02:00
2012-05-28 15:06:07 +02:00
* removes lib versions from file names
* adds 'empty' indicator for icons view
2011-06-24 22:18:44 +02:00
2012-02-12 02:40:14 +01:00
### v0.3.1 - *2011-06-24*
2011-06-24 15:39:44 +02:00
2012-05-28 15:06:07 +02:00
* refactores js
* adds `folderClick` and `fileClick` callback hooks
* fixes .emtpy style
2011-06-24 15:39:44 +02:00
2012-02-12 02:40:14 +01:00
### v0.3 - *2011-06-23*
2011-06-23 20:35:28 +02:00
2012-05-28 15:06:07 +02:00
* includes build stuff, files previously found in the base directory are now located in folder `target`
2011-06-23 20:35:28 +02:00
* styles and scripts are now minified
2012-05-28 15:06:07 +02:00
* adds Modernizr 2.0.4 for future use
* updates jQuery to version 1.6.1
2011-06-23 20:35:28 +02:00
2011-06-16 21:20:18 +02:00
2012-02-12 02:40:14 +01:00
### v0.2.3 - *2011-06-17*
* more refactoring in main.js
2012-02-12 02:40:14 +01:00
### v0.2.2 - *2011-06-16*
2011-06-16 21:20:18 +02:00
2012-05-28 15:06:07 +02:00
* refactores a lot, adds some comments
* includes fixes from [NumEricR](http://github.com/NumEricR)
* adds top/bottom message support, only basicly styled
2011-06-16 21:20:18 +02:00
2012-02-12 02:40:14 +01:00
### v0.2.1 - *2011-06-16*
2011-06-16 01:24:49 +02:00
2012-05-28 15:06:07 +02:00
* fixes croped filenames
* fixes missing .png extension in header
* adds some color to the links
* adds changelog
2011-06-16 01:24:49 +02:00
2011-06-16 21:20:18 +02:00
2012-02-12 02:40:14 +01:00
### v0.2 - *2011-06-15*
2011-06-16 01:24:49 +02:00
2012-05-28 15:06:07 +02:00
* adds icon view
2011-06-16 01:24:49 +02:00