Updates config.js comments.

This commit is contained in:
Lars Jung
2012-08-17 16:51:10 +02:00
parent f1a2a44079
commit 799f1ecd13
2 changed files with 24 additions and 28 deletions

View File

@@ -47,7 +47,7 @@ var H5AI_CONFIG = {
/*** Extensions (in alphabetical order) ***/ /*** Extensions (in alphabetical order) ***/
/* /* [php]
Watch current folder content. Watch current folder content.
Folders possibly visible in the tree view that are not the Folders possibly visible in the tree view that are not the
current folder might not be updated. current folder might not be updated.
@@ -59,14 +59,14 @@ var H5AI_CONFIG = {
"interval": 5000 "interval": 5000
}, },
/* /* [all]
Show a clickable breadcrumb. Show a clickable breadcrumb.
*/ */
"crumb": { "crumb": {
"enabled": true "enabled": true
}, },
/* /* [all]
Filenames of customized header and footer files to look for Filenames of customized header and footer files to look for
in each folder. in each folder.
*/ */
@@ -76,14 +76,14 @@ var H5AI_CONFIG = {
"footer": "_h5ai.footer.html" "footer": "_h5ai.footer.html"
}, },
/* /* [php]
Allow file deletion. Allow file deletion.
*/ */
"delete": { "delete": {
"enabled": true "enabled": true
}, },
/* /* [php]
File upload via drag'n'drop. Folders are not supported. File upload via drag'n'drop. Folders are not supported.
The working file size seems to be very browser dependent. The working file size seems to be very browser dependent.
@@ -95,19 +95,18 @@ var H5AI_CONFIG = {
"maxfilesize": 1000 "maxfilesize": 1000
}, },
/* /* [php]
Requires PHP on the server.
Enable packaged download of selected entries. Enable packaged download of selected entries.
Execution: "php", "shell". Execution: "php", "shell".
Supported formats: "tar", "zip". Supported formats: "tar", "zip".
*/ */
"download": { "download": {
"enabled": true, "enabled": true,
"execution": "shell", "execution": "php",
"format": "zip" "format": "zip"
}, },
/* /* [all]
Allow filtering the displayed files and folders. Allow filtering the displayed files and folders.
Will check entries for right order of characters, i.e. Will check entries for right order of characters, i.e.
"ab" matches "ab", "axb", "xaxbx" but not "ba". "ab" matches "ab", "axb", "xaxbx" but not "ba".
@@ -120,8 +119,7 @@ var H5AI_CONFIG = {
"enabled": true "enabled": true
}, },
/* /* [php]
Requires PHP on the server.
Calc the size of folders. Calc the size of folders.
Depends on du. Depends on du.
*/ */
@@ -129,7 +127,7 @@ var H5AI_CONFIG = {
"enabled": true "enabled": true
}, },
/* /* [all]
Associative array of folders and their HTTP status codes to Associative array of folders and their HTTP status codes to
avoid HEAD requests to that folders. The key (folder) must start avoid HEAD requests to that folders. The key (folder) must start
and end with a slash (/). and end with a slash (/).
@@ -144,7 +142,7 @@ var H5AI_CONFIG = {
"folders": {} "folders": {}
}, },
/* /* [all]
Adds Google Analytics asynchronous tracking code. Adds Google Analytics asynchronous tracking code.
for example: for example:
@@ -162,7 +160,7 @@ var H5AI_CONFIG = {
"gaq": [] "gaq": []
}, },
/* /* [all]
Localization, for example "en", "de" etc. - see "langs" below for Localization, for example "en", "de" etc. - see "langs" below for
possible values. Adjust it to your needs. If lang is not found in possible values. Adjust it to your needs. If lang is not found in
"langs" it defaults to "en". "langs" it defaults to "en".
@@ -176,14 +174,14 @@ var H5AI_CONFIG = {
"useBrowserLang": true "useBrowserLang": true
}, },
/* /* [all]
Link the hover effects between crumb, main view and tree. Link the hover effects between crumb, main view and tree.
*/ */
"link-hover-states": { "link-hover-states": {
"enabled": true "enabled": true
}, },
/* /* [all]
Shows the server mode in the bottom left corner. Shows the server mode in the bottom left corner.
display values: display values:
0: only show mode 0: only show mode
@@ -195,7 +193,7 @@ var H5AI_CONFIG = {
"display": 2 "display": 2
}, },
/* /* [all]
Show an image preview on click. Show an image preview on click.
*/ */
"preview-img": { "preview-img": {
@@ -203,7 +201,7 @@ var H5AI_CONFIG = {
"types": ["bmp", "gif", "ico", "image", "jpg", "png", "tiff"] "types": ["bmp", "gif", "ico", "image", "jpg", "png", "tiff"]
}, },
/* /* [all]
Show text file preview on click. Show text file preview on click.
"types" maps file types to SyntaxHighligher brushes. Special case: "markdown" will "types" maps file types to SyntaxHighligher brushes. Special case: "markdown" will
be rendered as HTML. be rendered as HTML.
@@ -238,7 +236,7 @@ var H5AI_CONFIG = {
} }
}, },
/* /* [all]
Show QRCodes on hovering files. Show QRCodes on hovering files.
*/ */
"qrcode": { "qrcode": {
@@ -246,21 +244,21 @@ var H5AI_CONFIG = {
"size": 150 "size": 150
}, },
/* /* [php]
Allow to rename files. Allow to rename files.
*/ */
"rename": { "rename": {
"enabled": false "enabled": false
}, },
/* /* [all]
Make entries selectable. At the moment only needed for packaged download and delete. Make entries selectable. At the moment only needed for packaged download and delete.
*/ */
"select": { "select": {
"enabled": true "enabled": true
}, },
/* /* [all]
Default sort order is a two letter code. The first letter specifies 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 the column: "n" for "Name", "d" for "Date" or "s" for "Size". The
second letter specifies the sort order: "a" for "ascending" or "d" second letter specifies the sort order: "a" for "ascending" or "d"
@@ -271,15 +269,14 @@ var H5AI_CONFIG = {
"order": "na" "order": "na"
}, },
/* /* [all]
Show additional info in a statusbar. Show additional info in a statusbar.
*/ */
"statusbar": { "statusbar": {
"enabled": true "enabled": true
}, },
/* /* [php]
Requires PHP on the server.
Show thumbnails for image files. Needs the "/_h5ai/cache" folder to be Show thumbnails for image files. Needs the "/_h5ai/cache" folder to be
writable for the web Server. writable for the web Server.
- img thumbnails depend on PHP-GD - img thumbnails depend on PHP-GD
@@ -294,14 +291,14 @@ var H5AI_CONFIG = {
"delay": 1 "delay": 1
}, },
/* /* [all]
Replace window title with current breadcrumb. Replace window title with current breadcrumb.
*/ */
"title": { "title": {
"enabled": true "enabled": true
}, },
/* /* [all]
Show a folder tree. Show a folder tree.
Note that this tree might have side effects as it sends HEAD requests Note that this tree might have side effects as it sends HEAD requests
to the folders, and therefore will invoke index.php scripts. Use to the folders, and therefore will invoke index.php scripts. Use

View File

@@ -2,7 +2,6 @@
modulejs.define('core/settings', ['config', '_'], function (config, _) { modulejs.define('core/settings', ['config', '_'], function (config, _) {
var defaults = { var defaults = {
rootAbsHref: '/',
h5aiAbsHref: '/_h5ai/' h5aiAbsHref: '/_h5ai/'
}; };