2012-10-07 02:40:50 +02:00
|
|
|
/*
|
|
|
|
{{pkg.name}} {{pkg.version}}
|
|
|
|
{{pkg.url}}
|
|
|
|
|
|
|
|
Options
|
|
|
|
*/
|
|
|
|
|
|
|
|
{
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Spacing of the main content.
|
2012-10-14 18:32:25 +02:00
|
|
|
|
2012-10-07 02:40:50 +02:00
|
|
|
Left and right will be added to a minimum of 30px. Top and bottom
|
2014-06-01 18:24:50 +02:00
|
|
|
are added to the top and bottom bar heights.
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"spacing": {
|
2014-06-01 18:24:50 +02:00
|
|
|
"bottom": 50,
|
|
|
|
"left": "auto",
|
2012-10-07 02:40:50 +02:00
|
|
|
"maxWidth": 960,
|
|
|
|
"right": "auto",
|
2014-06-01 18:24:50 +02:00
|
|
|
"top": 50
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-14 18:32:25 +02:00
|
|
|
General view options.
|
|
|
|
|
2014-06-01 18:24:50 +02:00
|
|
|
- binaryPrefix: set to true uses 1024B=1KiB when formatting file sizes (see http://en.wikipedia.org/wiki/Binary_prefix)
|
|
|
|
- hidden: don't list items matching these regular expressions
|
|
|
|
- hideFolders: hide all folders in the main view
|
|
|
|
- hideIf403: hide files and folders that are not readable by the server
|
|
|
|
- hideParentFolder: hide parent folder links in the main view
|
2013-08-28 23:56:09 +02:00
|
|
|
- modes: array, subset of ["details", "grid", "icons"]
|
|
|
|
the first value indicates the default view mode. If only one value
|
|
|
|
is given the view mode is fixed and the selector buttons are hidden.
|
|
|
|
The user selected view mode is also stored local in modern browsers
|
|
|
|
so that it will be persistent.
|
2014-06-01 18:24:50 +02:00
|
|
|
- setParentFolderLabels: set parent folder labels to real folder names
|
2014-05-31 01:29:15 +02:00
|
|
|
- sizes: array, subset of [16, 24, 32, 48, 64, 96, 128, 192, 256, 384]
|
2012-10-14 18:32:25 +02:00
|
|
|
the first value indicates the default view mode. If only one value
|
|
|
|
is given the view mode is fixed and the selector buttons are hidden.
|
|
|
|
The user selected view mode is also stored local in modern browsers
|
|
|
|
so that it will be persistent.
|
2013-07-20 21:21:57 +02:00
|
|
|
- smartBrowsing: use History API if available (no need to reload the whole page)
|
2014-06-01 20:37:29 +02:00
|
|
|
- theme: name of one of the folders in "_{{pkg.name}}/client/themes", defaults to "fallback"
|
2014-06-01 22:26:11 +02:00
|
|
|
- unmanaged: don't manage folders containing one of those files
|
|
|
|
- unmanagedInNewWindow: open unmanaged links in new window/tab
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"view": {
|
|
|
|
"binaryPrefix": false,
|
2014-06-01 18:24:50 +02:00
|
|
|
"hidden": ["^\\.", "^_{{pkg.name}}"],
|
|
|
|
"hideFolders": false,
|
2014-06-01 03:48:53 +02:00
|
|
|
"hideIf403": true,
|
2014-06-01 18:24:50 +02:00
|
|
|
"hideParentFolder": false,
|
|
|
|
"modes": ["details", "grid", "icons"],
|
|
|
|
"setParentFolderLabels": true,
|
|
|
|
"sizes": [48, 24, 96],
|
|
|
|
"smartBrowsing": true,
|
2014-06-04 17:03:11 +02:00
|
|
|
"theme": "fallback",
|
2014-06-01 22:26:11 +02:00
|
|
|
"unmanaged": ["index.html", "index.htm", "index.php"],
|
|
|
|
"unmanagedInNewWindow": false
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** Extensions (in alphabetical order) ***/
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-14 18:32:25 +02:00
|
|
|
Watch and update current folder content.
|
2012-10-07 02:40:50 +02:00
|
|
|
|
2012-10-13 23:58:52 +02:00
|
|
|
- interval: number, update interval in milliseconds, at least 1000
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"autorefresh": {
|
2013-09-04 16:12:46 +02:00
|
|
|
"enabled": false,
|
2012-10-07 02:40:50 +02:00
|
|
|
"interval": 5000
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Show a clickable breadcrumb.
|
|
|
|
*/
|
|
|
|
"crumb": {
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2013-07-20 21:21:57 +02:00
|
|
|
Allow customized header and footer files.
|
2013-07-21 14:52:55 +02:00
|
|
|
First looks for files "_h5ai.header.html" and "_h5ai.footer.html" in the current directory.
|
|
|
|
If not found it looks in all parent directories (starting in the current directory) for
|
|
|
|
files "_h5ai.headers.html" and "_h5ai.footers.html" until it finds one. Note the different
|
|
|
|
filenames: "header" (only current) - "headers" (current and sub directories)!
|
|
|
|
The file's content will be placed inside a <div/> tag above/below the main content.
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"custom": {
|
2013-07-20 21:21:57 +02:00
|
|
|
"enabled": true
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/* [EXPERIMENTAL]
|
2014-05-22 23:14:20 +02:00
|
|
|
Allow file and folder deletion. Be careful with this option!
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"delete": {
|
2013-09-06 00:49:50 +02:00
|
|
|
"enabled": false
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/* [EXPERIMENTAL]
|
2012-10-07 02:40:50 +02:00
|
|
|
File upload via drag'n'drop. Folders are not supported.
|
|
|
|
The working file size seems to be very browser dependent.
|
|
|
|
|
2012-10-13 23:58:52 +02:00
|
|
|
- maxfiles: number, max number of files per upload
|
|
|
|
- maxfilesize: number, file size is in MB
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"dropbox": {
|
2014-04-09 18:12:14 +02:00
|
|
|
"enabled": false,
|
2012-10-07 02:40:50 +02:00
|
|
|
"maxfiles": 10,
|
|
|
|
"maxfilesize": 1000
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Enable packaged download of selected entries.
|
2012-10-13 23:58:52 +02:00
|
|
|
|
2013-07-18 20:14:10 +02:00
|
|
|
- type: "php-tar", "shell-tar" or "shell-zip"
|
2012-10-13 23:58:52 +02:00
|
|
|
- packageName: basename of the download package, null for current foldername
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"download": {
|
2014-05-09 23:20:14 +02:00
|
|
|
"enabled": true,
|
2013-07-18 20:14:10 +02:00
|
|
|
"type": "php-tar",
|
2012-10-13 23:58:52 +02:00
|
|
|
"packageName": null
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Allow filtering the displayed files and folders.
|
|
|
|
Will check entries for right order of characters, i.e.
|
|
|
|
"ab" matches "ab", "axb", "xaxbx" but not "ba".
|
|
|
|
Space separated sequences get OR-ed.
|
|
|
|
|
|
|
|
Filters will be treated as JavaScript regular expressions
|
|
|
|
if you prefix them with "re:".
|
|
|
|
*/
|
|
|
|
"filter": {
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Calc the size of folders.
|
2014-05-18 22:04:06 +02:00
|
|
|
This operation is real slow. The calculated sizes differ slightly for both
|
|
|
|
calculation types since "php" only adds the file size, while "shell-du"
|
|
|
|
also adds the sizes for the actual folder files.
|
|
|
|
|
|
|
|
- type: "php" (sloooow) or "shell-du" (sloow)
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"foldersize": {
|
2014-05-18 22:04:06 +02:00
|
|
|
"enabled": true,
|
|
|
|
"type": "php"
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Adds Google Analytics asynchronous tracking code.
|
|
|
|
|
|
|
|
for example:
|
|
|
|
"gaq": [
|
|
|
|
["_setAccount", "UA-xxxxxx-x"],
|
|
|
|
["_setDomainName", ".your-domain.tld"],
|
|
|
|
["_trackPageview"],
|
|
|
|
["_trackPageLoadTime"]
|
|
|
|
]
|
|
|
|
|
2014-05-31 20:17:41 +02:00
|
|
|
see: https://developers.google.com/analytics/devguides/collection/gajs/
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
2014-05-31 20:17:41 +02:00
|
|
|
"google-analytics-ga": {
|
2012-10-14 18:32:25 +02:00
|
|
|
"enabled": false,
|
2012-10-07 02:40:50 +02:00
|
|
|
"gaq": []
|
|
|
|
},
|
|
|
|
|
2014-05-31 20:17:41 +02:00
|
|
|
/*
|
|
|
|
Adds Google Universial Analytics asynchronous tracking code.
|
|
|
|
|
|
|
|
for example:
|
|
|
|
"calls": [
|
|
|
|
['create', 'UA-XXXX-Y', 'auto'],
|
|
|
|
['send', 'pageview']
|
|
|
|
]
|
|
|
|
|
|
|
|
see: https://developers.google.com/analytics/devguides/collection/analyticsjs/
|
|
|
|
*/
|
|
|
|
"google-analytics-ua": {
|
|
|
|
"enabled": false,
|
|
|
|
"calls": []
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2014-04-09 18:12:14 +02:00
|
|
|
Localization, for example "en", "de" etc. - see "_h5ai/conf/l10n" folder for
|
|
|
|
possible values. Adjust it to your needs. If lang is not found
|
|
|
|
it defaults to "en".
|
2012-10-07 02:40:50 +02:00
|
|
|
|
2012-10-13 23:58:52 +02:00
|
|
|
- lang: default language
|
|
|
|
- useBroserLang: boolean, try to use browser language
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"l10n": {
|
|
|
|
"enabled": true,
|
|
|
|
"lang": "en",
|
|
|
|
"useBrowserLang": true
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Link the hover effects between crumb, main view and tree.
|
|
|
|
*/
|
|
|
|
"link-hover-states": {
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Adds Piwik tracker javascript code.
|
2012-10-13 23:58:52 +02:00
|
|
|
|
|
|
|
- baseURL: do not include the protocol, e.g. "mydomain.tld/piwik"
|
|
|
|
- idSite: number
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"piwik-analytics": {
|
|
|
|
"enabled": false,
|
2012-10-13 23:58:52 +02:00
|
|
|
"baseURL": "some/url",
|
2012-10-07 02:40:50 +02:00
|
|
|
"idSite": 1
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Show an image preview on click.
|
2012-10-13 23:58:52 +02:00
|
|
|
|
|
|
|
- types: array of types
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"preview-img": {
|
|
|
|
"enabled": true,
|
2014-06-03 01:49:56 +02:00
|
|
|
"types": ["img", "img-bmp", "img-gif", "img-ico", "img-jpg", "img-png"]
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Show text file preview on click.
|
2013-08-31 15:27:46 +02:00
|
|
|
"types" maps file types to SyntaxHighligher brushes.
|
2012-10-07 02:40:50 +02:00
|
|
|
For available brushes see http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/
|
2012-10-13 23:58:52 +02:00
|
|
|
|
2013-08-31 15:27:46 +02:00
|
|
|
Additional type are:
|
|
|
|
- "markdown" to render Markdown text
|
|
|
|
- "none" for floating text
|
|
|
|
- "fixed" for fixed width text
|
|
|
|
|
2012-10-13 23:58:52 +02:00
|
|
|
- types: maps types to brushes
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"preview-txt": {
|
|
|
|
"enabled": true,
|
|
|
|
"types": {
|
2014-06-03 01:49:56 +02:00
|
|
|
"txt": "fixed",
|
|
|
|
"txt-authors": "fixed",
|
|
|
|
"txt-license": "fixed",
|
|
|
|
"txt-c": "c",
|
|
|
|
"txt-cpp": "cpp",
|
|
|
|
"txt-css": "css",
|
|
|
|
"txt-diff": "diff",
|
|
|
|
"txt-h": "c",
|
|
|
|
"txt-hpp": "cpp",
|
|
|
|
"txt-install": "fixed",
|
|
|
|
"txt-log": "fixed",
|
|
|
|
"txt-java": "java",
|
|
|
|
"txt-js": "js",
|
|
|
|
"txt-json": "js",
|
|
|
|
"txt-makefile": "xml",
|
|
|
|
"txt-md": "markdown",
|
|
|
|
// "txt-php": "php",
|
|
|
|
"txt-py": "python",
|
|
|
|
"txt-readme": "fixed",
|
|
|
|
"txt-rb": "ruby",
|
|
|
|
"txt-rtf": "fixed",
|
|
|
|
"txt-script": "shell",
|
|
|
|
"txt-xml": "xml"
|
2012-10-07 02:40:50 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Show QRCodes on hovering files.
|
2012-10-13 23:58:52 +02:00
|
|
|
|
|
|
|
- size: width and height in pixel
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"qrcode": {
|
2013-07-06 20:37:08 +02:00
|
|
|
"enabled": true,
|
2012-10-07 02:40:50 +02:00
|
|
|
"size": 150
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/* [EXPERIMENTAL]
|
2012-10-07 02:40:50 +02:00
|
|
|
Allow to rename files.
|
2012-10-14 02:30:01 +02:00
|
|
|
No GUI yet.
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"rename": {
|
|
|
|
"enabled": false
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2013-08-30 20:06:39 +02:00
|
|
|
Make entries selectable (first mouse button + drag).
|
|
|
|
At the moment only needed for packaged download and delete.
|
|
|
|
|
|
|
|
- checkboxes: boolean, show a checkbox on mouse over item
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"select": {
|
2013-08-30 20:06:39 +02:00
|
|
|
"enabled": true,
|
|
|
|
"checkboxes": true
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2013-08-23 16:28:58 +02:00
|
|
|
Default sort order.
|
|
|
|
"column" and "reverse" are locally stored.
|
|
|
|
|
|
|
|
- column: int, 0 for "Name", 1 for "Date", 2 for "Size"
|
|
|
|
- reverse: boolean, false for ascending, true for descending
|
|
|
|
- ignorecase: boolean, compare ignorecase
|
|
|
|
- natural: boolean, use natural sort order
|
2014-06-04 22:41:40 +02:00
|
|
|
- folders: where to place folders, 0 for "top", 1 for "in place", 2 for "bottom"
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"sort": {
|
|
|
|
"enabled": true,
|
2013-08-23 13:42:13 +02:00
|
|
|
"column": 0,
|
|
|
|
"reverse": false,
|
|
|
|
"ignorecase": true,
|
2014-06-04 22:41:40 +02:00
|
|
|
"natural": false,
|
|
|
|
"folders": 0
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Show additional info in a statusbar.
|
|
|
|
*/
|
|
|
|
"statusbar": {
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-11 00:37:08 +02:00
|
|
|
Show thumbnails for image files. Needs the "/_{{pkg.name}}/cache" folder to be
|
2012-10-07 02:40:50 +02:00
|
|
|
writable for the web Server.
|
2012-10-13 23:58:52 +02:00
|
|
|
|
|
|
|
- img: array of types
|
|
|
|
- mov: array of types
|
|
|
|
- doc: array of types
|
|
|
|
- delay: delay in milliseconds after "dom-ready" before thumb-requesting starts
|
2013-08-27 21:27:31 +02:00
|
|
|
- size: number, size in pixel of the generated thumbnails
|
2013-08-31 14:34:42 +02:00
|
|
|
- exif: boolean, use included EXIF thumbs if possible
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"thumbnails": {
|
|
|
|
"enabled": true,
|
2014-06-03 01:49:56 +02:00
|
|
|
"img": ["img", "img-bmp", "img-gif", "img-ico", "img-jpg", "img-png"],
|
|
|
|
"mov": ["vid"],
|
|
|
|
"doc": ["x-pdf", "x-ps"],
|
2013-08-27 21:27:31 +02:00
|
|
|
"delay": 1,
|
2013-08-31 14:34:42 +02:00
|
|
|
"size": 96,
|
|
|
|
"exif": true
|
2012-10-07 02:40:50 +02:00
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Replace window title with current breadcrumb.
|
|
|
|
*/
|
|
|
|
"title": {
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Show a folder tree.
|
|
|
|
Note that this might affect performance significantly.
|
|
|
|
|
2012-10-13 23:58:52 +02:00
|
|
|
- slide: boolean, slide tree bar into viewport if there is enough space
|
|
|
|
- maxSubfolders: max number of subfolders to show in tree
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"tree": {
|
|
|
|
"enabled": true,
|
2012-10-11 00:37:08 +02:00
|
|
|
"slide": true,
|
|
|
|
"maxSubfolders": 50
|
2012-10-07 02:40:50 +02:00
|
|
|
}
|
|
|
|
}
|