summaryrefslogtreecommitdiffstats
path: root/core/js/config.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-06-03 14:52:00 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-07-06 16:32:10 +0200
commitc8145cdbd6160788569d00fbc267abd08ae019c9 (patch)
tree9757cbbf9ef2fd42074522c7b85124427f447224 /core/js/config.php
parent14eef434fff78bf39a926b1f27220b9ad1ebb833 (diff)
downloadnextcloud-server-c8145cdbd6160788569d00fbc267abd08ae019c9.tar.gz
nextcloud-server-c8145cdbd6160788569d00fbc267abd08ae019c9.zip
Javascript mimetype icon resolver
This makes it possible to retrieve the icon for mimetypes in javascript. It makes no additional queries to the server to retrieve the mimetype. * config/mimetypealiases.json added * mimetype.js: this is where the logic resides to convert from mimetype to icon url * mimetypelist.js: generated file with a list of mimetype mapping (aliases) and the list of icon files * ./occ maintenance:mimetypesjs : new command for occ to gernerate mimetypes.js * unit tests updated and still work * javascript tests added * theming support * folder of the theme is now present in javascript (OC.theme.folder)
Diffstat (limited to 'core/js/config.php')
-rw-r--r--core/js/config.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/config.php b/core/js/config.php
index d6946f671d1..cecbf27e4b2 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -128,7 +128,8 @@ $array = array(
'slogan' => $defaults->getSlogan(),
'logoClaim' => $defaults->getLogoClaim(),
'shortFooter' => $defaults->getShortFooter(),
- 'longFooter' => $defaults->getLongFooter()
+ 'longFooter' => $defaults->getLongFooter(),
+ 'folder' => OC_Util::getTheme(),
)
)
);