h5ai/src/_h5ai/conf/options.json

360 lines
8.3 KiB
JSON
Raw Normal View History

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-07 02:40:50 +02:00
Left and right will be added to a minimum of 30px. Top and bottom
are added to the top and bottom bar heights.
2012-10-07 02:40:50 +02:00
*/
"spacing": {
"bottom": 50,
"left": "auto",
2014-06-13 02:45:05 +02:00
"maxWidth": 1024,
2012-10-07 02:40:50 +02:00
"right": "auto",
"top": 50
2012-10-07 02:40:50 +02:00
},
2012-10-17 01:54:05 +02:00
/*
General view options.
- 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.
- 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]
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.
- 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,
"hidden": ["^\\.", "^_{{pkg.name}}"],
"hideFolders": false,
2014-06-01 03:48:53 +02:00
"hideIf403": true,
"hideParentFolder": false,
"modes": ["details", "grid", "icons"],
"setParentFolderLabels": true,
2014-06-16 00:41:27 +02:00
"sizes": [24, 32, 48, 64, 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
/*
Watch and update current folder content.
2012-10-07 02:40:50 +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
/*
Allow customized header and footer files.
First checks for files "_h5ai.header.html" and "_h5ai.footer.html" in the current directory.
If not successful it checks all parent directories (starting in the current directory) for
files "_h5ai.headers.html" and "_h5ai.footers.html".
Note the different filenames: "header" (only current) - "headers" (current and sub directories)!
2013-07-21 14:52:55 +02:00
The file's content will be placed inside a <div/> tag above/below the main content.
If a file's extension is ".md" instead of ".html" its content will be interpreted as markdown.
2012-10-07 02:40:50 +02:00
*/
"custom": {
"enabled": 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
Enable packaged download of selected entries.
2013-07-18 20:14:10 +02:00
- type: "php-tar", "shell-tar" or "shell-zip"
- 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",
"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": {
"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
- 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.
- 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,
"baseURL": "some/url",
2012-10-07 02:40:50 +02:00
"idSite": 1
},
2014-06-09 00:54:41 +02:00
/*
Play a audio preview on click.
- types: array of types
*/
"preview-aud": {
"enabled": true,
"types": ["aud"]
},
2012-10-17 01:54:05 +02:00
/*
2012-10-07 02:40:50 +02:00
Show an image preview on click.
- 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.
"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/
Additional type are:
- "markdown" to render Markdown text
- "none" for floating text
- "fixed" for fixed width text
- 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
}
},
2014-06-09 00:02:48 +02:00
/*
2014-06-09 00:54:41 +02:00
Play a video preview on click.
2014-06-09 00:02:48 +02:00
- types: array of types
*/
"preview-vid": {
"enabled": true,
"types": ["vid"]
},
2012-10-17 01:54:05 +02:00
/*
2012-10-07 02:40:50 +02:00
Show QRCodes on hovering files.
- 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
/*
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": {
"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
/*
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.
- 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
- 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,
"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.
- 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,
"slide": true,
"maxSubfolders": 50
2012-10-07 02:40:50 +02:00
}
}