mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Semantics.
This commit is contained in:
parent
9269bd6898
commit
42a3beb0b2
3 changed files with 10 additions and 10 deletions
|
@ -3,7 +3,7 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/settings', 'core/event
|
||||||
|
|
||||||
var settings = _.extend({
|
var settings = _.extend({
|
||||||
smartBrowsing: true,
|
smartBrowsing: true,
|
||||||
extInNewWindow: true
|
unmanagedInNewWindow: true
|
||||||
}, allsettings.view),
|
}, allsettings.view),
|
||||||
|
|
||||||
doc = document,
|
doc = document,
|
||||||
|
@ -175,7 +175,7 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/settings', 'core/event
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.extInNewWindow && !item.isManaged) {
|
if (settings.unmanagedInNewWindow && !item.isManaged) {
|
||||||
$el.attr('target', '_blank');
|
$el.attr('target', '_blank');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,12 +24,10 @@ Options
|
||||||
General view options.
|
General view options.
|
||||||
|
|
||||||
- binaryPrefix: set to true uses 1024B=1KiB when formatting file sizes (see http://en.wikipedia.org/wiki/Binary_prefix)
|
- binaryPrefix: set to true uses 1024B=1KiB when formatting file sizes (see http://en.wikipedia.org/wiki/Binary_prefix)
|
||||||
- extInNewWindow: open non-{{pkg.name}} links in new window/tab
|
|
||||||
- hidden: don't list items matching these regular expressions
|
- hidden: don't list items matching these regular expressions
|
||||||
- hideFolders: hide all folders in the main view
|
- hideFolders: hide all folders in the main view
|
||||||
- hideIf403: hide files and folders that are not readable by the server
|
- hideIf403: hide files and folders that are not readable by the server
|
||||||
- hideParentFolder: hide parent folder links in the main view
|
- hideParentFolder: hide parent folder links in the main view
|
||||||
- indexFiles: consider folder with those files as non {{pkg.name}} folders
|
|
||||||
- modes: array, subset of ["details", "grid", "icons"]
|
- modes: array, subset of ["details", "grid", "icons"]
|
||||||
the first value indicates the default view mode. If only one value
|
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.
|
is given the view mode is fixed and the selector buttons are hidden.
|
||||||
|
@ -43,22 +41,24 @@ Options
|
||||||
so that it will be persistent.
|
so that it will be persistent.
|
||||||
- smartBrowsing: use History API if available (no need to reload the whole page)
|
- smartBrowsing: use History API if available (no need to reload the whole page)
|
||||||
- theme: name of one of the folders in "_{{pkg.name}}/client/themes", defaults to "fallback"
|
- theme: name of one of the folders in "_{{pkg.name}}/client/themes", defaults to "fallback"
|
||||||
|
- unmanaged: don't manage folders containing one of those files
|
||||||
|
- unmanagedInNewWindow: open unmanaged links in new window/tab
|
||||||
*/
|
*/
|
||||||
"view": {
|
"view": {
|
||||||
"binaryPrefix": false,
|
"binaryPrefix": false,
|
||||||
"extInNewWindow": false,
|
|
||||||
"hidden": ["^\\.", "^_{{pkg.name}}"],
|
"hidden": ["^\\.", "^_{{pkg.name}}"],
|
||||||
"hideFolders": false,
|
"hideFolders": false,
|
||||||
"hideIf403": true,
|
"hideIf403": true,
|
||||||
"hideParentFolder": false,
|
"hideParentFolder": false,
|
||||||
"indexFiles": ["index.html", "index.htm", "index.php"],
|
|
||||||
"modes": ["details", "grid", "icons"],
|
"modes": ["details", "grid", "icons"],
|
||||||
"setParentFolderLabels": true,
|
"setParentFolderLabels": true,
|
||||||
"sizes": [48, 24, 96],
|
"sizes": [48, 24, 96],
|
||||||
"smartBrowsing": true,
|
"smartBrowsing": true,
|
||||||
"theme": "evolvere"
|
// "theme": "fallback",
|
||||||
// "theme": "faenza"
|
// "theme": "faenza",
|
||||||
// "theme": "fallback"
|
"theme": "evolvere",
|
||||||
|
"unmanaged": ["index.html", "index.htm", "index.php"],
|
||||||
|
"unmanagedInNewWindow": false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ class App {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->options["view"]["indexFiles"] as $name) {
|
foreach ($this->options["view"]["unmanaged"] as $name) {
|
||||||
if (file_exists($path . "/" . $name)) {
|
if (file_exists($path . "/" . $name)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue