summaryrefslogtreecommitdiffstats
path: root/core/js/core.json
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/core.json
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/core.json')
-rw-r--r--core/js/core.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/core.json b/core/js/core.json
index 90bc318b237..e75db534550 100644
--- a/core/js/core.json
+++ b/core/js/core.json
@@ -27,6 +27,8 @@
"multiselect.js",
"oc-requesttoken.js",
"setupchecks.js",
- "../search/js/search.js"
+ "../search/js/search.js",
+ "mimetype.js",
+ "mimetypelist.js"
]
}