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
|
|
|
|
are calculated relative to the top and bottom bar heights.
|
|
|
|
*/
|
|
|
|
"spacing": {
|
|
|
|
"maxWidth": 960,
|
|
|
|
"top": 50,
|
|
|
|
"right": "auto",
|
|
|
|
"bottom": 50,
|
|
|
|
"left": "auto"
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-14 18:32:25 +02:00
|
|
|
General view options.
|
|
|
|
|
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.
|
|
|
|
- sizes: array, subset of [16, 24, 32, 48, 64, 96]
|
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.
|
|
|
|
- setParentFolderLabels: set parent folder labels to real folder names
|
2013-07-20 22:00:54 +02:00
|
|
|
- hideParentFolderLinks: hide parent folder links
|
2012-10-14 18:32:25 +02:00
|
|
|
- binaryPrefix: set to true uses 1024B=1KiB when formatting file sizes (see http://en.wikipedia.org/wiki/Binary_prefix)
|
2012-10-21 18:37:19 +02:00
|
|
|
- indexFiles: consider folder with those files as non {{pkg.name}} folders
|
|
|
|
- ignore: don't list items matching these regular expressions
|
2013-07-20 21:21:57 +02:00
|
|
|
- smartBrowsing: use History API if available (no need to reload the whole page)
|
2012-10-21 18:37:19 +02:00
|
|
|
- extInNewWindow: open non-h5ai links in new window/tab
|
2012-10-07 02:40:50 +02:00
|
|
|
*/
|
|
|
|
"view": {
|
2013-08-28 17:12:30 +02:00
|
|
|
"modes": ["details", "grid", "icons"],
|
2013-08-28 23:56:09 +02:00
|
|
|
"sizes": [48, 24, 96],
|
2012-10-07 02:40:50 +02:00
|
|
|
"setParentFolderLabels": true,
|
2013-07-20 22:00:54 +02:00
|
|
|
"hideParentFolderLinks": false,
|
2012-10-07 02:40:50 +02:00
|
|
|
"binaryPrefix": false,
|
|
|
|
"indexFiles": ["index.html", "index.htm", "index.php"],
|
2012-10-18 21:27:09 +02:00
|
|
|
"ignore": ["^\\.", "^_{{pkg.name}}"],
|
2012-10-21 18:37:19 +02:00
|
|
|
"smartBrowsing": true,
|
2013-07-23 10:21:02 +02:00
|
|
|
"extInNewWindow": 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-07-23 20:09:56 +02:00
|
|
|
"enabled": true,
|
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]
|
2012-10-07 02:40:50 +02:00
|
|
|
Allow file deletion.
|
|
|
|
*/
|
|
|
|
"delete": {
|
2013-07-23 20:09:56 +02:00
|
|
|
"enabled": true
|
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": {
|
2013-07-23 20:09:56 +02:00
|
|
|
"enabled": true,
|
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": {
|
2013-07-06 20:37:08 +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.
|
|
|
|
*/
|
|
|
|
"foldersize": {
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
|
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"]
|
|
|
|
]
|
|
|
|
|
|
|
|
see: http://support.google.com/googleanalytics/bin/topic.py?hl=en&topic=27612
|
|
|
|
*/
|
|
|
|
"google-analytics": {
|
2012-10-14 18:32:25 +02:00
|
|
|
"enabled": false,
|
2012-10-07 02:40:50 +02:00
|
|
|
"gaq": []
|
|
|
|
},
|
|
|
|
|
2012-10-17 01:54:05 +02:00
|
|
|
/*
|
2012-10-07 02:40:50 +02:00
|
|
|
Localization, for example "en", "de" etc. - see "langs" below for
|
|
|
|
possible values. Adjust it to your needs. If lang is not found in
|
|
|
|
"langs" it defaults to "en".
|
|
|
|
|
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
|
|
|
Shows the server mode in the bottom left corner.
|
2012-10-13 23:58:52 +02:00
|
|
|
|
|
|
|
- display:
|
2012-10-07 02:40:50 +02:00
|
|
|
0: only show mode
|
|
|
|
1: mode and servername
|
|
|
|
2: mode, servername and -version
|
|
|
|
*/
|
|
|
|
"mode": {
|
2013-07-23 10:21:02 +02:00
|
|
|
"enabled": false,
|
2012-10-07 02:40:50 +02:00
|
|
|
"display": 2
|
|
|
|
},
|
|
|
|
|
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,
|
2013-07-20 19:08:20 +02:00
|
|
|
"types": ["bmp", "gif", "ico", "image", "jpg", "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": {
|
2013-08-31 15:27:46 +02:00
|
|
|
"authors": "fixed",
|
|
|
|
"copying": "fixed",
|
2012-10-07 02:40:50 +02:00
|
|
|
"c": "c",
|
|
|
|
"cpp": "cpp",
|
|
|
|
"css": "css",
|
|
|
|
"diff": "diff",
|
|
|
|
"h": "c",
|
|
|
|
"hpp": "cpp",
|
2013-08-31 15:27:46 +02:00
|
|
|
"install": "fixed",
|
|
|
|
"log": "fixed",
|
2012-10-07 02:40:50 +02:00
|
|
|
"java": "java",
|
2012-10-11 18:28:12 +02:00
|
|
|
"js": "js",
|
|
|
|
"json": "js",
|
2012-10-07 02:40:50 +02:00
|
|
|
"makefile": "xml",
|
2013-08-31 15:27:46 +02:00
|
|
|
"markdown": "markdown",
|
2012-10-11 18:28:12 +02:00
|
|
|
// "php": "php",
|
2012-10-07 02:40:50 +02:00
|
|
|
"python": "python",
|
2013-08-31 15:27:46 +02:00
|
|
|
"readme": "fixed",
|
2012-10-07 02:40:50 +02:00
|
|
|
"rb": "ruby",
|
2013-08-31 15:27:46 +02:00
|
|
|
"rtf": "fixed",
|
2012-10-07 02:40:50 +02:00
|
|
|
"script": "shell",
|
2013-08-31 15:27:46 +02:00
|
|
|
"text": "fixed",
|
2012-10-07 02:40:50 +02:00
|
|
|
"xml": "xml"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
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
|
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,
|
2013-08-24 15:14:25 +02:00
|
|
|
"natural": false
|
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,
|
2013-07-20 19:08:20 +02:00
|
|
|
"img": ["bmp", "gif", "ico", "image", "jpg", "png"],
|
2012-10-07 02:40:50 +02:00
|
|
|
"mov": ["video"],
|
|
|
|
"doc": ["pdf", "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
|
|
|
}
|
|
|
|
}
|