mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
More URL fixes.
This commit is contained in:
parent
330523e2b0
commit
c224de1994
2 changed files with 17 additions and 6 deletions
|
@ -14,14 +14,25 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/settings', 'core/event
|
||||||
|
|
||||||
return href
|
return href
|
||||||
.replace(/\/+/g, '/')
|
.replace(/\/+/g, '/')
|
||||||
.replace(/ /g, '%20')
|
|
||||||
|
.replace(/!/g, '%21')
|
||||||
|
.replace(/#/g, '%23')
|
||||||
|
.replace(/\$/g, '%24')
|
||||||
|
.replace(/&/g, '%26')
|
||||||
.replace(/'/g, '%27')
|
.replace(/'/g, '%27')
|
||||||
.replace(/\[/g, '%5B')
|
|
||||||
.replace(/\]/g, '%5D')
|
|
||||||
.replace(/\(/g, '%28')
|
.replace(/\(/g, '%28')
|
||||||
.replace(/\)/g, '%29')
|
.replace(/\)/g, '%29')
|
||||||
|
.replace(/\*/g, '%2A')
|
||||||
.replace(/\+/g, '%2B')
|
.replace(/\+/g, '%2B')
|
||||||
.replace(/\=/g, '%3D');
|
.replace(/\,/g, '%2C')
|
||||||
|
// .replace(/\//g, '%2F')
|
||||||
|
.replace(/:/g, '%3A')
|
||||||
|
.replace(/;/g, '%3B')
|
||||||
|
.replace(/=/g, '%3D')
|
||||||
|
.replace(/\?/g, '%3F')
|
||||||
|
.replace(/@/g, '%40')
|
||||||
|
.replace(/\[/g, '%5B')
|
||||||
|
.replace(/\]/g, '%5D');
|
||||||
},
|
},
|
||||||
|
|
||||||
reUriToPathname = /^.*:\/\/[^\/]*|[^\/]*$/g,
|
reUriToPathname = /^.*:\/\/[^\/]*|[^\/]*$/g,
|
||||||
|
|
|
@ -24,7 +24,7 @@ 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-h5ai links in new window/tab
|
- 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
|
||||||
|
@ -42,7 +42,7 @@ Options
|
||||||
The user selected view mode is also stored local in modern browsers
|
The user selected view mode is also stored local in modern browsers
|
||||||
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 "_h5ai/client/themes", defaults to "fallback"
|
- theme: name of one of the folders in "_{{pkg.name}}/client/themes", defaults to "fallback"
|
||||||
*/
|
*/
|
||||||
"view": {
|
"view": {
|
||||||
"binaryPrefix": false,
|
"binaryPrefix": false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue