h5ai/src/_h5ai/conf/options.json

329 lines
6.9 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 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
/*
General view options.
- modes: array of "details", "icons", "grid" and/or "list"
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
- 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
- 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": {
2012-10-19 19:12:45 +02:00
"modes": ["details", "icons", "grid", "list"],
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
/*
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": {
"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
/*
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": {
"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": {
"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.
- maxfiles: number, max number of files per upload
- maxfilesize: number, file size is in MB
2012-10-07 02:40:50 +02:00
*/
"dropbox": {
"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.
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": {
2013-07-06 20:37:08 +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.
*/
"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": {
"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".
- 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.
- 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.
- 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
},
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,
"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.
"types" maps file types to SyntaxHighligher brushes. Special case: "markdown" will
be rendered as HTML.
For available brushes see http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/
- types: maps types to brushes
2012-10-07 02:40:50 +02:00
*/
"preview-txt": {
"enabled": true,
"types": {
"authors": "plain",
"copying": "plain",
"c": "c",
"cpp": "cpp",
"css": "css",
"diff": "diff",
"h": "c",
"hpp": "cpp",
"install": "plain",
"log": "plain",
"java": "java",
2012-10-11 18:28:12 +02:00
"js": "js",
"json": "js",
2012-10-07 02:40:50 +02:00
"makefile": "xml",
"markdown": "plain",
2012-10-11 18:28:12 +02:00
// "php": "php",
2012-10-07 02:40:50 +02:00
"python": "python",
"readme": "plain",
"rb": "ruby",
"rtf": "plain",
"script": "shell",
"text": "plain",
"xml": "xml"
}
},
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
/* [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
/*
2012-10-07 02:40:50 +02:00
Make entries selectable. At the moment only needed for packaged download and delete.
*/
"select": {
"enabled": true
},
2012-10-17 01:54:05 +02:00
/*
2012-10-07 02:40:50 +02:00
Default sort order is a two letter code. The first letter specifies
the column: "n" for "Name", "d" for "Date" or "s" for "Size". The
second letter specifies the sort order: "a" for "ascending" or "d"
for "descending".
- order: "na", "nd", "da", "dd", "sa" or "sd"
2012-10-07 02:40:50 +02:00
*/
"sort": {
"enabled": true,
"order": "na"
},
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
2012-10-07 02:40:50 +02:00
*/
"thumbnails": {
"enabled": true,
"img": ["bmp", "gif", "ico", "image", "jpg", "png"],
2012-10-07 02:40:50 +02:00
"mov": ["video"],
"doc": ["pdf", "ps"],
"delay": 1
},
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
}
}