mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
411 lines
13 KiB
JavaScript
411 lines
13 KiB
JavaScript
/*
|
|
* h5ai %BUILD_VERSION%
|
|
*
|
|
* Configuration
|
|
* options, types and localization
|
|
*/
|
|
|
|
var H5AI_CONFIG = {
|
|
|
|
"options": {
|
|
|
|
/*
|
|
* The absolute links to webroot and h5ai.
|
|
* Do not change this unless you know what you are doing.
|
|
*/
|
|
"rootAbsHref": "/",
|
|
"h5aiAbsHref": "/_h5ai/",
|
|
|
|
/*
|
|
* Filenames of customized header and footer files to look for
|
|
* in each folder.
|
|
*/
|
|
"customHeader": "_h5ai.header.html",
|
|
"customFooter": "_h5ai.footer.html",
|
|
|
|
/*
|
|
* An array of view modes the user may choose from. Currently there
|
|
* are two possible values: "details" and "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.
|
|
*/
|
|
"viewmodes": ["details", "icons"],
|
|
|
|
/*
|
|
* 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".
|
|
*/
|
|
"sortorder": "na",
|
|
|
|
/*
|
|
* Show a folder tree, boolean.
|
|
* Note that this tree might have side effects as it sends HEAD requests
|
|
* to the folders, and therefore will invoke index.php scripts. Use
|
|
* folderStatus below to avoid such requests.
|
|
* It might also affect performance significantly.
|
|
*/
|
|
"showTree": true,
|
|
|
|
/*
|
|
* Slide tree bar into viewport if there is enough space, boolean.
|
|
*/
|
|
"slideTree": true,
|
|
|
|
/*
|
|
* Associative array of folders and their HTTP status codes to
|
|
* avoid HEAD requests to that folders. The key (folder) must start
|
|
* and end with a slash (/).
|
|
* For example:
|
|
* "/some/folder/": 200
|
|
* will always return HTTP status 200 (OK), which will be interpreted
|
|
* as a non auto indexed folder, that means a folder containing an
|
|
* appropriate default index file.
|
|
*/
|
|
"folderStatus": {},
|
|
|
|
/*
|
|
* Localization, for example "en", "de" etc. - see h5aiLangs below for
|
|
* possible values. Adjust it to your needs. If lang is not found in
|
|
* h5aiLangs it defaults to "en".
|
|
*/
|
|
"lang": "en",
|
|
|
|
/*
|
|
* Try to use browser language, falls back to previous specified lang.
|
|
*/
|
|
"useBrowserLang": true,
|
|
|
|
/*
|
|
* Set parent folder labels to real folder names.
|
|
*/
|
|
"setParentFolderLabels": true,
|
|
|
|
/*
|
|
* Link the hover effects between crumb, extended view and tree.
|
|
*/
|
|
"linkHoverStates": true,
|
|
|
|
/*
|
|
* Date format in detailed view, for example: "yyyy-MM-dd HH:mm:ss"
|
|
* Syntax as specified by date.js
|
|
* http://code.google.com/p/datejs/wiki/FormatSpecifiers
|
|
*/
|
|
"dateFormat": "yyyy-MM-dd HH:mm",
|
|
|
|
/*
|
|
* Requires PHP on the server.
|
|
* Show thumbnails for image files.
|
|
*/
|
|
"showThumbs": false,
|
|
|
|
/*
|
|
* Requires PHP on the server.
|
|
* Enable zipped download of selected entries.
|
|
*/
|
|
"zippedDownload": false
|
|
},
|
|
|
|
|
|
/*
|
|
* File types mapped to file extensions.
|
|
*/
|
|
"types": {
|
|
"archive": [".tar.bz2", ".tar.gz", ".tgz"],
|
|
"audio": [".aif", ".m4a", ".mid", ".mp3", ".mpa", ".ra", ".ogg", ".wav", ".wma"],
|
|
"authors": ["authors"],
|
|
"bin": [".class", ".o", ".so"],
|
|
"blank": [],
|
|
"bmp": [".bmp"],
|
|
"c": [".c"],
|
|
"calc": [".ods", ".ots", ".xlr", ".xls", ".xlsx"],
|
|
"cd": [".cue", ".iso"],
|
|
"copying": ["copying", "license"],
|
|
"cpp": [".cpp"],
|
|
"css": [".css", ".less"],
|
|
"deb": [".deb"],
|
|
"default": [],
|
|
"doc": [".doc", ".docx", ".odm", ".odt", ".ott"],
|
|
"draw": [".drw"],
|
|
"eps": [".eps"],
|
|
"exe": [".exe"],
|
|
"folder": [],
|
|
"folder-home": [],
|
|
"folder-open": [],
|
|
"folder-page": [],
|
|
"folder-parent": [],
|
|
"gif": [".gif"],
|
|
"gzip": [".gz"],
|
|
"h": [".h"],
|
|
"hpp": [".hpp"],
|
|
"html": [".htm", ".html", ".shtml"],
|
|
"ico": [".ico"],
|
|
"image": [".xpm"],
|
|
"install": ["install"],
|
|
"java": [".java"],
|
|
"jpg": [".jpg", ".jpeg"],
|
|
"js": [".js", ".json"],
|
|
"log": [".log", "changelog"],
|
|
"makefile": [".pom", "build.xml", "pom.xml"],
|
|
"package": [],
|
|
"pdf": [".pdf"],
|
|
"php": [".php"],
|
|
"playlist": [".m3u"],
|
|
"png": [".png"],
|
|
"pres": [".odp", ".otp", ".pps", ".ppt", ".pptx"],
|
|
"psd": [".psd"],
|
|
"py": [".py"],
|
|
"rar": [".rar"],
|
|
"rb": [".rb"],
|
|
"readme": ["readme"],
|
|
"rpm": [".rpm"],
|
|
"rss": [".rss"],
|
|
"rtf": [".rtf"],
|
|
"script": [".conf", ".csh", ".ini", ".ksh", ".sh", ".shar", ".tcl"],
|
|
"source": [],
|
|
"sql": [],
|
|
"tar": [".tar"],
|
|
"tex": [".tex"],
|
|
"text": [".markdown", ".md", ".text", ".txt"],
|
|
"tiff": [".tiff"],
|
|
"unknown": [],
|
|
"vcal": [".vcal"],
|
|
"video": [".avi", ".flv", ".mov", ".mp4", ".mpg", ".rm", ".swf", ".vob", ".wmv"],
|
|
"xml": [".xml"],
|
|
"zip": [".bz2", ".jar", ".war", ".z", ".Z", ".zip"]
|
|
},
|
|
|
|
|
|
/*
|
|
* Available translations.
|
|
*/
|
|
"langs": {
|
|
|
|
"en": {
|
|
"lang": "english",
|
|
"details": "details",
|
|
"icons": "icons",
|
|
"name": "Name",
|
|
"lastModified": "Last modified",
|
|
"size": "Size",
|
|
"parentDirectory": "Parent Directory",
|
|
"empty": "empty",
|
|
"folders": "folders",
|
|
"files": "files",
|
|
"download": "download"
|
|
},
|
|
|
|
"bg": {
|
|
"lang": "български",
|
|
"details": "детайли",
|
|
"icons": "икони",
|
|
"name": "Име",
|
|
"lastModified": "Последна промяна",
|
|
"size": "Размер",
|
|
"parentDirectory": "Предходна директория",
|
|
"empty": "празно",
|
|
"folders": "папки",
|
|
"files": "файлове",
|
|
"download": "download"
|
|
},
|
|
|
|
"cs": {
|
|
"lang": "čeština",
|
|
"details": "podrobnosti",
|
|
"icons": "ikony",
|
|
"name": "Název",
|
|
"lastModified": "Upraveno",
|
|
"size": "Velikost",
|
|
"parentDirectory": "Nadřazený adresář",
|
|
"empty": "prázdný",
|
|
"folders": "složek",
|
|
"files": "souborů",
|
|
"download": "download"
|
|
},
|
|
|
|
"de": {
|
|
"lang": "deutsch",
|
|
"details": "Details",
|
|
"icons": "Icons",
|
|
"name": "Name",
|
|
"lastModified": "Geändert",
|
|
"size": "Größe",
|
|
"parentDirectory": "Übergeordnetes Verzeichnis",
|
|
"empty": "leer",
|
|
"folders": "Ordner",
|
|
"files": "Dateien",
|
|
"download": "Download"
|
|
},
|
|
|
|
"es": {
|
|
"lang": "español",
|
|
"details": "Detalles",
|
|
"icons": "Íconos",
|
|
"name": "Nombre",
|
|
"lastModified": "Última modificación",
|
|
"size": "Tamaño",
|
|
"parentDirectory": "Directorio superior",
|
|
"empty": "vacío",
|
|
"folders": "folders",
|
|
"files": "files",
|
|
"download": "download"
|
|
},
|
|
|
|
"fr": {
|
|
"lang": "français",
|
|
"details": "détails",
|
|
"icons": "icônes",
|
|
"name": "Nom",
|
|
"lastModified": "Dernière modification",
|
|
"size": "Taille",
|
|
"parentDirectory": "Dossier parent",
|
|
"empty": "vide",
|
|
"folders": "Répertoires",
|
|
"files": "Fichiers",
|
|
"download": "télécharger"
|
|
},
|
|
|
|
"it": {
|
|
"lang": "italiano",
|
|
"details": "dettagli",
|
|
"icons": "icone",
|
|
"name": "Nome",
|
|
"lastModified": "Ultima modifica",
|
|
"size": "Dimensione",
|
|
"parentDirectory": "Cartella Superiore",
|
|
"empty": "vuota",
|
|
"folders": "cartelle",
|
|
"files": "file",
|
|
"download": "download"
|
|
},
|
|
|
|
"lv": {
|
|
"lang": "latviešu",
|
|
"details": "detaļas",
|
|
"icons": "ikonas",
|
|
"name": "Nosaukums",
|
|
"lastModified": "Pēdējoreiz modificēts",
|
|
"size": "Izmērs",
|
|
"parentDirectory": "Vecākdirektorijs",
|
|
"empty": "tukšs",
|
|
"folders": "mapes",
|
|
"files": "faili",
|
|
"download": "lejupielādēt"
|
|
},
|
|
|
|
"nl": {
|
|
"lang": "nederlands",
|
|
"details": "details",
|
|
"icons": "iconen",
|
|
"name": "Naam",
|
|
"lastModified": "Laatste wijziging",
|
|
"size": "Grootte",
|
|
"parentDirectory": "Bovenliggende map",
|
|
"empty": "lege",
|
|
"folders": "folders",
|
|
"files": "files",
|
|
"download": "download"
|
|
},
|
|
|
|
"pl": {
|
|
"lang": "polski",
|
|
"details": "szczegóły",
|
|
"icons": "ikony",
|
|
"name": "Nazwa",
|
|
"lastModified": "Ostatnia modyfikacja",
|
|
"size": "Rozmiar",
|
|
"parentDirectory": "Katalog nadrzędny",
|
|
"empty": "pusty",
|
|
"folders": "foldery",
|
|
"files": "pliki",
|
|
"download": "download"
|
|
},
|
|
|
|
"pt": {
|
|
"lang": "português",
|
|
"details": "detalhes",
|
|
"icons": "ícones",
|
|
"name": "Nome",
|
|
"lastModified": "Última modificação",
|
|
"size": "Tamanho",
|
|
"parentDirectory": "Diretório superior",
|
|
"empty": "vazio",
|
|
"folders": "pastas",
|
|
"files": "arquivos",
|
|
"download": "download"
|
|
},
|
|
|
|
"ru": {
|
|
"lang": "русский",
|
|
"details": "детали",
|
|
"icons": "иконки",
|
|
"name": "Имя",
|
|
"lastModified": "Последние изменения",
|
|
"size": "Размер",
|
|
"parentDirectory": "Главная директория",
|
|
"empty": "пусто",
|
|
"folders": "папки",
|
|
"files": "файлы",
|
|
"download": "download"
|
|
},
|
|
|
|
"sk": {
|
|
"lang": "slovenčina",
|
|
"details": "podrobnosti",
|
|
"icons": "ikony",
|
|
"name": "Názov",
|
|
"lastModified": "Upravené",
|
|
"size": "Velkosť",
|
|
"parentDirectory": "Nadriadený priečinok",
|
|
"empty": "prázdny",
|
|
"folders": "priečinkov",
|
|
"files": "súborov",
|
|
"download": "download"
|
|
},
|
|
|
|
"sv": {
|
|
"lang": "svenska",
|
|
"details": "detaljerad",
|
|
"icons": "ikoner",
|
|
"name": "Filnamn",
|
|
"lastModified": "Senast ändrad",
|
|
"size": "Filstorlek",
|
|
"parentDirectory": "Till överordnad mapp",
|
|
"empty": "tom",
|
|
"folders": "folders",
|
|
"files": "files",
|
|
"download": "download"
|
|
},
|
|
|
|
"tr": {
|
|
"lang": "türkçe",
|
|
"details": "detaylar",
|
|
"icons": "ikonlar",
|
|
"name": "İsim",
|
|
"lastModified": "Son Düzenleme",
|
|
"size": "Boyut",
|
|
"parentDirectory": "Üst Dizin",
|
|
"empty": "boş",
|
|
"folders": "klasörler",
|
|
"files": "dosyalar",
|
|
"download": "indir"
|
|
},
|
|
|
|
"zh-cn": {
|
|
"lang": "简体中文",
|
|
"details": "详情",
|
|
"icons": "图标",
|
|
"name": "文件名",
|
|
"lastModified": "上次修改",
|
|
"size": "大小",
|
|
"parentDirectory": "上层文件夹",
|
|
"empty": "空文件夹",
|
|
"folders": "文件夹",
|
|
"files": "文件",
|
|
"download": "download"
|
|
}
|
|
}
|
|
};
|